Mike is correct.

The html generated by :
   <t:message for="reportType"
              detailFormat=" * "
              errorStyle="color:red"
              tooltip="true" />

when required validation fails is:
<span title="Validation Error" style="color:red"> * </span>

The desired html is something like:
<span title="Value is required." style="color:red"> * </span>

Paul Spencer

Mike Kienenberger wrote:
I think what Paul is asking is how to display the detail message
rather than the summary message.

I'm not sure if t:message supports that currently, but it seems
reasonable to submit a patch providing an attribute to allow you to do
that.


On 7/12/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
you can overwrite the Key in your bundle.

JSF 1.2 brings more like this on the table
http://java.sun.com/javaee/javaserverfaces/1.2/docs/tlddocs/index.html
<h:inputText ... requiredMessage="#{bund.val}" .../>

or use (today) Trinidad
http://incubator.apache.org/adffaces/tagdoc/af_inputText.html
(requiredMessageDetail attr)

-Matt

On 7/12/06, Paul Spencer <[EMAIL PROTECTED]> wrote:
> I would like to display the detail message in the tooltip generated by
> <t:message> instead of the default "Validation Error".
>
> I know I can set the text displayed using the title attribute, but how
> do is set it to the detail message, i.e. "Value required", which is
> generated by the JSF?
>
> Paul Spencer
>
>
>
>
>


--
Matthias Wessendorf

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com



Reply via email to