Hi Martin,

we have an solution, thanks for your help. Sort like your proposal. But an 
command that has to be executed.
This command will force to do the data manipulation before any markup changes. 
So markup changes won't be done if data manipulation gives exception. See 
example under:

public void execute(AjaxRequestTarget target) {
        try{
                executeAction(target); --> Do data manipulation here
                onActionSuccess(target);
        } catch(Exception e) {
            onActionFailure(target);
        }
}

Regards,

Frank

-----Original Message-----
From: Martin Makundi [mailto:[email protected]]
Sent: Thursday, April 09, 2009 4:48 PM
To: [email protected]
Subject: Re: How to manipulate an AjaxRequest

> It could work, but that's not what I want, because also after the exception 
> is thrown components could be added to the target.
> In that case I've to check on every add to target if an exception has 
> occurred. I prefer to do this on one place.

Maybe your exception handling could deal with this?

Would you like to show your code in order for us to have a closer view
on your particular situation?

**
Martin

>
>
> -----Original Message-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


The information contained in this communication is confidential, intended 
solely for the use of the individual or entity to whom it is addressed and may 
be legally privileged and protected by professional secrecy. Access to this 
message by anyone else is unauthorized. If you are not the intended recipient, 
any disclosure, copying, or distribution of the message, or any action or 
omission taken by you in reliance on it is prohibited and may be unlawful. 
Please immediately contact the sender if you have received this message in 
error. This email does not constitute any commitment from Cordys Holding BV or 
any of its subsidiaries except when expressly agreed in a written agreement 
between the intended recipient and Cordys Holding BV or its subsidiaries. 
Cordys is neither liable for the proper and complete transmission of the 
information contained in this communication nor for any delay in its receipt. 
Cordys does not guarantee that the integrity of this communication has been 
maintained nor that the communication is free of viruses, interceptions or 
interference. If you are not the intended recipient of this communication 
please return the communication to the sender and delete and destroy all copies.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to