[richfaces] modalpanel et extendedDataTable
Bonjour,
J'ai effectué un modalPanel et à l'intérieur de celui-ci j'ai un tableau. Sur ce tableau j'aimerais effectuer les fonctions de tris et de filtres. Sauf que lorsque j'essaye de les faire j'ai l'impression que ma page (ou mon panel) se recharge donc il réinitialise le tableau. Une solution?
Code:
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
|
<rich:modalPanel id="pnlParamRex" showWhenRendered="#{SimpleTreeDndBean.showModalPanel>1}" width="600" height="500">
<f:facet name="header">
<h:outputText value="Panel" />
</f:facet>
<h:form>
<h:panelGroup>
<rich:extendedDataTable sortMode="single" width="400px" height="400px"
selectionMode="multi" id="testDataTable" selection="#{SimpleTreeDndBean.selectionLigne}" binding="#{SimpleTreeDndBean.tableItem}"
value="#{SimpleTreeDndBean.listeDataItem}" var="object">
<rich:columns value="#{SimpleTreeDndBean.listeEnteteAttributs}" var="attribType"
index="ind" id="column#{ind}" sortable="true" sortBy="#{object[ind]}" filterBy="#{object[ind]}" filterEvent="onkeyup" label="#{attribType}">
<f:facet name="header">
<h:outputText value="#{attribType}" />
</f:facet>
<h:outputText value="#{object[ind]} " />
</rich:columns>
</rich:extendedDataTable>
</h:panelGroup>
</h:form>
</rich:modalPanel> |