Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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 13:25
Vikram Kodak is currently offline Vikram Kodak
Messages: 57
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 00: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: Tue Jul 22 05:21:00 EDT 2014

Powered by FUDForum. Page generated in 0.01614 seconds