You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Tim Hughes <th...@troglobyte.com> on 2009/09/24 19:18:36 UTC
Palette Behaviour Problems
I'm using a Palette to assign multiple "Category" objects to a
"Document". When I select a Category, the Palette operates correctly
on-screen, but:
1) in debug, the selected choice is ALWAYS the first item in the
"allCategories" list
2) the Category does not seem to get assigned to the Document object
I'm overriding newRecorderComponent in my Palette (code below). What
am I doing wrong here?
final Palette...
{
@Override
protected Recorder newRecorderComponent()
{
final Recorder recorder = new Recorder("recorder", this);
recorder.setOutputMarkupId( true );
recorder.add(new AjaxFormComponentUpdatingBehavior
("onchange")
{
@Override
protected void onUpdate( AjaxRequestTarget
ajaxRequestTarget)
{
selectedCategory.addCategory((Category)
recorder.getSelectedChoices().next());
}
});
return recorder;
}
};
Thanks!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Palette Behaviour Problems
Posted by Tim Hughes <th...@troglobyte.com>.
I'm using a Palette to set "Category" objects to a "Document". The
Palette operates correctly on-screen, but:
1) in debug, selected choice is ALWAYS the 1st item in the list
2) the Category does not get assigned to the Document object
I'm overriding newRecorderComponent in my Palette (code below).
final Palette...
{
@Override
protected Recorder newRecorderComponent()
{
final Recorder recorder = new Recorder("recorder", this);
recorder.setOutputMarkupId( true );
recorder.add(new AjaxFormComponentUpdatingBehavior
("onchange")
{
@Override
protected void onUpdate( AjaxRequestTarget
ajaxRequestTarget)
{
selectedCategory.addCategory((Category)
recorder.getSelectedChoices().next());
}
});
return recorder;
}
};
Thanks!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org