-
1. rich:tree doesn't expand
nbelaevski Apr 27, 2011 7:17 AM (in response to david03)Hi David,
Likely you are missing h:head/h:body tags defined.
-
2. rich:tree doesn't expand
david03 Apr 27, 2011 7:41 AM (in response to nbelaevski)Hi Nick,
well, in fact I am using a template ( <ui:composition template="/WEB-INF/templates/appTemplate.xhtml"> ). The template it is being used is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html">
<head>
<title>
<ui:insert name="title">#{msg.app_title}</ui:insert>
</title>
<link type="text/css" rel="stylesheet" href="#{resource['css:icatalogo.css']}" />
</head>
<body>
<div id="header">
<ui:include src="/WEB-INF/templates/appHeader.xhtml">
<ui:param name="user_name" value="#{userBean.name}" />
<ui:param name="user_lastname" value="#{userBean.lastname}" />
<ui:param name="logout" value="#{msg.logout}" />
</ui:include>
</div>
<center>
<div id="main_content">
<h:panelGrid id="main_area" columns="2">
<ui:fragment>
<ui:include src="/WEB-INF/templates/menu.xhtml"/>
</ui:fragment>
<ui:fragment>
<ui:insert name="content">
</ui:insert>
</ui:fragment>
</h:panelGrid>
</div>
</center>
<div id="footer">
<ui:include src="/WEB-INF/templates/footer.xhtml"/>
</div>
</body>
</html>
Anyway, when trying to make rich:tree work, I already used it directly in the template, as it has html and body tags, but I got the same results.
-
3. rich:tree doesn't expand
nbelaevski Apr 27, 2011 7:42 AM (in response to david03)David,
JSF won't render resource dependncies unless you use h:head & h:body.