-
1. Re: rich:message tooltip attribute
nbelaevski Mar 14, 2010 6:48 AM (in response to rwilson9)Hi Ray,
According to documentation, "tooltip" is "Flag indicating whether the detail portion of the message should be displayed as a tooltip.". However, you have both showDetail & showSummary set to "false".
-
2. Re: rich:message tooltip attribute
rwilson9 Mar 14, 2010 8:51 AM (in response to rwilson9)First, thanks for the response Nick.
Maybe I don't understand the feature. I don't want to display the detail or summary messages on the page. I never liked how the standard JSF validation messages would mess up the page formatting. I wanted the images to show on failed validation and if the user needs to know why they failed, I was hoping to allow them to mouse over to get the message.
I have tried setting both the showDetail and showSummary attributes to true and they do display the messages but I didn't want that. But even when I did set them to true, I never got the tool tip to display.
-
3. Re: rich:message tooltip attribute
rwilson9 Mar 16, 2010 2:10 AM (in response to rwilson9)Does anybody know why I can't get tool tip to work? -
4. Re: rich:message tooltip attribute
ilya_shaikovsky Mar 16, 2010 4:17 AM (in response to rwilson9)tooltip just works as for standard JSF message components.
As I understand your case - you need to define something like that(pseudocode):
<message for="input" id="message1">
<facet name="errorMarker">
<image>
</facet>
</message>
<tooltip for="message1">
<message for="input" id="message1"/>
</tooltip>
you could move that to separate facelet so reusing will be simple.
-
5. Re: rich:message tooltip attribute
rwilson9 Mar 20, 2010 8:57 AM (in response to ilya_shaikovsky)Thanks!!! That does exactly what I need.
-
6. Re: rich:message tooltip attribute
muralib12 Feb 3, 2011 6:56 AM (in response to rwilson9)Hi Ray Wilson,
I Facing the same problem. am desperate looking a solution for not changing the UI layout when there is a validation error.
I tried using IIya's pseudocode, but no luck. Could you please provide me actual code of it.
Thanks in advance.
Murali
-
7. Re: rich:message tooltip attribute
muralib12 Feb 3, 2011 7:49 AM (in response to muralib12)I got it fixed this way!!
<rich:message for="#{compId}" showSummary="false" showDetail="false"> <f:facet name="errorMarker"> <h:graphicImage id="msg_error_img" value="/images/modal/error.gif"> <rich:toolTip for="msg_error_img"> <rich:message for="#{compId}" /> </rich:toolTip> </h:graphicImage> </f:facet> </rich:message>
Let me know If you have a better solution.
Thanks