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ğ.

Reply via email to