Re: Another same probleme with wicket:enclosure tag[SOLVED]

2013-11-14 Thread Selom
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 ModelAgent(Agent.emptyAgent())){

Another same probleme with wicket:enclosure tag

2013-11-13 Thread Selom
Hi, Need your help ... in MyPage .java { //bla bla ... private class FormulaireRechercheAgent extends FormAgent{ public FormulaireRechercheAgent(String id) { super(id,new

Re: Another same probleme with wicket:enclosure tag

2013-11-13 Thread Sven Meier
You're adding the label after the submit only @Override public void onSubmit(AjaxRequestTarget target, Form? form) { formulaireRechercheAgent.add(labelAgentMailpro); } Sven On 11/13/2013 11:23 AM, Selom wrote: Hi, Need

Re: Another same probleme with wicket:enclosure tag

2013-11-13 Thread Sven Meier
You'll have to add the label beforehand, either keep it invisible before submit or add a placeholder instead. Sven On 11/13/2013 11:48 AM, Selom wrote: Hello, Thanks you for yours reply. Of course, I want to show my label if only if the form formulaireRechercheAgent is submitted

Re: Another same probleme with wicket:enclosure tag

2013-11-13 Thread Selom
Hello, Thanks you for yours reply. Of course, I want to show my label if only if the form formulaireRechercheAgent is submitted successfully. I believe the form is not called yet , since I can not reach the html page. Sincerly yours. -- View this message in context:

Re: Another same probleme with wicket:enclosure tag

2013-11-13 Thread Selom
You are right, adding add(labelAgentMailpro) beforesolved the problem. Thank you very much. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Another-same-probleme-with-wicket-enclosure-tag-tp4662371p4662378.html Sent from the Users forum mailing list

Re: Another same probleme with wicket:enclosure tag

2013-11-13 Thread Selom
Now I replace the label by a form like this private FormulaireAgent formulaireAgent = new FormulaireAgent(formulaireAgent, new Agent()){ @Override protected void onConfigure(){ if (agentBySesame==null){