Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to dynamically set style of <DIV> tag in a JSF Page. IF/ELSE ....

843844Jul 30 2007 — edited Jul 31 2007
Hi,

Can someone please tell me how to handle this. I have a drop down vertical menu. There are 4 top level menus that when clicked drop down and shows the sub-menus.
Now when a user clicks on any of the menu the sub-menus shows and after clicking on the sub-menu I am showing the content on the left side of the window.
Now I need to keepshowing the selected sub-menus. Currently it is set to <DIV style="display:none"> how do I set the style of the DIV in my JSF page dynamically.


Basically needs to have <DIV style="display:inline"> whenever a users clicks on the sub-menu. How can I set the style of the DIV dynamically. Is there any IF/ELSE I can use.
Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 28 2007
Added on Jul 30 2007
1 comment
433 views