myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (JIRA)" <>
Subject [jira] Commented: (MYFACES-2084) validatorMessage does not work with EL Expressions
Date Sat, 16 May 2009 22:34:45 GMT


Leonardo Uribe commented on MYFACES-2084:

Maybe if you try to load the bundle using:


on your faces-config.xml, the bundle can be evaluated. If you are using f:loadBundle, this
error could happen, because f:loadBundle add the reference on render response time.

This will be closed as won't fix, because in fact f:loadBundle has this unwanted behavior.
Note that it is possible to use tomahawk sandbox s:loadBundle to solve this problem.

> validatorMessage does not work with EL Expressions
> --------------------------------------------------
>                 Key: MYFACES-2084
>                 URL:
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 1.2.5
>         Environment: Windows XP
> Eclipse 3.4
>            Reporter: Roberto
> I am trying to show a custom message ofr Long Range validation in an input text
> <h:inputText id="dos" validatorMessage="#{text.test}">
> 	<f:validateLongRange minimum="1" maximum="10" />
> </h:inputText>
> , where text is the variable representing a bundle loaded with f:loadBundle
> When I use <t:messages   /> to show errors, it shows the default message (paginador:dos:
Validation Error: Specified attribute is not between the expected values of 1 and 10.), instead
of the custom one.
> The same happens when I write the property javax.faces.validator.NOT_IN_RANGE in the
bundle. Custom message is ignored
> Anyway, it work ok when I use a literal instead of a property inside a bundle:
> <h:inputText id="dos" validatorMessage="test message">
> 	<f:validateLongRange minimum="1" maximum="10" />
> </h:inputText>
> With this code, "test message" is shown as validation error.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message