[
http://jira.jboss.com/jira/browse/RF-3537?page=all ]
Svetlana mukhina closed RF-3537.
--------------------------------
Resolution: Done
NPE with rich:dataTable
-----------------------
Key: RF-3537
URL:
http://jira.jboss.com/jira/browse/RF-3537
Project: RichFaces
Issue Type: Bug
Components: docs updated
Affects Versions: 3.2.1
Environment: JDK 1.6, Facelets 1.1.14, MyFaces 1.2.0
Reporter: Nahuel E.
Assigned To: Mikhail Vitenkov
Priority: Critical
Fix For: 3.2.1
I've defined a rich table in admComision.xhtml file like:
<rich:dataTable id="tablaCom" cellpadding="0"
cellspacing="0" border="0" var="record" rendered="#{not
empty prodComForm.list}"
value="#{prodComForm.list}" style="width:98%;">
<rich:column>
<f:facet name="header">Desde</f:facet>
<h:outputText value="#{record.fechaDesde}"
rendered="#{record.fechaDesde le prodComForm.hoy}">
<f:convertDateTime pattern="dd/MM/yyyy" type="date" />
</h:outputText>
<rich:calendar value="#{record.fechaDesde}"
popup="true"
required="true"
datePattern="dd/MM/yyyy"
rendered="#{record.fechaDesde gt prodComForm.hoy}"
inputSize="10"
onDateSelect="esFechaValida(this.component.getDateSelected());"
isDayEnabled="esFechaValida"
showApplyButton="false"
showWeeksBar="false"
showFooter="false"/>
</rich:column>
</rich:dataTable>
Using Richfaces 3.2.0.SR1 works very fine. But with 3.2.1.CR5 the application throws the
exception:
javax.el.PropertyNotFoundException: /admComision.xhtml @24,98
rendered="#{record.fechaDesde le prodComForm.hoy}": ELResolver cannot handle a
null base Object with identifier 'record'
at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:73)
at javax.faces.component._ComponentUtils.getExpressionValue(_ComponentUtils.java:233)
at javax.faces.component.UIComponentBase.getExpressionValue(UIComponentBase.java:1069)
at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:1089)
at
org.richfaces.component.DataScrollerViewPhaseListener.collectConnections(DataScrollerViewPhaseListener.java:90)
at
org.richfaces.component.DataScrollerViewPhaseListener.collectConnections(DataScrollerViewPhaseListener.java:100)
at
org.richfaces.component.DataScrollerViewPhaseListener.collectConnections(DataScrollerViewPhaseListener.java:100)
at
org.richfaces.component.DataScrollerViewPhaseListener.collectConnections(DataScrollerViewPhaseListener.java:100)
at
org.richfaces.component.DataScrollerViewPhaseListener.collectConnections(DataScrollerViewPhaseListener.java:100)
at
org.richfaces.component.DataScrollerViewPhaseListener.collectConnections(DataScrollerViewPhaseListener.java:100)
at
org.richfaces.component.DataScrollerViewPhaseListener.collectConnections(DataScrollerViewPhaseListener.java:100)
at
org.richfaces.component.DataScrollerViewPhaseListener.collectConnections(DataScrollerViewPhaseListener.java:100)
at
org.richfaces.component.DataScrollerViewPhaseListener.collectConnections(DataScrollerViewPhaseListener.java:100)
at
org.richfaces.component.DataScrollerViewPhaseListener.collectConnections(DataScrollerViewPhaseListener.java:100)
at
org.richfaces.component.DataScrollerViewPhaseListener.collectConnections(DataScrollerViewPhaseListener.java:100)
at
org.richfaces.component.DataScrollerViewPhaseListener.collectConnections(DataScrollerViewPhaseListener.java:100)
at
org.richfaces.component.DataScrollerViewPhaseListener.collectConnections(DataScrollerViewPhaseListener.java:100)
at
org.richfaces.component.DataScrollerViewPhaseListener.beforePhase(DataScrollerViewPhaseListener.java:123)
at org.ajax4jsf.component.AjaxViewRoot.processPhaseListeners(AjaxViewRoot.java:184)
at org.ajax4jsf.component.AjaxViewRoot.encodeBegin(AjaxViewRoot.java:500)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:234)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:189)
at
org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
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.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at
com.americacg.cargavirtual.web.webapp.filter.MessageFilter.doFilter(MessageFilter.java:46)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:164)
at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
at
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:406)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at
com.americacg.cargavirtual.web.webapp.filter.LocaleFilter.doFilterInternal(LocaleFilter.java:74)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at com.opensymphony.clickstream.ClickstreamFilter.doFilter(ClickstreamFilter.java:42)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at
org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at
org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)
at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
Nahuel
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira