suggested change to form FTL

"Alexandru Popescu" <[email protected]>
Newsgroups gmane.comp.java.open-symphony.webwork
Message-ID <[email protected]>
Hi!

I've been looking to a way to plug my custom JS validation method.
Either I have missed it or I haven't found it. Finally, I have created
a form-close-validate.ftl that does the following:

[code]
<script>
    function validateForm_${parameters.id}() {
         [...]
	if(typeof customValidateForm == 'function') {
		errors = customValidateForm(errors) || errors;
	}
		
        return !errors;
}
[/code]

What do you think about this?

./alex
--
:Architect of InfoQ.com:
 .w( the_mindstorm )p.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.