• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Myfaces

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply.I sortout problem the way you told.
Thanks
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic