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

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

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -