Dude,
Check to see if you put the commandButton tag inside the form tag. This is an 
issue that took me a week to find out!
Doug


-----Original Message-----
From: Travis Reeder [mailto:[EMAIL PROTECTED]
Sent: Mon 2/21/2005 6:31 PM
To: MyFaces Discussion
Subject: commandButton and onclick, does not submit properly
 
If I use this:

<h:commandButton id="submit" action="#{adminBean.doStuff}" 
value="#{bundle['form.continue']}" onclick="hideAndWait(this)"/>

The form submits but the action never gets executed, just returns back 
to same page.

If I use this:

<h:commandButton id="submit" action="#{adminBean.doStuff}" 
value="#{bundle['form.continue']}"/>

The action gets executed. 

Is there a reason for this or is this bug material?

-- 
Travis Reeder
Ecommstats Web Analytics
www.ecommstats.com


<<winmail.dat>>

Reply via email to