Hi,
In that case you need something like:
IModel model = new Model<>(OrderPage.this
.getOrderController().order().shippingHeader()getShipMethod().getId());
IModel> models = new
ListModel(shipMethods.stream().map(ShipMethod::getId).collect(Collectors.toList()));
IChoiceRenderer renderer = new ICho
haha, sorry…here’s another pass:
So the objects that are in the list are called ShipMethod and it has a
“description” which I want to use for display, and an “id” which is the
thing I want stored in the Order object. But with the property model and
ChoiceRenderer as I have it, it’s expecting to p
Hi,
On Thu, May 5, 2016 at 2:28 AM, Lon Varscsak wrote:
> Hey all,
>
> Is there a way to have a DropDownChoice use a complex object (think ORM
> class) as it’s list, but get/set the Model’s value as the ID instead of the
> complex object?
>
> So for:
>
> new DropDownChoice<>(“shipMethod”, new P
Hey all,
Is there a way to have a DropDownChoice use a complex object (think ORM
class) as it’s list, but get/set the Model’s value as the ID instead of the
complex object?
So for:
new DropDownChoice<>(“shipMethod”, new PropertyModel<>(OrderPage.this
.getOrderController().order().shippingHeader(