title: JSF CommandButton action not invoked
body: <p>I'm having a problem with JSF CommandButton action not being invoked.
  I have a managed bean roleController, as in</p>
  
  <pre><code>@ManagedBean(name = "roleController")
  @RequestScoped
  public class RoleController {
          public Role getSelectedRole() {
      return selectedRole;
  }
  
  public void updateSelectedRole() {
      System.out.println(selectedRole.getRole());
  }
  </code></pre>
  
  <p>In my .jsf file I'm trying to edit invoke updateSelectedRole action on h:commandButton, but it doesn't seem to work. I've tried to change the method name to incorrect one, and there's no exception thrown - but when I do the same with other form, the exception is thrown - so most likely the action isn't even invoked.</p>
  
  <pre><code>&lt;h:panelGroup rendered="${param.action == 'edit'}"&gt;
      &lt;h:form&gt;
          &lt;ol&gt;
              &lt;li&gt;
                  &lt;label for="ID"&gt;
                      &lt;h:outputText value="#{msg.roleEditID}" /&gt;
                  &lt;/label&gt;
                  &lt;h:inputText readonly="true" 
                      value="#{roleController.selectedRole.id}" /&gt;
              &lt;/li&gt;
              &lt;li&gt;
                  &lt;label for="Role"&gt;
                      &lt;h:outputText value="#{msg.roleEditRole}" /&gt;
                  &lt;/label&gt;
                  &lt;h:inputText value="#{roleController.selectedRole.role}" /&gt;
              &lt;/li&gt;
              &lt;li&gt;
                  &lt;h:commandButton value="#{msg.buttonUpdate}" 
                      action="#{roleController.updateSelectedRole()}"/&gt;
              &lt;/li&gt;
          &lt;/ol&gt;
      &lt;/h:form&gt;
  &lt;/h:panelGroup&gt;
  </code></pre>
  
  <p>I found that it may be caused be nested forms, but that's not the case in this example. Is it possible that the root of this problem is my navigation rule?</p>
  
  <pre><code>&lt;navigation-rule&gt;
      &lt;from-view-id&gt;/admin/roles.xhtml&lt;/from-view-id&gt;
      &lt;navigation-case&gt;
          &lt;to-view-id&gt;/admin/roles.xhtml&lt;/to-view-id&gt;
          &lt;from-outcome&gt;true&lt;/from-outcome&gt;
          &lt;redirect&gt;
              &lt;view-param&gt;
                  &lt;name&gt;action&lt;/name&gt;
                  &lt;value&gt;edit&lt;/value&gt;
              &lt;/view-param&gt;
          &lt;/redirect&gt;
      &lt;/navigation-case&gt;
  &lt;/navigation-rule&gt;
  </code></pre>