7 Replies Latest reply on Apr 2, 2008 4:38 AM by ilya_shaikovsky

    a4j components not working

      can someone please tell me why some components such as a4j:commandButton aren't working while the normal jsf components work well? sorry for that, but this stuff is getting me well on my way to madness...

        • 1. Re: a4j components not working

          Do you have some code you can post?

          • 2. Re: a4j components not working

            sure:

            <form>
             <h:dataTable id="Items" style="width: 100%" var="Item" value="#{myBean.arrayList}">
             <h:column>
             <h:panelGrid columns="2" border="0">
             <a4j:commandButton id="editB" value="edit" action="#{myBean.actionStore}">
             <a4j:actionparam name="selectedId" value="{Item.x}" assignTo="#{myBean.x}"/>
             </a4j:commandButton>
             <a4j:commandButton id="delB" value="delete" actionListener="#{myBean.actionListenerStore}">
             <a4j:actionparam name="selectedId" value="{Item.x}" assignTo="#{myBean.x}"/>
             </a4j:commandButton>
             </h:panelGrid>
             </h:column>
             <h:column>
             <f:facet name="header">
             <h:outputText value="x" />
             </f:facet>
             <h:outputText value="#{Item.x}" />
             </h:column>
             <h:column>
             <f:facet name="header">
             <h:outputText value="y"/>
             </f:facet>
             <h:outputText value="#{Item.y}" />
             </h:column>
             <h:column>
             <f:facet name="header">
             <h:outputText value="#{Item.z}" />
             </f:facet>
             <h:outputText value ="#{Item.z}" />
             </h:column>
             </h:dataTable>
             </form>


            any hint very welcome

            • 3. Re: a4j components not working

               

              value="{Item.x}"


              What does it mean?

              • 4. Re: a4j components not working

                sorry, forgot the # in front of the brackets. was/is not the problem however :/

                • 5. Re: a4j components not working

                  I loaded the datatable from the beginning (in the getter-method) right after the page is entered. having done that the a4j:commandButton and actionparam suddenly worked. the datatable itself is on a wizard-like page which seems to cause the problem...still no idea how to make the a4j components work after a user driven search...

                  • 6. Re: a4j components not working

                    ok, thanks folks for the plenty advices. problem solved, solution too simple: got rid of all richfaces components.
                    cheers

                    • 7. Re: a4j components not working
                      ilya_shaikovsky

                      Yes such solutions always simple.. may be html static pages development only? ;)