This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Onchange event not called  RSS feed

Radu Mircea
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I want that onchange event for an inplaceSelect control to call some javascript , this is an example:

<rich:inplaceSelect id="myId" value="#{myBean.value}" editEvent="onclick" showControls="false" openOnEdit="true"
onchange="alert('test');" >
<f:selectItems value="#{values}" />
<h:graphicImage id="imgId" value="#{myImg}" onclick="#{rich:component('myId')}.edit()">

If the inplace control's content was click, the control goes to edit mode and the event is called when an item from inplace select was changed and the alert is shown, but if i open the inplace select control when i click on image it goes to edit mode, and than select an item from inplace select the event is not called , and no alert is shown , in this case i also want to see the alert like in previous one.

How can i do this ? Is there a way ?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!