[jboss-user] [JBoss Seam] - Re: custom JSF component with facelets

dgallego do-not-reply at jboss.com
Mon Dec 4 09:06:39 EST 2006


This is the structure of the jar under my /WEB-INF/lib/:

META-INF:
     - faces-config.xml
     - nt.taglib.xml
     - taglib.tld
and the packets structure containing my tags and JSF components.

My tags work only if I specify facelets.LIBRARIES option under web.xml.

faces-config.xml:

  | <?xml version="1.0" encoding="UTF-8"?>
  | <!DOCTYPE faces-config PUBLIC 	"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
  |     							"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
  | <faces-config>
  | 
  | 	<component>
  |       	<component-type>component.Version</component-type>
  |       	<component-class>component.Version</component-class>
  |    	</component>
  | </faces-config>
  | 

nt.taglib.xml:

  | <?xml version="1.0"?>
  | <!DOCTYPE facelet-taglib PUBLIC
  |    "-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN"
  |    "facelet-taglib_1_0.dtd">
  |    
  | <facelet-taglib>
  | 
  |     <namespace>http://www.ntrying.com</namespace>
  |     
  |     <tag>
  |         <tag-name>version</tag-name>
  |         <component>
  |             <component-type>component.Version</component-type>
  |         </component>
  |     </tag>    
  | 
  |     
  | </facelet-taglib>
  | 

taglib.tld:

  | <?xml version="1.0"?>
  | <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
  |                  "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
  | <taglib>
  | 
  | 	<tlib-version>1.0</tlib-version>
  |    	<jsp-version>1.2</jsp-version>
  |    	<short-name>nt</short-name>
  |    	<uri>http://www.ntrying.com</uri>
  |    	<display-name>NTrying.com.</display-name>
  | 
  | 	<!-- <nt:version /> -->
  |   	<tag>
  |       	<name>version</name>
  |       	<tag-class>taglib.VersionTag</tag-class>
  |       	<body-content>empty</body-content>
  |       	<description>
  |       		The current version of the Ntrying library.
  |       	</description>
  |    	</tag>
  | </taglib>
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990992#3990992

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990992



More information about the jboss-user mailing list