Re: For s:textfield tag how to get value for title attribute from resource bundle.

2009-07-14 Thread wkbutler
Well I took Dave's advice from another thread (http://www.nabble.com/-S2--Dynamic-Text-Tag-Attributes-td19436146.html#a19436146) and just implemented this in my action. Oh well. Thanks guys - -- View this message in context: http://www.nabble.com/For-s%3Atextfield-tag-how-to-get-value-for-ti

Re: For s:textfield tag how to get value for title attribute from resource bundle.

2009-07-13 Thread wkbutler
Yep I did find that, thanks. What I've realized is that I have the OGNL double-evaluation problem. I'm really trying to get this result for the s:textfield label: label="%{getText('%{formQuestion.question.questionKey}')}" which of course is not legal, but I guess I'm somewhat su

Re: For s:textfield tag how to get value for title attribute from resource bundle.

2009-07-13 Thread Dave Newton
wkbutler wrote: Bottom line was that the resource props need to be packaged in the same package as the action class, with the same name. getText calls will follow the hierarchy noted in the docs: http://struts.apache.org/2.1.6/docs/localization.html Dave -

RE: For s:textfield tag how to get value for title attribute from resource bundle.

2009-07-13 Thread wkbutler
OK - I got getText() working via checking out the code in com.opensymphony.xwork.util.LocalizedTextUtil , and the StrutsInAction book has a pretty good section this. Bottom line was that the resource props need to be packaged in the same package as the action class, with the same name. I preferr

RE: For s:textfield tag how to get value for title attribute from resource bundle.

2009-07-10 Thread wkbutler
Is this still the only way to get i18n translatations into a struts tag from the resource bundle? I'm trying to get a label on some struts fields, i.e. with a messageSource defined as classpath:/form

Re: For s:textfield tag how to get value for title attribute from resource bundle.

2008-02-27 Thread Dave Newton
--- Maxx <[EMAIL PROTECTED]> wrote: > VJ22 <[EMAIL PROTECTED]> wrote: >> Thanks.This solution worked but can u tell me a way >> where in I dont have to use OGNL because I dont >> want dependancy on webworks for JSP's. where the "key" attribute is both the name of the field and the key in the re

Re: For s:textfield tag how to get value for title attribute from resource bundle.

2008-02-27 Thread Maxx
On Wed, Feb 27, 2008 at 10:48 AM, VJ22 <[EMAIL PROTECTED]> wrote: > Hi, > Thanks.This solution worked but can u tell me a way where in I dont have to > use OGNL because I dont want dependancy on webworks for JSP's. I think you can't. WebWork ended few months ago, and went to be replaced by XWor

RE: For s:textfield tag how to get value for title attribute from resource bundle.

2008-02-27 Thread VJ22
Hi, Thanks.This solution worked but can u tell me a way where in I dont have to use OGNL because I dont want dependancy on webworks for JSP's. Vijay LEONARD Julien (Consulting for ACCOR Hotels) wrote: > > Try this : > > cssClass="fieldGreen validate-alpha " value="" > title="%{getText('categ

RE: For s:textfield tag how to get value for title attribute from resource bundle.

2008-02-22 Thread LEONARD Julien (Consulting for ACCOR Hotels)
Try this : http://struts.apache.org/2.0.11/docs/localization.html Julien -Message d'origine- De : VJ22 [mailto:[EMAIL PROTECTED] Envoyé : vendredi 22 février 2008 16:26 À : user@struts.apache.org Objet : For s:textfield tag how to get value for title attribute from resource bundle.