I don't understand why this piece of code is working:<a jsf:rendered="#{...}"> is not interpreted as passthrough element
<h:link value="Login" rendered="#{sessionBean.userInSessionBean == null}" />
and this piece of code is not working:
<a jsf:rendered="#{sessionBean.userInSessionBean == null}">Login</a>
您錯過了以提供更多信息作爲您的命名空間定義,使用JSF版本,您正在測試它的瀏覽器... –
@XtremeBiker這些東西都與它無關。 – EJP
你是對的@XtremeBiker。我的JSF版本是2.2.12。我試過了Explorer,Chrome和Firefox。我也使用Prime Faces 5.3。 – Gavi