It's not a secret anymore!*
The moose likes JSF and the fly likes selectOneMenu in the header of dataTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "selectOneMenu in the header of dataTable" Watch "selectOneMenu in the header of dataTable" New topic
Author

selectOneMenu in the header of dataTable

deepak reads
Greenhorn

Joined: Nov 01, 2004
Posts: 13
I have a requirement where i have to show in the header of a dataTable
left has a Label and right side has a SelectOneMenu.
I tried to do this way:
With this code, selectOneMenu box is not displayed though when i take the selectOneMenu and put it outside the dataTable, it is displayed.
How can i display the selectOneMenu in the header of datatable ?

Any suggestion will be helpful !


Thanks,
Deepak Augusty
deepak reads
Greenhorn

Joined: Nov 01, 2004
Posts: 13
Go to know that f:facet takes only one component.Since i had two components one outputText and other selectOneMenu, only one was displayed.The workaround is to use h: panelgroup.

Thanks,
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: selectOneMenu in the header of dataTable