Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8685961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:42:50+00:00 2026-06-12T22:42:50+00:00

In JSFs validation phase, in what order are input fields validated? What I thought

  • 0

In JSFs validation phase, in what order are input fields validated?

What I thought about trying is the following: I have a group of input fields that may pass or fail conversion/validation. Also, I would like to have some input with a custom validator that produces a different outcome depending on whether all other fields passed validation or not. I can check the FacesContext for any previous messages, but I would have to make sure that this custom converter is called after all other fields have been checked, hence the above question. Is it simply the order in which they are defined in the Facelets-Page? If so, would this order be guaranteed?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T22:42:52+00:00Added an answer on June 12, 2026 at 10:42 pm

    Is it simply the order in which they are defined in the Facelets-Page?

    Basically, yes. The component tree will be processed recursively "the usual way". For each component first the component itself will be processed and then each of its child components in sequence.


    If so, would this order be guaranteed?

    Yes. This is stated in the JSF 2.0 specification:

    2.2.3 Process Validations

    …

    During the Process Validations phase of the request processing lifecycle, the JSF implementation must call the processValidators() method of the UIViewRoot of the tree. This will normally cause the processValidators() method of each component in the tree to be called recursively, as described in the API reference for the UIComponent.processValidators() method.

    …

    The custom converter should thus be referenced by the last component or a "stub" <h:inputHidden> component after all of the desired components. The desired components can be passed through by component bindings. See also this related answer: JSF doesn't support cross-field validation, is there a workaround?

    As a completely different alternative, you could consider wrapping the whole thing in a composite.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using JSF2 with Richfaces 4. I have the following JSF: <h:panelGrid columns=2 cellspacing=5>
I have a large existing application with a bunch of managed-beans that are injected
I would like to get your input on what would be the most fitting
Consider the scenario of a typical webapp with JSFs on the front and EJB
I have written a small CMS for an application which provides basic site management
I'm developing a JSF 2.0 app that consumes a SOAP-based web service. I want
I've managed to integrate Spidermonkey into my C server side application on Linux. Trying
In order to use the @Autowire annotation, the object where you use the annotation
I have a problem, I using jdbcTemplate exec a Sybase stored procedure returning mulit
I'm trying to extend JSF's component class (let it be one of h:panelGroup )

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.