Craig McClanahan <[EMAIL PROTECTED]> wrote on 08/23/2005 03:27:18 PM:
> Change this to "logon" and update any value binding expressions that > use it as well. > Craig, as ever many thanks for your detailed reply! ok, so I changed my faces.config.xml and now my manged bean looks like this: <managed-bean> <managed-bean-name>logon</managed-bean-name> <managed-bean-class> etc.. Plus my logon.jsp has now: <h:commandButton id="logon" action="#{logon.logon}" value="#{messages['label.logon']}"/> That's right, I hope? (I had "profile$logon" instead of "logon.logon" before.. Cleaned out my work directory, restarted tomcat, blah blah and now,... yeah!... I do hit the init(), prerender() and preprocess() methods! Cool, right? Well, not exactly. Now my logon method isn't getting hit..(:(. Instead I have nasty errors like this: javax.servlet.ServletException: Error testing property 'username' in bean of type null javax.faces.webapp.FacesServlet.service(FacesServlet.java:209) org.apache.shale.faces.InvokeCommand.execute(InvokeCommand.java:40) org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:166) org.apache.shale.faces.ShaleApplicationFilter.doFilter(ShaleApplicationFilter.java:252) root cause javax.faces.el.PropertyNotFoundException: Error testing property 'username' in bean of type null com.sun.faces.el.PropertyResolverImpl.getType(PropertyResolverImpl.java:342) org.apache.shale.faces.ShalePropertyResolver.getType(ShalePropertyResolver.java:206) com.sun.faces.el.impl.ArraySuffix.getType(ArraySuffix.java:240) com.sun.faces.el.impl.ComplexValue.getType(ComplexValue.java:208) com.sun.faces.el.ValueBindingImpl.getType(ValueBindingImpl.java:345) com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(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:849) javax.faces.component.UIInput.processValidators(UIInput.java:412) javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:912) javax.faces.component.UIForm.processValidators(UIForm.java:170) javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:912) javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:342) com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:78) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90) javax.faces.webapp.FacesServlet.service(FacesServlet.java:197) org.apache.shale.faces.InvokeCommand.execute(InvokeCommand.java:40) org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:166) org.apache.shale.faces.ShaleApplicationFilter.doFilter(ShaleApplicationFilter.java:252) So somehow my backing bean is now null; isn't being found any more or something..? > Craig Thanks again! Geeta