-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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!
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
See http://stackoverflow.com/questions/14808693/load-zul-from-jar this will help you.
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.
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 ?
Asked: 2013-03-13 16:53:17 +0800
Seen: 57 times
Last updated: Mar 18 '13
Source code of page dosen't change when usinge an Include
composite component help [closed]
EL in a forEach @command not working?
Different template for each grid row
Cardlayout animation is broken
Grid RowRender slow using 6.5.1 and sizable=true
setVisible(false), component will load or not
Decimalbox and doublebox value rounded on iPad