This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

commandButton in rich:modalPanel issues  RSS feed

 
ya ji
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is commandButton in modalPanel, click this button will search data from db, then display them in datatable in modaPanel.

I got an issue, when click on the button, the modalPanel will disappear, what's the problem?

some code likes below:
rich:modalPanel id="selUniUserPanel" width="750" height="400"
...
a4j:commandButton action="#{UserLookupBean.queryUsers}" reRender="userSearchResult" limitToList="true" value="Search" styleClass="searchBtn" id="searchbtn"
...
 
ya ji
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anyone knows about it?
 
Venkat Kanneganti
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
try by reRender the panel onclick of that commandbutton.

Regards,
Venkat.
 
ya ji
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Venkat,

It doesn't work, the panel disappeared when I this commandbutton.

Best regards,
Eric
 
ya ji
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It works now thanks everyone!
 
Alex Zay
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya ji wrote:It works now thanks everyone!


ya ji, how did you fix the problem? can you past some simple code.

I'm having the same issues where when i click the commandButton the whole modal panel disappears
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!