ideally, most of the time cancelling will not even require any form submit,
you can just use javascript like onclick="javascript.func(..)"

William Huang
Product Development Team

IntraLinks, Inc.
99 Bedford Street
Boston, MA 02111
t 617 648 3511
f 617 648 3550
[EMAIL PROTECTED]
                                                                           
             "Julian Ray"                                                  
             <[EMAIL PROTECTED]                                             
             .com>                                                      To 
                                       "'MyFaces Discussion'"              
             07/24/2006 04:42          <[email protected]>          
             PM                                                         cc 
                                                                           
                                                                   Subject 
             Please respond to         RE: how do you folks handle a       
                 "MyFaces              "Cancel" button?                    
                Discussion"                                                
             <[EMAIL PROTECTED]                                             
                 ache.org>                                                 
                                                                           
                                                                           
                                                                           




Add immediate="true" to the command button. This will by pass any updates.


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, July 24, 2006 4:37 PM
To: MyFaces Discussion
Subject: how do you folks handle a "Cancel" button?






hello to everyone,

I have a form that displays detail data from a backing bean.

The same bean supplies properties for an update page.

The update page has a Cancel button and when selected should return the
user
to the detail page with no changes saved.

Simple enough use, but when the Cancel button is selected, the backing bean
is updated and the detail page shows modified data.

How do you folks handle similar situations?

Thanks in advance for your help.
Tom




This message is intended for the recipient only and is not meant to be
forwarded or distributed in any other format. This communication is for
informational purposes only.  It is not intended as an offer or
solicitation
for the purchase or sale of any financial instrument, or security, or as an
official confirmation of any transaction.  Putnam does not accept purchase
or redemptions of securities, instructions, or authorizations that are sent
via e-mail.   All market prices, data and other information are not
warranted as to completeness or accuracy and are subject to change without
notice.  Any comments or statements made herein do not necessarily reflect
those of Putnam, LLC (DBA Putnam Investments) and its subsidiaries and
affiliates.  If you are not the intended recipient of this e-mail, please
delete the e-mail.


Disclaimer: This electronic mail and any attachments are confidential and may 
be privileged. If you are not the intended recipient, please notify the sender 
immediately by replying to this email, and destroy all copies of this email and 
any attachments. Thank you.

Reply via email to