struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jose L Martinez-Avial <jlm...@gmail.com>
Subject Escape expression in dynamic attribute in a tag
Date Fri, 30 Aug 2013 00:15:54 GMT

> Hi all,
>    I'm pretty sure this is just a silly question, but I haven't
> been able to find anything. I have the following tag with some dynamics
> attribues:
> 
> <s:textfield name="userName3"
>    dojoType="dijit.form.FilteringSelect"
>    theme="simple"
>    store="comboStore"
>    sId="UserSelect2"
>    id="UserSelect2"
>    searchAttr="userNamesKey"
>    pageSize="25"
>    autoComplete="false" />
> 
>    I need to add the attribute queryExpr="*\${0}*" to the resulting
> html. The problem is that if I just put that attribute in the tag, I got
> the following result:
> 
> <input type="text" name="userName3" value="" id="UserSelect2"
> queryExpr="*0*" dojoType="dijit.form.FilteringSelect" store="comboStore"
> autoComplete="false" pageSize="25" jsId="UserSelect2"
> searchAttr="userNamesKey"/>
> 
>    Obviously, it is trying to parse the expression in queryExpr.
> Any suggestion about how I can escape it?
> 
> Thanks
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message