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]

Reply via email to