• Post Reply Bookmark Topic Watch Topic
  • New Topic

Myfaces

 
philip johnson
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys
I am new to JSF and Myfaces, Somwhere I read Myfaces are the better implementaion of JSF spec. So I decide to use Myfaces. I couldnot even run my first example.
I am using JBoss AS,I am getting this exception.
javax.faces.FacesException: Exception while calling encodeEnd on component : {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /pages/search.jsp][Class: javax.faces.component.html.HtmlForm,Id: j_id_jsp_543865176_1][Class: org.apache.myfaces.custom.date.HtmlInputDate,Id: j_id_jsp_543865176_3]}
I ahve no idea what is going on. Please help
Philip
 
Tim Holloway
Bartender
Posts: 18415
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's a problem when using recent versions of JBoss. they have a JSF framework built into the JBoss server, and it's the Sun RI one, so when you run an app using MyFaces, some of the classes get into a fight.

There's 2 solutions possible:

1. Switch to the Sun RI. Remove the JSF implementation jar from your WAR so that the one in JBoss gets used instead

2. Add an option to your web.xml file that tells JBoss you're using MyFaces. I forget the details, but they're fairly easy to Google.

There was a time when the Sun RI had some serious problems and MyFaces was definitely superior. These days the Sun RI is at least as reliable as MyFaces. You can mix the extended MyFaces packages with the RI core fairly safely. Tomahawk seems to be problem-free. Trinidad I'm not so sure of, and anything more experimental is at your own risk.
 
philip johnson
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply.I sortout problem the way you told.
Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!