replace embedded css via ajax

2010-11-23 Thread nino martinez wael
Hi

Currently I draw some css this way:

response.renderString(style type=\text/css\ + customCss
+ /style);
But on every ajax request it appends the style to the header, I'd like to
replace it instead.. Any ideas?

Only thought I have are to put a label in the header and redraw that
instead, but it does not seem like the wicket way..

regards Nino


Re: replace embedded css via ajax

2010-11-23 Thread Igor Vaynberg
generate it in a dynamic resource instead of putting it directly into the page

or

add a bit of metadata to the page marking that you have contributed this

-igor

On Tue, Nov 23, 2010 at 3:41 AM, nino martinez wael
nino.martinez.w...@gmail.com wrote:
 Hi

 Currently I draw some css this way:

 response.renderString(style type=\text/css\ + customCss
 + /style);
 But on every ajax request it appends the style to the header, I'd like to
 replace it instead.. Any ideas?

 Only thought I have are to put a label in the header and redraw that
 instead, but it does not seem like the wicket way..

 regards Nino


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org