Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RichFaces skin not applied  RSS feed

 
udaya krishna
Ranch Hand
Posts: 65
Firefox Browser Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am retriving data in <rich:datatable> , but the default skin color is not being applied in my page.My web.xaml is as below


I am using tomcat 7.0 and Richfaces 4.0

Thanks
 
udaya krishna
Ranch Hand
Posts: 65
Firefox Browser Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And my index.xhtml is as below
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The ui:composition tag is used when doing "include" operations. If "index.xhtml" is a stand-alone web page, consider using an "html" tag as the outermost tag, instead. Since this is xhtml, you'd code it just like "ui:composition", except using the "html" element ID, instead.

Your sample web.xml didn't include a welcome page defintion or I'd have added additional advice on JSF's behavior in welcome pages.
 
udaya krishna
Ranch Hand
Posts: 65
Firefox Browser Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tim,

Thanks for the reply.I changed the <ui:composition> to html ,still no luck. :( .And welcome file is there in web.xml , its index.xhtml.Any other suggestions?I have included all the libs required for richfaces and there are no exceptions in the console.
 
udaya krishna
Ranch Hand
Posts: 65
Firefox Browser Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok , I am not sure if this is the problem.I got some warnings while server start up


Not sure if this is causing actual problem.
 
udaya krishna
Ranch Hand
Posts: 65
Firefox Browser Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok.I got the solution.<h:head> tag was not included.Its weird because same code runs in netbeans+glassfish .Besides the demo site of Richfaces do not have <h:head> in some of the code.Anyway that problem is resolved.Thanks for the help :)
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmph. I looked specifically for that, and I thought you'd included it. I'm overdue for the optometrist.

The h:head and h:body tags are new to JSF version 2. In JSF1 they did not exist.

Although they do provide a bit of extra abstraction in view definitions, they also have very real purposes. The JSF infrastructure uses them as anchor points to determine where in the rendered HTML inserted bits of stuff (such as CSS links) will be placed. If those tags are missing, the renderers cannot insert that stuff.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!