Re: 4.1 programmatically define message key

2007-06-07 Thread Nick Westgate
Oops. Ognl method calls need the full name: ognl:messages.getMessage('message.' + value) Cheers, Nick. Paul Stanton wrote: I couldn't get the ognl call to work. I got the exception: Method "message" failed for object [EMAIL PROTECTED] java.lang.NoSuchMethodException message(java.lang.Stri

Re: 4.1 programmatically define message key

2007-06-07 Thread Paul Stanton
I couldn't get the ognl call to work. I got the exception: Method "message" failed for object [EMAIL PROTECTED] java.lang.NoSuchMethodException message(java.lang.String) Could be a 4.1.1 thing vs 4.1.2 getMessages().getMessage(String) in my java class works however, so I'll use that. Nick

Re: 4.1 programmatically define message key

2007-06-07 Thread Paul Stanton
Thanks guys. Nick Westgate wrote: I'm not working with T4, but if you control "value" carefully: ognl:messages.message('message.' + value) Cheers, Nick. Kolesnikov, Alexander GNI wrote: I would actually have a method in the page class to retrieve this message, but I wonder if something like

Re: 4.1 programmatically define message key

2007-06-07 Thread Nick Westgate
I'm not working with T4, but if you control "value" carefully: ognl:messages.message('message.' + value) Cheers, Nick. Kolesnikov, Alexander GNI wrote: I would actually have a method in the page class to retrieve this message, but I wonder if something like this will work: ? -Original

RE: 4.1 programmatically define message key

2007-06-07 Thread Kolesnikov, Alexander GNI
I would actually have a method in the page class to retrieve this message, but I wonder if something like this will work: ? -Original Message- From: Paul Stanton [mailto:[EMAIL PROTECTED] Sent: 07 June 2007 09:19 To: Tapestry users Subject: 4.1 programmatically define message key Hi