Friday Apr 11, 2008

The "JSF - A Wish List" Article is Out

[Read More]

Wednesday Jan 23, 2008

New Coding Tools in JDeveloper 11g TP3

[Read More]

Monday Dec 03, 2007

Regular Expression Validation in JSF

When most people look at the list of components in ADF Faces they mostly focus on the visual components - and that's understandable, but if you look closer you'll find that there are also non-visual components included such as several validators.

Here is an example of one useful validator - the regular expression validator.

Let's suppose that you want your JSF field to allow only Numeric values - all you need to do is add to it the ADF Faces provided regular expression validator and then provide the right regex format.
For Example:


<af:inputText label="Label 1" autoSubmit="true">

 <af:validateRegExp pattern="[0-9]{1,10}"

                               noMatchMessageDetail="Only Numbers Please"/>

</af:inputText>

<af:commandButton text="commandButton 1"/>


Now run your page and try entering characters to the field and leaving it.
You'll immediately get an error message with the text you provided (implemented using Javascript).

 

Just one more thing that ADF Faces give you to make life easier...

Thursday Aug 09, 2007

Setting HttpUnit in Oracle JDeveloper

[Read More]

Monday Jul 23, 2007

Introduction to Developing JDeveloper Extensions

[Read More]

Thursday Jul 19, 2007

Using JDeveloper with Maven

[Read More]

Tuesday Jul 10, 2007

Sample JDeveloper Extension - Go To File Shortcut

[Read More]

Wednesday May 16, 2007

How to Demo over 100 JSF/Ajax Components?

[Read More]
About

me
I'm a Director of Product Management for the Oracle Java Development Tools.
Follow me:
Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today