Board index JavaServer Faces General styling <p:inplace> to suggest editability

styling <p:inplace> to suggest editability

Components, Ajax Framework, Utilities and More.

Posts: 38
The default style for <p:inplace> doesn't suggest to the user that the field is editable--I realize that hovering does highlight.

The sample: ... diting.jsf
illustrates that <p:rowEditor /> shows a pen icon to suggest editability. Would this be a good technique for <p:inplace>? If so, how can one code a button with that pen image which switched <p:inplace> to edit mode? Something like this?

<p:inplace widgetVar="X">
<p:button onclick="X.toggle();" image="...">

Any other suggestions?

Return to General