various problems with datatable in wizard

UI Components for JSF
Post Reply
frobean
Posts: 25
Joined: 08 Jan 2010, 00:02

14 Jan 2010, 00:38

First off here's the facelets code I'm referencing

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...
Ok. First problem is that I'm getting an array out of bounds exception from DataTableRenderer.java line 105 (this is the 2.0 snapshot from today) when I select an item from any page on the datatable other than the first page.
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!
----
Mojarra 2.0.2
Tomcat 6
JBoss Weld 1.0
Hibernate JPA

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

14 Jan 2010, 02:46

Hi there,

This is a known issue, please see: http://code.google.com/p/primefaces/iss ... ail?id=374

These will be fixed along with the wizard enhancements. So I'd suggest leaving p:wizard for this case until these issues are fixed.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 65 guests