0

including zk applications element in a jar

asked 2013-03-13 16:53:17 +0800

albertoziliani gravatar image albertoziliani
0

Hi, We are developing an application that consist of a multi level architecture. We have a "core" application, that handles menus, logins, etc. a "base" application that handles the standard features, available to all customizations, and a "customizations" application.

Those applications should work toghether, and share zuls and classes.

Is there a way to include the "core" application as a jar or whatelse, and load it's classes and zuls (the login page for example) starting from the "base" (or "customer") app ?

I've found an old post ('09) that is not really well documented, it liks to a documentation page that is no more available. but no other references on the web about this.

Could someone please suggest a solution on this ?

thank you!

delete flag offensive retag edit

4 Answers

Sort by ยป oldest newest most voted
0

answered 2013-03-14 07:54:50 +0800

gganassin gravatar image gganassin flag of Luxembourg
540 6
http://www.hybris.com/

updated 2013-03-14 07:55:00 +0800

Hi what you describe reflects exactly "our" way to use ZK. We split our project into many different simple Maven projects that are "wrapped" by a main web project that includes all the others as jars. We use Spring & Spring Security to describe and secure the "resources" of each jar in terms of Views, Editors, Perspectives, Commands and Actions (a quite straight forward abstraction inspired by the Eclipse RCP metaphor). To load the zul - we massively use the ~ trick ("~./myapp/zuls/hello.zul" to load from /web/myapp/zuls). Everything is coordinated by the RCP abstraction that orchestrate the interaction between all the different parts.

The result is really nice and efficient i have to say! :)

Giovanni

link publish delete flag offensive edit
0

answered 2013-03-14 10:35:15 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

See http://stackoverflow.com/questions/14808693/load-zul-from-jar this will help you.

link publish delete flag offensive edit
0

answered 2013-03-14 23:37:20 +0800

shumy gravatar image shumy
244 1

I have done this with Executions.createComponentsDirectly and classloaders. In OSGi i have integration with eclipse runtime and plugin extensions to build modular applications. I am now testing ace code editor with eclipse JDT, working well until now.

link publish delete flag offensive edit
0

answered 2013-03-18 16:36:13 +0800

albertoziliani gravatar image albertoziliani
0

Hi, i've tried with a simple jar containing on root a web directory with a zul file in it (funzione1.zul) then i've made another project trying to load that zul with Executions.createComponents but i receive this exception:

org.zkoss.zk.ui.UiException: Page not found: ~./funzione1.zul org.zkoss.zk.ui.http.ExecutionImpl.getPageDefinition(ExecutionImpl.java:371) org.zkoss.zk.ui.impl.AbstractExecution.createComponents0(AbstractExecution.java:246) .... ... ...

What i'm doing wrong ?

link publish delete flag offensive edit

Comments

~./funzione1.zul means that you are looking for a file inside the package: /web/funzione1.zul Check that the .jar with funzione1.zul is physically available in your webapp.

gganassin ( 2013-03-19 07:29:05 +0800 )edit
Your answer
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
2 followers

RSS

Stats

Asked: 2013-03-13 16:53:17 +0800

Seen: 56 times

Last updated: Mar 18 '13

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