I had the same problem, look in your HTML Source Code the JSF is creating.
 
There in the onclick Function something like  clear_...() stands after your confirm Function.
 
Copy this clear_...() Function in your JSF page before the confirm Page, then I should work...
 
I don't know, what the problem is here, but it solved the problem
Does anybody know, what the problem could be?
 
-----Ursprüngliche Nachricht-----
Von: jeff [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 4. Januar 2006 10:26
An: MyFaces Discussion
Betreff: Re: Topic: How i can add a _javascript_ confirmation dialog to a button action ?

Unfornuately it does not work. Really strangely. I saved it as the pure html and it poped up a dialog, then if I click cancel, it works. But on the original jsp, it always call the backing bean's action even I clicked cancel!
Do you encounter this problem?

On 1/4/06, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote:
Hi!
Look at this wiki:
http://wiki.apache.org/myfaces/_javascript_WithJavaServceFaces

Regards,
Andy


-----Ursprüngliche Nachricht-----
Von: Legolas Woodland [mailto:[EMAIL PROTECTED] ]
Gesendet: Mittwoch, 4. Januar 2006 10:15
An: MyFaces Discussion
Betreff: Topic: How i can add a _javascript_ confirmation dialog to a
button action ?


Hi
How i can add a confirmation dialog to a button action ?
I mean when user press the delete button it shows a dialog box
(_javascript_) and ask him/her wether he/she is sure to procedd or not.
What about making this dialog localized and load its message from String
resource ? can we use localization into _javascript_?



______________________________________________________________________ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify your system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. ______________________________________________________________________

Reply via email to