I think  onclick=" return checkPassword(this.form)" then return true
from your javascript function to submit, else false to cancle submit.


On Tue, 22 Feb 2005 11:29:21 -0600, Doug Ly <[EMAIL PROTECTED]> wrote:
>  
>  
> 
> Hi, 
> 
> I have a javascript to confirm the passwords are matched which will be
> executed on onclick event of a commandButton tag. 
> 
> <h:commandButton id="passwordSubmit" value="#{user.password}"
> onclick="checkPassword(this.form)" action="#{user.verify}"/> 
> 
>   
> 
> The problem is after onclick event, how can I call the event action in my
> javascript? 
> 
> Thanks 
> 
> --Doug 
> 
>

Reply via email to