I am working on a JSF application.
I have recently faced a problem, that how to hide any attribute at the start-up of the application.
For Example –
I have a h:panelGrid attribute for displaying table, but I want to show this table only when a checkbox is clicked, Here I am able to made it working for show/hide but only from second time onwards.
What I want is to hide this table using h:panelGrid when application loads this view, the later part as I told I have achieved.
It would be grateful if somebody cite it for general hide at start-up.
Thanks.
I got it…somehow like this
in panelGrid set
style="visibility:hidden"and in checkBox, call javascript function and in there set
It does the trick.
Thanks Petr for help.