commandLink in Datatable in List : bug ?
kineas Sep 27, 2013 6:24 AMHi,
I have an issue in my code and I can't understand why.
Here is my code :
<h:panelGrid id="panelDetailAccesId" width="100%"> <rich:list var="detailAccess" value="#{utilmanBean.listDetailsAccesses}" iterationStatusVar="st" type="#{commonBean.listTypeDefinitions}" rowClass="listRowClass"> <h:panelGrid id="subPanelDetailAccessId" columns="2" width="100%" styleClass="panelDetailAccess" columnClasses="panelDetailAccess1,panelDetailAccess2"> <rich:dataTable value="#{detailAccess.listAccesses}" var="access" rows="10"/> <rich:column> <f:facet name="header"> <h:outputText value="#{AM['label.corporation']}"/> </f:facet> <h:inputText value="#{access.corporation}" size="12"/> </rich:column> ... <rich:column> <f:facet name="header"> <h:outputText value="#{AM['label.action']}"/> </f:facet> <a4j:commandLink action="#{utilmanController.deleteAccess}" render="@body,@footer" execute="@this" status="void"> <h:graphicImage library="common" name="img/delete.png" styleClass="img-link"/> <f:setPropertyActionListener target="#{utilmanBean.currentAccess}" value="#{access}"/> </a4j:commandLink> </rich:column> <f:facet name="footer"> <rich:dataScroller/> </f:facet> </rich:dataTable> <a4j:commandLink action="#{utilmanController.deleteDetailAccess}" render="panelDetailAccesId" execute="@this" status="void"> <h:graphicImage library="common" name="img/delete.png" styleClass="img-link-big"/> <f:setPropertyActionListener target="#{utilmanBean.currentDetailAccess}" value="#{detailAccess}"/> </a4j:commandLink> </h:panelGrid> </rich:list> </h:panelGrid>
So, it works when I am on the first page of the datatable but when I change the page the button don't work anymore and I don't understand why.
Can you help me on this ?
(I try without the rich:list and it works. I try with ui:repeat and a4j:repeat but there is some strange behavior with these...)