Changing background color of inputfield of editable coloumn in primefaces datatable on value change
- by Shikha
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>
I want to change the background color of the inputText - description on the event - valueChange. How can I change that ?
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