[ 
http://issues.apache.org/jira/browse/MYFACES-722?page=comments#action_12332474 
] 

Thomas Timbul commented on MYFACES-722:
---------------------------------------

e.g.

Object clone() {
    UIComponent clone = BeanUtils.cloneBean(this); //from commons beanutils
    clone.setChildren(new _ComponentChildrenList(getChildCount()));
    for(UIcomponent child : getChildren()) {
        clone.getChildren().add(child.clone()); //deep clone children
    }
    return clone;
}

> make components cloneable
> -------------------------
>
>          Key: MYFACES-722
>          URL: http://issues.apache.org/jira/browse/MYFACES-722
>      Project: MyFaces
>         Type: New Feature
>   Components: Implementation
>     Reporter: Thomas Timbul

>
> This may be violating some spec, but I think it would be great to have 
> deep-cloneable components.
> They would allow the creation of a (limited) forEach component that can at 
> least _duplicate_ children (even if they are not linked to the parent).
> That way we might at least be able to create a table of jsf input elements. 
> Of course, dynamically generating panel or table components would still not 
> work.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to