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 1106025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:43:39+00:00 2026-05-17T01:43:39+00:00

I have a highly dynamic single page interface where various user events trigger new

  • 0

I have a highly dynamic single page interface where various user events trigger new fields to display on the screen. I am using jsf 1.1 and basic ajax without the ability to use partial submit. Because of these limitations I have marked all of my fields required false and immediate false. The idea is to validate ONLY when the user attempts to transition to the next page in an action method NOT when they tab off and execute an ajax event. I set immediate false because I need input to make it to the modal so I can conditionally render certain fields based on business logic.

PROBLEM: I know ahead of time a list of “possible” UIInput ids which may or may not be displayed on the screen at any given time. My goal is to iterate through all these UIInputs, check to see if they are rendered, not null, and not empty otherwise mark the UIInput in error.

This works except for fields which are not displayed on the screen. For example, I have a field “amountInput” which has an XHTML rendered property set to false so it does not show up on the screen. From a display perspective, this works, but upon invoking my action, this field is still showing its rendered property as true so I have no way to know whether I should validate it or not.

What are my options here?

    public boolean validate() {
    boolean hasValidMinimumData = true;

    final List<UIInput> componentList = getComponentList();
    if (CollectionUtils.isNotEmpty(componentList)) {
        for (UIInput curComponent : componentList) {
            final Object curComponentValue = curComponent.getValue();
            if (curComponent.isRendered() && (curComponentValue == null || isNoValue(curComponent))) {
                setError(curComponent); // applies the error
                hasValidMinimumData = false;
            }
        }
    }

    return hasValidMinimumData;
}
  • 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-05-17T01:43:40+00:00Added an answer on May 17, 2026 at 1:43 am

    RESOLVED! Issue was that in my XHTML I had set the rendered attribute on a table component which contained my input component. I thought that this would in turn set the rendered attribute appropriately on all of its children but apparently not.

    Simply setting the conditional render attribute in my XHTML on the actual input component solved the issue.

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

Sidebar

Related Questions

I am building a user interface using Raphael JS. currently I have a .js
I have intranet highly user interactive ASP.net applications, which now I am going to
I have to make an image of a dynamic page i.e. the page keeps
I have a chat website that is highly dynamic and when visiting it with
$class = new Class; $foo = json_decode($_POST['array']); In this highly contrived example, I have
I have a highly structured hierarchical directory containing multiple files that need to be
I have a highly formatted file with large amount of data which I used
I have a website that has highly granulised access and hence requires many web.config
I have a web-based application which is very highly reliant on jquery / javascript,
We have an app with highly interrelated data, i.e. there are many cases where

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.