i used the
addressbook example and wanted to add “special” editor fields like in the
Grid Editor example .
When i extend the addressbook example with code from the grid editor example it does not work.
For Example using a Slider to edit a Number Value.
However when i use a seperate grid (not from the addressbook) example, a new one without a data source and just addColumn to create new columns, the same Code for the Slider to edit Number values works fine.
In the case where it doesnt work I dont get an error or anything, its just like i didn’t set the editor field.
Is there something going on in the background that i miss??
Thanks in advance
PS: i mean “setEditorField” and not “setEditableField”!
It’s hard to say what’s the problem without seeing some code. You could be setting the data source or something else in wrong order, or some other issue.
Ahh, I just found out that after re-setting the DataSource the editorField settings are rest, even if my other settings (like renderers, column orderings, …) are still there.
The single Editor Component was just to keep the sample code as small as possible.
The only problem was that using a new BeanItemContainer reset my previous configurations.