Re: controlling td colspan=? 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

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]



controlling td colspan=? 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:
-
tr
td colspan=2a href=# wicket:id=categoryHrefspan 
wicket:id=categoryName[Category]/span/a/td

wicket:enclosure child=Info
   td align=center nowrapspan 
wicket:id=Info[Info]/span/td

   td align=centerspan wicket:id=Type[Type]/span/td
   td align=centerspan wicket:id=Date[Date]/span/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]



Re: controlling td colspan=? 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:
 -
 tr
td colspan=2a href=# wicket:id=categoryHrefspan
 wicket:id=categoryName[Category]/span/a/td
wicket:enclosure child=Info
   td align=center nowrapspan
 wicket:id=Info[Info]/span/td
   td align=centerspan wicket:id=Type[Type]/span/td
   td align=centerspan wicket:id=Date[Date]/span/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]



Re: controlling td colspan=? 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:
-
tr
td colspan=2a href=# wicket:id=categoryHrefspan 
wicket:id=categoryName[Category]/span/a/td

wicket:enclosure child=Info
   td align=center nowrapspan 
wicket:id=Info[Info]/span/td
   td align=centerspan 
wicket:id=Type[Type]/span/td
   td align=centerspan 
wicket:id=Date[Date]/span/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]



Re: controlling td colspan=? 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:
 -
 tr
  td colspan=2a href=# wicket:id=categoryHrefspan 
 wicket:id=categoryName[Category]/span/a/td
  wicket:enclosure child=Info
 td align=center nowrapspan 
 wicket:id=Info[Info]/span/td
 td align=centerspan
 wicket:id=Type[Type]/span/td
 td align=centerspan
 wicket:id=Date[Date]/span/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]



Re: controlling td colspan=? 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:

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 a href. ..  after it , I get:


Expected close tag for 'td colspan=2 wicket:id=col' Possible 
attempt to embed component(s) 'a href=# wicket:id=categoryHref' 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=2a href=# wicket:id=categoryHrefspan 
wicket:id=categoryName[Category]/span/a/td

wicket:enclosure child=Info
   td align=center nowrapspan 
wicket:id=Info[Info]/span/td
   td align=centerspan 
wicket:id=Type[Type]/span/td
   td align=centerspan 
wicket:id=Date[Date]/span/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]