[
https://issues.jboss.org/browse/RF-10228?page=com.atlassian.jira.plugin.s...
]
Max Katz commented on RF-10228:
-------------------------------
Without 'controls' facet, it's not possible to use save() or cancel()
component JavaScript API.
Using it this way, cancel() doesn't work:
<h:panelGrid>
<rich:inplaceInput id="input" value="#{inplaceInputBean.input}"
defaultLabel="Click to enter value" showControls="false"
saveOnBlur="true" >
</rich:inplaceInput>
<h:outputText id="out" value="#{inplaceInputBean.input}" />
</h:panelGrid>
<input type="button" value="Cancel"
onclick="#{rich:component('input')}.cancel();" />
<input type="button" value="Save"
onclick="#{rich:component('input')}.save();" />
Setting saveOnBlur=false, save() doesn't work.
Component rich:inplaceInput not get facet "controls"
----------------------------------------------------
Key: RF-10228
URL:
https://issues.jboss.org/browse/RF-10228
Project: RichFaces
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: component-input
Affects Versions: 4.0.0.Milestone5
Environment: Mac OSX 10.6.6 - Glassfish v3.0.1 - Richfaces 4.0 M5
Reporter: Antonio Parisi
Assignee: Nick Belaevski
Fix For: 4.Future
Original Estimate: 1 day, 4 hours
Remaining Estimate: 1 day, 4 hours
The component rich:inplaceInput, don't get facet "controls".
Example:
<rich:inplaceInput defaultLabel="Click here to edit"
showControls="true"
controlsHorizontalPosition="left"
controlsVerticalPosition="bottom"
id="inplaceInput">
<f:facet name="controls">
<button
onmousedown="#{rich:component('inplaceInput')}.save();"
type="button">Save</button>
<button
onmousedown="#{rich:component('inplaceInput')}.cancel();"
type="button">Cancel</button>
</f:facet>
</rich:inplaceInput>
Him don't get my Save and Cancel button, but show always default's "V"
and "X" icon.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira