On Thu, Sep 24, 2009 at 5:19 PM, Tim Hughes <thug...@troglobyte.com> wrote:
> Fernando: > > I thought that's what I was doing by overriding the newRecorderComponent > method. Is that not correct? > I didn't mean to say that. According to your piece of code, I thought you had created a new Recorder. You have the getter to ask for the Recorder. > > I made a change to the code (see below) and now it's storing Categories in > Documents, but: > 1) it's always the first Cat in the list of choices that gets set into a > Doc no matter which Cat I choose > 2) when reselecting a given Doc, it still has Cats but they don't reflect > in the Palette choices > > @Override > protected void onUpdate( AjaxRequestTarget ajaxRequestTarget) > { > > > selectedDocumentModel.getObject().addCategory((Category)recorder.getSelectedChoices().next()); > > } > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Fernando Wermus. www.linkedin.com/in/fernandowermus