I added a container, but no update happens.
What I'm doing wrong?
I have a container and a DataView, which is binded to a
SortableDataProvider.
When AjaxButton is pressed I take a value from my text field, change the
internal state of the provider and add to a target DataView's container
AjaxButton show = new AjaxButton("Show") {
@Override
protected void onSubmit(AjaxRequestTarget target,
Form<?> form) {
String selected = field.getModelObject();
if (selected!=null) {
provider.setPersonString(selected);
}
target.addComponent(container);
}
};
However, the view remains empty. It looks like I should say him that his
provider changed and it should refresh.
How I do this?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Example-of-Ajax-DataView-update-tp3053204p3053427.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]