This content has been marked as final.
Show 7 replies
-
1. Re: a4j components not working
jucobb2 Apr 1, 2008 11:57 AM (in response to janson12)Do you have some code you can post?
-
2. Re: a4j components not working
janson12 Apr 1, 2008 12:31 PM (in response to janson12)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
sergeysmirnov Apr 1, 2008 12:51 PM (in response to janson12)value="{Item.x}"
What does it mean? -
4. Re: a4j components not working
janson12 Apr 1, 2008 12:54 PM (in response to janson12)sorry, forgot the # in front of the brackets. was/is not the problem however :/
-
5. Re: a4j components not working
janson12 Apr 1, 2008 3:02 PM (in response to janson12)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
janson12 Apr 2, 2008 3:29 AM (in response to janson12)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 Apr 2, 2008 4:38 AM (in response to janson12)Yes such solutions always simple.. may be html static pages development only? ;)