When I want to hide some content in JSF, which tag is created for this purpose? There are several tags that can do this work:
<f:subview rendered="#{...condition...}" />
and
<c:when test="#{...conditon...}" />
What is the right option to use?
<ui:remove>
Have a look here: http://www.jsftoolbox.com/documentation/facelets/10-TagReference/facelets-ui-remove.html
UPDATE
If you want to conditionally hide some content, you can use
<h:panelGroup rendered="#{...condition...}">
It is displayed as <span>, you can also add an attributelayout="block"
<span>
layout="block"
<h:panelGroup rendered="#{...condition...}" layout="block">
to make it like that <div>.
<div>
in JSF, use renderedis the best approach.
rendered
JSTL, <c:when>, , JSF, , ViewScope. JSF (, ui:repeat c:forEach)
<c:when>
ui:repeat
c:forEach
Source: https://habr.com/ru/post/1760734/More articles:Detecting a monitor result using javascript on an optional monitor - javascriptпроблема освобождения вектора по сравнению с массивом - c++Compiler Language C - cHow to set up a secure PHP session - securityIn XSLT, why can't I set the select attribute from a value using the xsl attribute: what's a good alternative? - xpathHow can I insert an HTML string into an element? - javascriptDoxygen does not display the "Namespaces" tab in the document, although "YES" is displayed - doxygenFirst Boost Program - c ++can build using visual studio ide, but cannot create using devenv.com - build-processUsing the VS2010 image library when an image contains more than one icon - visual-studio-2010All Articles