http://wiki.apache.org/myfaces/SubmitPageOnValueChange http://wiki.apache.org/myfaces/JavascriptWithJavaServerFaces
On 9/18/06, Rønnevik, Eivind <[EMAIL PROTECTED]> wrote:
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

