Board index JavaServer Faces General PartialRendered DataTable Pagination/Filter/Sorting

PartialRendered DataTable Pagination/Filter/Sorting

Components, Ajax Framework, Utilities and More.

Posts: 1

I populated a DataTable in a DialogBox using a ActionListener of a button in the same form. But after the data is populated the pagination and filtering do not work when populated with actionListener. My object is Serializable.

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns=""
    <f:view contentType="text/html">

            <title>eLease Security</title>
                .ui-widget .ui-widget {
                    font-size: 12px !important;
        <h:body styleClass="ui-widget">
            <h:form id="task_form"> 
                <p:commandButton label="Populate List" value="Populate List" update="taskList" actionListener="#{taskController.fetchTaskList}"/>
                <p:dataTable var="task"
                    <f:facet name="header"> 
                        Task Details
                    <p:column headerText="Lease Actions" filterBy="#{task.leaseAction}">
                        <h:outputText value="#{task.leaseAction}" />
                    <p:column headerText="Phase" filterBy="#{task.phase}">
                        <h:outputText value="#{task.phase}" />
                    <p:column headerText="Process" filterBy="#{task.process}">
                        <h:outputText value="#{task.process}" />
                    <p:column headerText="Task Name" filterBy="#{task.task}">
                        <h:outputText value="#{task.task}" />
                    <p:column headerText="Task Description">
                        <h:outputText value="#{task.description}" />
        <ui:include src="footer.xhtml"/>
Pratham Developer,
Editor: NetBeans IDE 7.0.1 (Build 201107282000)
Java: 1.6.0_26; Java HotSpot(TM) Client VM 20.1-b02
JSF: 2.1
PrimeFaces: 3.0M2
Server: Apache Tomcat Version 7.0.20
System: Windows 7 version 6.1 running on x86;

Return to General