you need to add the updated panel into target:

target.addComponent(panelToBeUpdated);



2010/7/15 Mansour Al Akeel <mansour.alak...@gmail.com>:
> I just tried it. It doesn't update the panel. Here's the full code:
>
> public class ProductDetails extends Panel {
>
>       �...@ejb
>        private ProductServicesLocal productServices;
>
>        public ProductDetails(String id, final Product product) {
>                super(id);
>                setOutputMarkupId(true);
>                this.setCurrentProduct(product);
>                add(new Label("id"));
>
>                add(new AjaxEditableLabel<String>("codProduct",
>                                new 
> PropertyModel<String>((Product)getDefaultModelObject(), "codProduct")));
>
>                add(new AjaxLink<String>("save") {
>                       �...@override
>                        public void onClick(AjaxRequestTarget target) {
>                                System.out.println("saving product .... ");
>                        }
>                });
>        }
>
>        public void setCurrentProduct(Product product) {
>                setDefaultModel(new CompoundPropertyModel<Product>(product));
>        }
> }
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to