3 Replies Latest reply on Nov 24, 2011 10:33 AM by Christian Peter

    DataTable filtering does not show up the inputbox  - Richfaces 4

    snyperboss Newbie

      Hello All,

       

       

      I have the below xhtml. I am able to render the rich calender. But I am not able to filter the data in the data table.I have tried using filterExpression and also filterBy, both does not seem to work.

       

      Even a sort by is not working.Please help.

       

      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

      <ui:composition xmlns="http://www.w3.org/1999/xhtml"

                xmlns:h="http://java.sun.com/jsf/html"

                xmlns:f="http://java.sun.com/jsf/core"

                xmlns:c="http://java.sun.com/jsp/jstl/core"

                xmlns:p="http://richfaces.org/rich"

                xmlns:a4j="http://richfaces.org/a4j"

                xmlns:ui="http://java.sun.com/jsf/facelets"

                xmlns:fn="http://java.sun.com/jsp/jstl/functions">

                <h:head>

                          <h:outputStylesheet library="css" name="table-style.css" />

                </h:head>

                <h:body>

       

       

                          <h:form>

                                    <a4j:outputPanel id="calendar" layout="block">

                                              <p:calendar value="#{feed.selectedDate}"></p:calendar>

                                    </a4j:outputPanel>

       

       

       

       

                                    <p:dataTable id="systemDataTable" value="#{system.systemList}"

                                              var="sys" styleClass="order-table" headerClass="order-table-header"

                                              rowClasses="order-table-odd-row,order-table-even-row">

       

       

       

       

                                              <!--

                                    <p:column filterValue="#{system.systemFilter}" filterExpression="#{fn:containsIgnoreCase(sys.fullName,system.systemFilter)}" sortBy="#{sys.fullName}"    filterEvent="onkeyup">

                                                        <f:facet name="header">System</f:facet>

                                                        <h:outputText value="#{sys.fullName}" />

                                              </p:column>

                                     -->

                                              <p:column filterBy="#{sys.fullName}" sortBy="#{sys.fullName}"

                                                        filterEvent="onkeyup">

                                                        <f:facet name="header">System</f:facet>

                                                        <h:outputText value="#{sys.fullName}" />

                                              </p:column>

       

       

                                    </p:dataTable>

       

       

                          </h:form>

                </h:body>

      </ui:composition>

       

      Thanks!