Is it possible to hide a div etc based on a condition (like you do in rendered attribute with EL) without having to wrap it in a <h:panelGrid ...> etc with a rendered attribute? It ruins my layout. I just need it for the logic, not the layout.
Is it possible to hide a div etc based on a condition (like you
Share
first of all you should not wrap your elements with
h:gridPanelwhich results in htmltableinstead you should wrap with
h:panelGroupwhich results inspanin html code , you can also addlayout="block"toh:panelGroupto make it rendered asdivsecond you dont not use jstl when hiding
divinstead do something like thisor
where in css file add this :
INMO you always better hide in JSF with
rendered="#{myBean.renderCondition}"Take a look at BalusC over here Conditionally displaying JSF components