Reputation: 31
I want reach something like this, lets have a:
<h:outputText id="name" value="#{Bean.foo.name}"/>
in a some column in datatable and i want achieve by single clicking on this output text on layout in order change to:
<h:inputText value="#{Bean.foo.name}"/>
in other words by clicking on output text to change to a classic input field, Is there any way to do this with ajax component, can anybody give me some concept about this, i will be very greatful.
Thanks in advance
Upvotes: 0
Views: 1195
Reputation: 3822
If it's not a problem to use a PrimeFaces component here it is; an inplace component
Upvotes: 1