Re: How to use StyleSheetOptions with condition

2012-06-14 Thread George Christman
Works good :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-use-StyleSheetOptions-with-condition-tp5713879p5713889.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsub

Re: How to use StyleSheetOptions with condition

2012-06-14 Thread Steve Eynon
To be honest I've never tried it, but it says here it should be okay: http://en.wikipedia.org/wiki/Conditional_comment Steve. On 15 June 2012 00:13, George Christman wrote: > Thanks Steven, nice to know the condition argument can handle multiple > conditions. > > -- > View this message in con

Re: How to use StyleSheetOptions with condition

2012-06-14 Thread George Christman
Thanks Steven, nice to know the condition argument can handle multiple conditions. -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-use-StyleSheetOptions-with-condition-tp5713879p5713885.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: How to use StyleSheetOptions with condition

2012-06-14 Thread George Christman
I was over thinking this, much simpler than I originally thought, Thanks Taha. -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-use-StyleSheetOptions-with-condition-tp5713879p5713883.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: How to use StyleSheetOptions with condition

2012-06-14 Thread Steve Eynon
The clue is in StylesheetLink#add. Try this: void afterRender() {    js.importStylesheet(new StylesheetLink(ieOnlyStylesheet, new StylesheetOptions(null).withCondition("(IE 7)|(IE 8)")) ); } Only the constructor and getter are deprecated. Steve. -- Steve Eynon --

Re: How to use StyleSheetOptions with condition

2012-06-14 Thread Taha Siddiqi
Hi George @Inject @Path("ie6.css") private Asset ie6Stylesheet; @SetupRender void addIEScripts() { javaScriptSupport.importStylesheet(new StylesheetLink( ie6Stylesheet, new StylesheetOptions().withCondition("IE 6") )); } regard