Validation problem

Hi, i am not user if this is a bug. But i have some strange behaviour in a standart inputtext with attribute required set to true. The problem is the following. I have registered a PaseListener that checks if a field is required or not. And if all required fields are set than the submit button is enabled. But what happens?

I have binding for every inputText and when I am in the phaseListener I check the UIInputText.isRequired() and if i have left the required field blank. This method returns FALSE after the field has been set to true in the JSP page.

Its like:

<h:inputtext binding="#{input1}" required="true">

<h:inputtext binding="#{input2}" required="true">

at the PaseListener I have

iter<UIInput>

while (iter.hasNext) {

input = iter.next

** if (input.required) {do something}

}

on the ** line it returns false for the field that has been left blank!!!!!! I am using ICEFaces with parial submit to true.

Thanks

[1028 byte] By [PeshoChukaa] at [2007-11-26 19:34:44]
# 1
Just wondering why you are going through all that when you can just set required to true and when they hit submit have messages beside the text boxes that are required? Is there a reason you need to disable the button ?
jbayugaa at 2007-7-9 22:08:45 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...