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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:26:00+00:00 2026-06-18T07:26:00+00:00

I am using icefaces 1.8.2 and i have a HtmlBooleanCheckbox on my page that

  • 0

I am using icefaces 1.8.2 and i have a HtmlBooleanCheckbox on my page that I need to uncheck when certain circumstances are met.

the checkbox on the page is like this

<ice:selectBooleanCheckbox id="accepttermscheckbox"
    binding="#{managedBean.termsAgreement}"
    validator="#{managedBean.validateAgreement}">
</ice:selectBooleanCheckbox>

and the binded object is a property of the managed bean with proper getter and setter

private HtmlSelectBooleanCheckbox termsAgreement;

i can check the checkbox in code, validator works fine and all the stuff i do with it are ok too but I just cant find a way to uncheck it on the server side.

I tried:

termsAgreement.setValue(Boolean.FALSE)
termsAgreement.setValue(null)
termsAgreement.setSelected(false)

but nothing works. Even if I debug it it shows value = null but when the page renders it still appears checked.
Once I check it I just cant get it unchecked unless I click it manually on the page.

funny thing is that

termsAgreement.setValue(Boolean.TRUE)

works fine.

Anyone any tips how I can uncheck it server side on the binded object?
Thank you in advance for help.

  • 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-18T07:26:02+00:00Added an answer on June 18, 2026 at 7:26 am

    You are facing a common issue faced by ICEfaces/JSF developers.

    First of all, you need to understand how JSF lifecycle works.

    Following is a good article to read.

    http://www.ibm.com/developerworks/library/j-jsf2/

    For your case, bind a value to <ice:selectBooleanCheckbox>.

    For example value="#{managedBean.termsAgreed}".

    <ice:selectBooleanCheckbox id="accepttermscheckbox"
        binding="#{managedBean.termsAgreement}"
        validator="#{managedBean.validateAgreement}"
        value="#{managedBean.termsAgreed}">
    </ice:selectBooleanCheckbox>
    

    Do not try to change the value from the component. Always change value from the value binding. In this example, you must change the value termsAgreed.

    If your action/actionListener is not immediate, i.e `immediate=”false”, which is the default value, then changing the value in server-side will check/uncheck checkbox component.

    If you are using immediate="true", then you must call resetValue() method in your component, HtmlSelectBooleanCheckbox:

    termsAgreement.resetValue();
    

    Ideally, you shouldn’t call setValue() methods in components. You will understand it when you understand the JSF lifecycle.

    Hope this will help!

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

Sidebar

Related Questions

I have a complex ICEFaces XHTML page that renders certain components conditionally, based on
I am using JSF 2.1 and ICEFaces 2 and I have a tabset like:
I'm using ICEFaces. I have datatable with multiple columns. One I load the page
I'm using JSF/ICEFaces. I have a table that have many rows with values and
I have recently started using Netbeans with following stack Liferay, icefaces with jBoss. Is
I have a small web application developed using Icefaces 1.8.2 and jsf 1.1 which
I'm using ICEFaces 1.8. I remember that once I opened a Javascript window via
While evaluating ICEfaces I have used Eclipse and its Web Page Editor to visually
I'm using Icefaces 1.8.2 and an ice:inputTextarea control, and I can't figure why the
I have a JSF (IceFaces 1.8.2) website. I need the following functionality: When a

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.