Is there a way to develop portlets with spring without using the DispatcherPortlet? I want to use other technologies for the UI, mainly Vaadin. Spring is used for DI and other stuff. Is there something similar to ContextLoaderListener class in the Portlet side?
Is there a way to develop portlets with spring without using the DispatcherPortlet? I
Share
I was hoping for a more detailed answer than what Noel gave. Maybe there is some best practice to this? Here is my current solution:
Give the xml file locations as a init parameter to my portlet.
My init method looks something like this
Now I can access my applicationContext through PortletContext every time I need.
APPLICATION_CONTEXT_ATTRIBUTE is just string constant that I made up. I’m still open for better solutions.