-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3832277
By: jim_pang
<include src="test.html"/> where test.html contains some CSS styling, then the ZUL page won't show the CSS.. it just return plain HTML without the CSS.
it's a bug or the limitation of the include?
Yes, thanks Costas. I have this already too.
My intention is to load the css as a normal file like we do it in the outer zul file. I will not hack the 'include' component. But i think this should be done there by parsing the zul file.
Something like this:
PageCtrl pc = (PageCtrl) this.getPage();
pc.addBeforeHeadTags("<?link rel="stylesheet" href="/...
Maybe i don't get it but the following works fine with ZK 7
Main page
<?page title="Main Page" contentType="text/html;charset=UTF-8"?>
<zk>
<window title="Main Page">
<style>
.main_font { font-weight: bold; font-size: 22px; color: red; }
</style>
<div class="main_font">
This is the main page
</div>
<include src="inc.zul"/>
</window>
</zk>
Include page
<?page title="Include Page" contentType="text/html;charset=UTF-8"?>
<zk>
<window>
<style>
.include_font { font-weight: bold; font-size: 12px; color: blue; }
</style>
<div class="include_font">
This is the include page
</div>
</window>
</zk>
Cheers
Costas
PUSH. Any news on this?
How to include a zul with it's own css definitions?
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3833029
By: jim_pang
no xml-stylesheet..
the test.html is independent page which has already pre-defined css styling..
it links to standard css file.
and I want to include the page into ZUL page using <include> tag. the ZUL page shows test.html without css, so it's just plain text.
any idea?
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3832486
By: tomyeh
Did you use xml-stylesheet? It is a limitation, so I gave it up and introduced the style component instead. Try the latest freshly.
http://sourceforge.net/tracker/index.php?func=detail&aid=1525722&group_id=152762
&atid=785194
Asked: 2006-07-21 13:47:19 +0800
Seen: 235 times
Last updated: Jan 28 '15