I am trying to use either ComboBoxItem or SelectItem with static data (entered by filling valueMap) in my form (which also contains 3 sections)
While Google Chrome shows the combo-box, but there is no data.
As soon as I open the url in IE.. it shows all the data from valueMap.
Any pointers to this behaviour?
My code is as simple as it can get >>
While Google Chrome shows the combo-box, but there is no data.
As soon as I open the url in IE.. it shows all the data from valueMap.
Any pointers to this behaviour?
My code is as simple as it can get >>
Code:
final SelectItem getTasks = new SelectItem("getTasks");
getTasks .setTitle("Get tasks from queue ");
LinkedHashMap<String, String> valueMap = new LinkedHashMap<String, String>();
valueMap.put("new", "New");
valueMap.put("active", "Active");
valueMap.put("revisit", "Revisit");
valueMap.put("fixed", "Fixed");
valueMap.put("delivered", "Delivered");
valueMap.put("resolved", "Resolved");
valueMap.put("reopened", "Reopened");
getTasks.setValueMap(valueMap);
SectionItem qTasksSection = new SectionItem();
qTasksSection.setDefaultValue("Queue Tasks");
qTasksSection.setSectionExpanded(false);
qTasksSection.setItemIds("getTasks");
form.setFields(qTasksSection,getTasks);
Comment