This is handled automatically based on the "value" parameter for the
tapestry object.
<select jwcid="@PropertySelection" value="ognl:myValue"
model="ognl:myValues" />
You can use an existing model, or implement IPropertySelectionModel
which Tapestry uses to translate values and the like.
Norman Franke
Answering Service for Directors, Inc.
www.myasd.com
On Aug 27, 2008, at 5:54 AM, Mohammad Irfan wrote:
Hi,
I have success in using Property selection component but I found a
problem. I'd like to ask, how can I set a selected value for the
Selection list?
So I can have this html output:
<select name="reportTypeSelection" id="reportTypeSelection">
<option value="0">CSV</option>
<option value="1">DBF</option>
<option value="2" selected>DELIM</option>
<option value="3">TXT</option>
<option value="4">XLS</option>
</select>
Thanks.
--
Mohammad Irfan
---
www.doktermaya.com
www.L-Ads.com (classifieds ads, iklan baris)
www.komplain.org (complain about product)
www.akarprima.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]