Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to restrict special character (, . ! % | \ !) using regx expression <af:validateRegExp> in ADF

Sahdeep RajputJun 22 2016 — edited Jun 23 2016

Hi Guys,

How to restrict special character (, . ! % | \ !) using regx expression <af:validateRegExp> in ADF.

I have an expression like :

<af:inputText label="Label 1" id="it1">

<af:validateRegExp pattern="#{MyBundle.TEXT_PATTERN}"

                                                             id="v1"

                            messageDetailNoMatch="Invalid Characters"/>

         

   </af:inputText>

Resource Bundle Entry :   TEXT_PATTERN=[a-zA-z0-9-()' &amp;{}:"~`*/=_+-@#$]*


but this expression is not working properly. I am allowing all keyboard characters except  these (, . ! % | \ !)  .

This post has been answered by Timo Hahn on Jun 22 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 21 2016
Added on Jun 22 2016
2 comments
735 views