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!

RegExpression Not Working in <af:validateRegExp>

Devesh VarshneyDec 1 2021 — edited Dec 1 2021

Hi,
I am using Jdeveloper 12.2.1.4.0 and my requirement is to have only numbers and characters in one input text attribute of .jsff page with no spaces and no special characters for which i have used the below pattern
<af:column sortProperty="#{bindings.VehicleRegistrationUpdateLinesVO1.hints.VehicleRegNo1.name}"
filterable="true" sortable="true"
headerText="Vehicle Registration No" id="c3">
<af:inputText value="#{row.bindings.VehicleRegNo1.inputValue}" autoSubmit="true"
label="#{bindings.VehicleRegistrationUpdateLinesVO1.hints.VehicleRegNo1.label}"
required="#{bindings.VehicleRegistrationUpdateLinesVO1.hints.VehicleRegNo1.mandatory}"
columns="#{bindings.VehicleRegistrationUpdateLinesVO1.hints.VehicleRegNo1.displayWidth}"
maximumLength="#{bindings.VehicleRegistrationUpdateLinesVO1.hints.VehicleRegNo1.precision}"
shortDesc="#{bindings.VehicleRegistrationUpdateLinesVO1.hints.VehicleRegNo1.tooltip}"
id="it38">
<f:validator binding="#{row.bindings.VehicleRegNo1.validator}"/>
<af:validateRegExp pattern="^[A-Za-z0-9]$" messageDetailNoMatch="Registration Number must have only Numbers and characters"/>
</af:inputText>
</af:column>

Can someone help me with the correct pattern.

This post has been answered by dvohra21 on Dec 3 2021
Jump to Answer

Comments

Post Details

Added on Dec 1 2021
3 comments
224 views