Hi,
I have a form with a SelectItem that I'm populating manually using a LinkedHashMap:
The form is displayed on the page, but the SelectItem does nothing, i.e. when I click on it, the drop-down does not appear...
My form also contains other items (a few check boxes) and they behave properly...
Best,
Michał
I have a form with a SelectItem that I'm populating manually using a LinkedHashMap:
Code:
final DynamicForm form = new DynamicForm(); final SelectItem geneBox = new SelectItem( "gene", "Gene" ); final LinkedHashMap<String, String> valueMap = new LinkedHashMap<String, String>(); valueMap.put( "1", "Item 1" ); valueMap.put( "2", "Item 2" ); valueMap.put( "3", "Item 3" ); // ... geneBox.setValueMap( valueMap ); form.setFields( geneBox );
My form also contains other items (a few check boxes) and they behave properly...
Best,
Michał
Comment