I'm typing to create my own template system for a site, I use "Template Insert" and "TemplateForest" Two custom tags have been created by name, which will use them in this way:
& lt; Prefix: insert templateFile = "someFile> gt; prefix: for name =" body "& gt; some content here & lt; / prefix: for & gt; other prefix: for tag ... & lt ; / Prefix: insert & gt; This works perfectly, unless you have a JSF tag inside the "content" server does not parse them. How can I fix this?
Cheers!
JSF JSF Reasons to succeed in JSAP versus 2.0 / Java EE 6 JSP offers very little templateability capabilities, you can use FaceText 1.x on JSF 1.x if you install it separately.
From the Facet Box Examples:
template.xhtml & lt ;! DOCTYPE html & gt; & lt; Html lang = "en" xmlns = "http://www.w3.org/1999/xhtml" xmlns: f = "http: // java.sun.com/jsf/c ore" xmlns: h = "http: //java.sun.com/jsf/html "xmlns: ui =" http://java.sun.com/jsf/facelets "& gt; & Lt; Top & gt; & Lt; Title & gt; & Lt; Ui: insert name = "title" /> & Lt; / Heading & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; UI: Insert name = "body" /> & Lt; / Body & gt; & Lt; / Html & gt; page.xhtml & lt; Ui: Composition template = "template.xhtml" xmlns: f = "http: //java.sun.com/jsf/core" xmlns: h = "http://java.sun.com/jsf/html" xmlns: Ui = "http://java.sun.com/jsf/ False" & gt; & Lt; Ui: defined name = "title" & gt; Page Title & lt; / UI: Define & gt; & Lt; Ui: define name = "body" & gt; & Lt; H: Output Text Value = "JSF Tags Just Work Here." / & Gt; & Lt; / Ui: defined & gt; & Lt; / Ui: Composition & gt; I would say, instead of changing one on the basis of JSP, go for facelets as JSF visualization technique.
Comments
Post a Comment