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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:46:38+00:00 2026-05-23T06:46:38+00:00

I have two input components on my page . Each of them has a

  • 0

I have two input components on my page. Each of them has a converter (It’s a converter which checks for empty values, like JSF required one, but for some reasons I cannot use jsf one so I’ve made my own converter).

I also have a ice:selectBooleanCheckbox:

<ice:selectBooleanCheckbox
                    styleClass="graUserAppUserGroupAddChk"
                    value="#{userGroupTableNewRecordBean.addNewDomain}"
                    partialSubmit="true"
                    immediate="true"
                    valueChangeListener="#{userGroupTableNewRecordBean.addDomainListener}"></ice:selectBooleanCheckbox>

As you see I put immediate=true attribute on it, becase when I select this checkbox I do want the conversion phase to be skipped but it does not work, the converters still show their warnings. Do you know why?

I also add a valueChangeListener on this checkbox and called there the renderResponse directly, based on this quote:

So in the value changed listener method for the dropdown lists, just 

call renderResponse() from the
FacesContext object and validation and
conversion is bypassed and you can
still do what you want.

public void addDomainListener(final ValueChangeEvent valueChangeEvent) {
    // skip validation
    logger.info("listener calleddddddddddddd");
    FacesContext.getCurrentInstance().renderResponse();
}

Maybe a JSF guru can help?

Thanks a lot…

UPDATE: I know that a solution would be to put the checkbox in a separate form but I cannot afford this…

UPDATE 2: I’ve corrected some code about listener, so now it is called when clicked but still the converter fails and render response phase is not done…

UPDATE 3: This is not an icefaces issue… I’ve tried with a h:selectBooleanCheckbox and it happens the same…

  • 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-23T06:46:39+00:00Added an answer on May 23, 2026 at 6:46 am

    Solved it finally…

    I post here the sum up of the question and the solution.

    I had a checkbox in my popup. When I select it I want to show some hidden fields but this did not work because I also had two required fields on the same page so jsf PROCESS_VALIDATIONS phase came up…

    I thought that putting immediate=true will solve this, but it did not…

    So, in my ValueChangeListener of the checkbox I had to manually skip the jsf validation phase:

    public void addDomainListener(final ValueChangeEvent valueChangeEvent) {
            // skip validation
            final PhaseId phaseId = valueChangeEvent.getPhaseId();
            final Boolean newValue = (Boolean) valueChangeEvent.getNewValue();
            if (phaseId.equals(PhaseId.ANY_PHASE)) {
                valueChangeEvent.setPhaseId(PhaseId.UPDATE_MODEL_VALUES);
                valueChangeEvent.queue();
    
                this.addNewDomain = newValue;
                FacesContext.getCurrentInstance().renderResponse();
            }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a function which returns a one-sided intersection of values between two input
I have a form in CakePHP that has two live-search text input. Each one
I have two input in example and after add new input remove(or empty) values
I have two input text boxes which are decimal. The sum of the two
I have two forms on one page and want to have the input boxes
Currently I have two pages: The first page contains an input form, and the
Okay, I have two OperationContracts and MessageContracts, like this: [OperationContract] OperationResult OperationOnSingleItem(Input input) [OperationContract]
I am preparing a registration page using JSF/Spring webflow&mvc application. I have added two
I have a UIPickerView with two components each with 10 rows being loaded from
I have two input text boxes which is bound to jquery Datepicker widget. When

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.