0

How to integrate Spring IOC with zk

asked 2009-04-10 01:40:53 +0800

gauravbhatt gravatar image gauravbhatt
45

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.

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2009-04-10 04:28:58 +0800

RyanWu gravatar image RyanWu
533 2
about.me/flyworld

Hi,
can you provide more information about the MyWindow ?
like the scope you use and where you call these code.

link publish delete flag offensive edit

answered 2009-04-14 07:35:44 +0800

gauravbhatt gravatar image gauravbhatt
45

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.

link publish delete flag offensive edit

answered 2009-04-14 09:52:32 +0800

RyanWu gravatar image RyanWu
533 2
about.me/flyworld

maybe you can post some code related to the scope (singleton? prototype?) and MyWindow.
it make us easy to solve your porblem :)

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-04-10 01:40:53 +0800

Seen: 228 times

Last updated: Apr 14 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More