myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Myfaces Wiki] Update of "myfaces.taglib.xml" by MikeKienenberger
Date Tue, 20 Sep 2005 19:35:59 GMT
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 MikeKienenberger:
http://wiki.apache.org/myfaces/myfaces%2etaglib%2exml

The comment on the change is:
Moving myfaces.taglib.xml to tomahawk.taglib.xml

------------------------------------------------------------------------------
  ##language:en
- To use MyFaces Tomahawk extensions, you must create a taglib.xml file describing each component.
  
+ This page has moved to ["tomahawk.taglib.xml"]
- Then declare the taglib in your web.xml file:
- {{{
-     <context-param>
-         <param-name>facelets.LIBRARIES</param-name>
-         <param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
-     </context-param>
- }}}
  
- Here is an example file that defines some of the available components.
- 
- ''Please add additional component definitions to this example as you use them.''
- 
- === Example ===
- {{{
- <?xml version="1.0"?>
- <!DOCTYPE facelet-taglib PUBLIC
-   "-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN"
-   "http://java.sun.com/dtd/facelet-taglib_1_0.dtd">
- 
- <facelet-taglib>
-     <namespace>http://myfaces.apache.org/tomahawk</namespace>
-     <tag>
-         <tag-name>aliasBean</tag-name>
-         <component>
-             <component-type>org.apache.myfaces.AliasBean</component-type>
-             <renderer-type>org.apache.myfaces.AliasBean</renderer-type>
-         </component>
-     </tag>
-     <tag>
-         <tag-name>dataTable</tag-name>
-         <component>
-             <component-type>org.apache.myfaces.HtmlDataTable</component-type>
-             <renderer-type>org.apache.myfaces.Table</renderer-type>
-         </component>
-     </tag>
-     <tag>
-         <tag-name>columns</tag-name>
-         <component>
-             <component-type>org.apache.myfaces.HtmlColumns</component-type>
-         </component>
-     </tag>
-     <tag>
-         <tag-name>dataScroller</tag-name>
-         <component>
-             <component-type>org.apache.myfaces.HtmlDataScroller</component-type>
-             <renderer-type>org.apache.myfaces.DataScroller</renderer-type>
-         </component>
-     </tag>
-     <tag>
-         <tag-name>inputCalendar</tag-name>
-         <component>
-             <component-type>org.apache.myfaces.HtmlInputCalendar</component-type>
-             <renderer-type>org.apache.myfaces.Calendar</renderer-type>
-         </component>
-     </tag>
-     <tag>
-         <tag-name>panelTabbedPane</tag-name>
-         <component>
-             <component-type>org.apache.myfaces.HtmlPanelTabbedPane</component-type>
-             <renderer-type>org.apache.myfaces.TabbedPane</renderer-type>
-         </component>
-     </tag>
-     <tag>
-         <tag-name>panelTab</tag-name>
-         <component>
-             <component-type>org.apache.myfaces.HtmlPanelTab</component-type>
-             <renderer-type>javax.faces.Group</renderer-type>
-         </component>
-     </tag>
-     <tag>
-         <tag-name>tree2</tag-name>
-         <component>
-             <component-type>org.apache.myfaces.HtmlTree2</component-type>
-             <renderer-type>org.apache.myfaces.HtmlTree2</renderer-type>
-         </component>
-     </tag>
-     <tag>
-         <tag-name>inputDate</tag-name>
-         <component>
-             <component-type>org.apache.myfaces.HtmlInputDate</component-type>
-             <renderer-type>org.apache.myfaces.Date</renderer-type>
-         </component>
-     </tag>
-     <tag>
-         <tag-name>newspaperTable</tag-name>
-         <component>
- 	    <component-type>org.apache.myfaces.HtmlNewspaperTable</component-type>
- 	    <renderer-type>org.apache.myfaces.HtmlNewspaperTable</renderer-type>
-         </component>                
-     </tag>
-     <tag>
-         <tag-name>inputHtml</tag-name>
-         <component>
-             <component-type>org.apache.myfaces.InputHtml</component-type>
-             <renderer-type>org.apache.myfaces.InputHtml</renderer-type>
-         </component>
-     </tag>    
-     <tag>
-         <tag-name>panelNavigation</tag-name>
-         <component>
-             <component-type>org.apache.myfaces.HtmlPanelNavigation</component-type>
-             <renderer-type>org.apache.myfaces.Navigation</renderer-type>
-         </component>
-     </tag>
-     <tag>
-         <tag-name>commandNavigation</tag-name>
-         <component>
-             <component-type>org.apache.myfaces.HtmlCommandNavigation</component-type>
-             <renderer-type>javax.faces.Link</renderer-type>
-         </component>
-     </tag>
-     <tag>
-         <tag-name>validateEqual</tag-name>
-         <validator>
-             <validator-id>org.apache.myfaces.validator.Equal</validator-id>
-         </validator>
-     </tag>
-     <tag>
-         <tag-name>validateEmail</tag-name>
-         <validator>
-             <validator-id>org.apache.myfaces.validator.Email</validator-id>
-         </validator>
-     </tag>
-     <tag>
-         <tag-name>saveState</tag-name>
-         <component>
-             <component-type>org.apache.myfaces.SaveState</component-type>
-         </component>
-     </tag>
-     <tag>
-         <tag-name>dataList</tag-name>
-         <component>
-             <component-type>org.apache.myfaces.HtmlDataList</component-type>
-             <renderer-type>org.apache.myfaces.List</renderer-type>
-         </component>
-     </tag>
- </facelet-taglib>
- }}}
- 
- Here's a code snippet of how you would then use an inputDate control from the MyFaces extensions
library in your facelet .xhtml file:
- 
- {{{
- <?xml version="1.0" encoding="ISO-8859-1" ?>
- <!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:f="http://java.sun.com/jsf/core"
-       xmlns:h="http://java.sun.com/jsf/html"
-       xmlns:t="http://myfaces.apache.org/tomahawk">
- ...
-            <t:inputDate popupCalendar="true"/>
- }}}
- 

Mime
View raw message