This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes Binding, dynamic UIComponent treegeneration and display problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Binding, dynamic UIComponent treegeneration and display problem" Watch "Binding, dynamic UIComponent treegeneration and display problem" New topic
Author

Binding, dynamic UIComponent treegeneration and display problem

Gildas Cuisinier
Greenhorn

Joined: Dec 03, 2007
Posts: 8
Hi all,

This is my probleme :

My page is composed by a selectManyShuttle ( trinidad ) and a PanelGrid and a commandbutton.

The selectManyShuttle allow to choose a list of language.
The PanelGrid is "empty", because it is binding to my backingBean.
It will be created at sending the form, depending on the languages chosen.


The button have an actionListener that populates a list of selected Language ( LangueProcedure class )




The problem are :

1. The getPanelLanguesEtPersonnes() is called at the first display of the form but not when the form is posted, so the "panelGrid" is not reconstructed. How can I ask 'JSF' to reconstruct the component tree?

2. How to bind a "selectOneMenu" to a element of a list ?
How can I remplace this "menu.setValueBinding("value", FacesContext.getCurrentInstance().getApplication().createValueBinding("#{selectionLanguesProcedureMB.listeLangueProcedure???}"));
"


Thanks a lot for you help
 
jQuery in Action, 2nd edition
 
subject: Binding, dynamic UIComponent treegeneration and display problem
 
Similar Threads
Retrieve selected values from dynamically generated HtmlSelectManyListBox
setAction Problem HtmlCommandButton
How to get Values out of dynamic created panel
How to get Values out of dynamic created panel
Setting select items programatically