Hi, I think you just need to write "%" instead of "$" in the promptMessage attribute.
Regards, Sitz der Gesellschaft / Corporate Headquarters: Lufthansa Technik AG, Hamburg, Registereintragung / Registration: Amtsgericht Hamburg HRB 56865 Vorsitzender des Aufsichtsrats / Chairman of the Supervisory Board: Stephan Gemkow Vorstand / Executive Board: August Wilhelm Henningsen (Vorsitzender/Chairman), Dr. Peter Jansen, Uwe Mukrasch, Dr. Thomas Stueger -----Ursprüngliche Nachricht----- Von: larryreed [mailto:larryr...@comcast.net] Gesendet: Mittwoch, 28. Oktober 2009 04:53 An: Struts Users Mailing List; Larry Reed Betreff: Re: i18n within dojo attribute It occurred to me to use an OGNL form to do this, but I am still having a challenge getting it to work. I've tried <s:textfield key="fieldName" dojoType="dijit.form.ValidationTextBox" promptMessage="${getText('fieldPrompt)}" /> This gets me past the first problem, but still doesn't work. I am getting message that getText must have a prefix in the default namespace. I'm not sure where to take it from there. Any suggestions? -- Larry ----- Original Message ----- From: "larryreed" <larryr...@comcast.net> To: "user" <user@struts.apache.org> Sent: Friday, October 23, 2009 4:58:42 PM GMT -08:00 US/Canada Pacific Subject: i18n within dojo attribute I have a text field which I would like to 'dojo-ize' by turning it into a ValidationTextBox. One of the parameters, 'promptMessage' is a text message that is put up as a help when the focus enters the text box. My problem is that I would like to internationalize this message. My thought was to place a struts2 text tag as the value of this attribute. However, placing the tag inside the attribute quotes quotes the tag. Here is what I did: <s:textfield key="fieldName" dojoType="dijit.form.ValidationTextBox" promptMessage="Enter field value" /> This works, but the message is in English. To internationalize it, I tried this: <s:textfield key="fieldName" dojoType="dijit.form.ValidationTextBox" promptMessage="<s:text name='fieldPrompt' />" /> But this quotes the angle brackets and the result is: .... promptMessage="<s:text name='username' />" I've tried a couple of other variations that do not work either. Any suggestions as to how I might do this? -- Larry --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org