Re: Submitting a form automatically (without user clicking a button)

2005-06-19 Thread Randahl Fink Isaksen
Then I think the MyFaces developers should change the design, so the button invokes a JS function called submit() which I can invoke directly without using the button. Right now, I think it is a really awkvard solution to place a button on a page and then deliberately hiding the button using CS

Re: Submitting a form automatically (without user clicking a button)

2005-06-18 Thread Slawek
u cant simple fire submit. jsf stuff works cause when u click on commandbuttn or sth than few things are set by JS (ex. form action). so submiting without seting that "magic things" doesnt make any sense. clicking on button performs setting jsf stuff so u must find that button and click it:

Re: Submitting a form automatically (without user clicking a button)

2005-06-18 Thread Randahl Fink Isaksen
Thanks Adrien - I guess we wrote e-mails at the same time... as stated in the previous e-mail I have just tried such a solution. Still I wish there was a more standard way... R. Adrien FOURES wrote: Hello Randahl, If i have understand your question, try this: [...] function test(){

Re: Submitting a form automatically (without user clicking a button)

2005-06-17 Thread Adrien FOURES
Hello Randahl, If i have understand your question, try this: [...] function test(){ document.getElementById('mySecretAndHiddenForm:sendProperties').click(); } or [...]