passthrough-elements

<a jsf:rendered=“#{…}”> is not interpreted as passthrough element

梦想与她 提交于 2019-12-19 09:05:49
问题 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.

HTML5 Pass-Through element causes Eclipse warning 'Unknown tag'

て烟熏妆下的殇ゞ 提交于 2019-12-10 23:05:33
问题 My JSF template.xhtml file looks something like: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui" xmlns:jsf="http://xmlns.jcp.org/jsf"> <h:head> ... </h:head> <h:body> <header jsf:id="head"> ... </header> <nav jsf:id="nav"> ... </nav> <main jsf:id="main"> ... </main> <footer jsf:id="foot">