adding a Webmarkupcontainer to AjaxRequestTarget

View: New views
1 Messages — Rating Filter:   Alert me  

adding a Webmarkupcontainer to AjaxRequestTarget

by fachhoch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

here is my code

        MarkupContainer  dataTableContainer= new
WebMarkupContainer("dataTableContainer");
        dataTableContainer.setOutputMarkupId(true);

dataTableContainer.add(doSearch?getDataPanel("dataTable",dataTableDTO):new
EmptyPanel("dataTable"));




and In OnSubmit  method of a form  I set doSearcto true  call
target.addComponent("dataTableContainer");

I was   expecting to see the component returned from
getDataPanel("dataTable",dataTableDTO)   and not empty panel   ,
to debug I know  a RefreshingView   populateItem method gets called but in a
WebMarkupContainer which method gets called for ajax requests ?