This content has been marked as final.
Show 3 replies
-
1. Re: rich:inplaceInput not calling change listener when pressing RET (showControls = true, saveOnBlur = false)
kwutzke Jun 7, 2012 6:38 AM (in response to kwutzke)Doesn't anybody know?
-
2. Re: rich:inplaceInput not calling change listener when pressing RET (showControls = true, saveOnBlur = false)
jpapouse Jun 11, 2012 4:40 AM (in response to kwutzke)The problem is that @valueChangeListener is called only when treeNode.setName() is being invoked. When @valueChangeListener is set, the treeNode.setName() invocation is replaceed by invocation of @valueChangeListener and then treeNode.setName().
In your code example the set method isn't invoked (the whole interaction is done on the client side). You need to put a4j:ajax inside your rich:inplaceInput:
<rich:inplaceInput value="#{treeNode.name}" editEvent="dblclick" showControls="true" saveOnBlur="false" valueChangeListener="#{nodeManager.updateNodeName}"> <a4j:ajax event="change" /> </rich:inplaceInput>
-
3. Re: rich:inplaceInput not calling change listener when pressing RET (showControls = true, saveOnBlur = false)
kwutzke Jun 11, 2012 5:40 AM (in response to jpapouse)Thanks, this works with a plain <f:ajax /> already.
Karsten