myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manfred Geiler <manol...@apache.org>
Subject Re: document.form[x].onsubmit in
Date Tue, 15 Mar 2005 09:27:41 GMT
Hm, Are sure this is not a browser issue?
The link actually calls the form.submit() method as I remember. What 
does the Javascript Spec say about this?

Manfred


Sylvain Vieujot schrieb:
> If an h:commandLink is clicked, any form.onsubmit is skipped.
> This can lead to problems like unexpected reset for components relying 
> on this hook to submit their value (like the htmlEditor).
> 
> So, I would need to had the following code to 
> HtmlLinkRendererBase.renderJavaScriptAnchorStart
> 
> line 328 :
> // onSubmit
> onClick.append("if("+jsForm+".onsubmit){"+jsForm+".onsubmit();}");
> 
> I don't think it would break anything.
> Does anybody sees any problem adding this code ?
> 
> Thanks,
> 
> Sylvain.

Mime
View raw message