0

include doesn't support pages with CSS?

asked 2006-07-21 13:47:19 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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?

delete flag offensive retag edit

5 Replies

Sort by ยป oldest newest

answered 2015-01-28 14:59:18 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

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="/...
link publish delete flag offensive edit

answered 2015-01-28 12:32:52 +0800

cyiannoulis gravatar image cyiannoulis
1201 10

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

link publish delete flag offensive edit

answered 2015-01-27 15:28:19 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

PUSH. Any news on this?

How to include a zul with it's own css definitions?

link publish delete flag offensive edit

answered 2006-07-22 00:48:54 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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?

link publish delete flag offensive edit

answered 2006-07-21 15:40:16 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2006-07-21 13:47:19 +0800

Seen: 235 times

Last updated: Jan 28 '15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More