Hi,
i have a form with a combobox:
private static final Integer[] tipologieLineeId = new Integer[]
{ 1, 2, 3, 5 };
private static final String[] tipologieLineeCaption = new String[]
{ "a", "b, "c", "d" };
...
...
ComboBox l = new ComboBox("Tipologia");
for (int x = 0; x < tipologieLineeId.length; x++) {
l.addItem(tipologieLineeId[x]
);
l.setItemCaption(tipologieLineeId[x]
, tipologieLineeCaption[x]
);
}
l.setNullSelectionAllowed(false);
l.setRequired(true);
l.setRequiredError("Inserire la tipologia della linea");
l.setImmediate(true);
i set it as required + not allow null selection.
When the form is submitted, the required settings is ignored! I can save data with an empty value.
If i transform the combo in a input text all works fine. ( but i need a combo! )
I tryed also to set a default value:
l.select(tipologieLineeId[0]
);
but also this attribute is ignored.
Anyone have a solution?
Thanks
Davide