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

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

    Remco Visser Newbie

      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:

       <a4j:status for="kenniskaarten">
       <f:facet name="start">
       <h:graphicImage value="../images/ajax-loader.gif" style="margin-left: 25%;" />
       <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;">
       style="background-color: #C4DBE9; border: 1px solid #679Ac9">
       <f:facet name="header">
       <h:outputText value="Some Name" />
       <h:graphicImage value="../images/some_image.png"
       style="border: none;" alt="" />
       <f:facet name="footer">
       <rich:datascroller selectedStyle="background-color: #CCCCCC;"
       inactiveStyle="background-color: #679AC9" reRender="kenniskaarten" />

      Does someone know why?

      Many thanks in advance.

      Best Regards,