This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

applying tooltip on error fields

 
Dushyant Agarwal
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am developing aproject using Standard JSF RI and apache myfaces trinidad tag libraries. Now in my project , uptil now I have been providing the error messages inside an h:messages component. It displays page level messages added in a message queue.

However, now my functionality requires me to put an astreik(*) corresponding to every error field and on pointing to it The error message should appear in tooltip.

I tried putting h:message tag corresponding to a h:inputText tag. I had set the validator attribute of the inputText to a validator method .
As well as I had put the tooltip attribute on h:message to true. But every time there was a validation exception the message was simply displayed. However nothing appeared on the tooltip.

As well as the error fields need to get their backgrounds coloured in yellow.

Now any body out there got any idea about how to get across at least the first requirement or both of them ??
 
Krishna Srinivasan
Ranch Hand
Posts: 1862
Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use style attribute in the message tag for setting the background color.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic