|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
exception with extval11 in myfaces tobago 1.0.21Hi All,
I am trying to use extval11 along with myfaces tobago 1.0.21 (also tried 1.0.20). The only annotation i used in my java class is @Length(minimum = 8) private String programName; I have below list of jar files in my classpath. asm-1.5.3.jar,cglib-2.1_3.jar,commons-codec-1.3.jar,myfaces-extval-core-1.1.2.jar,myfaces-extval-generic-support-1.1.2.jar,myfaces-extval-property-validation-1.1.2.jar,persistence-api-1.0.jar,commons-logging-1.1.1.jar when i try to run the jsp page I am getting following exception. Caused by: java.lang.NullPointerException at org.apache.myfaces.extensions.validator.core.el.DefaultELHelper.getPropertyDetailsOfValueBinding(DefaultELHelper.java:146) at org.apache.myfaces.extensions.validator.core.metadata.extractor.DefaultComponentMetaDataExtractor.extract(DefaultComponentMetaDataExtractor.java:85) at org.apache.myfaces.extensions.validator.util.ExtValUtils$1.extract(ExtValUtils.java:188) at org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor.initComponent(ValidationInterceptor.java:77) at org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor.beforeEncodeBegin(ValidationInterceptor.java:56) at org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeBegin(ExtValRendererWrapper.java:208) at org.apache.myfaces.extensions.validator.generic.renderkit.ExtValGenericRendererWrapper.intercept(ExtValGenericRendererWrapper.java:71) at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.TreeOldNodeRenderer$$EnhancerByCGLIB$$51f4431d.encodeBegin(<generated>) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:746) could someone help me in resolving this exception please. is extval11 compatible with myfaces tobago..? Thanks, katts |
|
|
Re: exception with extval11 in myfaces tobago 1.0.21I replaced 1.1.2 jars with 1.2.2 jars.
now i am getting the error javax.faces.FacesException: javax.servlet.jsp.JspException: javax.faces.application.Application.getELResolver()Ljavax/el/ELResolver; at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:431) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:255) at org.apache.myfaces.tobago.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:105) at org.apache.myfaces.tobago.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:56) at org.apache.myfaces.tobago.lifecycle.TobagoLifecycle.render(TobagoLifecycle.java:140) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:147) this is because i am using myfaces 1.1.6 jars.if I replace them with myfaces 1.2.6 ,my tobago application is not starting,it is throwing severe errors ,because listener has not sarted. I am using tobago 1.0.21,myfaces 1.1.6 and extval11 1.2.2 jars. could some one please help me with this. Thanks katts
|
|
|
Re: exception with extval11 in myfaces tobago 1.0.21hi katts,
yes extval 1.1.x is for jsf 1.1.x implementations and extval 1.2.x is for jsf 1.2.x implementations. so your first try was ok. could you please provide a link to the demo which illustrates the constellation. regards, gerhard http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces 2009/6/30 katts <srikanth_kongara@...>
|
|
|
Re: exception with extval11 in myfaces tobago 1.0.21Hi Gerhard,
Thanks for the reply.Inparticular i have not used any tutorial.I just followed the documentation. there are very few tutorials available over the web and they are not much useful. Thanks, katts
|
|
|
Re: exception with extval11 in myfaces tobago 1.0.21hi katts,
the out-of-the-box functionality is quite easy to use. add the jar files to your project and use the annotations. how to use them is shown in the feature-set 01 example. the wiki describes basic concepts. more advanced examples are available at os890 (blog and google code project). if you add the lib to your project and you get an exception, we have to look into it. that's not due to a wrong setup (since the only setup step is to add the jar files). so there is no verbose documentation. it's just that simple... a jsfcentral article series provides some useful hints. (the next part is finished and will be online soon!) you can ask any question! if the answer isn't available so far, it will be added e.g. to the wiki. in view of your current issue we need at least the page-source you are using. a quick response will be possible, if you can provide a short demo which illustrates the constellation. otherwise i have to implement the demo myself since it might be an issue in combination with a special tobago component. regards, gerhard http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces 2009/7/1 katts <srikanth_kongara@...>
|
|
|
Re: exception with extval11 in myfaces tobago 1.0.21hi katts,
a short addition: maybe we can avoid the demo - i created a small dev-add-on. you can find it at [1]. so please: 1) check it out 2) build it via maven 3) add the add-on (as maven dependency or just as jar file) to your project 4) start your project 5) navigate to the page where the exception occurs 6) you will get some output on the console -> send the output which is directly before the exception regards, gerhard [1] http://code.google.com/p/os890/source/browse/#svn/branches/java/web/jsf/extval/extval_dev/addon http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces 2009/7/1 Gerhard Petracek <gerhard.petracek@...> hi katts, |
| Free embeddable forum powered by Nabble | Forum Help |