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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to