validatelongrange

Using validator with a variable attribute in ui:repeat

…衆ロ難τιáo~ 提交于 2019-11-27 16:12:14
I'm using com.sun.faces version 2.1.18 . In my application I have a dynamic list of questions. I use <ui:repeat> to render each question. Depending on the type of question I render a type of input component and validation. In case of a number range question I use <h:inputText> with <f:validateLongRange> . The problem I run into is that the minimum and maximum attributes on the <f:validateLongRange> are always set to the first question's minimum and maximum value. So, when you use the validator on any other then the first question it fails. Is that supposed to happen? Is there a way to get

Using validator with a variable attribute in ui:repeat

痞子三分冷 提交于 2019-11-26 17:25:57
问题 I'm using com.sun.faces version 2.1.18 . In my application I have a dynamic list of questions. I use <ui:repeat> to render each question. Depending on the type of question I render a type of input component and validation. In case of a number range question I use <h:inputText> with <f:validateLongRange> . The problem I run into is that the minimum and maximum attributes on the <f:validateLongRange> are always set to the first question's minimum and maximum value. So, when you use the