Closed
Description
Matthew Sgarlata opened SPR-5931 and commented
The dojo framework creates form widgets using a syntax like this
<select dojoType="dijit.form.FilteringSelect"
id="setvaluetest2"
name="state1"
autoComplete="false"
invalidMessage="Invalid state name"
onChange="dojo.byId('oc1').value=arguments[0]"
As far as I can tell, it's impossible to do stuff like this with the Spring <form> tags because there is no way to specify non-standard HTML attributes. An approach I've used for my own custom tags is to add a catch-all attribute called "attributes" so the syntax would look something like
<form:select id="setvaluetest2" attributes='dojoType="dijit.form.FilteringSelect" invalidMessage="Invalid state name" ... etc
Attachments:
- SPR-5931-patch-draft.txt (4.54 kB)
Issue Links:
- Upgrade the Spring JSP tag libraries to JSP 2.0 [SPR-6114] #10782 Upgrade the Spring JSP tag libraries to JSP 2.0 ("depends on")
- form.tld - Add support for custom attributes [SPR-5873] #10543 form.tld - Add support for custom attributes ("is duplicated by")
Referenced from: commits 982ece5
1 votes, 3 watchers