Ok , Rohit i am trying to make a
java server faces table "editable", by setting visible and not visible, static text and text field, the objective is that when i click on a button, hide the static text and show the text field and copy the static 's value to the text field, your suggestion works fine when the text field is not wrapped in a component, but in this case the text field is inside a column table and doesn't works, it's weird.