You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Zoltan Luspai (JIRA)" <ji...@apache.org> on 2009/04/29 13:59:31 UTC

[jira] Created: (WICKET-2248) on IE6 the ajax loaded css is not applied properly

on IE6 the ajax loaded css is not applied properly
--------------------------------------------------

                 Key: WICKET-2248
                 URL: https://issues.apache.org/jira/browse/WICKET-2248
             Project: Wicket
          Issue Type: Bug
    Affects Versions: 1.4-RC2
         Environment: IE 6
            Reporter: Zoltan Luspai


Hi,

I have a complex page where a component called WikiPageCard is not appearing at the first time the page is loaded, but only added later via an Ajax request. This WikiPageCard has its own external CSS file, which is added by this line in the constructor:

add(CSSPackageResource.getHeaderContribution(WikiPageCard.class, "WikiPageCard.css"));

The bug is that on IE6 the CSS is not getting applied when the component is added through an ajax request. The exactly same code works fine in IE7 and FF3. It even works with IE6 when I do a normal (non-ajax) request/response of the same page.
The only workaround I could get that I add the same CSS to the page where the component will appear, but it is not very nice since it breaks encapsulation.

If you require some sample code reproduces this problem I could hack one together.
Thanks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-2248) on IE6 the ajax loaded css is not applied properly

Posted by "Zoltan Luspai (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12704500#action_12704500 ] 

Zoltan Luspai commented on WICKET-2248:
---------------------------------------

Oh, what a crap this IE6 is; I have 31 stylesheets.  

Do you know some way to work around this? This seems to prevent using external css-es for components, as I can not predict which/how many components will be there on a page. 

Thanks for the help.


> on IE6 the ajax loaded css is not applied properly
> --------------------------------------------------
>
>                 Key: WICKET-2248
>                 URL: https://issues.apache.org/jira/browse/WICKET-2248
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 1.4-RC2
>         Environment: IE 6
>            Reporter: Zoltan Luspai
>
> Hi,
> I have a complex page where a component called WikiPageCard is not appearing at the first time the page is loaded, but only added later via an Ajax request. This WikiPageCard has its own external CSS file, which is added by this line in the constructor:
> add(CSSPackageResource.getHeaderContribution(WikiPageCard.class, "WikiPageCard.css"));
> The bug is that on IE6 the CSS is not getting applied when the component is added through an ajax request. The exactly same code works fine in IE7 and FF3. It even works with IE6 when I do a normal (non-ajax) request/response of the same page.
> The only workaround I could get that I add the same CSS to the page where the component will appear, but it is not very nice since it breaks encapsulation.
> If you require some sample code reproduces this problem I could hack one together.
> Thanks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WICKET-2248) on IE6 the ajax loaded css is not applied properly

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-2248.
-----------------------------------

    Resolution: Invalid
      Assignee: Igor Vaynberg

you are more then welcome to provide a path with a possible solution. if it makes sense we will include it in the framework. i am closing this issue though as this is not a wicket-related bug.

> on IE6 the ajax loaded css is not applied properly
> --------------------------------------------------
>
>                 Key: WICKET-2248
>                 URL: https://issues.apache.org/jira/browse/WICKET-2248
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 1.4-RC2
>         Environment: IE 6
>            Reporter: Zoltan Luspai
>            Assignee: Igor Vaynberg
>
> Hi,
> I have a complex page where a component called WikiPageCard is not appearing at the first time the page is loaded, but only added later via an Ajax request. This WikiPageCard has its own external CSS file, which is added by this line in the constructor:
> add(CSSPackageResource.getHeaderContribution(WikiPageCard.class, "WikiPageCard.css"));
> The bug is that on IE6 the CSS is not getting applied when the component is added through an ajax request. The exactly same code works fine in IE7 and FF3. It even works with IE6 when I do a normal (non-ajax) request/response of the same page.
> The only workaround I could get that I add the same CSS to the page where the component will appear, but it is not very nice since it breaks encapsulation.
> If you require some sample code reproduces this problem I could hack one together.
> Thanks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-2248) on IE6 the ajax loaded css is not applied properly

Posted by "Johan Compagner (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12704181#action_12704181 ] 

Johan Compagner commented on WICKET-2248:
-----------------------------------------

are you sure you just dont hit the 30 css entry limit in IE?

Because if you do it in the main page itself then you say it works. But are there then css added after that?

for example if you load it by ajax can you test what the value of this is:

document.styleSheets.length

> on IE6 the ajax loaded css is not applied properly
> --------------------------------------------------
>
>                 Key: WICKET-2248
>                 URL: https://issues.apache.org/jira/browse/WICKET-2248
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 1.4-RC2
>         Environment: IE 6
>            Reporter: Zoltan Luspai
>
> Hi,
> I have a complex page where a component called WikiPageCard is not appearing at the first time the page is loaded, but only added later via an Ajax request. This WikiPageCard has its own external CSS file, which is added by this line in the constructor:
> add(CSSPackageResource.getHeaderContribution(WikiPageCard.class, "WikiPageCard.css"));
> The bug is that on IE6 the CSS is not getting applied when the component is added through an ajax request. The exactly same code works fine in IE7 and FF3. It even works with IE6 when I do a normal (non-ajax) request/response of the same page.
> The only workaround I could get that I add the same CSS to the page where the component will appear, but it is not very nice since it breaks encapsulation.
> If you require some sample code reproduces this problem I could hack one together.
> Thanks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-2248) on IE6 the ajax loaded css is not applied properly

Posted by "Zoltan Luspai (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12704511#action_12704511 ] 

Zoltan Luspai commented on WICKET-2248:
---------------------------------------

Could we make the header contribution smart enough, so it could inline the external CSS references for IE6? 
Or create a smart wicket tag, which would inline the css if the client is IE6, otherwise would use the external CSS?


> on IE6 the ajax loaded css is not applied properly
> --------------------------------------------------
>
>                 Key: WICKET-2248
>                 URL: https://issues.apache.org/jira/browse/WICKET-2248
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 1.4-RC2
>         Environment: IE 6
>            Reporter: Zoltan Luspai
>
> Hi,
> I have a complex page where a component called WikiPageCard is not appearing at the first time the page is loaded, but only added later via an Ajax request. This WikiPageCard has its own external CSS file, which is added by this line in the constructor:
> add(CSSPackageResource.getHeaderContribution(WikiPageCard.class, "WikiPageCard.css"));
> The bug is that on IE6 the CSS is not getting applied when the component is added through an ajax request. The exactly same code works fine in IE7 and FF3. It even works with IE6 when I do a normal (non-ajax) request/response of the same page.
> The only workaround I could get that I add the same CSS to the page where the component will appear, but it is not very nice since it breaks encapsulation.
> If you require some sample code reproduces this problem I could hack one together.
> Thanks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.