WTP JSF with MyFaces [message #581979] |
Wed, 08 February 2006 16:10 |
Chris Gage Messages: 27 Registered: July 2009 |
Junior Member |
|
|
I have been using JSF with WSAD and RAD6 for 18 months so I know my way
around reasonably well, but I have clearly become accustomed to the comfy
chair that RAD puts you in. I am now having a rather basic problem getting
it to work on WTP.
I installed all the WTP pieces from scratch and WTP itself appears to be
working as designed. I then added the JSF support but chose to use MyFaces
instead of Sun RI, seeing as everyone says it is a better implementation.
I have a simple app that has one page with an input "name" field and a
button, and the navigation passes to another page which says "hello name" -
it is a tutorial out there on the Web I found. The backing bean is
correctly defined in faces-config.xml as far as I can see. I run the
initial page, and it displays, but when I type in a name and press the
button, expecting it to invoke the backing bean called PersonBean, instead I
get the following which I think means it cannot find my backing bean.
HTTP Status 500 -
type Exception report
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception javax.servlet.ServletException: Base is null: PersonBean
javax.faces.webapp.FacesServlet.service(FacesServlet.java:20 2)
root cause
javax.faces.el.PropertyNotFoundException: Base is null: PersonBean
org.apache.myfaces.el.ValueBindingImpl.resolveToBaseAndPrope rty(ValueBindingImpl.java:455) org.apache.myfaces.el.ValueBindingImpl.getType(ValueBindingI mpl.java:169) com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.ge tConvertedValue(HtmlBasicInputRenderer.java:111) javax.faces.component.UIInput.getConvertedValue(UIInput.java :713) javax.faces.component.UIInput.validate(UIInput.java:638) javax.faces.component.UIInput.executeValidate(UIInput.java:8 49) javax.faces.component.UIInput.processValidators(UIInput.java :412) javax.faces.component.UIForm.processValidators(UIForm.java:1 70) javax.faces.component.UIComponentBase.processValidators(UICo mponentBase.java:912) javax.faces.component.UIViewRoot.processValidators(UIViewRoo t.java:342) org.apache.myfaces.lifecycle.LifecycleImpl.processValidation s(LifecycleImpl.java:240) org.apache.myfaces.lifecycle.LifecycleImpl.execute(Lifecycle Impl.java:76) javax.faces.webapp.FacesServlet.service(FacesServlet.java:19 7)note The full stack trace of the root cause is available in the ApacheTomcat/5.0.30 logs.Apache Tomcat/5.0.30
|
|
|
Powered by
FUDForum. Page generated in 0.02866 seconds