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]

Reply via email to