GeeCON Prague 2014*
The moose likes JSF and the fly likes applying tooltip on error fields Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "applying tooltip on error fields " Watch "applying tooltip on error fields " New topic
Author

applying tooltip on error fields

Dushyant Agarwal
Ranch Hand

Joined: Oct 14, 2007
Posts: 75
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

Joined: Jul 28, 2003
Posts: 1844

You can use style attribute in the message tag for setting the background color.


Krishna Srinivasan
Spring Tutorials, OCAJP Mock Questions, 400+ OCPJP Mock Questions
 
GeeCON Prague 2014
 
subject: applying tooltip on error fields