I'm using primefaces 2.2.1
and I want set f:validatorLength
to one row in datatable with many rows with p:cellEditor
.
<c:set var="flag" value="#{item.key eq 'someKey'}" />
<p:column headerText="header">
<p:cellEditor>
<f:facet name="output">
<h:outputText value="#{item.value}" />
</f:facet>
<f:facet name="input">
<p:inputText value="#{item.value}" style="width:100%" >
<f:validateLength maximum="4" disabled="#{flag}"/>
</p:inputText>
</f:facet>
</p:cellEditor>
</p:column>
And when flag is true
for chosen inputText with appropriate key, then validator turn on for all inputTexts. And when flag is false
- validator turn on for all inputTexts. But I want set validator to some inputTexts and so on.
Any ideas?
Thanks.