3 Replies Latest reply on Jan 7, 2016 5:17 AM by michpetrov

    commandLink inside h:panelGroup with rendered condition is not working

    kkn

      Hi,

       

      I have a simple commandLink inside a HTML table which is rendered based on a condition. Below is the code. On click of command button "Search", "ajaxDataListing" output panel would rendered. However, after re-rendering, the command link "My Link" is not hitting the sort action method. The link "My Link" does appear but it is not functional and not reaching action method. Can someone please help to understand what is wrong in below code?

       

       

      <table width="100%">

           <tr>

               <td align="center">

                    <a4j:commandButton

                         id="searchButton" "

                         value="Search"

                         type="submit"

                         action="#{myHandlerBean.searchSomeDetails}"

                         render="ajaxDataListing"

                     />

               </td>

          </tr>

      </table>

       

      <a4j:outputPanel id="ajaxDataListing">

      <h:panelGroup rendered="#{myHandlerBean.showListing}">

            <table>

                  <tr>

                       <td>

                            <a4j:commandButton

                                 id="myLink"

                                 value="My Link"

                                 render="ajaxDataListing"

                                 action="#{myHandlerBean.sort}"

                            />

                       </td>

                </tr>

           </table>

      </h:panelGroup>

      </a4j:outputPanel>

       

      Thanks!