Re: On component added to ajax request target

2011-10-04 Thread Nelson Segura
I did something in the order of what you suggested: Created a new AjaxRequestTarget sub class public class MyAjaxRequestTarget extends AjaxRequestTarget { public void addComponent(Component component) { super.addComponent(component); // see if this component has related

On component added to ajax request target

2011-09-30 Thread Nelson Segura
I wonder if anyone has ideas on how to add a component to an AjaxRequestTarget if another related component is added to it. I am thinking about my Ajax List, there are several ways it can be added to a request target: sorting, filtering, paging, etc. I have another components that displays data

Re: On component added to ajax request target

2011-09-30 Thread Dan Retzlaff
You could override WebApplication#newAjaxRequestTarget to add a listener to each target. You can look at AjaxRequestTarget#getComponents() to see if your list is there, and maybe add more stuff. Sounds messy though, since that's an application-wide listener. Maybe you could generate an event if