Issue Details (XML | Word | Printable)

Key: JAVASERVERFACES-2090
Type: Bug Bug
Status: Closed Closed
Resolution: Incomplete
Priority: Trivial Trivial
Assignee: Unassigned
Reporter: dreske
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
javaserverfaces

Partial state saving issue using convertDateTime with ViewScope

Created: 31/May/11 02:27 PM   Updated: 25/Apr/13 02:00 PM   Resolved: 25/Apr/13 02:00 PM
Component/s: view handling
Affects Version/s: 2.1.1
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. HTML File viewscope_issue.zip (4 kB) 31/May/11 02:27 PM - dreske


Tags: convertDateTime viewscope
Participants: dreske and Manfred Riem


 Description  « Hide

If you have a f:convertDateTime's timezone bound to a view scoped bean, the bean will be recreated on every request.

After a short debugging, I get out, if the timezone is bound, a new ViewMap will be created before restoreView is called on UIViewRoot. If it is not bound, restoreView will be called first -> all works fine.

Workaround:
<context-param>
<param-name>javax.faces.PARTIAL_STATE_SAVING</param-name>
<param-value>false</param-value>
</context-param>

I've attached a minimal project, that reproduces the error.



Manfred Riem added a comment - 29/Jan/13 02:11 PM

Can you please verify if this is still an issue on the latest 2.1 release?


Manfred Riem added a comment - 27/Feb/13 04:35 PM

Lowering priority because of no response


Manfred Riem added a comment - 28/Mar/13 01:19 PM

Lowering priority because of no response


Manfred Riem added a comment - 25/Apr/13 02:00 PM

Closing because of inactivity