I'm having issues with nested properties in DataTable filters. For example;
columns.add( new TextFilteredPropertyColumn<User,String>( new
Model<String>("Active"), "subtype.prop", "subtype.prop" ) );
columns.add( new ChoiceFilteredPropertyColumn<User,Boolean>( new
Model<String>("Active"), "subtype.bool", "subtype.bool", booleanChoices ) );
Referencing direct properties works, but for nested properties; displaying
works, sorting works, pagination works. But any changes to the filters
(either text or choice) causes errors similar to;
org.apache.wicket.WicketRuntimeException: Null object returned for
expression: subtype.bool for setting value: true on: {}
at
org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:133)
at
org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:169)
at
org.apache.wicket.Component.setDefaultModelObject(Component.java:3114)
at
org.apache.wicket.markup.html.form.FormComponent.updateModel(FormComponent.java:1168)
at
org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:227)
at
org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:514)
at
org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:493)
at
org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:493)
at
org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:493)
Is this an unsupported function of filters? I don't understand how the
properties can be display or sorted, but fails when updating the filter
models.
Any help would be appreciated.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Nested-properties-in-DataTable-Filters-tp2332638p2332638.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]