[Tapestry4] Tapestry的Select组件不能自定义 option的值?
lyo
2007-05-08
如果我使用 Select组件,里面 option中的 value是tapestry自动生成的?好像无法更改?
例如下面的: <select jwcid="@Select"> <span jwcid="@Foreach" source="ognl:sexType" value="ognl:currentSelectLabel" index="ognl:currentSelectIndex"> <option jwcid="@Option" selected="ognl:selection[currentSelectIndex]" label="ognl:currentSelectLabel"/> </span> </select> 生成的都是这个样子: <select name="select"> <option value="0">测试</option> <option value="1">测试3</option> <option value="2">测试33</option> </select> 里面的value我可以定义他的值么?而不是让 tapestry自动生成 |
|
tapestry
2007-05-09
参考PropertySelection组件
|