This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JSF and the fly likes Doubt in f:facet tag.. Please help me .. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Doubt in f:facet tag.. Please help me .." Watch "Doubt in f:facet tag.. Please help me .." New topic
Author

Doubt in f:facet tag.. Please help me ..

Jessica James
Ranch Hand

Joined: Jan 23, 2007
Posts: 69
Hi Friends,

I couldnt resolve the following problem..
In my screen I have 8 columns.. I have to provide sorting facility for some of the column, which is going to be set dynamically..
I have written my code like this:


No value is getting displayed as a column header..

Please help me..
[ February 27, 2007: Message edited by: Jessica James ]
John Bartlett
Ranch Hand

Joined: Jan 25, 2006
Posts: 116
Hi,

A facet can only contain one component so your code above, which uses both a outputText and a CommandLink will cause an exception.

If you want to use multiple components like you have done above i think you have to nest them inside <h:panelGroup> </h:pabelGroup> tags.

try:



Do you get any exceptions?

John
[ February 27, 2007: Message edited by: John Bartlett ]
Jessica James
Ranch Hand

Joined: Jan 23, 2007
Posts: 69
hey it's working fine...
Thanks a Lot ..
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Doubt in f:facet tag.. Please help me ..
 
Similar Threads
Myfaces 2.0.6-Getting Conversion error when extending class or implementing interface
nested h:datatable question
Help on JSF Custom tag
Commandlink action is not working when used to show popup page.
UIParameter issue in HtmlDataTable