In data martedì 27 agosto 2013 15:58:52, francois meillet ha scritto:
> try that
>         <form wicket:id="form">
>             <label wicket:id="label_tag" for="anything">
>                 <span  wicket:id="label_tag_Text" ></span>
>             </label>
>             <input wicket:id="name" type="text" size="40" id="anything" >
>         </form>

Maybe that would work to some extent, but it would have at least the following 
issues:

1. it wouldn't pass HTML validation (<label for="..."> must refer to an 
existing <input id="...">)

2. Given 1 above, it wouldn't be possible to reuse the panel in a 
RepeatingView and obtain valid HTML anymore, because in RepeatingViews Wicket 
needs wicket:for attribute in order to generate valid for="..." and id="..." 
pairs.

3. it wouldn't pass to the browser the information about what label matches 
what input field (the fact they invented the <label> tag must mean something, 
right?)
 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to