How do I set up a wicket quickstart to use seam-wicket CDI?

In a servlet container you need to bootstrap Weld CDI yourself to make it available to Seam. The documentation states this under installation: docs.jboss.org/seam/3/wicket/latest/refe....

In a servlet container you need to bootstrap Weld CDI yourself to make it available to Seam. The documentation states this under installation: docs.jboss.org/seam/3/wicket/latest/refe... With a link to the relative Weld bootstrapping documentation for either Jetty 6 or 7: docs.jboss.org/weld/reference/latest/en-... It should work fine after configuring Jetty to bootstrap Weld. However please take not of the limitations of using Weld within a servlet container: http://docs.jboss.org/weld/reference/latest/en-US/html/environments.html#d0e5221 Also ensure that you have an empty (or configured) beans.

Xml in your WEB-INF/ directory.

Thanks for looking at the problem! I was not able to get it to run; the error message is the same. I've added some details about my configuration to the question... can you please take a look at it, and see if I've done something wrong?

– RMorrisey Jul 26 at 2:39 @RMorrisey I've added some info about a beans. Xml if you do not have this Weld may not be initializing which could be the problem. Short of this I think that you should deploy to a standalone Jetty and see if you can get it working in that environment.

– Justin Jul 26 at 10:59 No dice creating a blank beans. Xml file. I discovered, finally, that there are directions for creating a maven archetype for a weld servlet project.(It doesn't appear anywhere if you click "Documentation", you have to click the "Seam 3" menu section header.

Go figure. ) I'll try it out, and let you know how it goes. Thanks for your help, so far!

– RMorrisey Jul 27 at 2:08 I managed to get past the initial error by borrowing pieces from the mvn servlet archetype's web. Xml and pom. Xml, and popping them into my wicket quickstart.

Now I get a NoClassDefFoundError on JspFactory, which is referenced by the listener that I copied from the archetype's web. Xml (org.jboss.weld.environment.servlet. Listener).

Tomorrow night, I'll look at the Listener's code and see if I can understand how it works - it seems like I'll have to implement my own, for wicket's code? – RMorrisey Jul 27 at 4:37 Link to the maven archetype info: seamframework. Org/Documentation/CDIQuickstartForMavenUsers I hope this helps someone else navigate through this mess.

– RMorrisey Jul 27 at 4:37.

The 42Lines folks have published a Wicket-CDI integration library that includes a working example project. Several of these guys are actually Wicket committers; they write good code, and they know what they're doing.

Just Igor works at 42Lines from the Wicket team but yes, you can count him as "several" :-) – martin-g Sep 12 at 8:12 @martin-g: I think Clint has also committed a bit of code to Wicket, though perhaps he is not an officially on the Wicket team. – Caffeine Coma Sep 12 at 22:26.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions