webtier@glassfish.java.net

[webtier] Re: Error accessing _at_ManagedProperty in JSF2.0 across _at_ManagedBeans

From: Ed Burns <edward.burns_at_oracle.com>
Date: Mon, 19 Jul 2010 16:17:03 -0700

>>>>> On Mon, 19 Jul 2010 14:11:16 PDT, webtier_at_javadesktop.org said:

>> It works with JSF 2.0.2 also only change is it needs
>> both Getter and Setter methods for ID in Class B
>>
>> Issue still in 2.0.2 and 2.1.0 is
>>
>> 1. When user hit backbutton and change a different
>> value for ID (in text box its updating A) but its not
>> propagating to ID Class B (Class B ID still has old
>> value).
>>
>> I will log this as a defect.

R> But that would not be a defect, but expected behavior. B has already
R> been instantiated and is in the session so there is no reason for JSF
R> to create it again or change the values of its properties.

I also have to point out that "id" is a reserved attribute name. What
happens if you use a different attribute name?

Ed

-- 
| edburns_at_oracle.com | office: +1 407 458 0017
| homepage:          | http://ridingthecrest.com/