2 Replies Latest reply on May 21, 2007 10:06 AM by Aleksandr Miroshnichenko

    rich:ColumnGroup with a4j:support

    Aleksandr Miroshnichenko Newbie

      Environment: java 1.5, a4j & richfaces from richfaces-3.0.1-20070510.001114-47

      Hello.
      I have problem with a4j:support in rich:dataTable.
      If I insert support tag into columnGroup of rich:dataTable, that onclick on row table do`nt work. And if I insert support tag into column tag, that onclick on cell is worked fine.

      It`s work.

      <a4j:outputPanel id="A2Spec">
      ...
      </a4j:outputPanel>
      
      <rich:dataTable id="PriceSpecGrid" var="prc" value="#{DMSpecificationPriceModelComponent}">
       <rich:columnGroup>
       <rich:column>#{prc.seqNumber}
       <a:support event="onclick" reRender="A2Spec" action="#{PriceController.selectLine(prc)}" />
       </rich:column>
       <rich:column>#{prc.name}
       <a:support event="onclick" reRender="A2Spec" action="#{PriceController.selectLine(prc)}" />
       </rich:column>
      
      ...
       </rich:columnGroup>
      </rich:dataTable>
      


      It`s not work
      <a4j:outputPanel id="A2Spec">
      ...
      </a4j:outputPanel>
      
      <rich:dataTable id="PriceSpecGrid" var="prc" value="#{DMSpecificationPriceModelComponent}">
       <rich:columnGroup>
       <a:support event="onclick" reRender="A2Spec" action="#{PriceController.selectLine(prc)}" />
       <rich:column>#{prc.seqNumber}</rich:column>
       <rich:column>#{prc.name}</rich:column>
      ...
       </rich:columnGroup>
      </rich:dataTable>
      


        • 1. Re: rich:ColumnGroup with a4j:support
          Ilya Shaikovsky Master

          With RC 3 build using log I'm able to see the Ajax request fired fine.

          I've placed support nested to group

          JSF 1.2_04
          Facelets 1.1.12

          • 2. Re: rich:ColumnGroup with a4j:support
            Aleksandr Miroshnichenko Newbie

            Ajax request fired in both example, but I have other result. If I remove colunmGroup tag from first code example I have similar result how second example. why?

            If I insert colunmGroup tag into second example:

            <a4j:outputPanel id="A2Spec">
            ...
            </a4j:outputPanel>
            
            <rich:dataTable id="PriceSpecGrid" var="prc" value="#{DMSpecificationPriceModelComponent}">
             <rich:columnGroup>
             <rich:columnGroup>
             <a:support event="onclick" reRender="A2Spec" action="#{PriceController.selectLine(prc)}" />
             <rich:column>#{prc.seqNumber}</rich:column>
             <rich:column>#{prc.name}</rich:column>
            ...
             </rich:columnGroup>
             </rich:columnGroup>
            </rich:dataTable>


            it work, but I have other problems with result HTML.

            Sorry my english.