my dog learned polymorphism*
The moose likes JSF and the fly likes Problem Configuring MyFaces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Problem Configuring MyFaces" Watch "Problem Configuring MyFaces" New topic
Author

Problem Configuring MyFaces

J Haley
Ranch Hand

Joined: Jul 22, 2004
Posts: 66
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?

Hung Tang
Ranch Hand

Joined: Feb 14, 2002
Posts: 148
Show your jspx, and as well your startup log.
J Haley
Ranch Hand

Joined: Jul 22, 2004
Posts: 66
The "t" tags in calculator.jspx are being ignored.


index.jsp


calculator.jspx


log
Hung Tang
Ranch Hand

Joined: Feb 14, 2002
Posts: 148
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.
Hung Tang
Ranch Hand

Joined: Feb 14, 2002
Posts: 148
https://facelets.dev.java.net/nonav/docs/dev/docbook.html#config

http://wiki.apache.org/myfaces/Use_Facelets_with_Tomahawk

Good luck.
J Haley
Ranch Hand

Joined: Jul 22, 2004
Posts: 66
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.
Hung Tang
Ranch Hand

Joined: Feb 14, 2002
Posts: 148
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.
J Haley
Ranch Hand

Joined: Jul 22, 2004
Posts: 66
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
J Haley
Ranch Hand

Joined: Jul 22, 2004
Posts: 66
Got it. Since I am also using facelets there was more configuration to do.

http://wiki.apache.org/myfaces/Use_Facelets_with_Tomahawk
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem Configuring MyFaces
 
Similar Threads
How to implement JSF Facelets Tags
Getting ClassNotFoundException, but the class is there!
myFaces Component and JSF netbeans
web.xml deployment problem
Tomahawk1.1.3 ugrade exception...ExtensionsFilter not correctly configured. JSF mappi