So if I understand you correctly, you want to change attributes dynamically on static markup from within your Java on the server (as opposed from within the JavaScript on the client)?

For this to happen, when you only need control on the attributes, you'd use a WebMarkupContainer:

add(new WebMarkupContainer("foo").add(new AttributeModifier("bgcolor", "blue"));

Martijn

Vjeran Marcinko wrote:

----- Original Message ----- From: "Martijn Dashorst" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, July 22, 2005 9:33 AM
Subject: Re: [Wicket-user] Newbie confused about PageableListView


Use the AttributeModifier.

add(new Label("labelId", "Hello, World").add(new AttributeModifier("bgcolor", "black"));


Yeah, but now I'm controlling "bgcolor" attribute together with printing "Hello World" (Label component). I don't want to use Label, or some other component, I need some "NoOp" component, that does nothing, but only allows me to add AttributeModifier?

-Vjeran



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to