[BUG] p:outputPanel doesn't updates p:dataTable properly

UI Components for JSF
Post Reply
michelrisucci
Posts: 4
Joined: 25 Dec 2011, 23:49

10 Feb 2012, 04:46

Not just dataTable, but probably other components.

What steps will reproduce the problem?
1. Surround a p:dataTable with a p:outputPanel with autoUpdate="true";
2. Limit datatable rows to produce multiple pages (with paging enabled, of course);
3. Try to change the pages of the dataTable. You will see that after any page change, the table loses the styles. If you do any other ajax update, the table restores the style, magically, but the loose is the problem.

What is the PrimeFaces version?
3.1 (I didn't test it in any other version)

What is the expected output? What do you see instead?
Pagination with the same style as normal, instead of it, I see the data like a pure-txt file.

Which JSF implementation with version are you using?
Mojarra

What is the version of your JSF implementation?
2.1.6

Which component libraries are you using in addition to PrimeFaces?
No one.

Which application server or servlet container are you using?
Tomcat 7.0.23

To help PrimeFaces team when working on your issue, please paste a
reproducible test case below. Test case must be encapsulated and should run
easily.

Page;

Code: Select all

<h:form id="testForm">
<p:outputPanel autoUpdate="true">
  <p:dataTable value="#{myBean.pageList}" var="number" paginator="true" rows="2">
    <p:column>
      <h:outputText value="#{number}" />
    </p:column>
  </p:dataTable>
</p:outputPanel>
</h:form>
------------------------------------

Managed Bean

Code: Select all

@ManagedBean(name="myBean")
@ViewScoped
public class Bean {
  public List<Integer> pageList = new ArrayList<Integer>();

  public Bean() {}

  @PostConstruct
  public void init() {
    pageList.add(1);
    pageList.add(2);
    pageList.add(3);
    pageList.add(4);
}

  public List<Integer> getPageList() {
    return this.pageList;
}

  public void setPageList(List<Integer> pageList) {
    this.pageList = pageList;
}
}

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 22 guests