开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜