Reputation:
There is some way to disable ? I want allow or not allow user to edit data. Maybe I need other component?
Upvotes: 0
Views: 1223
Reputation: 11
You can handle this by setting the editEvent attribute of the rich:inpaceInput. "isFieldModificationRigth" is a public method in the secBean returning a boolean value.
<rich:inplaceInput id="fieldId" value="#{bean.field}"
editEvent="#{secBean.fieldModificationRight? 'onclick': 'none'}"
I hope it will help you!
Upvotes: 1
Reputation: 14581
Just display an outputText instead of an inplaceInput when you don't want to allow edit. Use CSS to make it look like an inplaceInput. But you may have user confusion if they can't edit something that looks like an editable thing.
Upvotes: 1