[
https://issues.apache.org/jira/browse/WICKET-4894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13506450#comment-13506450
]
Jonas Pohlandt edited comment on WICKET-4894 at 11/29/12 1:15 PM:
------------------------------------------------------------------
Hi Martin,
thanks for the quick reply and the solution. It took me a while to figure out
the cause of this (and might take other people a while as well), so I suppose a
warning when using the response.renderCSSReference overload with the
"condition" parameter during an ajax request would be very helpful. Do you
accept patches or pull requests on GitHub?
Another thing: is getSession().getClientInfo() going to work during an ajax
request if called for the first time in the lifetime of the session?
Cheers
Jonas
was (Author: pohlandt):
Hi Martin,
thanks for the quick reply and the solution. It took me a while to figure out
the cause of this (and might take other people a while as well), so I suppose a
warning when using the response.renderCSSReference overload with the
"condition" parameter during an ajax request would be very helpful. Do you
accept patches or pull requests on GitHub?
Cheers
Jonas
> Internet Explorer fails fails to properly include conditional stylesheet
> links added via AjaxRequestTarget
> ----------------------------------------------------------------------------------------------------------
>
> Key: WICKET-4894
> URL: https://issues.apache.org/jira/browse/WICKET-4894
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5.4
> Reporter: Jonas Pohlandt
> Priority: Minor
> Attachments: quickstart.zip
>
>
> CSS references added like this
> @Override
> public void renderHead( IHeaderResponse response ) {
> super.renderHead( response );
> response.renderCSSReference(
> new PackageResourceReference( getClass(), "TestLabel.css" ));
> response.renderCSSReference(
> new PackageResourceReference( getClass(), "TestLabel-conditional.css"
> ), null, null, "gte IE 8" );
> }
> will not be taken into account by Internet Explorer (tested with 8 and 9) at
> when rendering the document.
> I stepped though wicket-ajax.js and saw that the function added in
> Wicket.Head.Contributor.processComment will actually be executed and a new
> child node will be appended to the head node of the document. Unfortunately
> it seems IE disregards conditional comments added in this way.
> I encountered this using Wicket 1.5.4.
> I'll upload a quickstart.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira