Hello, I want the user to choose Code and Description. But I can only let the user choose Code or the Description by the PropertySelection. Is there any component similar to PropertySelection that I can use for this purpose, so that user can see Code and Description? Some code example would be great help for me.
Regards Naz My current code looks like: .html <tr> <td width="1%" nowrap>Address Type: </td> <td width="99%"> <select jwcid="addrType"> <option value="0">Postal</option> <option value="1">Street</option> </select> </td> </tr> .page <property-specification name="addrType" type="java.lang.String" /> <component id="addrType" type="PropertySelection"> <binding name="model" expression="availAddrType"></binding> <binding name="value" expression="AddrType"></binding> </component> .java public abstract String getAddrType(); public abstract void setAddrType(String addrType); public IPropertySelectionModel getAvailAddrType() { String[] addrTypeArray = EfiAddrTypeDAO.getActiveEfiAddrTypeDescrList().toArray(new String[0]); return new StringPropertySelectionModel(addrTypeArray); } -- View this message in context: http://www.nabble.com/T3%3A-PropertySelecton-tf4264534.html#a12136626 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]