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 Dynamically deciding either to show or hide modalPanel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Dynamically deciding either to show or hide modalPanel" Watch "Dynamically deciding either to show or hide modalPanel" New topic
Author

Dynamically deciding either to show or hide modalPanel

Muhammad Ijaz Ahmed
Greenhorn

Joined: Feb 01, 2010
Posts: 3
I have been trying to figure that out how to hide or show modalpanel dynamically, but unfortunately i couldn't make that work.

Scenario:

I want to move object from one place to another in a tree. You can say that i want to change parent node of some child node. On some cases i need some futher information prior to change parent. So we decide either to display extended information or not in backing bean action method. So i wanna do either things, 1 close that modalPanle, 2 hide tree component and show other components. Currently i have hard coded, i.e always show modalpanel after nodeselection in tree. have a look on the code as followed.

Bold Code: javascript writing to hide or show modalpanel





>

Can anybody please help me out?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamically deciding either to show or hide modalPanel