Panel update after Ajax Submit

2011-03-01 Thread Dmitriy Neretin
Hello everybody! Hope someone can help me. I don't really understand, what I should add as ajax target :( So, I have an abstract class Index where I add all my panels (3) and it is my masterlayout. I add the panels in the index class like this: add(new ShoppingCartPanel(id, anotherMehod); The

Re: Panel update after Ajax Submit

2011-03-01 Thread Josh Kamau
Hi there, If you want to refresh the panel, call setOutputMarkupId(true) on the panel , then add the panel to the target. If the Ajax Link is on the same panel, you can call this.setOutputMarkupId(true) , and you can also add MyPanel.this to the target. The point is , what ever you want to

Re: Panel update after Ajax Submit

2011-03-01 Thread Dmitriy Neretin
Thanks for reply, If you want to refresh the panel, call setOutputMarkupId(true) on the panel , then add the panel to the target. Does it mean I should call setOutputMarkUpId(true) in the constructor of the panel? If I do so, the layout of the panel is destroyed. If the Ajax Link is on

Re: Panel update after Ajax Submit

2011-03-01 Thread Pedro Santos
Hi, if you update the panel within the form, you need to update it's submit link component outside this panel also. onsubmit(target){ target.addComponent(formPanel); target.addComponent(submitLinkNotNestedInsideTheFormPanel); } On Tue, Mar 1, 2011 at 9:51 AM, Dmitriy Neretin

Re: Panel update after Ajax Submit

2011-03-01 Thread Dmitriy Neretin
No, the panel is outside! What I just want, is that the panel shows me the result of the submit. But I did it :) Hier is my solution: 1. Call in the constructor of the panel setOutputMarkUpId(true); 2. Instantiate the panel Class in the abstract Class (masterlayout) as field and return it back

Re: Panel update after Ajax Submit

2011-03-01 Thread Zoltán Nagy
Hi! 2011/3/1 Dmitriy Neretin dmitriy.nere...@googlemail.com: Thanks for reply, If you want to refresh the panel, call setOutputMarkupId(true)  on the panel , then add the panel to the target. Does it mean I should call setOutputMarkUpId(true) in the constructor of the panel? If I do so,