Sorry i forgot to put the code snippets into the mail: > Hello ! > > I'm new to wicket, after testing the navomaticBorder stuff, i got a > question about adding a form into the > <span wicket:id = "navomaticBorder"> > </span> area: Doing this drops "a hierarchy does not match" Error... > > Any suggestions about MarkupContainer and hierarchies are welcome! > > Thanks in advance > > Hagen
Page2.html ========================== <html xmlns:wicket="http://wicket.apache.org/"> <head> <title>Page2</title> </head> <body> <h1>Page2</h1> <div wicket:id = "mainNavigation" style = "width:250px"/> <span wicket:id = "navomaticBorder"> <div style = "width:850px"> <center><h3>Erfassung Schicht</h3></center> <hr> <form wicket:id="input"> <div> <input type="text" wicket:id="text" /> <input value="Add" type="submit" /> </div> </form> </div> </span> </body> </html> ==========end of code ======== Page2.java: ============================== package template; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.form.Form; import org.apache.wicket.markup.html.form.TextField; public class Page2 extends WebPage { /** Add components to be displayed on page. */ public Page2() { add (new InputForm("input")); } public class InputForm extends Form { public InputForm(String id) { super(id); add(new TextField("text")); } } } =====EndofCode====== -- Jetzt 1 Monat kostenlos! GMX FreeDSL - Telefonanschluss + DSL für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
