Liferay Plugin Development training
Liferay Plugins sdk
Liferay Version 5.2.3 and Tomcat 6.0 Tutorial
Liferay portlet tutorial
Liferay classes
Liferay portal kernel.
I need help in liferay portlet development
Samw : With liferay 5.2.3, tomcat 6.0 and liferay plugins sdk, after deployed the portlet onto liferay portal, adding the portlet onto the webpage causes the following exceptions:
Liferay Plugins sdk
Liferay Version 5.2.3 and Tomcat 6.0 Tutorial
Liferay portlet tutorial
Liferay classes
Liferay portal kernel.
I need help in liferay portlet development
Samw : With liferay 5.2.3, tomcat 6.0 and liferay plugins sdk, after deployed the portlet onto liferay portal, adding the portlet onto the webpage causes the following exceptions:
Since portal-impl.jar can't be used in plugins development, should I copy some of the classes from portal-impl.jar into my current working directory and recompile it? or I have to use Hook on to it? I think Hook is a way to go, however your mileage may vary.
Very appreciate for any suggestion and help in liferay portlet development tutorial.
Thanks
Sam
Mazhar Anwar : Hi Sam,
Have you imported Portlet Preferences class in your jsp?
add the following line in init.jsp.
<%@ page import="javax.portlet.PortletPreferences" %>
Hope it will solve your problem.
Sam w : Hi Mazhar,
How have you been? Hope you are well.
Thanks a great help in liferay portlet development. You solved my trouble again.
What about the following errors:
Very appreciate for your help in liferay tutorial.
Thanks
Sam
Mazhar Anwar : Hi Sam,
I am doing good, Thanks
For your issues,
You can use either liferay tag for theme or instantiate themeDisplay Object manually.
That is use
<liferay-theme:defineObjects />
OR
ThemeDisplay themeDisplay =(ThemeDisplay)renderRequest.getAttribute(WebKeys.THEME_DISPLAY);
Use of Liferay Tag will be better as it will initialize all the objects and then you can directly use themeDisplay object anywhere in your jsp.
You can remove "ThemeDisplay themeDisplay =(ThemeDisplay)renderRequest.getAttribute(WebKeys.THEME_DISPLAY);" from your code.
And if you want to use the above line you need to import following class in your init.jsp.
<%@ page import="com.liferay.portal.kernel.util.WebKeys" %>
For the second error, it seems you have not set currentURL String and using it.
You can replace the currentURL with "themeDisplay.getURLCurrent()".
HTH
Sam w : Hi Mazhar,
With this problem, I got a new error after included PortletPreferences and RenderRequest class in the ini.jsp file:
Here is the the first few lines of the ini.jsp file:
Any idea?
Thank you very much.
Sam.
Sam w : I've got all these resolved.
thanks for the great help all liferay developers.
Sam
No comments:
Post a Comment