Wednesday, July 15, 2015
How to set dsp value in dropdown option value in atg?
The values which are retrieved from the droplet can be set as the <option value> by <dsp:option paramvalue="element">
<dsp:select name="carName" bean="CarsFormHandler.car">
<dsp:droplet name="/atg/dynamo/droplet/ForEach">
<dsp:param name="array" bean="CarsComponent.cars" />
<dsp:oparam name="output">
<dsp:option paramvalue="element">
<dsp:valueof param="element" />
</dsp:option>
</dsp:oparam>
</dsp:droplet>
</dsp:select>
<dsp:select name="carName" bean="CarsFormHandler.car">
<dsp:droplet name="/atg/dynamo/droplet/ForEach">
<dsp:param name="array" bean="CarsComponent.cars" />
<dsp:oparam name="output">
<dsp:option paramvalue="element">
<dsp:valueof param="element" />
</dsp:option>
</dsp:oparam>
</dsp:droplet>
</dsp:select>
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment