Re: Update FeedbackPanel from AbstractAjaxBehavior

2011-12-15 Thread Alec Swan
I'll give it a try. Thanks! On Thu, Dec 15, 2011 at 5:06 PM, Dan Retzlaff wrote: > Gotcha. Sorry for not answering your actual question. :) > > The ExternalLink navigates the browser to the given URL which is why you're > seeing the response. AJAX behaviors are designed to be invoked from > JavaS

Re: Update FeedbackPanel from AbstractAjaxBehavior

2011-12-15 Thread Dan Retzlaff
Gotcha. Sorry for not answering your actual question. :) The ExternalLink navigates the browser to the given URL which is why you're seeing the response. AJAX behaviors are designed to be invoked from JavaScript. For example, AjaxEventBehavior renders Javascript into "onclick" attributes or whatev

Re: Update FeedbackPanel from AbstractAjaxBehavior

2011-12-15 Thread Alec Swan
The click on the link is intercepted and a prompt is shown using jQuery. The user fills in the prompt and clicks OK which redirects to the original link href. So, I need to have a stable URL that I can invoke from jQuery and have the behavior execute. Maybe it's possible to do this with AjaxLink,

Re: Update FeedbackPanel from AbstractAjaxBehavior

2011-12-15 Thread Dan Retzlaff
Is there a reason you're avoiding AjaxLink? Its onClick gives you the AjaxRequestTarget which you can use to render the feedback panel. On Thu, Dec 15, 2011 at 3:24 PM, Alec Swan wrote: > Hello, > > I have an AbstractAjaxBehavior which is invoked by clicking on a link. > The behavior needs to wr

Update FeedbackPanel from AbstractAjaxBehavior

2011-12-15 Thread Alec Swan
Hello, I have an AbstractAjaxBehavior which is invoked by clicking on a link. The behavior needs to write a message to FeedbackPanel upon completion. I wasn't able to access AjaxRequestTarget from AbstractAjaxBehavior so I switched to using AbstractDefaultAjaxBehavior. I implemented AbstractDefaul