I have been looking through a number of MyFaces components to see how state saving was implemented, and it turns out that all the components I have checked simply implement the saveState and restoreState methods by returning an Object[] containing their private properties.

But I keep asking myself "what about value bound properties?" If I have a component which has a property X which may be bound to #{someBean.someProperty} does that not mean that I need to restore the value of the value binding?

I would expect that restoreState should check if X was bound with a value binding and then restore the value of the value binding instead. Could anyone please elaborate? Thanks.

Randahl

Reply via email to