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
jsf-2.0
|primefaces
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
© Stack Overflow or respective owner