1 Reply Latest reply on Jul 20, 2010 7:11 AM by Geert Coelmont

    Problems and Problems with richFaces

    leandro godoy Apprentice

      Personnel this difficult to use the filterBy in richFaces are many bugs, when I try to filter out fields that are presented with some kind of format type this:

      <rich:column sortBy="#{vendas.valortotal}" filterBy="#{vendas.valortotal}"
       filterEvent="onkeyup" styleClass="">
       <center>
       <h:outputText value="#{vendas.valortotal}"
       styleClass="#{vendas.situacao=='FECHADO'? 'fechado' : vendas.situacao=='CANCELADO'? 'erro':'aberto' }">
       <f:convertNumber currencySymbol="#{local.currencSimbol}"
       groupingUsed="#{true}" maxFractionDigits="2" type="currency"
       locale="#{local.localeAtual}"></f:convertNumber>
       </h:outputText></center>
       </rich:column>
      
       <rich:column sortBy="#{vendas.datavenda}" filterBy="#{vendas.datavenda}"
       filterEvent="onkeyup" styleClass="">
       <f:facet name="header">
       <h:outputText value=""></h:outputText>
       </f:facet>
       <center>
      
       <h:outputText value="#{vendas.datavenda}"
       styleClass="#{vendas.situacao=='FECHADO'? 'fechado' : vendas.situacao=='CANCELADO'? 'erro':'aberto' }">
       <f:convertDateTime dateStyle="medium"
       locale="#{local.localeAtual}" pattern="dd/MM/yyyy"></f:convertDateTime>
      
       </h:outputText></center>
       </rich:column>
      
      
      


      Whenever cause errors in certain moments work and at other times cause the following error:
      
      javax.servlet.ServletException: Error on parsing response by Jtidy
       org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:326)
       org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)
       org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:366)
       org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)
       com.Lgweb.Tcc.Util.SecuritFilter.doFilter(SecuritFilter.java:38)
       org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      
      root cause
      
      java.lang.NullPointerException
       org.ajax4jsf.org.w3c.tidy.Node.trimInitialSpace(Node.java:967)
       org.ajax4jsf.org.w3c.tidy.Node.trimSpaces(Node.java:1033)
       org.ajax4jsf.org.w3c.tidy.ParserImpl$ParseInline.parse(ParserImpl.java:1586)
       org.ajax4jsf.org.w3c.tidy.ParserImpl.parseTag(ParserImpl.java:224)
       org.ajax4jsf.org.w3c.tidy.ParserImpl$ParseRow.parse(ParserImpl.java:3033)
       org.ajax4jsf.org.w3c.tidy.ParserImpl.parseTag(ParserImpl.java:224)
       org.ajax4jsf.org.w3c.tidy.ParserImpl$ParseTableTag.parse(ParserImpl.java:2650)
       org.ajax4jsf.org.w3c.tidy.ParserImpl.parseTag(ParserImpl.java:224)
       org.ajax4jsf.org.w3c.tidy.ParserImpl$ParseBlock.parse(ParserImpl.java:2488)
       org.ajax4jsf.org.w3c.tidy.ParserImpl.parseTag(ParserImpl.java:224)
       org.ajax4jsf.org.w3c.tidy.ParserImpl$ParseRow.parse(ParserImpl.java:3057)
       org.ajax4jsf.org.w3c.tidy.ParserImpl.parseTag(ParserImpl.java:224)
       org.ajax4jsf.org.w3c.tidy.ParserImpl$ParseRowGroup.parse(ParserImpl.java:2906)
       org.ajax4jsf.org.w3c.tidy.ParserImpl.parseTag(ParserImpl.java:224)
       org.ajax4jsf.org.w3c.tidy.ParserImpl$ParseTableTag.parse(ParserImpl.java:2650)
       org.ajax4jsf.org.w3c.tidy.ParserImpl.parseTag(ParserImpl.java:224)
       org.ajax4jsf.org.w3c.tidy.ParserImpl$ParseBlock.parse(ParserImpl.java:2488)
       org.ajax4jsf.org.w3c.tidy.ParserImpl.parseTag(ParserImpl.java:224)
       org.ajax4jsf.org.w3c.tidy.ParserImpl$ParseBlock.parse(ParserImpl.java:2488)
       org.ajax4jsf.org.w3c.tidy.ParserImpl.parseTag(ParserImpl.java:224)
       org.ajax4jsf.org.w3c.tidy.ParserImpl$ParseBlock.parse(ParserImpl.java:2488)
       org.ajax4jsf.org.w3c.tidy.ParserImpl.parseTag(ParserImpl.java:224)
       org.ajax4jsf.org.w3c.tidy.ParserImpl$ParseBlock.parse(ParserImpl.java:2488)
       org.ajax4jsf.org.w3c.tidy.ParserImpl.parseTag(ParserImpl.java:224)
       org.ajax4jsf.org.w3c.tidy.ParserImpl$ParseInline.parse(ParserImpl.java:1608)
       org.ajax4jsf.org.w3c.tidy.ParserImpl.parseTag(ParserImpl.java:224)
       org.ajax4jsf.org.w3c.tidy.ParserImpl$ParseBody.parse(ParserImpl.java:999)
       org.ajax4jsf.org.w3c.tidy.ParserImpl.parseTag(ParserImpl.java:224)
       org.ajax4jsf.org.w3c.tidy.ParserImpl$ParseHTML.parse(ParserImpl.java:507)
       org.ajax4jsf.org.w3c.tidy.ParserImpl.parseDocument(ParserImpl.java:3430)
       org.ajax4jsf.org.w3c.tidy.Tidy.parse(Tidy.java:384)
       org.ajax4jsf.org.w3c.tidy.Tidy.parse(Tidy.java:282)
       org.ajax4jsf.org.w3c.tidy.Tidy.parseDOM(Tidy.java:625)
       org.ajax4jsf.webapp.tidy.TidyParser.parseHtmlByTidy(TidyParser.java:100)
       org.ajax4jsf.webapp.tidy.TidyParser.parseHtml(TidyParser.java:217)
       org.ajax4jsf.webapp.FilterServletResponseWrapper.parseContent(FilterServletResponseWrapper.java:613)
       org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:319)
       org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)
       org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:366)
       org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)
       com.Lgweb.Tcc.Util.SecuritFilter.doFilter(SecuritFilter.java:38)
       org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      
      note The full stack trace of the root cause is available in the JBossWeb/2.0.0.GA_CP01 logs.
      
      in server log:
      at org.ajax4jsf.org.w3c.tidy.Node.trimInitialSpace(Node.java:967)
       at org.ajax4jsf.org.w3c.tidy.Node.trimSpaces(Node.java:1033)
       at org.ajax4jsf.org.w3c.tidy.ParserImpl$ParseInline.parse(ParserImpl.java:1586)
       at org.ajax4jsf.org.w3c.tidy.ParserImpl.parseTag(ParserImpl.java:224)
       at org.ajax4jsf.org.w3c.tidy.ParserImpl$ParseRow.parse(ParserImpl.java:3033)
       at org.ajax4jsf.org.w3c.tidy.ParserImpl.parseTag(ParserImpl.java:224)
       at org.ajax4jsf.org.w3c.tidy.ParserImpl$ParseTableTag.parse(ParserImpl.java:2650)
       at org.ajax4jsf.org.w3c.tidy.ParserImpl.parseTag(ParserImpl.java:224)
       at org.ajax4jsf.org.w3c.tidy.ParserImpl$ParseBlock.parse(ParserImpl.java:2488)
       at org.ajax4jsf.org.w3c.tidy.ParserImpl.parseTag(ParserImpl.java:224)
       at org.ajax4jsf.org.w3c.tidy.ParserImpl$ParseRow.parse(ParserImpl.java:3057)
       at org.ajax4jsf.org.w3c.tidy.ParserImpl.parseTag(ParserImpl.java:224)
       at org.ajax4jsf.org.w3c.tidy.ParserImpl$ParseRowGroup.parse(ParserImpl.java:2906)
       at org.ajax4jsf.org.w3c.tidy.ParserImpl.parseTag(ParserImpl.java:224)
       at org.ajax4jsf.org.w3c.tidy.ParserImpl$ParseTableTag.parse(ParserImpl.java:2650)
       at org.ajax4jsf.org.w3c.tidy.ParserImpl.parseTag(ParserImpl.java:224)
       at org.ajax4jsf.org.w3c.tidy.ParserImpl$ParseBlock.parse(ParserImpl.java:2488)
       at org.ajax4jsf.org.w3c.tidy.ParserImpl.parseTag(ParserImpl.java:224)
       at org.ajax4jsf.org.w3c.tidy.ParserImpl$ParseBlock.parse(ParserImpl.java:2488)
       at org.ajax4jsf.org.w3c.tidy.ParserImpl.parseTag(ParserImpl.java:224)
       at org.ajax4jsf.org.w3c.tidy.ParserImpl$ParseBlock.parse(ParserImpl.java:2488)
       at org.ajax4jsf.org.w3c.tidy.ParserImpl.parseTag(ParserImpl.java:224)
       at org.ajax4jsf.org.w3c.tidy.ParserImpl$ParseBlock.parse(ParserImpl.java:2488)
       at org.ajax4jsf.org.w3c.tidy.ParserImpl.parseTag(ParserImpl.java:224)
       at org.ajax4jsf.org.w3c.tidy.ParserImpl$ParseInline.parse(ParserImpl.java:1608)
       at org.ajax4jsf.org.w3c.tidy.ParserImpl.parseTag(ParserImpl.java:224)
       at org.ajax4jsf.org.w3c.tidy.ParserImpl$ParseBody.parse(ParserImpl.java:999)
       at org.ajax4jsf.org.w3c.tidy.ParserImpl.parseTag(ParserImpl.java:224)
       at org.ajax4jsf.org.w3c.tidy.ParserImpl$ParseHTML.parse(ParserImpl.java:507)
       at org.ajax4jsf.org.w3c.tidy.ParserImpl.parseDocument(ParserImpl.java:3430)
       at org.ajax4jsf.org.w3c.tidy.Tidy.parse(Tidy.java:384)
       at org.ajax4jsf.org.w3c.tidy.Tidy.parse(Tidy.java:282)
       at org.ajax4jsf.org.w3c.tidy.Tidy.parseDOM(Tidy.java:625)
       at org.ajax4jsf.webapp.tidy.TidyParser.parseHtmlByTidy(TidyParser.java:100)
       at org.ajax4jsf.webapp.tidy.TidyParser.parseHtml(TidyParser.java:217)
       at org.ajax4jsf.webapp.FilterServletResponseWrapper.parseContent(FilterServletResponseWrapper.java:613)
       at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:319)
       at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)
       at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:366)
       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at com.Lgweb.Tcc.Util.SecuritFilter.doFilter(SecuritFilter.java:38)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
       at java.lang.Thread.run(Unknown Source)
      

      I wonder if this is a known problem, and if there is a solution available,
      you, hugging. :(