0

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

1 Answer 1

1

If it's not a problem to use a PrimeFaces component here it is; an inplace component

Sign up to request clarification or add additional context in comments.

3 Comments

yes this is what i looking for,hope this will works at me,but thanks a lot
Yes nice suggestion. Otherwise use link with f:ajax and render area and have inputtext be rendered=true and link rendered=false
how can i fired some action with clicking to save button in this inline component? now nothing happend when i click on this also i have there included a <p:ajax> tag

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.