0

Style sheet problem

asked 2006-05-05 08:41:28 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


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

By: nobody

hi,

I would like to try to change the css. Propose some style sheet. I realise it in html but I don't know introduce de html code in ZK?

Here my html code:


<script type="text/javascript" src="/C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/myapp/styleswitcher.js/">
</script>

<link rel="stylesheet" type="text/css" media="screen" title="Win"
href="/C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/myapp/win.css/"
/>


thanks,

delete flag offensive retag edit

29 Replies

Sort by ยป oldest newest

answered 2006-05-05 09:32:22 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


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

By: henrichen

css:

<?xml-stylesheet href="/my.css" type="text/css"?>

/henri

link publish delete flag offensive edit

answered 2006-05-05 09:34:23 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


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

By: henrichen

javascript:
Have to define the xhtml namespace first.

<zk xmlns:h="http://www.w3.org/1999/xhtml">
<h:script type="text/javascript" src=" ..."> </h:script> </zk>

/henri

link publish delete flag offensive edit

answered 2006-05-05 09:56:24 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


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

By: nobody

Thanks,

the src="..." is the location of what? My css folder?

link publish delete flag offensive edit

answered 2006-05-05 10:07:50 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


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

By: henrichen

location of your javascript file.

link publish delete flag offensive edit

answered 2006-05-05 12:33:03 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


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

By: nobody

I have this error message...

com.potix.zk.ui.metainfo.DefinitionNotFoundException: Component definition not
found: link in [LanguageDefinition: xul/html]


link publish delete flag offensive edit

answered 2006-05-05 13:34:38 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


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

By: nobody

I do like this :


<zk xmlns:h="http://www.w3.org/1999/xhtml">
<h:script type="text/javascript" src="/C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/myapp/styleswitcher.js/">
</h:script>


<link rel="stylesheet" type="text/css" media="screen" title="Win"
href="/C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/myapp/win.css/"
/>


And I have this error message:

com.potix.zk.ui.metainfo.DefinitionNotFoundException: Component definition not
found: link in [LanguageDefinition: xul/html]


Can you help me?


Thanks,

link publish delete flag offensive edit

answered 2006-05-05 13:47:36 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


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

By: netwiser

<h:script type="text/javascript" src="/C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/myapp/styleswitcher.js/???">
</h:script>


<link rel="stylesheet" type="text/css" media="screen" title="Win"
href="/C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/myapp/win.css/???" />

Try to remove the "/" at the end of your src and href definition. (See the question
mark)

link publish delete flag offensive edit

answered 2006-05-05 13:50:30 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


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

By: henrichen

<?xml-stylesheet href="/win.css" type="text/css"?> <zk xmlns:h="http://www.w3.org/1999/xhtml">
<h:script type="text/javascript" src="/styleswitcher.js"> </h:script>

....

</zk>

write path only under your myapp path or Tomcat has no way to find it.

/henri


link publish delete flag offensive edit

answered 2006-05-05 14:05:15 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


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

By: nobody

No success,only the same error message...

Here is my complete file.zul

<?init class="myclasses.GetListSeminars"?>
<?xml-stylesheet href="normie.css"?>
<?xml-stylesheet href="/Win.css" type="text/css"?> <?xml-stylesheet href="Win2.css" type="text/css"?>


<zk xmlns:h="http://www.w3.org/1999/xhtml">
<h:script type="text/javascript" src="/styleswitcher.js">
</h:script>


<link rel="stylesheet" type="text/css" media="screen" title="Win"
href="/myapp/win.css" />




<zscript>
void logout(){
Executions.sendRedirect ("hello.zul");
}
</zscript>


<window onCreate="myclasses.Rights.init(main)" id="main" width="990px"
height="650px" >

<hbox height="42px" spacing="0" style="background-color: #ffffff">
<window id="entete" border="3d" width="41px" height="42px"
sclass="backgroundjaune" >
<image src="images/Entete_DessinAnaxagora.gif" width="41px" height="42px"
/>
<image src="images/Entete_LigneJaune.gif" width="41px" height="11px" />
</window>
<window border="3d" width="400px" height="42px" style="background-color:
#476ba0">
<vbox spacing="0">
<image src="images/EnteteLogoAnaxagora.gif" width="131px" height="42px"
/>
<image src="images/Entete_3CarresJaunesDroite.gif" width="131px" height="12px"
/>
</vbox>
</window>

<window border="3d" width="100%" height="52px" style="background-color:
#ffffff">
<hbox spacing="0">
<image src="images/Entete_12CarresBlanc.gif" width="30px" height="42px"
/>
<image src="images/EntetesLignesBleues.gif" width="100%" height="42px"
/>
<image src="images/Entete_LignesEtCarresJaunes.gif" width="54px" height="42px"
/>
</hbox>
</window>
</hbox>

<menubar id="menubar" autoPopup="true" style="background-color: #849cbf">
<menu label="propriete" style="background-color: #849cbf">
<menupopup>
<menu label="Police">
<menupopup>
<menuitem label="8"/>
<menuitem label="10"/>
</menupopup>
</menu>


<menu label="Font">
<menupopup>
<menuitem label="..."/>
<menuitem label="..."/>
</menupopup>
</menu>

<menu label="Background color">
<menupopup>
<menuitem label="blue" onClick="backblue()" />
<menuitem label="green" onClick="backgreen()"
/>
<menuitem label="red" onClick="backred()" />
<menuitem label="gray" onClick="backgray()"/>
<menuitem label="orange" onClick="backorange()"
/>
<menuitem label="white" onClick="backwhite()"
/>

</menupopup>
</menu>

<menuitem label="refresh" onClick="page.invalidate()"/>

</menupopup>
</menu>
<menu label="Services" style="background-color: #849cbf" >
<menupopup>
<menuitem label="Affichage du texte d'accueil"
onClick="win3.setVisible(true);

win3.setTop("150px");win3.setLeft("300px")"/>

<menuitem label="Lien vers BPM"
onClick="win4.setVisible(true);

win3.setTop("150px");win3.setLeft("300px")" />

<menuitem label="Liste des cours"/>

<menuitem label="Administration"/>

</menupopup>
</menu>

<menu label="Style" style="background-color: #849cbf"
width="100%">
<menupopup>
<menuitem label="Style1" href="#"
onClick="setActiveStyleSheet ('win');return false;"/>

<menuitem label="Style2"/>

<menuitem label="..."/>

<menuitem label="..."/>

</menupopup>
</menu>

<menu label="Logout" style="background-color: #849cbf"
onClick="logout()" >
</menu>

</menubar>

</window>
</zk>


link publish delete flag offensive edit

answered 2006-05-05 14:46:20 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


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

By: henrichen

Ok, I will try it later.

/henri

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-05-05 08:41:28 +0800

Seen: 604 times

Last updated: May 09 '06

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