views:

21

answers:

1

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"/>
                                            <f:validator validatorId="required"/>
  </ice:inputText>

Ofcourse I registered both validators in faces-config.xml file. Is that allowed ???

Thanks,

+1  A: 

Yes. If you have had a problem with it, it lies somewhere else.

BalusC