ZK - Open Source Ajax Java FrameworkZK - Open Source Ajax Java Framework

ZK3.0.4 Bug loading stylesheet in IE?

admin
26 Mar 2008 15:04:21 GMT
26 Mar 2008 15:04:21 GMT


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4865077

By: geminiani

Hi,
I have a strange problem with ZK3.0.4 and IE.
I have a page that uses a style sheet. When I load this page first time, all styles are ok.
If I try to attach new page, styles are not applied.
When I go back to my previous page (the first one), style is no more applied neither here.

This only with IE. Firefox, Opera and Safari works fine.
With ZK3.0.3 all works fine.
Is this a bug?
Can some one help me?

Angelo.

admin
27 Mar 2008 01:24:03 GMT
27 Mar 2008 01:24:03 GMT


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4866199

By: jebberwocky

Could you simplify the code and post here? It is somehow confusing.

admin
27 Mar 2008 08:48:44 GMT
27 Mar 2008 08:48:44 GMT


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4866646

By: geminiani

I have a "main page" loading some macro components.
For example:

MAIN PAGE CODE:
<window>
<button label="load macro 1" id="loadcomponent1"/> <button label="load macro 2" id="loadcomponent2"/> <div id="placeholder" /> </window>

MACRO COMPONENTS CODE:
<window>
<style src="mycss.css" />
<label sclass="class_of_mycss"/>
</window>

So, when I click on button "loadcomponent1", one "MACRO COMPONENT" is loaded.
When I click on button "loadcomponent2", another "MACRO COMPONENT" is loaded.

THE PROBLEM:
First time I load MAIN PAGE, and MACRO 1, style sheet is applied.
But if I try to load another MACRO (i.e. MACRO 2), style sheet is no more applied.

NOTE:
Stylesheet declaration is on macro component and not in main page.
But if you put css declaration on main page, all works fine.


admin
28 Mar 2008 02:41:53 GMT
28 Mar 2008 02:41:53 GMT


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4868503

By: henrichen

Please post to bug list.

/henri

admin
28 Mar 2008 07:20:00 GMT
28 Mar 2008 07:20:00 GMT


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4868783

By: jumperchen

Hi,

Please specify the dynamic property to be true as follows.

<style src="mycss.css" dynamic="true"/>

Or refer to https://sourceforge.net/tracker/index.php?func=detail&aid=1710925&gr
oup_id=152762&atid=785191

BTW, in ZK 3.0.4, the style is embedded into a DIV tag by default.
/Jumper