This content has been marked as final.
Show 2 replies
-
1. Re: @Logger not injecting anything in Controller.class
paradigmza Apr 17, 2007 4:12 AM (in response to paradigmza)I just commented out the debug line in the source code, and everything is working perfecly, im not sure what to do from here, except use my custom built seam. (I don't really understand how the injection actually works)
protected <T> ClassValidator<T> getValidator(Class<T> modelClass) { return Model.forClass(modelClass).getValidator(); } protected void debug(Object object, Object... params) { //log.debug(object, params); } protected void debug(Object object, Throwable t, Object... params) { log.debug(object, t, params); }
-
2. Re: @Logger not injecting anything in Controller.class
pmuir Apr 17, 2007 4:59 AM (in response to paradigmza)Seam can't do it's magic if you use new to instantiate a Seam component. You need to use injection (or Component.getInstance())