[td wicket:id="cell"][a wicket:id="link"]Foo[/a][/td]
WebMarkupContainer cell = new WebMarkupContainer("cell");
cell.add(new AttributeModifier("colspan", true, new Model("2")));
cell.add(new Link("link) { /* snip */});
... might be some typos in it but something like that should do the trick
regards,
Michael
Sami-18 wrote:
>
> Thanks for the reply, but is there an example for AttributeAppender?
> I checked the java Doc but still can't figure out how to use it inside a
> ListView
> it just appends it inside the list view container:
>
> <wicket:container colspan="2" wicket:id="categoryListView">
>
> if I put s wicket:id inside the <td colspan="2"> i get an error because
> of the after it , I get:
>
> Expected close tag for '<td colspan="2" wicket:id="col">' Possible
> attempt to embed component(s) ' # ' in
> the body of this component which discards its body
>
> Sami
>
>
> Vit Rozkovec wrote:
>> Hallo,
>> you can do with AttributeModifier or AttributeAppender.
>>
>> Vitek
>>
>> Sami wrote:
>>> Hello,
>>> I have been trying to control the colspan in a table but no luck :(
>>>
>>> any one has an example of how to do it?
>>>
>>> code:
>>> -------------------------------------------------
>>> <tr>
>>> <td colspan="2"> # > wicket:id="categoryName">[Category] </td>
>>> <wicket:enclosure child="Info">
>>> <td align="center" nowrap>> wicket:id="Info">[Info]</td>
>>> <td align="center">> wicket:id="Type">[Type]</td>
>>> <td align="center">> wicket:id="Date">[Date]</td>
>>> </wicket:enclosure>
>>> </tr>
>>> -------------------------------------------------
>>>
>>> I want to control the number in the colspan markup?
>>> I tried <td colspan="#" wicket:id="colNum"> but didnt work.
>>>
>>> Many thanks
>>> Sami
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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]
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
-----
Michael Sparer
http://talk-on-tech.blogspot.com
--
View this message in context:
http://www.nabble.com/controlling-%3Ctd-colspan%3D%22-%22%3E-number-with-wicket--tp19188521p19196122.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]