You could replace the original ajax request target with a new one:

AjaxRequestTarget newAjax = new AjaxRequestTarget(getPage());
getRequestCycle().setRequestTarget(newAjax);
newAjax.addComponent(table);

Martijn

On 3/28/08, Federico Fanton <[EMAIL PROTECTED]> wrote:
> Hi everyone!
>  I have an Ajax "editable table" made of rows of custom components similar to 
> AjaxEditableLabel.
>  It works fairly well, but sometimes I find myself trying to update the whole 
> table alongside a single row (because of business logic).. When this happens, 
> updating the table changes the row, so I get a "No page found for component" 
> exception. My question is: is there a way to inspect/alter the contents of 
> AjaxRequestTarget? If I could do this I'd remove the row from the AJAX 
> update, thus updating only the table and avoiding the problem..
>  I tried to override WebApplication.newAjaxRequestTarget(), but since every 
> "interesting" method of AjaxRequestTarget is final, I'm stuck :) Maybe it'd 
> be possible to "open" them up a bit to allow customisation?
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to