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="&lt;s:text name='username' /&gt;" 

I've tried a couple of other variations that do not work either. Any 
suggestions as to how I might do this? 

-- Larry 

Reply via email to