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?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to