JBoss Community

Re: Show/hide widgets programmatically

created by Leo K in JBoss Portal - View the full discussion

try

 

     HtmlJQuery jq = (HtmlJQuery)application.createComponent(HtmlJQuery.COMPONENT_TYPE);
        jq.setSelector("#widget1,#widget2");
        jq.setId("hideme");
        jq.setName("hide2");
        jq.setTiming("onJScall");
        jq.setQuery("hide()");

 

with

 

<h:graphicImage width="80" id="jap4" value="someimage.png" onmouseover="hide2()"  />

 

(or the equivalent generated code)

 

Best regards

 

Leo

Reply to this message by going to Community

Start a new discussion in JBoss Portal at Community