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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:38:30+00:00 2026-05-27T05:38:30+00:00

how can I make a page reload (and the model values updated) by checking/unchecking

  • 0

how can I make a page reload (and the model values updated) by checking/unchecking a selectBooleanCheckbox?

@Ellie: I tried both <a4j:ajax event="click" action="doiListView"/> and <f:ajax event="click" action="doiListView"/>, but nothing happens. The (piece of) code is this:

<td style="font-size: 5pt; border: 0; min-width:60px">
   <rich:calendar id="creationToDate" value="#{listModel.creationDate.rangeEnd}"
                  datePattern="yyyy-MM-dd" enableManualInput="true"
                  rendered="#{listModel.creationDate.range}"
                  valueChangeListener="#{listController.filterFieldChanged}">
   </rich:calendar>
</td>
<td rowspan="2">
   <h:selectBooleanCheckbox value="#{listModel.creationDate.range}">
      <a4j:ajax event="click" action="doiListView"/>
   </h:selectBooleanCheckbox>
</td>

The datepicker should become visible if the checkbox is selected. But with your hint above, nothing happens…
If I add onclick=”window.location.href=window.location.href” in the selectBooleanCheckbox tag, then it works, but as I said I would like to use RF components if possible…

  • 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-27T05:38:31+00:00Added an answer on May 27, 2026 at 5:38 am

    Your question is not very specific. But as far I understand, you basically want to submit the entire form and reload the entire page (why not just the form?).

    In that case, you need to set the execute attribute to @form so that the entire form will be submitted (it namely defaults to @this, the current component) and you also need to set the render attribute to @all so that the entire view will be re-rendered (or use @form instead if just re-rendering the form is sufficient).

    <h:selectBooleanCheckbox value="#{listModel.creationDate.range}">
        <f:ajax event="click" execute="@form" render="@all" />
    </h:selectBooleanCheckbox>
    

    The event="click" is by the way optional in the above construct. It’s already the default ajax event for a <h:selectBooleanCheckbox>. You can just leave it away:

    <h:selectBooleanCheckbox value="#{listModel.creationDate.range}">
        <f:ajax execute="@form" render="@all" />
    </h:selectBooleanCheckbox>
    

    Also, your action attribute is not valid. It does not exist. If you actually want to invoke a method during invoke actions phase, then you need the listener attribute instead.

    <h:selectBooleanCheckbox value="#{listModel.creationDate.range}">
        <f:ajax execute="@form" listener="#{listModel.rangeListener}" render="@all" />
    </h:selectBooleanCheckbox>
    

    with

    public void rangeListener() {
        // ...
    }
    

    or, optionally, if you need to be able to broadcast events:

    public void rangeListener(AjaxBehaviorEvent event) {
        // ...
    }
    

    The syntax is the same for <a4j:ajax>. The only difference is that it resolves execute and render a bit differently and supports more convenient attributes.

    See also:

    • <f:ajax> VDL documentation
    • <a4j:ajax> VDL documentation
    • Is there any difference between f:ajax and a4j:ajax?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way I can make nodejs reload everytime it serves a page?
How can I make a div element move up and down the page when
I want to make a page so I can select filters in a jquery
I need to make a proxy script that can access a page hidden behind
I would like to make a php script that can capture a page from
I'm using jquery.mobile-1.0.1. I'm trying to make the page reload when clicking on the
I have the following code in my Ajax, which executes a page reload function
I'm using jquery to make an ajax request to a controller method that can
In my page I make the following ajax call to load data from my
I can make a DAO recordset in VB6/Access do anything - add data, clean

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.