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

  • Home
  • SEARCH
  • 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 3720468
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T05:13:32+00:00 2026-05-19T05:13:32+00:00

Okay. Complex Title for a simple(?) problem. I have something like this going on

  • 0

Okay. Complex Title for a simple(?) problem.

I have something like this going on (I made it as simple as possible here to illustrate)

<h:dataTable var="testVar" value="#{bean.VariablesArray}">
<h:inputText id="TestingID" 
             styleClass="propertyInput" 
             value="#{testVar.var1}"
         disabled="#{testVar.var2 != false }" 
             readonly="#{testVar.var2 != false }" />
<h:selectBooleanCheckbox 
             value="#{testVar.var2}">
         <a4j:support event="onclick" reRender="TestingID" />
</h:dataTable>

It doesn’t work and i’m assuming because of two reasons related to the datatable:

  1. The EL "#{testVar.var2 != false }" should have a better instance indicator.

  2. The reRender="TestingID" should be reffering to the correct instance of the inputText.

So my question is how do I do this correctly?

Thanks!!!

  • 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-19T05:13:34+00:00Added an answer on May 19, 2026 at 5:13 am

    According to the doc, reRender takes the form used by UIComponent.findComponent(String) (that is, it uses the client identifier and not the component identifier).

    There are a few ways to get this value (combinations of backing beans, static functions and/or component binding) but you’ll end up with something like this:

    <h:inputText id="TestingID" styleClass="propertyInput" 
                 value="#{testVar.var1}" disabled="#{testVar.var2 != false }" 
                 readonly="#{testVar.var2 != false }"
    
                 binding="#{someReqScopeMap.TestingID}" />
    
    <h:selectBooleanCheckbox value="#{testVar.var2}">
      <a4j:support event="onclick"
                 reRender="#{myfn:cid(someReqScopeMap.TestingID)}" />
    

    See JSF: working with component identifiers (id/clientId) for more detail and sample code.

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

Sidebar

Related Questions

Okay. Complex Title for a simple(?) problem. I have something like this going on
Okay, this question is just getting more and more complex, so I'm going to
Okay, here's the scenario. I have a utility that processes tons of records, and
Okay. I know this looks like the typical Why didn't he just Google it
Okay, so this is sort of a hack...but it may have to be. I'm
My problem is a little bit complex. I have the following code: $(document).ready(function() {
Okay, so this will probably be closed or whatever, I don't care. I have
Okay. I have this code on my site: <?php session_start(); include database.php; include bruger.php;
Okay, I'm not trying to do anything super complex, I have searched, and searched,
I have made a few simple apps on android, and thought it was time

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.