update jsf version in pom and add validation tags to faces sample
This commit is contained in:
@@ -143,14 +143,14 @@
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.faces</groupId>
|
||||
<groupId>com.sun.faces</groupId>
|
||||
<artifactId>jsf-api</artifactId>
|
||||
<version>2.0</version>
|
||||
<version>2.0.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.sun.faces</groupId>
|
||||
<artifactId>jsf-impl</artifactId>
|
||||
<version>2.0.2</version>
|
||||
<version>2.0.3</version>
|
||||
</dependency>
|
||||
<!-- build time only dependencies -->
|
||||
<dependency>
|
||||
|
||||
@@ -106,7 +106,9 @@
|
||||
</div>
|
||||
<div class="span-7 last">
|
||||
<p>
|
||||
<h:inputText id="creditCard" value="#{booking.creditCard}"/>
|
||||
<h:inputText id="creditCard" value="#{booking.creditCard}">
|
||||
<f:validateRegex pattern="[0-9]{16}" />
|
||||
</h:inputText>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -116,7 +118,9 @@
|
||||
</div>
|
||||
<div class="span-7 last">
|
||||
<p>
|
||||
<h:inputText id="creditCardName" value="#{booking.creditCardName}"/>
|
||||
<h:inputText id="creditCardName" value="#{booking.creditCardName}">
|
||||
<f:validateLength minimum="3" />
|
||||
</h:inputText>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user