I have a dataTable and when i edit it i want it to validate if assignedQuota >= usedQuota. How can i do that?
<p:dataTable id="vessels" var="ves" value="#{assignedVessels}" editable="true">
<p:column>
<p:cellEditor>
<f:facet name="output">
<p:outputLabel value="#{ves.assignedQuota}"/>
</f:facet>
<f:facet name="input">
<p:inputText value="#{ves.assignedQuota}" />
</f:facet>
</p:cellEditor>
</p:column>
<p:column>
<p:cellEditor>
<f:facet name="output">
<p:outputLabel value="#{ves.usedQuota}"/>
</f:facet>
<f:facet name="input">
<p:inputText value="#{ves.usedQuota}" />
</f:facet>
</p:cellEditor>
</p:column>
<p:column>
<p:rowEditor/>
</p:column>