This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JSF and the fly likes AJAX rendering some panelGroups Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "AJAX rendering some panelGroups" Watch "AJAX rendering some panelGroups" New topic
Author

AJAX rendering some panelGroups

Paolo Pinkel
Ranch Hand

Joined: May 04, 2011
Posts: 35
I have two forms in a xhtml-file: one displaying a dataTable, and one displaying some input-components.

In the first form, I have a selectOneRadio. Everything else should only be rendered once the user selected a value. I put a panelGroup with a rendered attribute after the selectOneRadio (that will hold everything in the first form besides the selectOneRadio itself) and I refresh that using AJAX, which works quite fine. But that panelGroup can't go past the first form (which makes sense).

So I put the components of the second form in a second panelGroup, but for some reason that second panelGroup is not rendered:


And in the first form, I tried refreshing it like this:



I tried "secondForm:secondFormGroup" instead ":secondForm:secondFormGroup" too.

Can anyone see why it's not rendering?

Edit: I forgot to mention that I tried putting another panelGroup around the second panelGroup and render *that* one. It didn't work either.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AJAX rendering some panelGroups
 
Similar Threads
selectOneRadio with nowrap
Rendering a view with selectOneRadio
how to use selectOneRadio with javascript?
dynamic selectOneRadio
Ajax render outside of form problem