Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
prasad kakani
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18094
48
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
prasad kakani
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic