myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From R√łnnevik, Eivind <eiv...@kadme.com>
Subject Is it possible to submit/click commandButton programmatically? (Like javascript)
Date Mon, 18 Sep 2006 22:04:40 GMT
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

Mime
View raw message