-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello,
I'm trying to modernize an existing application by the usage of CDI (Weld 1.0.1), that currently runs with ZK CE 5.0.4, Spring 3.0.2 under Tomcat 6.0.24. I read several tutorials including Getting started with ZK CDI and finally got object injection (playing with Log4J loggers) working. But when I try to
* get data from the GUI, e. g. the selection of a Listbox, I no longer get data.
* fill data into GUI objects, e. g. a Label or a Listbox, no data appears in the GUI.
So what's wrong? For the first step I added only the logger injection. Nothing else has changed.
A zul file containing the CDI changes starts like this:
<?variable-resolver class="org.zkoss.zkplus.cdi.DelegatingVariableResolver"?> <window id="winInfo" title="Benutzerinformationen" apply="${infoController}">
The appropriate controller starts like this:
@Named @SessionScoped public class InfoController extends BaseController { // private static final Logger LOG = Logger.getLogger(InfoController.class); @Inject transient Logger LOG;
The BaseController class is derived from GenericForwardComposer. BTW the injection starts working when I added apply="${infoController} to the zul file.
Thanks in advance
Torsten
Asked: 2010-12-01 01:33:10 +0800
Seen: 293 times
Last updated: Dec 01 '10