Eclipse Error # {component.valid} "valid can not be resolved as a member of component"

1

Warning eclipse in # {component.valid} in SryleClass, Note that the imputText is inside a Composite Component.

<div class="labelledInput">
        <p:inputText id="txtPesqLot" ...
            styleClass="labelledInput-input #{component.valid?'':'validation-failed'}"/> 
</div>
    
asked by anonymous 11.08.2015 / 13:45

1 answer

0

The problem is with older versions of Eclipse as in my case. there are 2 solutions that solved. the first is to switch # {component.valid} by  # {UIComponent.valid}.

Second solution:

    
11.08.2015 / 14:47