Issue Details (XML | Word | Printable)

Key: SHALE-176
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Gary VanMatre
Reporter: lucy Luo
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Shale

The Token component doesn't allow to override the message like the validator

Created: 11/May/06 06:30 AM   Updated: 21/Aug/06 11:28 PM
Return to search
Component/s: Core
Affects Version/s: 1.0.1
Fix Version/s: 1.0.3

Environment: all


 Description  « Hide
The Token component doesn't allow to override the message like the validator that has a couple message overrides, The first is a message property and the second looks for bundles registered in the faces-config.

Seems like the Token component should work this way too.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Veit Guna added a comment - 12/May/06 05:52 AM
Yes, I got the same problem. And it should be also possible to add a _detail message to it like jsf standard:

 token.invalid_detail=



Gary VanMatre added a comment - 13/May/06 02:53 AM
The token component now allows overriding the validation summary and detail message.
The messages are evaluated in the following order:

1) The messageDetail and messageSummary property on the Token component is the first order of override.

2) The next level of override is a custom resource bundled registered in the faces-config.xml using the message key of token.summary.invalid or token.detail.invalid.

    <application>
       <messageSummary-bundle>org.acme.resources.Bundle</messageSummary-bundle>
    </application>

3) The default will be taken from org.apache.shale.resources.Bundle packaged in the core shale java archive.