I hope someone can help me, I just don't know if I'm doing something really 
stupid, or if this is a bug.. A big stacktrace appears after the following 
actions: add / submit / add / submit.

I'm using the latest 1.3.0 incubating snapshot.

info("product added");  <-- causing the stacktrace (I think...)

Code:

ProductListPage.java
public class ProductListPage extends WebPage {
    public ProductListPage() {
        add(new FeedbackPanel("status"));
        add(new Link("add"){
            @Override
            public void onClick() {
                setResponsePage(new ProductDetailPage(getPage(), new Model(new 
Product())));
            }
        });
    }
}


ProductListPage.html
<a href="#" wicket:id="add">Add New Product</a>
<p><span wicket:id="status"/></p>


ProductDetailPage.java
public class ProductDetailPage extends WebPage {
    
    private Page backPage;

    public ProductDetailPage(Page backPage, IModel model) {
        this.backPage = backPage;
        add(new FeedbackPanel("status"));
        add(new ProductForm("productForm", new CompoundPropertyModel(model)));
    }
    public final class ProductForm extends Form {
        public ProductForm(String id, IModel model) {
            super(id, model);
            add(new Button("submitQuery") {
                public void onSubmit() {
                    info("product added"); // causing StackOverflowError
                    setResponsePage(backPage);
                }
            });
        }
    }
}


       
---------------------------------
You snooze, you lose. Get messages ASAP with AutoCheck
 in the all-new Yahoo! Mail Beta. 
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to