You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "zou (JIRA)" <ji...@apache.org> on 2008/03/24 10:44:58 UTC
[jira] Commented: (WW-2505) Tag does not support Dojo specified
field name, like "dojoType"
[ https://issues.apache.org/struts/browse/WW-2505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43540#action_43540 ]
zou commented on WW-2505:
-------------------------
You can do like these:
First:
you at the text.ftl or password.ftl add these:
<#if parameters.dojoType?exists>
dojoType="${parameters.dojoType?html}"<#rt/>
</#if>
Next:
at your jsp do like these:
<s:textfield name="xxx" >
<s:param name="dojoType" value="%{'dijit.form.TextBox'}" />
</s:textfield>
that will be done.
> Tag does not support Dojo specified field name, like "dojoType"
> ---------------------------------------------------------------
>
> Key: WW-2505
> URL: https://issues.apache.org/struts/browse/WW-2505
> Project: Struts 2
> Issue Type: Improvement
> Components: Plugin - Dojo Tags
> Affects Versions: 2.0.9
> Reporter: James Y.J.
> Priority: Minor
>
> First of all, thank you guys for your great work. I like Struts2.
> Last night, I found I could not use my <s:textfield /> to generate HTML code like: <input type="text" length="10" name="grossIncome" dojoType="dijit.form.TextBox">.
> There is no field named "dojoType" in <s:textfield/>.
> It would be wonderful if I can use <s:textfield/> in this way:
> <s:textfield name="user.username">
> <s:add name="dojoType" value="dijit.form.TextBox" />
> </s:textfield>
> <s:add /> tag adds custom field to the genrated HTML.
> I am using 2.0.9 right now. Don't know whether 2.0.9+ already makes it possible.
> That will be the best.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.