Automatically submitting a form.

I am working on a JSF page that I want to automatically submit without any input from the user. However, I can't figure out how to make it auto submit. I currently have a javascript that just presses a form button to submit...

document.getElementById("mainForm:submitButton").click();

However, it never clicks the button. If I run the following line...

document.getElementById("mainForm").submit();

The form will submit, but I will not be able to execute the logic I want from the pagecode.

[522 byte] By [Jay3205a] at [2007-11-27 10:42:59]
# 1

Maybe this will be of use: http://www.irt.org/script/187.htm

rlubkea at 2007-7-28 19:21:48 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...