Skip to content

Commit

Permalink
Fixed merge errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristof Ryheul committed Aug 21, 2009
1 parent ca2cbb2 commit 66d607a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 35 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
<wicket:panel>
<<<<<<< HEAD:lunch_wicket/src/main/java/com/melexis/ProductList$ActionPanel.html
<a href="#" wicket:id="delete">delete</a>
=======
<a href="#" wicket:id="delete">delete</a> <a href="#" wicket:id="edit">edit</a>
>>>>>>> brh:lunch_wicket/src/main/java/com/melexis/ProductList$ActionPanel.html
<a href="#" wicket:id="delete">delete</a> <a href="#" wicket:id="edit">edit</a>
</wicket:panel>
31 changes: 1 addition & 30 deletions lunch_wicket/src/main/java/com/melexis/ProductList.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,6 @@ public ProductRepository getProducts() {
return this.productRepository;
}

public final class ActionPanel extends Panel {

public ActionPanel(String id, IModel<Product> model) {
super(id, model);


add(ajaxFallbackDefaultDataTable);
add(addProductForm);

}

public final class ActionPanel extends Panel {

public ActionPanel(String id, IModel<Product> model) {
Expand All @@ -105,25 +94,11 @@ public void onClick() {
}
});

add(new Link("edit") {

public void onClick() {
Product p = (Product) getParent().getDefaultModelObject();
}
});
}
}


public final class ProductForm extends Form {
private final Product product;
private Boolean add;


add(EditProduct.link("edit", model, productRepository));
}
}


public final class ProductForm extends Form {
private Product product;
private Boolean add;
Expand All @@ -137,10 +112,6 @@ public ProductForm(final String componentName, Product p) {
add = false;
product = p;
add(new Label("nameLabel", "name"));
add(new TextField("name", new PropertyModel(product, "name")));
add(new Label("priceLabel", "price"));
add(new TextField("price", new PropertyModel(product, "price")));

name = new TextField("name", new PropertyModel(product, "name"));
add(name);
add(new Label("priceLabel", "price"));
Expand Down

0 comments on commit 66d607a

Please sign in to comment.