myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Niklas <co...@dniklas.de>
Subject [JSF] how to "enable" facelets for my jsf component
Date Fri, 16 May 2008 14:48:22 GMT

Hi,

i can't get my jsf component to work within a facelets environment. I took
the example of Bruno Aranda, a kind of hello world example
(http://brunoaranda.googlepages.com/jsfcomponentsarchetype2).

This works for me with jsps. When i switch to facelets, i get the following
warnings and nothing of my 
component is rendered:

16.05.2008 16:38:58 org.apache.myfaces.renderkit.html.HtmlRenderKitImpl
getRenderer
WARNUNG: Unsupported component-family/renderer-type:
javax.faces.Output/daniel.test.lab.jsf.mycomponents.hello.SayHelloUI
2008-05-16 16:38:58.055:/standard-test-facelets-jsf:INFO:  No Renderer found
for component {Component-Path : [Class:
javax.faces.component.UIViewRoot,ViewId: /example-1.xhtml][Class:
javax.faces.component.html.HtmlForm,Id:
mainForm][Class:daniel.test.lab.jsf.mycomponents.hello.SayHelloUI,Id: _id5]}
(component-family=javax.faces.Output,
renderer-type=daniel.test.lab.jsf.mycomponents.hello.SayHelloUI)

For facelets i added a mycomp.facelets.xml (into META-INF):
<?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://daniel.de/jsfcomponents</namespace>

	<tag>
		<tag-name>sayHello</tag-name>
		<component>
			<component-type>
				daniel.test.lab.jsf.mycomponents.hello.SayHelloUI
			</component-type>
			<renderer-type>
				daniel.test.lab.jsf.mycomponents.hello.SayHelloUI
			</renderer-type>
		</component>
	</tag>
</facelet-taglib>

What's wrong here?

Thanks,
Daniel

 
-- 
View this message in context: http://www.nabble.com/-JSF--how-to-%22enable%22-facelets-for-my-jsf-component-tp17276563p17276563.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Mime
View raw message