Isomorphic,
I'm trying to implement a mechanism where the UI (consisting of multiple forms bound by ValuesManager) state need to be saved in a database and then restored when necessary. I store the values as String in the database. I store 'true' or 'false' for CheckBoxItem. But when I pass the Map as is with strings to ValuesManager.setValues(map), checkboxitems are not set as expected. I tried overriding setValue(..) all possible combinations for ValuesManager,DynamicForm, FormItem..nothing seems to work. How do I achieve this?
Also another observation, I have a valuesmanager set on VLayout (which manages some forms in the layout). When I invoke getMembers() on the VLayout.getValuesManger() it throws an exception that ClassCastException: VLayout cannot be cast to DynamicForm. I'm not casting anything here, internally getMembers on a valuesmanager defined on a layout throws this exception.Is this a bug?
Thanks.
I'm trying to implement a mechanism where the UI (consisting of multiple forms bound by ValuesManager) state need to be saved in a database and then restored when necessary. I store the values as String in the database. I store 'true' or 'false' for CheckBoxItem. But when I pass the Map as is with strings to ValuesManager.setValues(map), checkboxitems are not set as expected. I tried overriding setValue(..) all possible combinations for ValuesManager,DynamicForm, FormItem..nothing seems to work. How do I achieve this?
Also another observation, I have a valuesmanager set on VLayout (which manages some forms in the layout). When I invoke getMembers() on the VLayout.getValuesManger() it throws an exception that ClassCastException: VLayout cannot be cast to DynamicForm. I'm not casting anything here, internally getMembers on a valuesmanager defined on a layout throws this exception.Is this a bug?
Thanks.
Comment