Hi, 

I got some problems in my app with a nested ajax request.

In my form i'm using a DataTable whick includes AjaxEditableLabel 
components.
The Problem with these combination is that if a label is changed, the rest 
of the form is conditionally updated.
So the label refreshes the whole form:

protected void onSubmit(AjaxRequestTarget target)
{
        [...]
        this.getLabel().setVisible(true);
        this.getEditor().setVisible(false);

        target.addComponent(form);
}

The main problem is that when a user clicks into a label the editor is 
displayed. So far ok.
But if the user wants to leave the label, which has been changed, and 
clicks into the next editable label an exception occurs.

Everything works fine if the user clicks somewhere out of the DataTable 
and then into the next label.

I think this happens because wicket tries to refresh the form and doesn't 
find the next clicked label.

How to avoid this exception?


Freundliche Grüße / With kind regards
Fabian Hagen

S&N AG
Klingenderstr. 5
D 33100 Paderborn

voice     +49 5251/1581- 862
fax       +49 5251/1581-71
eMail     [EMAIL PROTECTED]
web       http://www.s-und-n.de

Vorstand
Klaus Beverungen
Josef Tillmann 

Vorsitzender des Aufsichtsrates
Heinz-Dieter Wendorff

Handelsregister
Amtsgericht Paderborn HRB 3270 

Reply via email to