You could do something like this, 

    @Inject 
    @Path("context:css/ie-only.css")
    private Asset ieOnlyStylesheet;

    // add an IE-only style sheet if browser is IE 7 || IE 8
    void afterRender() {
        this.js.importStylesheet(
            new StylesheetLink(ieOnlyStylesheet, 
                new StylesheetOptions(null).withCondition("(IE 7)|(IE 8)")
            )
        ); 
    }

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Conditionally-IE-including-javascript-tp5714506p5714568.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to