styling <p:inplace> to suggest editability

Components, Ajax Framework, Utilities and More.
Post Reply
notcourage
Posts: 38
Joined: 06 Oct 2010, 05:29

24 Mar 2011, 00:27

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:
http://www.primefaces.org/showcase/ui/d ... 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:inplace>
<p:button onclick="X.toggle();" image="...">

Any other suggestions?

Post Reply
  • Information
  • Who is online

    Users browsing this forum: Baidu [Spider], Bing [Bot], Google [Bot], JojoB and 8 guests