On 8/23/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> 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?

Yep :-).

> 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

This means that one of your value binding expressions that includes
"username" is likely to still be messed up.  When you changed the
managed bean name from "profile$logon" to "logon", you'll need to
update *all* the expressions that used to say "profile$logon" ... not
just one of them.

Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to