hi tom, you can find the current version at [1]. currently it looks like a combination of EXTVAL-94 and a jsf/el issue.
regards, gerhard [1] http://people.apache.org/~gpetracek/myfaces/extval/milestones/ http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces 2010/5/26 <[email protected]> > Hi Gerhard, > > I would appreciate if you provide the current binaries. > > Can you give statement what the problem is? Did you add a bugfix adhoc? > > Thanks a lot, > Tom > > > > ----- Original Nachricht ---- > Von: Gerhard Petracek <[email protected]> > An: MyFaces Discussion <[email protected]> > Datum: 25.05.2010 19:58 > Betreff: Re: ExtVal: NullPointerException for meta data of UIViewParameter > > > hi, > > > > please try the current snapshot for jsf 2 [1]. > > just use: > > mvn clean install > > after the checkout. > > > > if you don't use maven, i'll provide the current binaries. > > > > regards, > > gerhard > > > > [1] > > > https://svn.apache.org/repos/asf/myfaces/extensions/validator/branches/branc > > h_for_jsf_2_0/ > > > > http://www.irian.at > > > > Your JSF powerhouse - > > JSF Consulting, Development and > > Courses in English and German > > > > Professional Support for Apache MyFaces > > > > > > > > 2010/5/25 <[email protected]> > > > > > 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&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.add > > MetaDataToContext(UIComponent, > > > PropertyDetails, boolean) > > > --> > > > > > > > > > org.apache.myfaces.extensions.validator.core.el.DefaultELHelper.getPropertyD > > etailsOfValueBinding(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.add > > MetaDataToContext(BeanValidationUtils.java:56) > > > at > > > > > > org.apache.myfaces.extensions.validator.beanval.interceptor.ExtValBeanValida > > > tionMetaDataExtractionInterceptor.processExtValBeanValidationMetaData(ExtValB > > eanValidationMetaDataExtractionInterceptor.java:78) > > > at > > > > > > org.apache.myfaces.extensions.validator.beanval.interceptor.ExtValBeanValida > > > tionMetaDataExtractionInterceptor.afterExtracting(ExtValBeanValidationMetaDat > > aExtractionInterceptor.java:59) > > > at > > > > > > org.apache.myfaces.extensions.validator.util.ExtValUtils.invokeMetaDataExtra > > ctionInterceptors(ExtValUtils.java:269) > > > at > > > > > > org.apache.myfaces.extensions.validator.util.ExtValUtils.access$100(ExtValUt > > ils.java:80) > > > at > > > > > > org.apache.myfaces.extensions.validator.util.ExtValUtils$1.extract(ExtValUti > > ls.java:237) > > > at > > > > > > org.apache.myfaces.extensions.validator.core.interceptor.AbstractValidationI > > nterceptor.getPropertyInformation(AbstractValidationInterceptor.java:173) > > > at > > > > > > org.apache.myfaces.extensions.validator.core.interceptor.AbstractValidationI > > nterceptor.processAfterValidation(AbstractValidationInterceptor.java:163) > > > at > > > > > > org.apache.myfaces.extensions.validator.core.interceptor.AbstractValidationI > > > nterceptor.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 > > > > > > > Und was machen Sie heute abend? Alles Events Ihrer Gegend auf einen Blick > im Arcor.de-Veranstaltungskalender: http://www.arcor.de/rd/footer.events >

