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

The Archive Base Latest Questions

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

I have JSF 1.2. I have 2 SelectOneMenues, both have SelectItem lists map to

  • 0

I have JSF 1.2.
I have 2 SelectOneMenues, both have SelectItem lists map to renting company id.
(The value is id, and label is name/code depending on which selectOneMenu).

What happens is that if the second selectOneMenu is changed the first gets the correct value, but not the other way arround. What happens is that both selectOneMenus getters are called, then both their setters and then again both their getters. Leading to the last setter to count. That’s wrong. Why are both setters called?!
I need the behavior: Either selectOneMenu changed leads to the other be updated.

            <h:selectOneMenu style="width:100px;"
                value="#{idDetControl.companyId}" id="keyType1">
                <f:selectItem itemLabel="" itemValue="" />
                <f:selectItems value="#{GeneralTables.rentingCompanyNumbers}" />
                <a4j:support  event="onchange" reRender="keyType2" />
            </h:selectOneMenu>

            <h:outputText value="#{l.name}"/>

            <h:selectOneMenu style="width:100px;"
                value="#{idDetControl.companyId}" 
                id="keyType2" >
                <f:selectItem itemLabel="" itemValue="" />
                <f:selectItems value="#{GeneralTables.rentingCompanyNames}" />
                <a4j:support  event="onchange" reRender="keyType1" />
            </h:selectOneMenu>
  • 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-20T03:43:39+00:00Added an answer on May 20, 2026 at 3:43 am

    Both components are submitted because by default the entire form is submitted and processed. Set ajaxSingle=”true” on a4j:support to only process that component. BTW, I don’t see rich:combobox being used. This should also help: http://mkblog.exadel.com/2009/07/richfaces-region-partial-jsf-tree-processing/

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

Sidebar

Related Questions

I have JSF code like: <h:inputText id=from value=#{fromToMBean.fromName}/> I would like to get this
Suppose i have JSF page <h:body> <h:form id=formID prependId=false> <h:outputText id=randomID value=#{randomNumber.random}/> <h:commandButton id=buttonID
I have a JSF web client and a Java client that both use the
Hi I have the follonwing selectOneMenu <h:selectOneMenu value=#{modelsController.selected.idBrands}> <f:selectItems value={brandsController.itemsAvailableSelectOne} /> </h:selectOneMenu> <br/> which
I have a JSF output text as shown below: <h:outputText id=totalCount value=#{myBean.totalCount} /> And
I have been trying with limited success to code a JSF application. In one
I have jsf application in which I have to use a facelet custom component
I have a JSF page on which I want to have a checkbox that,
I have this new problem. I have the following code in JSF 2.0 with
Consider the following jsf page: <h:body> <h:form id=SessionStartDialog> <table> <tr> <td class=label> <h:outputLabel value=Enter

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.