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?
I have a AjaxFallbackDefaultDataTable table witch some text column (PropertyColumn). The table contains also
Share
If you use Wicket 6 you could use inter component Events.
First create an event which holds the
AjaxRequestTargetlike this:You can send such an event form any
Componentyou want using thesend()method. You send events like this:send(getPage(), Broadcast.DEPTH, new AjaxUpdateEvent(target));Then in the
AjaxFallbackDefaultDataTablei 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:Additionally you could also add the item to the target if it
isVisible().