Hi !! Ok for closing this topic.
I created a custom panel. and the PanelAgent.html like this. //In web Page class private PanelAgent panelInfosAgent = new PanelAgent("panelInfosAgent",new Model<Agent>(Agent.emptyAgent())){ @Override protected void onConfigure(){ if (agentBySesame==null){ this.setVisible(false); } else { setVisible(true); } } }; Then in the web page html <wicket:enclosure child=panelInfosAgent> <div wicket:id="panelInfosAgent"></div> </wicket:enclosure> </div> And it works as expected. That's a best pratices I think. Next time. Selom wrote > When formulaireRechercheAgent is submitted, formulaireAgent come with * > null value model. * > > Do you mind tell me what wrong with this code ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Another-same-probleme-with-wicket-enclosure-tag-tp4662371p4662425.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