Stephan van Hulst wrote:Have you already debugged your application to ascertain that the action is not null after you retrieve it from your action map?
Please also show us the code where you populate the action map.
Stephan van Hulst wrote:Why aren't you using the setEnabled method on the action?
Joe Ess wrote:Have a look at this tutorial. You don't manage the property files themselves. You set a Locale and let Java determine what properties are correct.
Al Hobbs wrote:The pattern bear was referring to was the pattern attribute. You put the regex in there. That regex I gave you wont allow 10
You can do this: (?:10|\d (?:\.\d)?)
The extra 10 in there looks a bit hacky though
Al Hobbs wrote:A regex for that might be \d (?:\.\d)?
Something like that
Bear Bibeault wrote:Is this not something you can simply use pattern for?