-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have own annotation @EntryPoints and I declare my interface:
@Documented @Retention(RetentionPolicy.RUNTIME) public @interface EntryPoints {
public String page();
public String registerAs();
}
@EntryPoints(page = "/resources/worker/worker.zul", registerAs = "workerCRUD")
public interface IWorkerCRUDControllerEntryPoints {
@EntryPoint("edit")
public abstract void goToEditForm(Worker worker);
@EntryPoint("create")
public abstract void goToCreateForm();
@EntryPoint("list")
void goToList();
}
So next, in my class, my field was inject in old version.
public class WorkerCRUDController extends GenericForwardComposer implements IWorkerCRUDControllerEntryPoints {
private IDBPasswordEncoderService dbPasswordEncoderService;
private ILimitsModel limitsModel;
private IWorkerModel workerModel;
private IResourceDAO resourceDAO;
private IUserCRUDController userCRUD;
private Window listWindow;
private Window editWindow;
private IURLHandlerRegistry URLHandlerRegistry;
private OnlyOneVisible visibility;
private IMessagesForUser messages;
private Component messagesContainer;
private CriterionsController criterionsController;
private LocalizationsController localizationsForEditionController;
private LocalizationsController localizationsForCreationController;
private ResourcesCostCategoryAssignmentController resourcesCostCategoryAssignmentController;
private IWorkerCRUDControllerEntryPoints workerCRUD; <--- THIS
//--------------------------------------------------------------------------
And right now current field "workerCRUD" is null!
Asked: 2016-06-22 09:18:13 +0800
Seen: 24 times
Last updated: Jun 22 '16
How to control selectAll() feature in a Listbox with multiple=true and checkmark=true
ZK8 Wizard Series: Part 2 now released!
Faster And Lighter, The Performance Test On ZK8
org.zkoss.xel.XelException: Resource not found: http://www.zkoss.org/dsp/web/core
How To Check Dirty Status in ZK8?
Come and join the ''JS'' Hunt!