File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes PanelGroup is not getting rendered after clicking the command button action. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "PanelGroup is not getting rendered after clicking the command button action." Watch "PanelGroup is not getting rendered after clicking the command button action." New topic
Author

PanelGroup is not getting rendered after clicking the command button action.

prasad kakani
Ranch Hand

Joined: Jul 15, 2008
Posts: 59
I have a 2 set of panel groups . one panel group contains a fieldset and inside, two radio buttons and one command button .Based on the selection of radio button, respected value will be displayed in another panel group through ajax call. But issue is after the radio button selection when the command button is clicked the other panel group is not at all rendered when the first time page loads . when i refresh everything works fine. I could not able to figure out why the renderedPanelGroup value is not set to true even that is being set in the command action .Here is my code.

test.xhtml
-------------



//backing bean command action code

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16137
    
  21

From what a quick inspection suggests to me, you're not requesting re-rendering of all of the affected parts of the View. In particular, I don't see anything that would request re-rendering of the outputText control that you have marked with a C++-style comment.


Customer surveys are for companies who didn't pay proper attention to begin with.
prasad kakani
Ranch Hand

Joined: Jul 15, 2008
Posts: 59
Yeah Tim, you are correct.. i need to wrap the panelgroup with another panelgroup..

<h:panelGroup id="demandrequestpanelgrpid">

<h:panelGroup rendered="#{demandManagedBean.renderedPanelGroup}">
...

Now its working perfectly..

Thanks
Prasad
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PanelGroup is not getting rendered after clicking the command button action.