можно ли поменять цвет фона на отключенный <h:inputText>
?
Я пытался сделать так:
<h:inputText value="test" disabled="true" styleClass="input"/>
CSS содержит:
input:disabled {background-color:blue;}
input:enabled {background-color:red;}
и результат:
![enter image description here](https://i.stack.imgur.com/mfP9W.jpg)
Причина, по которой я пытаюсь изменить фон, состоит в том, что, поскольку я установил richface, отключенные и включенные имеют один и тот же цвет, оба имеют белый цвет
Спасибо
UPDATE:
![enter image description here](https://i.stack.imgur.com/jluu5.jpg)
HTML:
<td class="width10">Směna:</td>
<td class="width15"><input name="bde:j_idt100" value="2011-05-18-S2" size="13" style="background-color: blue; color: red;" disabled="disabled" type="text"><input id="bde:shift" name="bde:shift" type="hidden"></td>
<td><input name="bde:j_idt102" value="ranní" class="input2" size="13" disabled="disabled" type="text"><input name="bde:j_idt103" value="admin" class="input2" size="13" disabled="disabled" type="text"></td>
</tr>
<tr class="rowEven">
<td class="width5"><input id="bde:f1" name="bde:f1" value="F1" tabindex="2" title="Novy pracovnik - vymaze vsechna pole formulare" class="btninput" type="submit"></td>
<td class="width10">Pracovník:</td>
<td class="width15">
<input id="bde:worker" name="bde:worker" class="input" size="13" tabindex="1" onblur="jsf.util.chain(this,event,'mojarra.ab(this,event,\'blur\',\'@this\',\'bde:inputName\')','mojarra.ab(this,event,\'blur\',\'@this\',\'bde:inputSname\')','mojarra.ab(this,event,\'blur\',\'@this\',\'bde:inputDep\')','mojarra.ab(this,event,\'blur\',\'@this\',\'bde:reportErr\')')" type="text"></td>
Графические различия между кодом, генерируемым richfaces, и HTML:
![enter image description here](https://i.stack.imgur.com/0vmn5.jpg)
![enter image description here](https://i.stack.imgur.com/zlxJd.jpg)