Re: controlling number with wicket?

2008-08-28 Thread Michael Sparer
[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 re

Re: controlling number with wicket?

2008-08-27 Thread Sami
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: if I put s wicket:id inside the i get an error because of the after it , I get: Expect

Re: controlling number with wicket?

2008-08-27 Thread pointbreak+wicketstuff
google and find http://cwiki.apache.org/WICKET/how-to-modify-an-attribute-on-a-html-tag.html On Wed, 27 Aug 2008 20:52:56 +0100, "Sami" <[EMAIL PROTECTED]> said: > 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: >

Re: controlling number with wicket?

2008-08-27 Thread Vit Rozkovec
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: - wicket:id="categoryName">[Category]

Re: controlling number with wicket?

2008-08-27 Thread Igor Vaynberg
use an attribute modifier -igor On Wed, Aug 27, 2008 at 12:52 PM, Sami <[EMAIL PROTECTED]> 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: > - > > wicke

controlling number with wicket?

2008-08-27 Thread Sami
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: - wicket:id="categoryName">[Category] wicket:id="Info">[Info] [Type]