-----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? >>> >>> > > - -- Justin Lee http://www.antwerkz.com AIM : evan chooly Phone: 720.299.0101 Skype : evan chooly -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (Cygwin) iD8DBQFEKrmIJnQfEGuJ90MRA4oYAKCBFYKJ6f6FMRTbDw30BzURV+3SwgCgjMAj 5COkfvPXYxJUmXIcLuJAK3A= =EE2d -----END PGP SIGNATURE----- ------------------------------------------------------- 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 Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user