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 AlanBiggs
Date Thu, 25 Aug 2005 20:54:00 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 AlanBiggs:
http://wiki.apache.org/myfaces/myfaces%2etaglib%2exml

The comment on the change is:
Added web.xlm entry and simple example.

------------------------------------------------------------------------------
  ##language:en
  To use MyFaces Tomahawk extensions, you must create a taglib.xml file describing each component.
+ 
+ Then declare the taglib in your web.xml file:
+ {{{
+     <context-param>
+         <param-name>facelets.LIBRARIES</param-name>
+         <param-value>/WEB-INF/myfaces.taglib.xml</param-value>
+     </context-param>
+ }}}
  
  Here is an example file that defines some of the available components.
  
@@ -95, +103 @@

  </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:x="http://myfaces.apache.org/extensions">
+ ...
+            <x:inputDate popupCalendar="true"/>
+ }}}
+ 

Mime
View raw message