Thank You Igor !
That helps, i added it to my border...
Snippet:
  NavomaticBorder navomaticBorder = new 
  NavomaticBorder("navomaticBorder");
  navomaticBorder.add(new Test("formTest"));
  add (navomaticBorder);
and it works!
hagen

-------- Original-Nachricht --------
> Datum: Thu, 19 Feb 2009 08:33:29 -0800
> Von: Igor Vaynberg <[email protected]>
> An: [email protected]
> Betreff: Re: Problem with Forms within Navomatic

> you are putting the form inside the border, so you have to add it to
> the border or make the border transparent by overriding
> istransparentresolver() and returning true.
> 
> -igor
> 
> On Thu, Feb 19, 2009 at 6:42 AM, Hagen Dasz <[email protected]> wrote:
> > 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]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]

-- 
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]

Reply via email to