1 Reply Latest reply on Oct 1, 2012 8:30 AM by mabu2

    extendedDataTable filter exception

    mabu2 Newbie

      Hi,

       

      I use an extendedDataTable

       

      <rich:extendedDataTable value="#{userBean.allUserItems}" var="userentry" id="usertable" style="height:300px;width:305px"

                              selectionMode="multipleKeyboardFree" selection="#{userBean.selection}">

           <rich:column sortBy="#{userentry.name}" sortOrder="#{userSort.nameOrder}" width="200px">

                <f:facet name="header">

                     <a4j:commandLink value="#{msg.lbl_name}" render="usertable" action="#{userSort.sortByName}"/>

                </f:facet>

                <h:outputText value="#{userentry.name}" />

           </rich:column>

       

      I would like to add the posibillity, to filter the column, so I added the red lines as shown in the examples of the showcases

       

      <rich:extendedDataTable value="#{userBean.allUserItems}" var="userentry" id="usertable" style="height:300px;width:305px"

                              selectionMode="multipleKeyboardFree" selection="#{userBean.selection}">

           <rich:column sortBy="#{userentry.name}" sortOrder="#{userSort.nameOrder}" width="200px"

                        filterValue="#{userFilter.nameFilter}" filterExpression="#{fn:containsIgnoreCase(userentry.name,userFilter.nameFilter)}">

                <f:facet name="header">

                     <a4j:commandLink value="#{msg.lbl_name}" render="usertable" action="#{userSort.sortByName}"/>

                     <h:inputText value="#{userFilter.nameFilter}" id="input">

                          <a4j:ajax event="keyup" render="usertable@body"/>

                     </h:inputText>  

                </f:facet>

                <h:outputText value="#{userentry.name}" />

           </rich:column>

       

      After doing so Tomcat (7.0.28) throws the following exception:

       

      java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.validator.engine.ConfigurationImpl

          at org.hibernate.validator.HibernateValidator.createGenericConfiguration(HibernateValidator.java:41)

          at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:269)

          at javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:111)

          at javax.faces.validator.BeanValidator.validate(BeanValidator.java:265)

          at javax.faces.component.UIInput.validateValue(UIInput.java:1127)

          at javax.faces.component.UIInput.validate(UIInput.java:941)

          at javax.faces.component.UIInput.executeValidate(UIInput.java:1189)

          at javax.faces.component.UIInput.processValidators(UIInput.java:691)

          at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1080)

          at org.richfaces.component.UIDataAdaptor$3.processComponent(UIDataAdaptor.java:123)

          at org.richfaces.component.UIDataAdaptor.iterate(UIDataAdaptor.java:767)

          at org.richfaces.component.UIDataAdaptor.processValidatesChildren(UIDataAdaptor.java:850)

          at org.richfaces.component.UIDataAdaptor.processValidators(UIDataAdaptor.java:822)

          at javax.faces.component.UIForm.processValidators(UIForm.java:243)

          at org.richfaces.context.PartialViewExecuteVisitCallback.visit(PartialViewExecuteVisitCallback.java:55)

          at org.richfaces.context.BaseExtendedVisitContext.invokeVisitCallback(BaseExtendedVisitContext.java:321)

          at javax.faces.component.UIForm.visitTree(UIForm.java:343)

          at javax.faces.component.UIComponent.visitTree(UIComponent.java:1454)

          at javax.faces.component.UIComponent.visitTree(UIComponent.java:1454)

          at org.richfaces.context.ExtendedPartialViewContextImpl.executeComponents(ExtendedPartialViewContextImpl.java:237)

          at org.richfaces.context.ExtendedPartialViewContextImpl.processPartialExecutePhase(ExtendedPartialViewContextImpl.java:217)

          at org.richfaces.context.ExtendedPartialViewContextImpl.processPartial(ExtendedPartialViewContextImpl.java:196)

          at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1177)

          at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)

          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)

          at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)

          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:310)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)

          at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)

          at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1001)

          at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)

          at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

          at java.lang.Thread.run(Unknown Source)

       

      What is the reason? Can anybody help me?

       

      Thanks a lot

      Matze