and please add a junit test (not just describing the problem). src/test contains plenty of junit test you might copy&paste (search for WicketTestCase)
Juergen On 3/29/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > it might be a bug because we handle <p> tags specially ( we dont require > them to be closed) i believe, please file. > > -Igor > > > > On 3/29/06, Rüdiger Schulz <[EMAIL PROTECTED]> wrote: > > Justin Lee wrote on 29.03.2006 at 18:44: > > > > thanks for your quick reply :) > > > > Actually, that is what I also thought is logical. Still I wonder why > > this works, with the red asteriks and all: > > > > <form wicket:id="fooForm"> > > <div wicket:id="barFeedback"> > > <input type="text" wicket:id="barText" /> > > </div> > > </form> > > > > and this here not, throwing the Exception mentioned: > > > > <form wicket:id="fooForm"> > > <p wicket:id="barFeedback"> > > <input type="text" wicket:id="barText" /> > > </p> > > </form> > > > > with the exact same Java code to create the page. > > > > > > > -----BEGIN PGP SIGNED MESSAGE----- > > > Hash: RIPEMD160 > > > > > Right. then you'd add the feedback panel and textfield directly to your > > > page/panel. Otherwise, you'd have to add the textfield to your feedback > > > panel since that's where you had it nested. > > > > > Rüdiger Schulz wrote: > > >> Justin Lee wrote on 29.03.2006 at 18:12: > > >> > > >>> <form wicket:id="fooForm"> > > >>> <p wicket:id="barFeedback"></p> > > >>> <input type="text" wicket:id="barText" /> > > >>> </form> > > >> > > >> Sorry, this doesn't work either :( > > >> Wouldn't that be a component tree like that: > > >> > > >> fooForm:barFeedback > > >> fooForm:barText > > >> > > >> ? > > >> > > >> Still wondering why my example works with <div> but not with <p>... > > >> > > >> > > >>> Rüdiger Schulz wrote: > > >>>> Hello list, > > >>>> > > >>>> I'm just starting to use Wicket 1.1, and stumbled upon an issue with > > >>>> the component tree. > > >>>> > > >>>> Say I have a Form fooForm and a TextField barText, which is wrapped > in a > > >>>> FormComponentFeedbackBorder barFeedback. The tree therefore is like > > >>>> this: > > >>>> > > >>>> fooForm:barFeedback:barText > > >>>> > > >>>> I'd like to do HTML like this: > > >>>> > > >>>> <form wicket:id="fooForm"> > > >>>> <p wicket:id="barFeedback"> > > >>>> <input type="text" wicket:id="barText" /> > > >>>> </p> > > >>>> </form> > > >>>> > > >>>> If I run the page, I get a MarkupException: Unable to find component > > >>>> with id 'barText'. > > >>>> > > >>>> But if I replace the <p> tag with a <div> tag, this works fine, which > > >>>> seems rather strange to me. Does it really matter in what tags i put > > >>>> the wicket:id? And if so, why is there no error regarding the > > >>>> barFeedback in the first place? Is there a list of valid tags for > > >>>> building the component tree in the HTML? > > >>>> > > >>>> > > >> > > >> > > > > > > > > > > > > -- > > greetings from Berlin, > > > > Rüdiger Schulz > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > > that extends applications into web and mobile media. Attend the live > webcast > > and join the prime developer group breaking into this new coding > territory! > > > http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642 > > _______________________________________________ > > Wicket-user mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
