I have a situation where I'm finding a little confusion on when/how exactly
a binding will be updated/found, or at least how I can force the behaviour
that I'm looking for in a non-hacky way..
It's a simple setup:
-) Page A has 1 property with a persistence strategy of session.
-) Page A contains 1 component (component B?), with that component's "value"
parameter bound to Page A's property.
-) Component B has one of it's methods invoked via a direct listener,
component B then attempts to update its value binding by calling
getBinding("value").setObject(newValue).
-) Page A is not directly invoked in any part of this cycle, but is
activated in the request cycle via cycle.activate(page).
-) When component B is rendered after the direct invocation calling
getValue() or getBinding("value).getObject() always returns the old value
stored in the page, and not the new value that was bound.
How can I make this happen the way I want it to? Should I call
cycle.commitPageChanges() or something else?
jesse