JSF custom component allow empty string on h:inputText validation
===

I have a custom component which uses h:inputText. 
The custom component allows a parameter allowEmptyString. When this is true, I would like the empty string to pass the validation even if the required attribute of h:inputText is true.

Is there any way to realize this?