this is a matter of preference. it would be trivial to change the code to do this i think. the reason its not done is that we believe in mutating the semantics of  markup as little as possible to assure previewability with no surprises at runtime.

of course if enough people complain we might change our preference :) but usually after the first time you find out about it you like it because the default text makes it easier to find things in markup when you are looking.

-Igor



On 1/26/06, Mark Derricutt <[EMAIL PROTECTED]> wrote:
How hard would it be to have Label expand these empty <span/> elements?  Seems like it could be handy.  That being said, <span>DEFAULT TEXT</span> is also handy.


On 1/27/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
the problem is here

 <span wicket:id="item"/>

what label component does is replace its body with the contents of its model, but in this markup it has no body.


Reply via email to