Hi all,
I already posted a message regarding this topic on the faclets mailing list, 
but they couldn't really help me. So in the following I  describe my problem 
with the myfaces extensions in a facelets-based application. 
As referenced by Mike in the wiki I included the tag.xml file and referenced it 
properly in my *.xhtml file as you can see below:

<!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:h="http://java.sun.com/jsf/html";
        xmlns:x="http://myfaces.apache.org/extensions";>
<body>
<ui:composition template="/template.xhtml">

        <ui:define name="title">
        Schedule Components
</ui:define>

        <ui:define name="body">
                <span jsfc="x:inputCalendar"  id="calendar" />
        </ui:define>
</ui:composition>
</body>
</html>
        
As not expected I do not get any output. So I checked out the html-source-code 
displaying the page in my browser and got this result:

<!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";>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>Facelets: Number Guess Tutorial</title>
<style type="text/css" xml:space="preserve">

</style>
</head>
<body>
<h1>
        Schedule Components
</h1>
<p>
                <span id="calendar"/>
</p>
</body>
</html>

That means the processor gets the jsfc tag, is trys to get the referenced tag, 
can't find it, and stops rendering the missing component.

But as described above I just followed the instructions made by Mike, and as I 
think that should work. Perhaps what I have to add is, that I am using a 
nightly build from myfaces.

Are there any things I disregarded?

Thanks a lot 

Johannes Hiemer
_________________________________________________________________________
Mit der Gruppen-SMS von WEB.DE FreeMail können Sie eine SMS an alle 
Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179



Reply via email to