Thank you for your help!
It works great!
Benjamin
2007/8/24, Igor Vaynberg <[EMAIL PROTECTED]>:
>
> the problem is you replace it but do not update the reference so next time
> the onclick runs it calls replacewith on an old reference. it is a common
> mistake.
>
> EinsatzPanel newPanel = new Ein
the problem is you replace it but do not update the reference so next time
the onclick runs it calls replacewith on an old reference. it is a common
mistake.
EinsatzPanel newPanel = new EinsatzPanel("einsatzPanel", ein);
newPanel.setOutputMarkupId(true);
einsatzPanel.replaceWith(newPanel);
einsatz
Hi Benjamin,
where is the Panel einsatzPanel defined?
Maybe it helps defining it as a Class property?
Kind regards
Florian Sperber
Benjamin Ernst wrote:
Hi,
I am trying to replace a Panel, which is inside a Form, which is inside a
Page, which is inside a ModalWindow.
The first time it works
Hi,
I am trying to replace a Panel, which is inside a Form, which is inside a
Page, which is inside a ModalWindow.
The first time it works fine, but when I want to replace it a second time,
the Panel has no parent.
Here is the code:
listItem.add(new AjaxButton("pflege", MitarbeiterForm.this) {