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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T21:56:07+00:00 2026-06-18T21:56:07+00:00

I have a AjaxFallbackDefaultDataTable table witch some text column (PropertyColumn). The table contains also

  • 0

I have a AjaxFallbackDefaultDataTable table witch some text column (PropertyColumn). The table contains also a column with editable text fields. I’d like to update by AJAX one of the PropertyColumn, but I don’t want to update the entire table.
How can I do that?

  • 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-18T21:56:08+00:00Added an answer on June 18, 2026 at 9:56 pm

    If you use Wicket 6 you could use inter component Events.

    First create an event which holds the AjaxRequestTarget like this:

    public class AjaxUpdateEvent {
        private final AjaxRequestTarget target;
    
        public AjaxUpdateEvent(AjaxRequestTarget target) {
            this.target = target;
        }
        public AjaxRequestTarget getAjaxRequestTarget() {
            return target;
        }
    }
    

    You can send such an event form any Component you want using the send() method. You send events like this:

    send(getPage(), Broadcast.DEPTH, new AjaxUpdateEvent(target));

    Then in the AjaxFallbackDefaultDataTable i would try to override newCellItem and listen there for the event when fired from somewhere sometime and add the desired cell item to the AjaxRequestTarget. Something like that:

        AjaxFallbackDefaultDataTable table =
                new AjaxFallbackDefaultDataTable("table", null, null, FLAG_RESERVED1) {
            @Override
            protected Item newCellItem(String id, int index, IModel model) {
                Item item;
                if (index == indexOfColumnYouWant){
                    item = new Item(id, index, model) {
                        @Override
                        public void onEvent(IEvent<?> event) {
                            super.onEvent(event); 
                            if ((event.getPayload() instanceof AjaxUpdateEvent) ){
                                ((AjaxRequestTarget)event.getPayload()).add(item);
                            }
                        }
                    };
                } else {
                    item = super.newCellItem(id, index, model);
                } 
    
                return item;
            }
        };
    

    Additionally you could also add the item to the target if it isVisible().

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

Sidebar

Related Questions

Have a MySQL database table with 2 columns: id, url The url column has
Have a text box which get data for price. If someone enter something like
I have an AjaxFallbackDefaultDataTable which contains one row per test result. A test result
Have an app that can use tts to read text messages. It can also
Have a procedure which looks like Procedure TestProc(TVar1, TVar2 : variant); Begin TVar1 :=
have 2 questions : A computer with 32-bit address uses 2-level page table (9
have numerous tests working, but my actual test of some objects is failing and
Have a linking (or ref) table which has a dual primary key. Need to
have a class structure like so Permit -> Financial ->ICollection instrumentList Instrument -> Agency
Have been trying for hours - unfortunately I'm stuck on this three-table join. The

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.