action « validation « JSF Q&A

Home
JSF Q&A
1.API
2.Bean
3.Component
4.Control
5.Data
6.database
7.Datatable
8.Development
9.Exception
10.Facelets
11.Form
12.Glassfish
13.HTML
14.IceFaces
15.Internationalization
16.JPA
17.JSP
18.MyFaces
19.openfaces
20.Page
21.Portlet
22.PrimeFaces
23.RichFaces
24.Seam
25.Security
26.Servlet
27.Session
28.Tag
29.Test
30.Tomcat
31.validation
32.Web Service
JSF Q&A » validation » action 

1. How to skip action when validation with a custom validator fails?    stackoverflow.com

I have a small webapplication for a library, with a customized ISBN validator. My .xhtml page for adding a book looks like this:

<fieldset>
<h:messages/>
<ul>
    <li>
     ...

2. How to validate an empty field in action method?    stackoverflow.com

I have an input field and a button. I want to check if the textinput is valid before executing the button action. If it is valid I will render a response ...

3. validating a form being submitted by 2 actions    coderanch.com

here it is, forgive the messy codes (i didn't write them) there's 2 h:commandButtons near the bottom of the code that trigger different actions. right now, both validate the same way since they submit the same form (all except the comments are mandatory). what i need is that if the second button ("Validate") is triggered, only the 2 t:inputFileUpload are mandatory, ...

4. JSF executing action even with validation errors without immediate attribute.    coderanch.com

Is there a mechanism in JSF 1.1 to execute and action even if there are validation errors without using immediate attribute. Lets take an example: We have a JSF page with - One input field that is has value pointing to a Integer in a backing bean - Table with Integer input fields pointing to List in backing bean. - Button ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.