<a jsf:rendered=“#{…}”> is not interpreted as passthrough element
问题 I don't understand why this piece of code is working: <h:link value="Login" rendered="#{sessionBean.userInSessionBean == null}" /> and this piece of code is not working: <a jsf:rendered="#{sessionBean.userInSessionBean == null}">Login</a> 回答1: A HTML element will only become a passthrough element if following conditions are met: There's at least one jsf:xxx attribute from http://xmlns.jcp.org/jsf namespace. There's at least one "identifying attribute" associated with a specific JSF component.