• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Problem Configuring MyFaces

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?

 
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Show your jspx, and as well your startup log.
 
J Haley
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The "t" tags in calculator.jspx are being ignored.


index.jsp


calculator.jspx


log
 
Hung Tang
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 148
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 148
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Got it. Since I am also using facelets there was more configuration to do.

http://wiki.apache.org/myfaces/Use_Facelets_with_Tomahawk
 
This parrot is no more. It has ceased to be. Now it's a tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic