java - Can I trigger an IceFaces action using JavaScript? -


if have simple button:

   <ice:panelgroup>              <ice:commandbutton value="foobar"              action="#{filemanager.opennoflashvisiblepopup}" />    </ice:panelgroup> 

is possible trigger action opennoflashvisiblepopup using javascript? know there icefaces has javascript bridge don't know see simple way this.

i need because have chunk of javascript detects flash , need show icefaces popup.

one way button element id , call click() function.

document.getelementbyid('clientid').click(); 

you need give form , button fixed id can use generated html id clientid in javascript code.


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -