I am trying to use ognl/getText to assign a placeholder attribute for a
s:textfield. I can not seem to get it to work. I am using struts 2.2.3.
e.g.
<s:textfield dojoType="dijit.form.ValidationTextBox" theme="simple"
placeholder="%{getText('placeHolder.Username')}" id="j_username"
name="j_username" cssStyle="width:180px" />
My hunch is that the placeholder field is not being evaluated . I am using dojo
with struts2 and would like to add placeholder attributes where necessary. I
don't want to use a s:text variable. That is kinda clumsy and a I may have to
do add a lot of placeholder attributes.
I know this a HTML5 feature but dojo has an implementation for non HTML5
browsers.
Any help would be greatly appreciated.
Steve