Title: Is it possible to submit/click commandButton programmatically? (Like javascript)

Hi!

I just wondered if it is possible in any way to "execute" an action method by "clicking" a button from the javaside. :)
Or is _javascript_ "getElementById ...... .click();" the only way?

Conceptually thinking, you set up a binding for the button to your bb. And then in your bean you do something like:

/7The property
private HtmlCommandButton myButton;


-------- Somewhere in a method ---------
myButton.submit();
or
myButton.click();

----------------- end -----------------

I doubt if this is possible, have never seen an example, but I basically just wanted to ask if somebody knew this was possible at all. :)

Regards,


Eivind Ronnevik

Reply via email to