Multiple validators for one field. JSF
Can you apply multiple validators for one field. i.e:
<ice:inputText id="tawjihiAvg" maxlength="5" partialSubmit="true"
style="left: 0px; top: 144px; position: absolute; width: 144px" title="#{msg.Tawjihi_Average}"
value="#{SessionBean1.tawjihiAvg}" valueChangeListener="#{Application.tawjihiAvg_processValueChange}">
<f:validator validatorId="AverageValidator"/>
开发者_StackOverflow社区 <f:validator validatorId="required"/>
</ice:inputText>
Ofcourse I registered both validators in faces-config.xml file. Is that allowed ???
Thanks,
Yes. If you have had a problem with it, it lies somewhere else.
精彩评论