JSF tags enclosed in custom JSP tags?

K

koslows

Hello,
is there a way to enclose JSF tags in custom JSP tags defined in tag
files? Because if I do:

<%@ page language="java" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="t" %>

<html>
<body>
<f:view>
<h:form>
<t:test />
</h:form>
</f:view>
</body>
</html>

with /WEB-INF/test.tag containing:

<h:eek:utputText value="test" />

I get <h:eek:utputText value="test" /> (uninterpreted) in the resulting
HTML which is clearly not what I want.
My ultimate goal is to create kind of template and in one custom tag
enclose few JSF tags.
Regards,
Adam Koprowski
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top