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 appropriate Markup has just following tags (ShoppingCartPanel.html):
<wicket:panel>
 Content
</wicketpanel>

In the other Page (that inherits from Index) I have implemented the
AjaxSubmitLink:

add(new AjaxSubmitLink("addtocart") {
            @Override
            protected void onSubmit(AjaxRequestTarget target, Form form) {
                target.addComponent(?????????????????);

What I want is, when the link is activated the panel should be updated...

First: I don't really understand what I have add to the addComponent()
method ?
Second: Where schould I set setOutputMarupId(true) ?

Thank You!

Reply via email to