You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by Apache Wiki <wi...@apache.org> on 2008/02/12 22:11:50 UTC
[Myfaces Wiki] Update of "MyFaces 1.1.0 Tomahawk Components" by SimonKitching
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.
The following page has been changed by SimonKitching:
http://wiki.apache.org/myfaces/MyFaces_1%2e1%2e0_Tomahawk_Components
------------------------------------------------------------------------------
+ == MyFaces 1.1.0 Tomahawk Components ==
- == MyFaces 1.1.0 Tomahawk Components ==
- To use Tomahawk components, use at the top of your page:
+ === For JSP Pages ===
+
+ At the top of each page, include:
{{{
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
}}}
- in the JSP 1.0 syntax ({{{.jsp}}} page), or
+
+ The files should have the suffix ".jsp".
+
+ === For JSPX Pages ===
+
+ At the top of each page, include:
{{{
<jsp:root xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en-US"
@@ -15, +22 @@
xmlns:t="http://myfaces.apache.org/tomahawk"
...>
}}}
- in the JSP 2.0 XML compliant syntax ({{{.jspx}}} JSP document).
- This author advises you use the XML compliant syntax.
+ The files should have the suffix ".jspx".
+ Note that in the above example, the `xml:lang` attribute describes the language of the XML document itself, !not! of the rendered HTML document.
+