In html/JSF - How to make any component respond to clicks? -


I changed the content of this question because I did not think the last one was made correct.

I would like to know that component handles events such as mouse clicks / hover etc. of a JSF / Richfish ...

Mouse button on target mouse button and good to click on mouse Make the button

Thank you!

Attributes in all (visual) components such as onclic , Onmouseover , onmouseout , onfocus , etc. This allows you to run the javascript code when a specific event is removed. For example:

  & lt; H: Input text ... onclick = "alert ('click');" />    

Regarding your needs, you can try to do something like this: Pre> & lt; H: command button ... style class = "aCssClass" onmouseover = "this.className = 'other CSS class'" onmouseout = "this.className = 'aCssClass'" /> In other words, the button will be displayed about the CSS class aCssClass , and when the cursor enters the button, then it is used by anotherCssClass class Of course, you can also define a CSS class for the onclick event ...

Just for information: If you are concerned about a particular incident Want to execute an Ajax call on your server, which may be what you are actually looking into On, you & lt; A4j: support / & gt; Tags:

  & lt; H: You can use input text. . & Gt; & Lt; A4j: support event = "onclick" activist = "# {myBean.doSomething}" /> & Lt; / H: inputText>  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -