The markupId has to be rendered before the actual Ajax request:
DefaultDataTable datatable = createDataTable();
datatable.setOutputMarkupId(true);
text.add(new AjaxFormComponentUpdatingBehavior("onchange") {
@Override
protected void onUpdate(AjaxRequestTarget target) {
target.addComponent(datatable);
}}
Sven
On 11/08/2012 10:46 PM, Antonio muñoz alonso wrote:
How could update a datatable?
DefaultDataTable datatable = createDataTable();
text.add(new AjaxFormComponentUpdatingBehavior("onchange") {
@Override protected void onUpdate(AjaxRequestTarget
target) {
datatable.setOutputMarkupId(true);
target.addComponent(datatable);
}}I
can not update datatable.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]