What does wicket debug dialog say? ** Martin
2010/8/21 zoran <[email protected]>: > > Hi, > > I have one wicket page containing two different panel. Based on the same > event, these panels should be changed with new instances of the same panels. > The methods that performs change of these panels are called after the same > event. However, first panel is changed without a problem, but the second > panel is created but it is not changed. > I used the same approach to change both panels. Here is the code: > > public <T extends UsedResourcesPanel> void updateUsedResourcesPanel(Class<T> > clazz, AjaxRequestTarget target){ > usedResourcesDiv=new WebMarkupContainer(urDIV); > usedResourcesDiv.setOutputMarkupId(true); > > try { > UsedResourcesPanel > tempUsedResourcesPanel=UsedResourcesPanel.class.getConstructor(String.class,URI.class,String.class,TargetCompetence.class).newInstance(urPANEL,this.currGoalUri,this.currGoalType,this.currTargCompetence); > > tempUsedResourcesPanel.setOutputMarkupId(true); > > tempUsedResourcesPanel.setCompetenceTitle(currTargCompetence.getCompetence().getTitle()); > > usedResourcesPanel.replaceWith(tempUsedResourcesPanel); > > usedResourcesPanel=tempUsedResourcesPanel; > > target.addComponent(usedResourcesPanel); > > } catch (Exception e) { > logger.error(e.getMessage(), e); > throw new > RestartResponseException(PLKMBasePage.class); > } > } > > Do you have any idea what is the problem here? > Thanks. > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Problem-to-replace-panel-tp2333462p2333462.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
