Code: Select all
<p:wizard id="wizard" effect="slide" height="480" width="640">
<p:tab title="step1">
<p:panel header="Step 1 of 3 : User and Target Device Selection">
<h:messages errorClass="error"/>
[ various controls comprising an ajax query filter removed for brevity ]
<p:dataTable id="dev_table" rows="10" paginator="true" var="row" dynamic="true" value="#{foo.deviceList}" selection="#{foo.selectedDevices}" selectionMode="multiple">
<p:column resizable="true">
<f:facet name="header">
<h:outputText value="Device ID"/>
</f:facet>
<h:outputText value="#{row.id}"/>
</p:column>
<p:column resizable="true">
<f:facet name="header">
<h:outputText value="Device Name"/>
</f:facet>
<h:outputText value="#{row.name}"/>
</p:column>
</p:dataTable>
</p:panel>
</p:tab>
and so forth...
Second problem is that the data table has 2 pager controls above it and 2 below it when enclosed in the wizard. It appears as expected when it's not inside the wizard. I'll note that this is a firefox specific bug (I'm using FF 3.5.7) since the datatable pager appears correct in IE.
And finally, should the data table remember what is selected when you page back and forth?
Thanks!