Re: T5: How to retrieve message from default Errors.properties

2007-07-11 Thread Donyee
@Inject private Messages _errorMessages; Try this! 2007/7/11, Adam Zimowski <[EMAIL PROTECTED]>: Thanks, but I've seen that. It's not what I've been trying to do. Rather than overriding the message I simply want my application to read Errors.properties just like tapestry does it. On 7/11/07, Do

Re: T5: How to retrieve message from default Errors.properties

2007-07-11 Thread Adam Zimowski
Thanks, but I've seen that. It's not what I've been trying to do. Rather than overriding the message I simply want my application to read Errors.properties just like tapestry does it. On 7/11/07, Donyee <[EMAIL PROTECTED]> wrote: You can find it here! http://wiki.apache.org/tapestry/Tapestry5How

Re: T5: How to retrieve message from default Errors.properties

2007-07-11 Thread Donyee
You can find it here! http://wiki.apache.org/tapestry/Tapestry5HowToOverrideTheDefaultErrorMessageBanner 2007/7/11, Adam Zimowski <[EMAIL PROTECTED]>: Okay, I still don't know a "Tap5" way of doing this, so this works, although that's an ugly hack: Template: Page Class: public String getBan

Re: T5: How to retrieve message from default Errors.properties

2007-07-10 Thread Adam Zimowski
Okay, I still don't know a "Tap5" way of doing this, so this works, although that's an ugly hack: Template: Page Class: public String getBanner() { if(_unknownError) { return "Unknown Error"; } else { return getDefaultBanner(); }

T5: How to retrieve message from default Errors.properties

2007-07-09 Thread Adam Zimowski
Hi, In my page class I'd like to retrieve the original value for default-banner ("You must correct the following errors before you may continue.") which is stored in Errors.properties in tapestry-core.jar. I'd like to have this String accessible to my page class as a property. Is there a field an