1 Reply Latest reply on Jun 23, 2006 3:19 AM by japplicoon

    Action not triggered

    goeh

      What should I look for when trying to find why an action is not called?
      I have a commandLink in an edit screen, but nothing happens when I click the button. Well... the company edit page redisplays and conversationId is disappears from the URL, but I'm not redirected to the start page as I expect.
      Once entered, I cannot leave this edit page. No actions are triggered.
      I have compared this code with other code that works but I cannot find a difference. I have put a breakpoint in the action method and it is not entered. Now I'm out of clues and don't know where to look anymore.
      I use latest and greatest of everything, jboss, seam, facelets...
      Here are some code fragments:

      <h:commandLink action="#{companyEditor.back}"><img id="backbutton" src="/static/img/back.png"/></h:commandLink>
      

      The bean:
      @Stateful
      @Scope(CONVERSATION)
      @Name("companyEditor")
      @CheckLoggedIn
      public class CompanyEditorBean implements CompanyEditor {
      

      The action method that is supposed to be called:
      public String back() {
       entityManager.refresh(company);
       return "back";
      }
      

      Navigation case in faces-config.xml:
       <navigation-rule>
       <from-view-id>/editCompany.xhtml</from-view-id>
       <navigation-case>
       <from-outcome>back</from-outcome>
       <to-view-id>/start.xhtml</to-view-id>
       <redirect />
       </navigation-case>
       <navigation-case>
       <from-outcome>save</from-outcome>
       <to-view-id>/viewCompany.xhtml</to-view-id>
       <redirect />
       </navigation-case>
       </navigation-rule>