This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes JSF and the fly likes Add dynamic component to panelgrid with existing component Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Add dynamic component to panelgrid with existing component" Watch "Add dynamic component to panelgrid with existing component" New topic
Author

Add dynamic component to panelgrid with existing component

Ghazi Jamal
Greenhorn

Joined: Sep 07, 2011
Posts: 8

Hello,
I'm using jsf1.2, richfaces 3.3.3.

i was be able to add dynamic component to an empty panelgrid through binding.


but i still have one question :
how to add dynamic components to a panelgrid using my bean knowing that this panelgrid contains other static components that i I do not want to lose?



thinks in advance.

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17046
    
  26

The panelGrid is a container, and its children are all located in a sequential list of child components. When you add additional child components to that list, the original (static) components won't be affected unless you actively affect them. Say, by explicitly removing them from their parent's child component list or re-arranging where in the list they're positioned.


An IDE is no substitute for an Intelligent Developer.
Ghazi Jamal
Greenhorn

Joined: Sep 07, 2011
Posts: 8

Tim Holloway wrote:The panelGrid is a container, and its children are all located in a sequential list of child components. When you add additional child components to that list, the original (static) components won't be affected unless you actively affect them. Say, by explicitly removing them from their parent's child component list or re-arranging where in the list they're positioned.


ok, i now understand.. no impact. resolved !

Thank you Tim.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Add dynamic component to panelgrid with existing component
 
It's not a secret anymore!