0 Replies Latest reply on Jul 30, 2007 10:14 AM by ylazzari

    RichFaces 3.0.2: 2 issues

      Hi,

      I have 2 little issues to report with RichFaces 3.0.2.

      The first one is a problem that I have a problem with a a4j:support within a rich:column. Here's my template:

      <rich:dataTable value="#{someList}" var="item" ajaxKeys="#{myController.ajaxKeys}">
       <rich:column>
       <a4j:support event="onclick" action="#{myController.someAction}" reRender="col1, col2"/>
       <f:facet name="header">Col 1</f:facet>
       <h:panelGroup id="col1">
       <h:outputText value="#{item.col1}"/>
       </h:panelGroup>
       </rich:column>
       <rich:column>
       <a4j:support event="onclick" action="#{myController.someAction}" reRender="col1, col2"/>
       <f:facet name="header">Col 2</f:facet>
       <h:panelGroup id="col2">
       <h:outputText value="#{item.col2}"/>
       </h:panelGroup>
       </rich:column>
      </rich:dataTable>
      


      As you can see, I'm trying to invoke an action when the user clicks inside the columns. When I click inside a column, an ajax request is triggered but my action is never called. If I wrap my columns inside a rich:columnGroup, my action gets called. Is this the expected behaviour or is this a bug? Here's the list of RichFaces/Ajax4jsf combinations that I tried and with which I get the same behaviour:

      - Ajax4jsf v1.1.2-SNAPSHOT-20070629 and RichFaces v3.0.2-SNAPSHOT-20070620
      - Ajax4jsf v1.1.2-SNAPSHOT-20070723 and RichFaces v3.0.2-SNAPSHOT-20070723
      - Ajax4jsf v1.1.2-SNAPSHOT-20070725 and RichFaces v3.0.2-SNAPSHOT-20070725
      - Ajax4jsf v1.1.2-SNAPSHOT-20070730 and RichFaces v3.0.2-SNAPSHOT-20070730

      My second problem is with a rich:tree: nodes don't expand anymore when clicking on the node icon. The cursor turns into a hand but clicking on the icon doesn't do anything and there doesn't appear to be any javascript error. I'm using the latest version of Firefox. It works when using the combination of Ajax4jsf v1.1.2-SNAPSHOT-20070629 and RichFaces v3.0.2-SNAPSHOT-20070620 but it doesn't work in the later combinations mentioned above.

      Thanks.