The issue i am confronting is that the statements are executed twice which is evident from the fact that log messages are printing twice . I had checked the issue is not with the log levels.It is as if 2 threads are operating in tandem. As a result of which an exception is thrown.
However when i changed [html:submit value="save" onklick="return save();] to [input type="button" onklick="save()" ], the problem seems to be off.
The submit button has a lot of semantics of its own and its best not to try and compete with it with your own onclick handler. if you want to let the submit button do its own thing, don't use an onclick handler. Otherwise, use a vanilla (non-submit) button and handle things in your own way. [ October 07, 2005: Message edited by: Bear Bibeault ]