Edgar, Cool! I have been thinking Java could at long last have a good CMS, if someone were to do it using OSGi. I might want to be your first user.
I am curious: what version of Jetty are you using? Where did you get the appropriate bundles? Could you share your Activator code that starts Jetty? Thanks again, David Edgar Poce wrote: > > Hi, > > In my spare time I'm building a CMS with wicket. I'm not developing it > actively, just playing with it in my spare time. So far I developed > the following bundles: > > Wicket as an osgi bundle: > http://mybundles.googlecode.com/svn/trunk/wicket/wicket-bundle/ > > A simple wicket example application: > http://mybundles.googlecode.com/svn/trunk/wicket/wicket-example/ > > JCR related bundles: > http://mybundles.googlecode.com/svn/trunk/jcr/ > > A Pluto Container bundle that I plan to use to run portlets inside the > CMS: > http://mybundles.googlecode.com/svn/trunk/pluto/ > > hope it helps, > edgar > > On Nov 16, 2007 1:16 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: >> perhaps one of the groups who are using wicket and osgi successfully >> can put together an example project that demonstrates all these >> concepts so the community does not have to reinvent the wheel and >> solve problems that have already been solved by others...thats what >> this is all about afterall >> >> -igor >> >> >> >> On Nov 16, 2007 5:37 AM, dado <[EMAIL PROTECTED]> wrote: >> > >> > Edgar and all, >> > >> > I am new to wicket but have built an application using Velocity and >> Equinox >> > OSGi. I am hoping to switch from Velocity to Wicket. Edgar's code >> below is >> > most helpful! Do you or anyone have any other code to share? Bundles? >> For >> > example, this code would be helpful as well >> > "you have to register an OsgiWicketServlet instance in the >> HttpService". >> > >> > Thanks for your help! >> > David >> > >> > >> > >> > Edgar Poce wrote: >> > > >> > > Hi, >> > > >> > > I ran a helloworld application in osgi, the only problem I found was >> > > a classloader issue, I had to use a custom IWebApplicationFactory. I >> > > copy the code bellow. >> > > In order to make it work you have to register an OsgiWicketServlet >> > > instance in the HttpService. >> > > >> > > hope it helps, >> > > Edgar >> > > >> > > >> > > public class OsgiWebApplicationFactory implements >> IWebApplicationFactory { >> > > >> > > private Class webApplication; >> > > >> > > public OsgiWebApplicationFactory(Class webApplication) { >> > > super(); >> > > this.webApplication = webApplication; >> > > } >> > > >> > > public WebApplication createApplication(WicketFilter filter) { >> > > try { >> > > return (WebApplication) >> this.webApplication.newInstance(); >> > > } catch (Exception e) { >> > > throw new RuntimeException("unable to start >> application", e); >> > > } >> > > } >> > > >> > > } >> > > >> > > public class OsgiWicketFilter extends WicketFilter { >> > > >> > > private Class webApplication; >> > > >> > > public OsgiWicketFilter(Class webApplication) { >> > > super(); >> > > this.webApplication = webApplication; >> > > } >> > > >> > > @Override >> > > protected IWebApplicationFactory getApplicationFactory() { >> > > return new >> OsgiWebApplicationFactory(this.webApplication); >> > > } >> > > >> > > } >> > > >> > > public class OsgiWicketServlet extends WicketServlet { >> > > >> > > private String name; >> > > >> > > private Class webApplication; >> > > >> > > public OsgiWicketServlet(Class webApplication) { >> > > super(); >> > > this.webApplication = webApplication; >> > > } >> > > >> > > @Override >> > > protected WicketFilter newWicketFilter() { >> > > return new OsgiWicketFilter(this.webApplication); >> > > } >> > > >> > > /** >> > > * The servlet name can't contain * characters because Wicket >> uses the >> > > name >> > > * of the servlet to create a temporary folder. >> > > */ >> > > public String getServletName() { >> > > if (name == null) { >> > > synchronized (this) { >> > > name = super.getServletName(); >> > > if (name.endsWith("*")) { >> > > name = name.substring(0, >> name.length() - 1); >> > > } >> > > } >> > > } >> > > return name; >> > > } >> > > >> > > } >> > > >> > > On Nov 14, 2007 11:46 AM, Thies Edeling <[EMAIL PROTECTED]> wrote: >> > >> Hello all, >> > >> >> > >> Does anyone have any experience with using Wicket and OSGi? I'm >> looking >> > >> for the most flexible way of composing an application and deploying >> > >> Wicket pages/panels as OSGi bundles seems like a nice way.I noticed >> the >> > >> Pax Wicket project but am not sure how stable that is. >> > >> >> > >> regards, >> > >> Thies >> > >> >> > >> -- >> > >> http://www.ehour.nl/ >> > >> http://blog.ehour.nl/ >> > >> >> > >> >> > >> >> > >> >> --------------------------------------------------------------------- >> > >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> > >> For additional commands, e-mail: [EMAIL PROTECTED] >> > >> >> > >> >> > > >> > > --------------------------------------------------------------------- >> > > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > > For additional commands, e-mail: [EMAIL PROTECTED] >> > > >> > > >> > > >> > >> > -- >> > View this message in context: >> http://www.nabble.com/Wicket---OSGi-tf4805767.html#a13793200 >> > Sent from the Wicket - User mailing list archive at Nabble.com. >> > >> > >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Wicket---OSGi-tf4805767.html#a13801671 Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
