Hmm. I dug around a bit and Palette is a Panel rather than a form
component. It however allows access to an internal FormComponent
named recorder. So you can:
palette.getRecorderComponent().add(
new OnChangeAjaxBehavior(){
public void onUpdate(AjaxRequestTarget req){}
}
);
But that's pretty much off the top of my head, I haven't set up a page
and tested it.
Scott
On Thu, Jan 7, 2010 at 9:57 AM, [email protected]
<[email protected]> wrote:
> But how can you inject previously selected items back into the selected
> menu? The only thing i can see is inserting items into the list as a whole
> which puts them into the available menu.
>
> can you give me a code snippet and better explanation of what you mean?
>
> Original Message:
> -----------------
> From: Scott Swank [email protected]
> Date: Thu, 7 Jan 2010 09:49:41 -0800
> To: [email protected]
> Subject: Re: OnChangeAjaxBehavior with palette
>
>
> You could add an AjaxFormComponentUpdatingBehavior to your palette so
> that your selections are pushed back to the underlying model.
>
> On Thu, Jan 7, 2010 at 9:40 AM, [email protected]
> <[email protected]> wrote:
>> any help? i cant be the only person to have tried this.
>>
>> Original Message:
>> -----------------
>> From: [email protected] [email protected]
>> Date: Wed, 6 Jan 2010 14:13:50 -0500
>> To: [email protected]
>> Subject: OnChangeAjaxBehavior with palette
>>
>>
>> i'm trying using a text field to search through the items available to be
>> selected in a palette. As of right now, it searches correctly but if I add
>> items to the "selected" side of the palette and then search again, I lose
>> my previously selected choices.
>>
>> Is there anyway to only refresh the available menu and not the selected
>> menu?
>>
>> --------------------------------------------------------------------
>> mail2web.com – Enhanced email for the mobile individual based on
> Microsoft®
>> Exchange - http://link.mail2web.com/Personal/EnhancedEmail
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>>
>> --------------------------------------------------------------------
>> mail2web LIVE – Free email based on Microsoft® Exchange technology -
>> http://link.mail2web.com/LIVE
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
> --------------------------------------------------------------------
> mail2web LIVE – Free email based on Microsoft® Exchange technology -
> http://link.mail2web.com/LIVE
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]