I replaced "Id" with "class" and it worked !

Thanks.

2009/9/4 Jeremy Thomerson <jer...@wickettraining.com>

> I'm not sure you can change the ID of an element in an Ajax request.
>  Wicket
> depends on the ID to do component replacement.  Try using a class instead.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
> On Thu, Sep 3, 2009 at 5:57 PM, Altuğ B. Altıntaş <alt...@gmail.com>
> wrote:
>
> > Hi ;
> >
> > In Panel I have a  AjaxButton
> >
> > In that  AjaxButton, I tried to update the background (Parent Pages's
> > WebMarkupContainer). Here is the simplified code :
> >
> >  AjaxButton vote = new AjaxButton("Vote") {
> >
> >                    @Override
> >                    protected void onSubmit(AjaxRequestTarget target,
> > Form<?> form) {
> >
> >                        .........
> >                       WebMarkupContainer content =  (WebMarkupContainer)
> > super.findPage().get("Content");
> >                       content.add(new SimpleAttributeModifier("id",
> > "content_selected")) ;
> >                       target.addComponent(content);
> > }
> > ....
> >
> > Also I set WebMarkupContainer.setOutputMarkupId(true);  in my parent page
> >
> > Any suggestions ?
> >
> > Thanks.
> >
> > --
> > Altuğ.
> >
>



-- 
Altuğ.

Reply via email to