Hi,
good catch, but unfortunately removing that surrounding <div> did not solve the 
problem.

Checking the *generated *markup for <form wicket:id = "wakeUpForm">  , I see 
that it is translated and the id is changed, so it does not seems to create a collision to use 
same wicket:id as another id, even though it may be confusing for reading and debugging.

 <form id="id2" method="post" action="./?6-3.-wakeUpForm"><div id="id2_hf_0" hidden="" 
class="hidden-fields"></div>
          <div id="idb">
          <table  class="wakeUptable" >





*Laurent Duparchy
ESRF - The European Synchrotron
MIS Unit
04 76 88 22 56*
Dirk Forchel wrote on 03/11/2022 08:19:
Hi Laurent,
I've noticed that you use the same markup ID 'wakeUpForm' twice. Maybe that's 
the reason for some Ajax problems.
Dirk

Am 28/10/2022 um 09:43 schrieb Laurent Duparchy:
Hi,

Sorry for the basic question.... If this is the wrong place to ask, please tell 
me.
If there is a relevant documentation to read, tell me as well.

I'm upgrading a very old & small app from Wicket 1.4 to Wicket 9.

Following an Ajax call, one component is not refreshed as it was before.

This is the "userDevicesListView" which is inside the "devicesGroup" component. 
See below.

<div id="wakeUpForm">
          <form wicket:id = "wakeUpForm">
          <div wicket:id="devicesGroup">

              <table  class="wakeUptable" >
                <th><wicket:message key="selectMessage"/></th>
                <th><wicket:message key="hostNameMessage"/></th>
                <th><wicket:message key="macMessage"/></th>
                <th><wicket:message key="reachable"/></th>
                <th><wicket:message key="removeMessage"/></th>
                <tbody>
                     <tr wicket:id="userDevicesListView">
...
        </div>

Upon the Ajax call the userDevicesListView is changed and devicesGroup is added 
to the target and should be rendered / repainted but it is not.

public void onClick(Optional<AjaxRequestTarget> target) {
            Device deviceToRemove = (Device) getModelObject();
            try {
                removeDevice(deviceToRemove, user);
                info(deviceToRemove.getHostName() + " " + 
getString("device.removed"));
            } catch (Exception e) {

                LOG.error("error while deleting" + 
deviceToRemove.getHostName(), e);
                error(e);

            }

            target.get().add(devicesGroup);
            target.get().add(feedbackPanel);
        }



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to