On 9/30/06, Jorge Vásquez <[EMAIL PROTECTED]> wrote:
Every component has a couple of very useful properties that tie the tree together:
* parent (of type UIComponent) -- the component that is the parent of this component in the tree
* children (of type java.uitl.List) -- the list of children components of this component in the tree.
Whey you manipulate these values, you are explicitly modifying the structure of the tree. Thus, to delete a particular component from its parent:
UIComponent component = ...; // The component to be deleted
component.getParent().getChildren().remove(component); // Remove this component from its parent
Craig
Thanks Craig,
Another question: After finding a component how can I erase it from the tree in order to force its "rebinding" during the RenderResponse phase.
Every component has a couple of very useful properties that tie the tree together:
* parent (of type UIComponent) -- the component that is the parent of this component in the tree
* children (of type java.uitl.List) -- the list of children components of this component in the tree.
Whey you manipulate these values, you are explicitly modifying the structure of the tree. Thus, to delete a particular component from its parent:
UIComponent component = ...; // The component to be deleted
component.getParent().getChildren().remove(component); // Remove this component from its parent
Craig

