Using 2.5.2011-05-08-EVAL and
A DataSource definition file with a
DataSourceField definition which uses an optionDataSource
where code and name are defined as DataSourceFields to be
displayed dynamically in a SelectItem as options
When the user selects values like 0, 1, 2, 3 from the pickers inside of the selectItem,the value will be inserted in the textfield of the selectitem.
But the inserted value differs on Firefox and IE:
on Firefox it will display the numbers 0, 1, 2, 3 - thats fine.
on IE 8, there will be displayed 0.00 , 1.00, 2.00, 3.00 - why ?
Using it with a clientOnly DataSource ( without an optionDataSource and static valueMap), this problem doesn't appeares.
Changing the types of the fields in the optionDataSource from integer to text has no effect.
We are using Oracle 10 db.
Do you have any idea, from where this difference in Firefox and IE come? Seems like it is related to the usage of optionDataSource.
A DataSource definition file with a
DataSourceField definition which uses an optionDataSource
where code and name are defined as DataSourceFields to be
displayed dynamically in a SelectItem as options
When the user selects values like 0, 1, 2, 3 from the pickers inside of the selectItem,the value will be inserted in the textfield of the selectitem.
But the inserted value differs on Firefox and IE:
on Firefox it will display the numbers 0, 1, 2, 3 - thats fine.
on IE 8, there will be displayed 0.00 , 1.00, 2.00, 3.00 - why ?
Using it with a clientOnly DataSource ( without an optionDataSource and static valueMap), this problem doesn't appeares.
Changing the types of the fields in the optionDataSource from integer to text has no effect.
We are using Oracle 10 db.
Do you have any idea, from where this difference in Firefox and IE come? Seems like it is related to the usage of optionDataSource.
Code:
ListGridField code = new ListGridField("code"); code.setWidth(40); ListGridField name = new ListGridField("name"); name.setWidth(300); SelectItem item = new SelectItem("integer"); item.setPickListFields(code, name); item.setPickListWidth(400); item.setPickListHeaderHeight(0); item.setAllowEmptyValue(false); item.setMultiple(true); LinkedHashMap<String, Integer> map = new LinkedHashMap(); map.put("0", 0); map.put("1", 1); map.put("300", 300); item.setValueMap(map); testForm.setItems(item);
Comment