-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have a set of window classes that I need to display using spring's IOC feature.I try getting the bean of the window instance but the problem is I am not able to render the window on the screen using the same instance.Below is a sample code snippet
MyWindow win = (MyWindow ) applicationContext.getBean("mywindow");
win.doEmbedded(); // Doesn't render the page.
Hi,
can you provide more information about the MyWindow ?
like the scope you use and where you call these code.
Ryan, my container is tomcat and I give a request for a zul page.The corresponding window class for the zul now tries to create bean of a different window class and try to render it on the screen.It is reverse of calling zul and then creating window.
maybe you can post some code related to the scope (singleton? prototype?) and MyWindow.
it make us easy to solve your porblem :)
Asked: 2009-04-10 01:40:53 +0800
Seen: 228 times
Last updated: Apr 14 '09