Hi,

I am facing a problem in refreshing a panel. The requirement is I have a
panel A which has Panel B. Panel A carries list of LDM which is being passed
to Panel B. 

public class PanelA {

       private LoadableDetachableModel<List&lt;PostDomain>>
*detachablePostDomainList *= new
LoadableDetachableModel<List&lt;PostDomain>>() {

                
                protected List<PostDomain> load() {
                        return new ArrayList<PostDomain>();
                }
        };

public PanelA() {
*this.setOutputMarkupId(true);*
detachablePostDomainList = new
LoadableDetachableModel<List&lt;PostDomain>>() {
                        /**
                                 * 
                                 */
                        private static final long serialVersionUID = 1L;

                        @Override
                        protected List<PostDomain> load() {
                                return new List();
                        }
                };

}

*final PanelB panelB= new PanelB("B",
                                detachablePostDomainList, PanelA.this);
                showPostPanel.setOutputMarkupPlaceholderTag(true);
*

IndicatingAjaxButton ajaxPostSubmitButton = new IndicatingAjaxButton(
                                "submitPost", postForm) {
                         // some operations

                        public void onSubmit(AjaxRequestTarget target, final 
Form<?> form) {
                                if (target != null) {
                                        target.add(PanelA.this);

                                }

                        }


                };


}

In the above scenario, when I refresh panelA from itself by pressing
ajaxPostSubmitButton, LDM list is getting updated but when I refresh PanelA
from PanelB, nothing happens. What is the reason? I am refreshing PanelA
from PanelB using the same manner. 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Need-help-in-refreshing-panel-tp4652014.html
Sent from the Users forum mailing list archive at Nabble.com.

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

Reply via email to