myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mynewsgro...@arcor.de
Subject ExtVal: NullPointerException for meta data of UIViewParameter
Date Tue, 25 May 2010 17:31:56 GMT
I'm using Facelets for a JSF 2.0 project with redirect and view params:

<ui:composition template="/resources/templates/template.xhtml">
	
		<ui:define name="metadata">
			<f:metadata>
				<f:viewParam name="refID" value="#{bean.data.refID}" />
			</f:metadata>
		</ui:define>

 		<ui:define name="workspace">

			<h:form id="inputForm">	
				<h:inputText id="refInput" value="#{bean.data.refID}" />	
				<h:commandButton id="submitButton" value="Suchen"
					action="list?faces-redirect=true&amp;includeViewParams=true" />				
			</h:form>	

		</ui:define>
	</ui:composition>

Using ExtVal and BeanValidation I receive a NPE evaluating on the view param which seems to
be a JSF problem rather than ExtVal itself!?

org.apache.myfaces.extensions.validator.beanval.util.BeanValidationUtils.addMetaDataToContext(UIComponent,
PropertyDetails, boolean)
-->
org.apache.myfaces.extensions.validator.core.el.DefaultELHelper.getPropertyDetailsOfValueBinding(UIComponent)
-->
javax.faces.component.UIComponent.getValueExpression(String) returns null for "UIComponentBase.PropertyKeys.bindings".

What is the problem here?


==========================================

Stacktrace:

java.lang.NullPointerException
	at org.apache.myfaces.extensions.validator.beanval.util.BeanValidationUtils.addMetaDataToContext(BeanValidationUtils.java:56)
	at org.apache.myfaces.extensions.validator.beanval.interceptor.ExtValBeanValidationMetaDataExtractionInterceptor.processExtValBeanValidationMetaData(ExtValBeanValidationMetaDataExtractionInterceptor.java:78)
	at org.apache.myfaces.extensions.validator.beanval.interceptor.ExtValBeanValidationMetaDataExtractionInterceptor.afterExtracting(ExtValBeanValidationMetaDataExtractionInterceptor.java:59)
	at org.apache.myfaces.extensions.validator.util.ExtValUtils.invokeMetaDataExtractionInterceptors(ExtValUtils.java:269)
	at org.apache.myfaces.extensions.validator.util.ExtValUtils.access$100(ExtValUtils.java:80)
	at org.apache.myfaces.extensions.validator.util.ExtValUtils$1.extract(ExtValUtils.java:237)
	at org.apache.myfaces.extensions.validator.core.interceptor.AbstractValidationInterceptor.getPropertyInformation(AbstractValidationInterceptor.java:173)
	at org.apache.myfaces.extensions.validator.core.interceptor.AbstractValidationInterceptor.processAfterValidation(AbstractValidationInterceptor.java:163)
	at org.apache.myfaces.extensions.validator.core.interceptor.AbstractValidationInterceptor.beforeGetConvertedValue(AbstractValidationInterceptor.java:150)
	at org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.getConvertedValue(ExtValRendererWrapper.java:468)
	at javax.faces.component.UIViewParameter.getConvertedValue(UIViewParameter.java:391)
	at javax.faces.component.UIInput.validate(UIInput.java:934)
	at javax.faces.component.UIInput.executeValidate(UIInput.java:1189)
	at javax.faces.component.UIInput.processValidators(UIInput.java:691)
	at javax.faces.component.UIViewParameter.processValidators(UIViewParameter.java:270)
	at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1115)
	at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1115)
	at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1180)

Und was machen Sie heute abend? Alles Events Ihrer Gegend auf einen Blick im Arcor.de-Veranstaltungskalender:
http://www.arcor.de/rd/footer.events

Mime
View raw message