2 Replies Latest reply on Feb 12, 2009 8:56 PM by Brett Williamson

    commandButton and commandLink action does not work inside ri

    Brett Williamson Newbie

      Please help!! This is driving me crazy….

      When I place any sort of command button or command link inside a rich:tabPanel tab it will not fire an action, in fact the button appears to do nothing at all. Command links and buttons placed OUTSIDE the tabPanel work fine. Another symptom is that if I create a rich:modalPanel on the page command buttons and links to do not work ANYWHERE on the page. I'm using RichFaces3.3.0 with myfaces 1.2.6 on Tomcat6. See example below:

      <ui:composition template="/components/layout/layout.xhtml">
       …
       <ui:define name="content">
      
       THESE TWO BUTTONS WORK
       <h:form>
      <h:commandButton action="#{generalBean.takeIrrigatorSelection}" value="H select party" />
       <h:commandLink action="#{generalBean.takeIrrigatorSelection}" value="tryagain" />
       </h:form>
      
       <table id= "body" cellpadding="0" cellspacing="0" width="100%">
       <tr>
       <td class="body-main-wide" style="height: 630px;">
      
       <h2>FarmConnect Agronomists Portal</h2>
       <h:form>
      
      
      
       <!-- Header information -->
       <h:outputLabel for="currIrrigatorName">Current Irrigator:</h:outputLabel>
       <h:outputText id="currIrrigatorName" value="#{generalBean.selectedIrrigatorParty.formalPartyName}"/>
       <br />
       <h:outputLabel for="currPropertyName">Current Property:</h:outputLabel>
       <h:outputText id="currPropertyName" value="#{generalBean.selectedPropertyObject.objectName}"/>
      
       <!-- Main Tab Panel -->
       <rich:tabPanel width="100%" height="90%">
      
       <rich:tab>
       <f:facet name="label">
       <h:graphicImage value="#{initParam.imagesDir}/line-chart-16.png" />
       </f:facet>
      
       THESE TWO BUTTONS DO NOT WORK
      <h:form>
      <h:commandButton action="#{generalBean.takeIrrigatorSelection}" value="H select party" />
       <h:commandLink action="#{generalBean.takeIrrigatorSelection}" value="tryagain" />
       </h:form>
      
       </rich:tab>
      
       </rich:tabPanel>
      
      
       </h:form>
       <br />
       </td>
       </tr>
       </table>
      
       </ui:define>
      </ui:composition>
      

      Thankyou thankyou thankyou for any feedback!
      Brett