Shakib Ahmed
Shakib Ahmed

Reputation: 3

Primefaces input field accept only specific language

I have a input field in primefaces. When user press some keys then it will automatic translate into specific language ex Chinese. The concept is, input field will only accept specific language. Is that possible ??

Here is my code,

<p:inputText id="emergencyCause">
</p:inputText>
<p:watermark for="emergencyCause" value="Cause" id="watermark32" />

Upvotes: 0

Views: 409

Answers (1)

T. Kryazh
T. Kryazh

Reputation: 35

You can use JSF tag <f:validateRegex> like stated here with regex for Chinese like this or this way.

Upvotes: 1

Related Questions