{
super(id);
add(new ComponentFeedbackPanel("messages", this));
add(new FormInputBorder("checkinDateBorder", "Check in date", new DateField("checkinDate").setRequired(true), new PropertyModel(booking, "checkinDate"), false));
add(new FormInputBorder("checkoutDateBorder", "Check out date", new DateField("checkoutDate").setRequired(true), new PropertyModel(booking, "checkoutDate"), false));
add(new FormInputBorder("bedsBorder", "Room Preference", new DropDownChoice("beds", bedOptions, new IChoiceRenderer()
{
public Object getDisplayValue(Object object)
{
return bedOptionsDisplayValues.get(((Integer) object - 1));
}
public String getIdValue(Object object, int index)
{
return object.toString();
}
}
).setRequired(true), new PropertyModel(booking, "beds")));
add(new FormInputBorder("smokingBorder", "Smoking Preference", new RadioChoice("smoking", Arrays.asList(new Boolean[] {true, false}), new IChoiceRenderer()
{
public Object getDisplayValue(Object object)
{
if (new Boolean(true).equals(object))