Does your submit button have immediate="true". If immediate is set to
true the validation phase is skipped. Is that your problem?

Bruno

2005/9/16, Zhong Li <[EMAIL PROTECTED]>:
> I have a issue here, I define a validate method in backing bean
> "dealerPricing", we need validate force user must input at least 2 non space
> letters, otherwise we may have legal issue, like somebody enter spaces
> instead enter nothing. So we can't use default request validator. I made a
> validator in bean. But we found my validator will never be called if we put
> required="ture"; if I remove required="true", it will never be called when
> user enter nothing. I don't want create a customized validator for this
> "simple" issue. 
>  
>      <h:inputText id="whoShopped"
>       value="#{dealerPricing.dealerVehicle.whoShopped}" 
>       validator = "#{dealerPricing.validateWhoShopped}"
>       required="true"
>       rendered="#{!dealerPricing.isAA}"/>
>  
>  
>  
>  Thanks.
> 
> -- 
> Zhong Li
> 
> WebJabber.Net

Reply via email to