Need Help in Dynamic CSS generation

2009-07-23 Thread FaRHaN
I am working on creating Dynamic StyleSheets in wicket, and i found an example 
of similar behaviour in Wicket Examples 
http://cwiki.apache.org/WICKET/dynamically-generate-a-css-stylesheet.html but 
it is not working. When i place the following code in my CSS file (style.css), 
it generates error.
body{background:${color1};}
The css file doesn't recognizes $ simbol. Is this allowed in CSS file or not ? 
Please Help me out to fix this problem.

Thanks
--Farhan--



  

Re: Need Help in Dynamic CSS generation

2009-07-23 Thread Mathias Nilsson

The $ is used to replace the variable (interpolated value). It's the same
technique used in properties files to replace some text. This sample works
fine. if you look at the css it has been generated according to the load()
method.

It must be you IDE that complains about this. maybe you can shut the varning
off.
-- 
View this message in context: 
http://www.nabble.com/Need-Help-in-Dynamic-CSS-generation-tp24623639p24623863.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Need Help in Dynamic CSS generation

2009-07-23 Thread FaRHaN
I am using netbeans IDE 6.5, but i dont think this is the problem of the IDE. 
It throws error of Unexpected Symbol found ($). Can you please provide me the 
working code of using variables in css ?





From: Mathias Nilsson wicket.program...@gmail.com
To: users@wicket.apache.org
Sent: Thursday, July 23, 2009 4:28:08 PM
Subject: Re: Need Help in Dynamic CSS generation


The $ is used to replace the variable (interpolated value). It's the same
technique used in properties files to replace some text. This sample works
fine. if you look at the css it has been generated according to the load()
method.

It must be you IDE that complains about this. maybe you can shut the varning
off.
-- 
View this message in context: 
http://www.nabble.com/Need-Help-in-Dynamic-CSS-generation-tp24623639p24623863.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


  

Re: Need Help in Dynamic CSS generation

2009-07-23 Thread Mathias Nilsson

I use Eclipse and all I have to do was copying and pasting the code from the
url you supplied. 

I'm no Netbeans user so maybe someone else could answer this.
-- 
View this message in context: 
http://www.nabble.com/Need-Help-in-Dynamic-CSS-generation-tp24623639p24624432.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Need Help in Dynamic CSS generation

2009-07-23 Thread FaRHaN
Ok thanks,
If any user of netBeans IDE have checked this example 
http://cwiki.apache.org/WICKET/dynamically-generate-a-css-stylesheet.html, then 
he must encountered this problem. Please help me out to resolve it ?


--Farhan--



From: Mathias Nilsson wicket.program...@gmail.com
To: users@wicket.apache.org
Sent: Thursday, July 23, 2009 5:08:10 PM
Subject: Re: Need Help in Dynamic CSS generation


I use Eclipse and all I have to do was copying and pasting the code from the
url you supplied. 

I'm no Netbeans user so maybe someone else could answer this.
-- 
View this message in context: 
http://www.nabble.com/Need-Help-in-Dynamic-CSS-generation-tp24623639p24624432.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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