3 Replies Latest reply on Jul 15, 2010 6:09 PM by serkan.s.eskici.online.nl

    Passing parameters to a page

    meet_nagi

      Hi,


      I am trying to pass a object to a different page from an action/listener class using the page context. Below is the code and pages.xml for your reference. I understand that page context won't be available to ConfirmedApplications page after redirection and I don't want to use Conversation here. Please let me know if there is any other way that I can pass this object to the page.


      Thanks




      // Dispose the application
           public String disposeApplication(String action) {
                applicationInboxBean.setAction(action);
                applicationInboxBean = (ApplicationInboxBean) invokeSetService(false);
                Contexts.getPageContext().set("confirmedApps",
                          applicationInboxBean);
           
                
                return "confirmedApplications"; // redirect the user to Confirmed
                                                        // Applications
           }




      <page expires="0" view-id="/webmain/*" back="enabled">
                <navigation>
                     <rule if-outcome="confirmedApplications">
                          <redirect view-id="/webmain/confirmedApps.xhtml" />
                     </rule>
                     <rule if-outcome="Applications Inbox">
                          <redirect view-id="/webmain/applicationInbox.xhtml" />
                     </rule>
                     
           <exception class="gov.fcc.cls.web.admin.exceptions.AdminServiceCallException">
                <redirect view-id="/webmain/errorDisplay.xhtml">
                     <message severity="ERROR">#{org.jboss.seam.handledException.message}
                     </message>
                </redirect>
           </exception>
      </navigation>
      </page>