Thanks for the reply - however some aspects of the panel are generated
dynamically based on the selection
eg, a dropdown for "Number of textfields" - if you choose 3, it adds 3 to
the panel then puts it into the page with ajax.
So I dont think this will work.
I could perhaps wrap these added fields in their own form and nest that with
its own visitor - just feels a bit nasty.
Timo Rantalaiho wrote:
>
> On Wed, 20 Aug 2008, Ned Collyer wrote:
>> In the form I have a AjaxFormComponentUpdatingBehavior which adds another
>> panel into the form when certain conditions are met. This new panel has
>> form fields.
>>
>> The problem is - the items in the new panel the visitor during the ajax
>> request.
>>
>> They do when I refresh the entire page.
>>
>> How can I get the form visitor to be applied to these fields during an
>> ajax
>> request?
>
> Add the new Panel always, but toggle its visibility in the
> ajax event handler. Or move the visibility logic in the
> isVisible() method of the Panel:
>
> @Override
> public boolean isVisible() {
> return certainConditionsAreMet();
> }
>
> Best wishes,
> Timo
>
> --
> Timo Rantalaiho
> Reaktor Innovations Oy <URL: http://www.ri.fi/ >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/how-to-use-AjaxRequestTarget-in-conjunction-with-a-FormComponent.AbstractVisitor--tp19082965p19083160.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]