Abdullah Jibaly wrote:

>Hi all,
>
>I want to have two cancel buttons in a form, however I run into the problem of 
>not being able to distinguish which one is being pressed (one cancels the 
>whole operation and the other returns to the first screen). The reason is that 
>they both use the Globals.CANCEL_KEY parameter. What is the best way to get 
>around this?
>
There sure is.  Have one button set one value, and the other button set
another.  In your Action, look at which value you've been passed and act
accordingly.  So replace your Globals.CANCEL_KEY with
Globals.CANCEL_RETURN and Globals.CANCEL_CANCEL or some such and that
should work. 
Brandon

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

Reply via email to