3 Replies Latest reply on Aug 5, 2010 10:54 AM by Arbi Sookazian

    page redirection problem in pages.xml

    Arbi Sookazian Master

      Seam 2.2.0.GA


      <a4j:form>
                              <a4j:commandLink styleClass="widget_button"
                                  action="#{merchantBillingGroupEditorUI.setPageaction('edit')}"
                                  onclick="showProgress();"
                                  oncomplete="hideProgress();">
                                  <span><h:outputText
                                      value="#{messages['widget.button.edit']}" /></span>
                              </a4j:commandLink>
                          </a4j:form>



      @Name("merchantBillingGroupEditorUI")
      @Scope(ScopeType.CONVERSATION)
      @MeasureCalls
      @Stateful
      public class MerchantBillingGroupEditorUIBean implements
              MerchantBillingGroupEditorUI {
      public void setPageaction(String pageaction) {
                      this.pageaction = pageaction;
              }



      <page view-id="/restricted/billing/view_merchant_billing_group.xhtml">
              <navigation 
                  from-action="#{merchantBillingGroupEditorUI.setPageaction}">
                  <redirect  
                      view-id="/restricted/billing/add_merchant_billing_group.xhtml">
                      <!-- <param name="pageaction" value="edit"/>  -->                       
                  </redirect>
              </navigation>
          </page>



      Page redirection to add_merchant_billing_group.xhtml is not happening, just reloads the current page.  No errors in server.log.  Any reason why this is happening?  In debugger, setPageaction() method is invoked.  thx.