Excellent - thankyou all for your responses!
I've gone for an inner class in the end and it's all nice and simple and
easy to understand, here's my snippet
List ebillingCharges =
enquiryController.getAvailableFixedCharges("C", "E", "");
DropDownChoice charges = new DropDownChoice(
"fixedChargesChoice",
new PropertyModel(this, "selected"),
ebillingCharges,
new IChoiceRenderer<FixedCharges>(){
@Override
public Object getDisplayValue(FixedCharges fixedCharges)
{
return fixedCharges.getDescription() + " - " +
fixedCharges.getValue();
}
public String getIdValue(FixedCharges fixedCharges, int
index)
{
return fixedCharges.getFchargeCode();
}
});
form.add(charges);
---
Many thanks for all your help!
--
View this message in context:
http://www.nabble.com/DropDownChoice-confusion%21-tp22621465p22621756.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]