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

Reply via email to