Changing background color of inputfield of editable coloumn in primefaces datatable on value change

Posted by Shikha on Stack Overflow See other posts from Stack Overflow or by Shikha
Published on 2012-02-18T08:08:04Z Indexed on 2012/04/12 17:29 UTC
Read the original article Hit count: 201

Filed under:
|

I have an editable coloumn in dataTable. The code is:

<p:column id="articleDescription" headerText="Article Description" filterBy="#{article.description}" filterMatchMode="startsWith">
  <p:inputText id="description" value="#{article.description}"style="border:none; box-shadow:none;" />
</p:column>
  1. I want to change the background color of the inputText - description on the event - valueChange. How can I change that ?
  2. Also, the default background color of it should be the same as of its parent row? Is it possible? How can it be done?

Thanks, Shikha

© Stack Overflow or respective owner

Related posts about jsf-2.0

Related posts about primefaces