OK, I changed the code as follows, and I'm getting a null on the
patentsPalette.getRecorderComponent() method.
Palette<Category> patentsPalette = new Palette<Category>
("categoryPalette", selected, allCategories, renderer, 10, false);
final Recorder recorder = patentsPalette.getRecorderComponent
();
recorder.add( new AjaxFormComponentUpdatingBehavior
( "onchange" ) {
@Override
protected void onUpdate ( AjaxRequestTarget
ajaxRequestTarget ) {
selectedDocumentModel.getObject().addCategory
((Category)recorder.getSelectedChoices().next());
}
});
All of this takes place in the constructor for my form.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org