Many thanks!
I changed it from session to request and it works
(it was 'session' in the original appfuse app, and that worked!)

[Low priority query:]
I'm a bit confused why it was complaining , I'd have expected the above to
make it worse rather than better.
Which had a shorter lifetime than what, and how come its OK now?



mraible wrote:
> 
> Did you change the scope of your managed-bean to session from request?
> It should be request by default.
> 
> Matt
> 
> On 8/15/07, mikebgx <[EMAIL PROTECTED]> wrote:
>>
>> I've a strange problem with "PasswordHint" on the initial login page of
>> my
>> app (Appfuse 1.9.4 for JSF)
>>
>> passwordHint.xhtml successfully displays its message ('test' is the
>> username
>> I entered):
>> Looking up password hint for test...
>>
>> Then I get:
>> An Error Occurred:
>> Property username references object in a scope with shorter lifetime than
>> the target scope session
>>
>> I think its unhappy with the 'username' property of the 'passwordHint'
>> managed bean definition in my faces-config.xml.
>> The problem goes if I change this from the original setting of:
>> <value>#{param.username}</value>  to:
>> <managed-property>
>>     <property-name>username</property-name>
>>     <value>test</value>
>> </managed-property>
>>
>> However I notice that in the original appfuse app it works OK.
>> I can't see how I'm doing anything different to the original appfuse app
>> that works, any ideas where I should look please?
>>
>>
>> Regards, Mike Burton
>> --
>> View this message in context:
>> http://www.nabble.com/passwordHint-%22scope-with-shorter-lifetime%22-tf4272919s2369.html#a12161466
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> http://raibledesigns.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/passwordHint-%22scope-with-shorter-lifetime%22-tf4272919s2369.html#a12165632
Sent from the AppFuse - User mailing list archive at Nabble.com.

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

Reply via email to