what is bookingModel? what object is it and what does it extend? is it
an IModel?
-igor
On Fri, Apr 11, 2008 at 10:33 PM, nemo_08 <[EMAIL PROTECTED]> wrote:
>
> I am passing a list of RoomModel object to a DropDownChoice which I want to
> be set in my BookModel object after selection. My BookModel has a pair of
> get/set for a RoomModel class.
>
> The code looks like
>
> ArrayList list = new ArrayList(getRoomList());
> ChoiceRenderer renderer = new ChoiceRenderer("roomName","roomID");
> DropDownChoice roomDropDown = new DropDownChoice("roomlist", new
> PropertyModel(bookingModel,"room"), new Model(list), renderer);
> if(null!=selectedRoom)
> bookingModel.setRoom(selectedRoom);
> add(roomDropDown);
>
> The default selected choice comes perfectly but after I change the selection
> I get a nulll value for bookingModel.getRoom().
>
> Please help, I don't know where I am doing wrong. Should I try some other
> Model ? I have tried AbstractReadOnlyModel but with the same result.
> --
> View this message in context:
> http://www.nabble.com/DropDown-not-setting-the-object---pls-help-tp16645752p16645752.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]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]