That's it! Thank you! -----Ursprüngliche Nachricht----- Von: Kai Mutz [mailto:[email protected]] Gesendet: Dienstag, 9. Juni 2009 15:19 An: [email protected] Betreff: RE: Browser specific header contribution
You can use org.apache.wicket.protocol.http.ClientProperties. One possibility to access the client properties is using WebSession.getClientInfo().getProperties() Cheers, Kai Stefan Lindner <mailto:[email protected]> wrote: > Is there a safe and official way to let an IHeaderContributor > contribute a browser specific javascript library? The > IHeaderContributor has ist's > > public void renderHead(final IHeaderResponse response) { > .... > response.renderJavascriptReference(...); > } > > method where I can contribute a javascript library tot he <head> part > oft he page. But sometimes I need a special library (e.g. for canvas > in IE). > > Should I use something like > > public void renderHead(final IHeaderResponse response) { > .... > response.renderJavascript("<!--[if IE...."); > response.renderJavascriptReference("canvas.js"); > esponse.renderJavascript("<![endif]-->"); > } > > Or is there a safe way to detect the browser from the IHeaderResponse? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
