0

Google Guice with ZK framework

asked 2013-03-24 22:29:16 +0800

Shahbour gravatar image Shahbour
1

updated 2013-03-26 01:36:47 +0800

dennis gravatar image dennis
3679 1 6
http://www.javaworld.com....

Hello

Is there any sample implementation for google guice with ZK .

I am trying it but still didn't succeed , i was able to configure ZK through code but injection is still not working on the viewmodel classes that zul page reference to .

bind(DHtmlLayoutServlet.class).asEagerSingleton();

        bind(DHtmlUpdateServlet.class).in(Scopes.SINGLETON);

        Map<String,String> layoutServletParameters = new HashMap<String, String>();

        layoutServletParameters.put("update-uri", "/zkau");
        serve("*.zul", "*.zhtml").with(DHtmlLayoutServlet.class,layoutServletParameters);

        serve("/zkau/*").with(DHtmlUpdateServlet.class);

        serve("*.html").with(MyServlet.class);

Any one did this before or any guide lines to follow .

Best Regards Shahbour

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-05-06 16:41:50 +0800

maxmoore gravatar image maxmoore
72

Any news here? I would like to integrate ZK and Guice. I'm planning to write my own custom module but, if someone already did it, it will be awesome to share and provide some instructions before reinventing the wheel. Thanks!

link publish delete flag offensive edit
Your answer
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
2 followers

RSS

Stats

Asked: 2013-03-24 22:29:16 +0800

Seen: 42 times

Last updated: May 06 '13

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