Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CSS in JSF

 
Nelson Nadal
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

just want to know if it is advisable to mix up CSS to my JSF file? or its not a big deal not to use some JSF html custom tag library?
It seems other CSS has no effecgt to some JSF html custom tag like the <h:commandButton>.
But for the <hutputText> it's fine.

Thanks.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nelson Nadal wrote:Hi,

just want to know if it is advisable to mix up CSS to my JSF file? or its not a big deal not to use some JSF html custom tag library?
It seems other CSS has no effecgt to some JSF html custom tag like the <h:commandButton>.
But for the <hutputText> it's fine.

Thanks.

JSF generates HTML.
CSS applies on HTML only.
So whenever CSS fails, you need to verify it against the generated HTML, not the actual JSF component --this makes no sense.

Regarding to your actual problem, you may have more luck if you extract the generated HTML in question, create a small testset with only pure HTML and CSS and base your troubleshooting on that further.
 
Nelson Nadal
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes you're right, this is only matter of testing or familiriazation of generated html by JSF custom tag.
Thanks again.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic