Re: Remove components from AjaxRequestTarget

2014-11-24 Thread Andre Camilo
Hey,

that worked, thanks :)

On 24-11-2014 12:02, Martin Grigorov wrote:

Hi,

You can
use org.apache.wicket.ajax.AjaxRequestTarget.IListener#onBeforeRespond(Map,
AjaxRequestTarget) and remove entries from the map.
See
https://github.com/apache/wicket/blob/master/wicket-core/src/test/java/org/apache/wicket/ajax/GlobalUpdateAjaxAttributesTest.java#L40
for how to setup.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Mon, Nov 24, 2014 at 1:47 PM, Andre Camilo <
andre.cam...@premium-minds.com<mailto:andre.cam...@premium-minds.com>> wrote:



Hi all,

I'm trying to create a component that has better Ajax support for
ListViews with Form components. I'm doing this by making diffs on the List
for each ajax request and reordering the elements with javascript.

Now I'm trying to remove my component from AjaxRequestTarget beforeRender
because of the "ajax repeater" exception.

I know I have alternatives to *target.remove(ajaxListView)*, but wouldn't
this be a good thing?
The ability to remove components from AjaxResponse at certain stage in the
rendering process?

Thanks :)

--

André Camilo
Software Architect

Premium Minds
Av. Marquês de Tomar nº69, 1º Andar
1050-154 Lisboa
www.premium-minds.com<http://www.premium-minds.com><http://www.premium-minds.com/><http://www.premium-minds.com/>

Geral: +351 217 817 555
Tlm: +351 914 515 010
andre.cam...@premium-minds.com<mailto:andre.cam...@premium-minds.com><mailto:andre.cam...@premium-minds.com><mailto:andre.cam...@premium-minds.com>







--

André Camilo
Software Architect

Premium Minds
Av. Marquês de Tomar nº69, 1º Andar
1050-154 Lisboa
www.premium-minds.com<http://www.premium-minds.com/>

Geral: +351 217 817 555
Tlm: +351 914 515 010
andre.cam...@premium-minds.com<mailto:andre.cam...@premium-minds.com>


Remove components from AjaxRequestTarget

2014-11-24 Thread Andre Camilo
Hi all,

I'm trying to create a component that has better Ajax support for ListViews 
with Form components. I'm doing this by making diffs on the List for each ajax 
request and reordering the elements with javascript.

Now I'm trying to remove my component from AjaxRequestTarget beforeRender 
because of the "ajax repeater" exception.

I know I have alternatives to *target.remove(ajaxListView)*, but wouldn't this 
be a good thing?
The ability to remove components from AjaxResponse at certain stage in the 
rendering process?

Thanks :)

--

André Camilo
Software Architect

Premium Minds
Av. Marquês de Tomar nº69, 1º Andar
1050-154 Lisboa
www.premium-minds.com

Geral: +351 217 817 555
Tlm: +351 914 515 010
andre.cam...@premium-minds.com


Ajax exception handling on client side

2014-05-30 Thread Andre Camilo
Hi,

How can I handle exceptions occurred at the server side on the client side 
(with Ajax requests)?

At the client side, the javascript event ' /ajax/call/failure' is only fired 
when the connection fails (I think), but when the there's an unhandled 
exception on the server side, the events ' /ajax/call/success' and 
'/ajax/call/complete' fired with a redirect message.

I know I can just try...catch each ajax component, but I was looking for 
something more global to the whole application.

Can anyone help me?

--

André Camilo
Software Architect

Premium Minds
Av. Marquês de Tomar nº69, 1º Andar
1050-154 Lisboa
www.premium-minds.com

Geral: +351 217 817 555
Tlm: +351 914 515 010
andre.cam...@premium-minds.com


Release 6.4 - API break?

2012-12-18 Thread Andre Camilo
Hi all,

I just tried version 6.4 and the package org.apache.wicket.request.mapper 
disappeared... am I seeing something wrong?


--

André Camilo
Software Architect

Premium Minds
Av. Marquês de Tomar nº69, 1º Andar
1050-154 Lisboa
www.premium-minds.com

Geral: +351 217 817 555
Tlm: +351 914 515 010
andre.cam...@premium-minds.com