Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.2.0, 1.2.2
-
None
-
None
Description
In myfaces 1.1, it was possible to have a method on the component like this
public void handleBindings()
{ makeAliases(getFacesContext()); RestoreStateUtils.recursivelyHandleComponentReferencesAndSetValid(getFacesContext(), this, true); removeAliases(getFacesContext()); }This is called from RestoreView state to handle the bindings properly. In myfaces 1.2, architectural changes (creation on RestoreViewSupport interface) replaced the original code with this:
public void processComponentBinding(FacesContext facesContext, UIComponent component)
{
ValueExpression binding = component.getValueExpression("binding");
if (binding != null)
for (Iterator<UIComponent> iter = component.getFacetsAndChildren(); iter.hasNext()
{ processComponentBinding(facesContext, iter.next()); }}
Some changes are necessary on RestoreStateUtils.recursivelyHandleComponentReferencesAndSetValid (not set UIInput components valid = true) to make this work as 1.1 with the advantage of aliasBean component can work like 1.1.