I have been reading and following the spring doc on how to create Spring Portlet and I have most of the configurations and a basic controller done. But I don't know how to invoke it. In Spring MVC, we can config a url so that we can invoke that controller. but how is it done in Spring Portlet? It doesn't mention in the documentation, I think.
I also read the following article and it doesn't say how to config the portlet either.
http://www.ibm.com/developerworks/websphere/library/techarticles/0802_patil-pt1/0802_patil-pt1.html
In Oracle WebCenter, to config a portlet, we need a url. What would be the url for the Spring Portlet then.
While configuring Portlet in Jboss portal server only Portlet class name is enough.
Check this to do in Oracle WebCenter Creating Java Portlets
Related
I used to hardcode my JSP applications and I have never used Spring framework before, I would like to get an overview of how to create a JSP app, I already have spring hibernate set up in eclipse:
How to configure web.xml?
JavaBeat has some good tutorials on Spring, in particular some with Spring and Hibernate I recommend you check out:
Spring Framework Tutorials
Spring and Hibernate ORM Framework Integration
I developped an application (spring, hibernate) and i must convert it to liferay Project
how i can do it?
please could you help me
thank you.
A solution would be to build your application using Spring Portlet MVC, the Portlet version of Spring MVC. Then you will be able to deploy your application as a Portlet on Liferay.
Spring hibernate and liferay have nothing in common.
Spring and hibernate are frameworks : one for managing bean, other for database mapping (orm).
Liferay is a portal.
So you can't migrate automatically a project to liferay.
BUT, you can :
integrate your project using social widgets into a liferay portal
if your project have some standard portlets, you should have no problem to copy them in a liferay environment
for other case, you will need to rewrite your code to adapt to liferay api
In my project, Web services are implemented using JAX WS - RI.
I want to call the web service methods from the JSF managed beans.
I mean to say I require the spring injection of client proxy in the managed bean.
For CXF i have read that we can use jaxws:client tag in the spring application context xml.
But for JAXWS RI I have no idea.
Any idea how can i do that?
For this you need to include the following preamble at the top of your Spring XML configuration file
xsi:schemaLocation="http://jax-ws.java.net/spring/servlet
http://jax-ws.java.net/spring/servlet.xsd"
and use the WebServiceServlet(WSS) tags.
More Info: link
I wrote a simple spring mvc portlet and I copied to "deploy" in liferay it is not automatically getting deployed to tomcat's webapp folder.
Further it is deploying only when the tomcat is restarted.
Also the portal having the spring mvc portlet is not automatically refreshed with the new content.
I had to remove it and add it again.
I tried with a simple portlet app and everything happens automatically by default.
Can you tell me what I am missing here in spring mvc portlet app.
Any suggestions would be helpful..
This link from liferay forum might help you.
Just check if the property auto.deploy.interval=0 or auto.deploy.enabled=false is not set.
We're using Grails but with an existing model layer and DAO layer. We have an app written already in Spring MVC, using Spring for IoC and also Security. I'm trying to port the control and view over to Grails as a proof of concept. I have Grails working fine with IoC but am having some trouble getting Grails to work with Spring Security. I'm using 0.5.1 of the Spring security plugin for grails. I have an xml file with all of the spring security settings that work fine with the Spring MVC app, but I'm having trouble getting it to work in Grails. If anyone has any experience using Grails with Spring Security but not using the domain part of the Spring security plugin, then please let me know. Any advice, websites etc would be helpful.
You don't even need the Grails Spring Security Plugin,
You can integrate Spring Security 3 right into Grails as
it all Spring under the hood any way.
You only have to place the Security jars in the lib folder, add two entries into the web.xml and copy over your security applictionContext
This way you can use your existing Spring Security in your grails project
This worked for me.
http://old.nabble.com/Baked-Beans%3A-Securing-Grails-with-Spring-Security-3!-td25339938.html#a25339938
http://blog.jayway.com/2009/11/23/spring-security-for-real-with-grails/comment-page-1
http://knol.google.com/k/grails-with-spring-security#