4 Replies Latest reply on Jul 7, 2008 5:04 AM by ilya_shaikovsky

    h:commandlink won't work after using rich:datascroller

    vircos

      I use a datagrid wich generates an overview. Each item in the overview consists of a rich:panel. Each rich:panel is surrounded by a h:commandlink tag. In my case each rich:panel represents a person. By clicking on a person I want to see some details about that person. The rich:datascroller is used to scroll through the pages with persons.

      When I load the page for the first time I am able to click on a person to view the details, but when I use the datascroller to go to a different page somehow nothing happens after clicking on a person.

      This is the code I use:

      <h:form>
       <rich:panel>
       <a4j:status for="kenniskaarten">
       <f:facet name="start">
       <h:graphicImage value="../images/ajax-loader.gif" style="margin-left: 25%;" />
       </f:facet>
       <f:facet name="stop">
       <a4j:region id="kenniskaarten">
       <rich:dataGrid value="#kennisgebiedController.kennisdomeinen}" var="kennisdomein" columns="6" elements="6">
       <h:commandLink action="#kennisgebiedController.detailSetup}" style="text-decoration: none;">
       <rich:panel
       style="background-color: #C4DBE9; border: 1px solid #679Ac9">
       <f:facet name="header">
       <h:outputText value="Some Name" />
       </f:facet>
       <h:graphicImage value="../images/some_image.png"
       style="border: none;" alt="" />
       </rich:panel>
       </h:commandLink>
       <f:facet name="footer">
       <rich:datascroller selectedStyle="background-color: #CCCCCC;"
       inactiveStyle="background-color: #679AC9" reRender="kenniskaarten" />
       </f:facet>
       </rich:dataGrid>
       </a4j:region>
       </f:facet>
       </a4j:status>
       </rich:panel>
      </h:form>
      


      Does someone know why?

      Many thanks in advance.

      Best Regards,
      Remco