[seam-issues] [JBoss JIRA] Created: (SEAMFACES-140) NullPointerException on UIInputContainer on partial render with invalid value expression

Andrew Wheeler (JIRA) jira-events at lists.jboss.org
Tue Apr 12 05:21:33 EDT 2011


NullPointerException on UIInputContainer on partial render with invalid value expression
----------------------------------------------------------------------------------------

                 Key: SEAMFACES-140
                 URL: https://issues.jboss.org/browse/SEAMFACES-140
             Project: Seam Faces
          Issue Type: Bug
          Components: UI Components
    Affects Versions: 3.0.0.Final
         Environment: JBoss6
            Reporter: Andrew Wheeler
            Priority: Minor


NullPointerException when a richfaces output panel is rendered (made visible) after an action if a UIInputContainer has an input component with an invalid value expression.

<a4j:outputPanel id="testPanel" rendered="#{backingBean.visible}">
	<edit:input label="Testing">
		<h:inputText id="name" required="true" value="#{backingBean.bogusAttribute}"/>
	</edit:input>
</a4j:outputPanel>

This error does not occur during a normal request if the value expression cannot be resolved. In this case the javax.el.PropertyNotFoundException is thrown with information as to which property is in error.

Stack trace:
21:04:40,996 SEVERE [org.richfaces.log.Context] null: java.lang.NullPointerException
	at org.jboss.seam.faces.component.UIInputContainer$InputContainerElements.isRequiredByConstraint(UIInputContainer.java:400) [:3.0.0.Final]
	at org.jboss.seam.faces.component.UIInputContainer$InputContainerElements.registerInput(UIInputContainer.java:355) [:3.0.0.Final]
	at org.jboss.seam.faces.component.UIInputContainer.scan(UIInputContainer.java:244) [:3.0.0.Final]
	at org.jboss.seam.faces.component.UIInputContainer.scan(UIInputContainer.java:250) [:3.0.0.Final]
	at org.jboss.seam.faces.component.UIInputContainer.scan(UIInputContainer.java:250) [:3.0.0.Final]
	at org.jboss.seam.faces.component.UIInputContainer.encodeBegin(UIInputContainer.java:168) [:3.0.0.Final]
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1754) [:2.1.0-FCS]
	at org.richfaces.renderkit.RendererBase.renderChildren(RendererBase.java:278) [:4.0.0.Final]
	at org.richfaces.renderkit.html.AjaxOutputPanelRenderer.encodeChildren(AjaxOutputPanelRenderer.java:58) [:4.0.0.Final]
	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845) [:2.1.0-FCS]
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1756) [:2.1.0-FCS]
	at org.richfaces.context.ExtendedPartialViewContextImpl$RenderVisitCallback.visit(ExtendedPartialViewContextImpl.java:514) [:4.0.0.Final]
	at org.richfaces.context.BaseExtendedVisitContext.invokeVisitCallback(BaseExtendedVisitContext.java:337) [:4.0.0.Final]
	at javax.faces.component.UIComponent.visitTree(UIComponent.java:1589) [:2.1.0-FCS]
	at org.richfaces.component.AbstractTogglePanel.visitTree(AbstractTogglePanel.java:735) [:4.0.0.Final]
	at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600) [:2.1.0-FCS]
	at javax.faces.component.UIForm.visitTree(UIForm.java:344) [:2.1.0-FCS]
	at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600) [:2.1.0-FCS]
	at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600) [:2.1.0-FCS]
	at org.richfaces.context.ExtendedPartialViewContextImpl.processPartialRenderPhase(ExtendedPartialViewContextImpl.java:284) [:4.0.0.Final]
	at org.richfaces.context.ExtendedPartialViewContextImpl.processPartial(ExtendedPartialViewContextImpl.java:206) [:4.0.0.Final]

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list