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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:21:28+00:00 2026-06-01T07:21:28+00:00

I am facing very strange problem. After debugging from my side, I thought to

  • 0

I am facing very strange problem. After debugging from my side, I thought to post the same question on forum.

Problem: : I have 2 JSF Datatables say “TableA” and “TableB”. I have some elements in TableB and now I want to move some articles based on criteria to move to TableA and get deleted or not visible in TableB.

I am able to add elements in TableA and can see that element has been deleted from TableB also through debugger as I printed the elements present in TableB but the same changes does not get reflected on UI.

Code is:

<div id="selectedTableId" class="ArtSlected">
<h:dataTable id="selectedArtTable" value="#{articleBean.artList1}" var="sel" width="100%" border="0" cellspacing="0"
             cellpadding="0" columnClasses="center" class="TableStyle">
  <h:column>
    <h:commandButton id="deleteArticle" image="../resources/images/Delete.png" action="#{articleBean.deleteAction}">
      <f:setPropertyActionListener target="#{articleBean.articuloPromocionVO}" value="#{sel}"/>
      <f:ajax render=":articleSelectionForm:artDescTable selectedArtTable" execute="@form"/>
    </h:commandButton>
  </h:column>
  <h:column>
    <f:facet name="header">#{msgs.mpromo_article_selection_articles_selected}</f:facet>
    #{sel.articuloNombre} - #{sel.descripcion}
  </h:column>
</h:dataTable>
</div>

Here, articleSelectionForm is the form name
artDescTable refers to TableA
selectedArtTable refers to TableB.

I have tried many combinations for the <f:ajax> tag, but nothing works out. Example,

<f:ajax render=":articleSelectionForm:artDescTable selectedArtTable" execute="@form" />
<f:ajax render=":articleSelectionForm:artDescTable :articleSelectionForm:selectedArtTable" execute="@form" />
<f:ajax render=":articleSelectionForm:artDescTable :articleSelectionForm:selectedTableId:selectedArtTable" execute="@form" />

Please tell me where I am wrong in understanding.

  • 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-01T07:21:30+00:00Added an answer on June 1, 2026 at 7:21 am

    It must refer the client ID of the component. For starters, the easiest way to figure the proper client ID is to open the page in browser, rightclick and View Source and locate the HTML representation of the JSF component. It’ll look like this

    <table id="foo:bar:tableId" ...>
    

    You need to take exactly this value and prefix it with :.

    <f:ajax render=":foo:bar:tableId" ... />
    

    If it’s not prefixed with :, the default NamingContainer separator character, then it will be resolved relative to the current NamingContainer parent. Such components are <h:form>, <h:dataTable>, <ui:repeat>, composite components, etc.

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

Sidebar

Related Questions

I am facing a very strange problem where the same loop keeps giving me
I am facing a very strange problem. I have a grid and when i
I'm facing a apparently very strange problem (I must be doing something wrong, just
I am facing a very strange issue. I have a SharePoint webpart that displays
I am facing a very strange problem with editingStyleForRowAtIndexPath method. I am planing to
I have been facing a strange problem while returning dataset through WCF service (WSHttpBinding).
I'm facing very strange issue, I'm getting JSON object from django powered site and
I'm facing a very buggy issue, in ASP.NET application after viewing the same report
I am facing very strange and difficult problem. I am developing a web app,
Its very strange behavior that I'm facing. I have delete button, OnClick I'm attaching

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.