-
FEATURED COMPONENTS
First time here? Check out the FAQ!
hi every one
i am using spring framework and zk as client side.
can any one tell me how to connect zk with spring.
using spring MVC or directly using service locator pattern( extends BaseWindowComposer).
hi bendre,
which spring module do you mean? there are good small talks for spring security and spring webflow (here)
To work directly with spring bean-controller, you could handle it this way:
in *.zul: <?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver" ?> <window id="win" apply="${testComposer}" > ... </window>
@Controller("testComposer") @Scope("singleton") public class TestComposer extends GenericForwardComposer { ..... }
An other option is to use
SpringUtil.getBean('beanName")
regards
Hi,
we use the first option in our project because in this option, the zk composer is a spring-bean, so we could use IoC, DI, Spring Transaction Management and so on directly. Plz read this page for diffs.
For us, the small talk for "native" spring webflow doesn't work on ZK 5.03., so we decided to use the zwf-solution: tutorial.
regards
Asked: 2010-09-10 02:03:31 +0800
Seen: 736 times
Last updated: Sep 13 '10