This content has been marked as final.
Show 4 replies
-
1. Re: Injecting application-scope variable
swd847 May 19, 2009 12:05 AM (in response to gtnguyen)Are you letting seam create the bean or are you getting it via JNDI lookup?
-
2. Re: Injecting application-scope variable
gtnguyen May 19, 2009 1:34 AM (in response to gtnguyen)I suppose I can move
@In("#{applicationParams.test}") private String test;
to another bean that Seam is definitely creating ... something like this wouldn't work, would it?
TestBean test = new TestBean();
I'm porting an old application over to Seam, so pardon me if I'm doing something wrong here.
Thanks again,
-
3. Re: Injecting application-scope variable
swd847 May 19, 2009 1:41 AM (in response to gtnguyen)You have to let seam create the bean, otherwise it does not have the chance to add it interceptors that handle bijection.
Try this:Test test = (Test)Component.getInstance("test");
-
4. Re: Injecting application-scope variable
gtnguyen May 19, 2009 4:48 PM (in response to gtnguyen)I moved the @In declaration to another Seam-created bean, and it's working now. Thank you very much for your help.
G.T.Nguyen