This content has been marked as final.
Show 2 replies
-
1. Re: h:dataTable combined with nested a4j:outputPanel & a4j:s
stefan.mohr Apr 26, 2008 3:36 AM (in response to gjeudy)I'm having issues with a4j:support in a datatable as well.
Like Guillaume I have a4j:support in a table but am using a rich:dataTable and have my a4j:support tag attached to a commandLink in a table row:<rich:dataTable value="#{Bean.selectedUsers}" var="user"> <rich:column> <f:facet name="header"> <h:outputText value="Username" /> </f:facet> <h:outputText value="#{user.username}" /> </rich:column> <rich:column> <h:commandLink value="Remove"> <a4j:support event="onclick" reRender="thisPanel" action="#{Bean.unselectUser}" actionListener="#{user.selectUserItem}" /> </h:commandLink> </rich:column> </rich:dataTable>
I have a combobox control inside this frame which has the same behaviour and backing code as this (except that it adds users to the table) and is working 100%.
The code above is also working for me, except that the reRender never happens - I can see that my collections are updated properly when the actions are fired, but they don't update until I trigger a screen rerender through a different control. The only difference I can see is that this a4j:support is inside a dataTable.
Are we both coming up against a bug in a4j:support or data tables? -
2. Re: h:dataTable combined with nested a4j:outputPanel & a4j:s
stefan.mohr Apr 26, 2008 3:41 AM (in response to gjeudy)Yikes, minutes later I solved my own problem myself - I changed my h:commandLink to a4j:commandLink and things are working as expected.
Sorry to Guillaume for butting into his issue - clearly we weren't having the same problem!