Thursday, August 25, 2005

facelets and MyFaces living together in harmony

So I discovered in the end it was a lack of configuration that was causing the issues in my port from JSF RI with JSPs to MyFaces with facelets.

The facelet was not recognizing the MyFaces extension components because they were not registered, something that's automatic in the JSP environment.
It turns out you need an entry in the web.xml file and a file to define the extra components. Definitely not something you can deduce on your own!

I ended up enhancing this page to give those that follow a better chance of success!

http://wiki.apache.org/myfaces/myfaces%2etaglib%2exml

Now I can get on with the task at hand! ;)

No comments: