Stupid me. Of course I have a nested  tag in my <h2>.

<div id="categories" wicket:id="categories">
      <h2 wicket:id="titleRest">[[titleFirst]] [[titleRest]]</h2>
</div>

I need to add text for both  and <h2> in the populateItem method of a
ListView.



igor.vaynberg wrote:
> 
> you can use a label for h2 elements, why not?
> 
> the only requirement of a label is that it has no nested wicket
> components.
> 
> -igor
> 
> 
> On Feb 10, 2008 7:09 AM, reikje <[EMAIL PROTECTED]> wrote:
>>
>> Hi, how can you add nested tags without getting a "Expected close tag"
>> error?
>> I have this html markup:
>>
>> <div id="categories" wicket:id="categories">
>>      <h2 wicket:id="titleRest">[[titleFirst]] [[titleRest]]</h2>
>> </div>
>>
>> categories will be a ListView and in the populateItem method, I want to
>> add
>> text to <h2> and  in each iteration. I understand that I cannot use a
>> Label
>> for the <h2> because it is not a container. Any way I can get this done
>> in
>> another way?
>> --
>> View this message in context:
>> http://www.nabble.com/Nested-labels--%3E-Expected-close-tag-tp15397144p15397144.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Nested-labels--%3E-Expected-close-tag-tp15397144p15399336.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to