Hi,

there are multiple things going wrong here:

- you didn't read Palette's javadoc:
* <strong>Ajaxifying the palette</strong>: If you want to update a Palette with an * {@link AjaxFormComponentUpdatingBehavior}, you have to attach it to the contained * {@link Recorder} by overriding {@link #newRecorderComponent()} and calling
 * {@link #processInput()}:

- the following example code was bogus (my bad) and should read:

    Palette palette=new Palette(...) {
        protected Recorder newRecorderComponent()
        {
             Recorder recorder=super.newRecorderComponent();
             recorder.add(new AjaxFormComponentUpdatingBehavior("change") {
                protected void onUpdate(AjaxRequestTarget target) {
                    processInput(); // let Palette process input too
                    ...
                }
            });
             return recorder;
        }
    }

- as written in the Javadoc too, you have to use unique ids, so your example has to be changed to use an id for the choices:

IChoiceRenderer<TxNewAccount> renderer = new ChoiceRenderer<TxNewAccount>("newAccName", "newAccIntAcc");

I'll improved the Javadoc, please let us know whether this fixes your issue.

Have fun
Sven




On 27.04.2016 08:32, PDiefent wrote:
Hi Sven,
thanks for your reply. Please find a QickStart attached.
Peter
palette.7z
<http://apache-wicket.1842946.n4.nabble.com/file/n4674453/palette.7z>

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Palette-AJAX-functionality-tp4674433p4674453.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to