1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
<ui:composition>
<a4j:outputPanel >
<rich:dataTable id="periodeList" value="#{periodeBean.listPeriode}" var="periodeCourant" iterationStatusVar="it" rows="15" >
<rich:column>
<f:facet name="header"><h:outputText value="#" /></f:facet>
<h:outputText value="#{it.index}" />
</rich:column>
<f:facet name="header">
<h:outputText value="Periode" />
</f:facet>
<rich:column id="libelle">
<f:facet name="header">
<h:outputText value="Année " />
</f:facet>
<h:outputText value="#{periodeCourant.annee}" />
</rich:column>
<rich:column id="periodicite">
<f:facet name="header">
<h:outputText value="periodicite " />
</f:facet>
<h:outputText value="#{periodeCourant.periodicite}" />
</rich:column>
<rich:column>
<a4j:commandLink styleClass="no-decor" execute="@this" render="@none" oncomplete="#{rich:component('confirmPane')}.show()">
<h:graphicImage name="icons/delete.gif" alt="delete" library="images" />
<a4j:param value="#{it.index}" assignTo="#{periodeBean.indexCourant}" />
</a4j:commandLink>
<a4j:commandLink styleClass="no-decor" render="editGrid" execute="@this" oncomplete="#{rich:component('editPane')}.show()">
<h:graphicImage name="icons/edit.gif" alt="edit" library="images"/>
<a4j:param value="#{it.index}" assignTo="#{periodeBean.indexCourant}" />
<f:setPropertyActionListener target="#{periodeBean.periodeCourant}" value="#{periodeCourant}" />
</a4j:commandLink>
</rich:column>
<f:facet name="footer"><rich:dataScroller id="ds" /></f:facet>
</rich:dataTable>
<a4j:jsFunction name="remove" action="#{periodeBean.remove}" render="periodeList" execute="form_list" oncomplete="#{rich:component('confirmPane')}.hide();" />
<rich:popupPanel header="Edit Car Details" id="editPane" domElementAttachment="parent" width="400" height="170">
<ui:include src="edit.xhtml" />
<h:outputText value="#{periodeBean.indexCourant}"></h:outputText>
</rich:popupPanel>
</a4j:outputPanel>
</ui:composition> |
Partager