geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From babus_18 <babus...@yahoo.com>
Subject Validators of h:inputText not getting invoked value is ""
Date Mon, 16 Feb 2009 19:56:58 GMT

Hi,

I am using jsf api and impl 1.2._12.

I have the following facelet mark up:

<h:inputText id="testInput" value="#{testController.test}" required="false">
  <f:validator validatorId="stateValidator"/>
</h:inputText>

The "stateValidator" is configured as follows in faces-config

<validator>
  <validator-id>stateValidator</validator-id>
 
<validator-class>adc.validators.MultiFieldLengthValidator</validator-class>
</validator>

The validator is getting invoked with no issues when the value of the field
is anything other than "". But when the value is "", the validator does not
get invoked.

I am wondering if I am doing something wrong. Please advise on potential
solutions.

TIA,
Babu
-- 
View this message in context: http://www.nabble.com/Validators-of-h%3AinputText-not-getting-invoked-value-is-%22%22-tp22044582s134p22044582.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message