Forums Register Login

Problem Configuring MyFaces

+Pie Number of slices to send: Send
I�m having problems integrating MyFaces. Standard JSF tags (�h� and �f�) are working, but all �t� tags are not. I�m guessing that I have a problem with how I�ve configured web.xml. I do have the tomahawk jar and sun�s jsf jars in my lib directory.

Any ideas what I'm missing?

+Pie Number of slices to send: Send
Show your jspx, and as well your startup log.
+Pie Number of slices to send: Send
The "t" tags in calculator.jspx are being ignored.


index.jsp


calculator.jspx


log
+Pie Number of slices to send: Send
Couple of problems, I can see:

1) Do you have both Sun RI and MyFaces jars? You need to get rid of the Sun RI jars

2) From your example, it appears that you are trying to use Facelets. If so, you should get rid of jsps. You need to properly configure Facelets. The Facelets home page should give you the documentation you need to help you doing just that.
+Pie Number of slices to send: Send
+Pie Number of slices to send: Send
I am using both Sun RI and MyFaces jars. In the past tomahawk 1.1.1, I was able to use both. Do you know if this changed? I will try pulling out Sun Ri and see if it will work.

I am using facelets, the only JSP I have forwards into faces "calculator.faces".

Thanks for responding so quickly.
+Pie Number of slices to send: Send
I never used both Sun RI + MyFaces together. In general, you shouldn't use two implementations of the same spec, because it can cause all sort of class loader problems.

For Facelets, make sure you set it up so that JSF is using Facelets as the rendering technology. You should have a line in your faces-config.xml to toggle this. Follow the examples outlined on the Facelets web site carefully and you should have everything working nicely soon enough.
+Pie Number of slices to send: Send
I am still struggling, and not sure why. I got rid of Sun RI and changed over to MyFaces. I don�t think this was initially the problem, because I saw some documentation saying it�s compatible. http://myfaces.apache.org/tomahawk/index.html

I�m at the same place I was before, standard faces tags (h and f) work, but tomahawk tags (t) don�t.

Here are jars in my lib directory.
commons-beanutils-1.7.0.jar
commons-codec-1.3.jar
commons-collections-3.1.jar
commons-digester-1.6.jar
commons-el-1.0.jar
commons-fileupload.jar
commons-lang-2.1.jar
commons-logging-1.0.4.jar
el-api.jar
el-ri.jar
jsf-facelets.jar
jstl-1.1.0.jar
myfaces-api-1.1.4.jar
myfaces-impl-1.1.4.jar
standard.jar
tomahawk-1.1.3.jar

Web.xml


log
+Pie Number of slices to send: Send
Got it. Since I am also using facelets there was more configuration to do.

http://wiki.apache.org/myfaces/Use_Facelets_with_Tomahawk
Where all the women are strong, all the men are good looking and all the tiny ads are above average:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 15661 times.
Similar Threads
How to implement JSF Facelets Tags
Tomahawk1.1.3 ugrade exception...ExtensionsFilter not correctly configured. JSF mappi
Getting ClassNotFoundException, but the class is there!
myFaces Component and JSF netbeans
web.xml deployment problem
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:42:50.