[richfaces-issues] [JBoss JIRA] Commented: (RF-10825) ClientBehavior: view state is not saved if behavior is marked to hold initial state
Nick Belaevski (JIRA)
jira-events at lists.jboss.org
Fri Apr 15 11:20:33 EDT 2011
[ https://issues.jboss.org/browse/RF-10825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595905#comment-12595905 ]
Nick Belaevski commented on RF-10825:
-------------------------------------
Some suggestions about improvements of ClientBehavior class have been added to framework arch. guide.
> ClientBehavior: view state is not saved if behavior is marked to hold initial state
> -----------------------------------------------------------------------------------
>
> Key: RF-10825
> URL: https://issues.jboss.org/browse/RF-10825
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: architectural
> Affects Versions: 4.0.0.Final
> Reporter: Nick Belaevski
> Assignee: Nick Belaevski
> Labels: design, tran
> Fix For: 4.Future
>
>
> ClientBehavior contains the following code:
> {noformat} @Override
> public Object saveState(FacesContext context) {
> Object[] state = null;
> Object parentState = super.saveState(context);
> if (initialStateMarked()) {
> if (parentState != null) {
> state = new Object[] { parentState };
> }
> } else {
>
> Object savedHelper = null;
> if(behaviorStateHelper != null) {
> savedHelper = behaviorStateHelper.saveState(context);
> }
>
> state = new Object[3];
> state[0] = parentState;
> state[1] = savedHelper;
> state[2] = saveBindings(context, bindings);
> }
> return state;
> }{noformat}
> however other state parts (e.g. state of state helper) should be saved even if initialStateMarked() is returning true.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list