0

Custom desktop.dsp

asked 2006-04-10 18:16:00 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

By: nobody

Hello,

is there a way to change desktop.dsp ?

Added to lang-addon.xml :

<language-addon>
...
<mold>
<mold-name>desktop</mold-name>
<mold-uri>~./myaddon/desktop.dsp</mold-uri>
</mold>
</language-addon>

but looks like it does not work...
thank you.

delete flag offensive retag edit

5 Replies

Sort by ยป oldest newest

answered 2006-04-11 00:54:11 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

By: tomyeh

~./ means the file shall retrieve from classpath. That is why ZK need only JAR files!

In your case, I believe you place the desktop in your WAR file, and you don't need to add any prefix to it.

<mold-uri>/myaddon/desktop.dsp</mold-uri>

or you place it under /WEB-INF/myaddon
<mold-uri>/WEB-INF/myaddon/desktop.dsp</mold-uri>

link publish delete flag offensive edit

answered 2006-04-22 16:16:51 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

By: nobody

I tried the above to override the desktop wit no luck. This is what I tried:
1. Specify addon in zk.xml:
<zk>
<language-config>
<addon-uri>/WEB-INF/lang-addon.xml</addon-uri>
</language-config>
</zk>

2. Reference customer desktop.dsp in lang-addon.xml:
<language-addon>
<mold>
<mold-name>desktop</mold-name>
<mold-uri>/WEB-INF/desktop.dsp</mold-uri>
</mold>
</language-addon>

What else do I need to do?

link publish delete flag offensive edit

answered 2006-04-23 02:50:11 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

By: henrichen

try

<mold-name>default</mold-name>

/henri


link publish delete flag offensive edit

answered 2006-04-24 16:13:37 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

By: nobody

Ok, tried that as well with no luck. Is this supposed to allow overriding of all non-component objects (desktop, page, etc)?

link publish delete flag offensive edit

answered 2006-04-24 16:40:48 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

By: tomyeh

We don't support overriding desktop yet. Please post it to Feature Requests.

BTW, your lang-addon.xml is not complete: you missed <addon-name> and <language-name>. Refer to zkdemo's lang-addon.xml.

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-04-10 18:16:00 +0800

Seen: 279 times

Last updated: Apr 24 '06

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