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

Highlight input fields  RSS feed

 
vivek ja
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a requirement to hightlight input text fields in JSF
I am new to JSF and I dont see any information on this on the net.
Can someone tell me how to do this?
I see that it can be done with MyFaces, but I cannot use that.

This is my inputtext code
<h:inputText id="name" value="#{UserBean.name}" >

Thank you in advance
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSF doesn't really do that, since you can use CSS styles to do that. JSF tries not to re-invent things, since the world is complex enough already.

I had a Struts app I did several years ago that used CSS styles that way. The text boxes had a colored background and when you changed the data items, they altered color so that you had visual indications of what items had been changed. I'd have done it the exact same way in JSF.
 
vivek ja
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the input. I have implemented that with CSS. just wanted to see if JSF has some tags or any functionality that provides this. Thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!