Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Process Manager (Stardust) » Identify which button click initiated 'complete' method call of backing bean(portal complete method backing bean)
Identify which button click initiated 'complete' method call of backing bean [message #742637] Thu, 20 October 2011 17:25
Vikram Kodak is currently offline Vikram KodakFriend
Messages: 72
Registered: October 2011
Member
Identify which button click initiated 'complete' method call of backing bean.
Since Backing Bean's complete method gets called either you click on 'Complete' or 'Suspend and Save' icon in Workflow perspective.
If you wish to process differently on different originators of the call, here is what needs to be done in backing bean 'complete' method

 
public void complete(){

            final Map<String, Object> sessionMap = FacesContext.getCurrentInstance().getExternalContext().getSessionMap();
                  Object command = sessionMap.get("ippIframePanelPanelCommand");
                if (ag.carnot.web.jsf.processportal.common.ClosePanelScenario.COMPLETE.equals(command))
                  {
                      //TODO: in case originator is Complete button
                  }
                    else{
                          //TODO: Originator is Suspend and Save button              
      }
}

Note: This works with Nirvana based portals.

[Updated on: Fri, 21 October 2011 04:41]

Report message to a moderator

Previous Topic:Plain Java Application Constructor Parameter is null
Next Topic:HeuristicMixedException on WebLogic during transaction commit
Goto Forum:
  


Current Time: Wed Apr 24 23:13:20 GMT 2024

Powered by FUDForum. Page generated in 0.03592 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top