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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:39:03+00:00 2026-05-25T19:39:03+00:00

i got the following structure which display editable rows in an html table Panel

  • 0

i got the following structure which display editable rows in an html table

Panel
 + WebMarkupContainer - in HTML <tbody wicket:id="container">
   + ListView which for each item in the list does (in HTML this)
     + item.add(new PopTable1Row("Pop1Panel", popTable1Item, ComponentMode.EDIT));
       + PopTable1Row component contains
         + Form
           + some inputs and a 2 submit buttons (Save, Delete)

Now i want to achieve that for example by clicking on delete the list view will AJAX like reload without reloading the whole page. The Delete button deletes a row from a table, so one row should disappear.

I achieved reloading the ListView by using AjaxSelfUpdatingTimerBehavior:

WebMarkupContainer.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(5)));

It refreshed the listView every 5 seconds.
OK, but now i want to refresh the listView in onSubmit of the for example the Delete Button.

And here;s the question: how to do this?

I tried in the onSubmit:

this.getParent().getParent().getParent().getParent().render();
this.getParent().getParent().getParent().getParent().renderComponent();

But both did not work.

  • 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-25T19:39:04+00:00Added an answer on May 25, 2026 at 7:39 pm

    First you have to set outputId to true in yours listView. So Wicket will generate an id for the list tag, required to be updated by ajax.

    yourListView.setOutputMarkupId(true);

    And then in your onSubmit method tell Wicket to repaint the list. Note that in the example the save button is a AjaxLink, but you can use other components.

    AjaxLink<Void> dltBttn = new AjaxLink<Void>("yourButtonId") {
      public void onClick(AjaxRequestTarget target) {
        // your stuff
    
        if(target != null) {
          // tells wicket to repaint your list
          target.addComponent(yourListViewComponent); 
    }
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a table, called faq_questions with the following structure: id int not_null auto_increment,
We got a requirement to implment following structure of table (It's a sample; data
I've got the following problem. My table ( geo_table ) structure is as follows:
I have got the following class structure, and have plenty of classes like C
I've got following problem: (c#) There is some class (IRC bot), which has method,
I've got several nested classes, with the following structure: BackupLocation contains list of BackupClients
I've got a table which has the usual ParentID, ChildID as it's first two
I've got the following structure: struct A { A(); virtual ~A(); virtual void Foo()
I got a markup with the following structure : <body> <h1>Title</h1> <p>bla</p> <div> ...
ma dears, i got issues more here, which could't passing structure over g_timout_add with

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.