To create simple JSP portlet, you have to modify these files:
Step I :
[the xml files are located under "ext/ext-web/docroot/WEB-INF"]
1. portlet-ext.xml
2.liferay-portlet-ext.xml
3. liferay-display.xml
4. view.jsp
5. Language-ext.properties
Step II:
ant deploy
===========================
Step I :
1.1. portlet-ext.xml
<portlet>
<portlet-name>EXT_2</portlet-name>
<display-name>JSP Portlet Introduction</display-name>
<portlet-class>com.liferay.portlet.JSPPortlet</portlet-class>
<init-param>
<name>view-jsp</name>
<value>/portlet/ext/jsp_portlet/view.jsp</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<resource-bundle>com.liferay.portlet.StrutsResourceBundle</resource-bundle>
<security-role-ref>
<role-name>power-user</role-name>
</security-role-ref>
<security-role-ref>
<role-name>user</role-name>
</security-role-ref>
</portlet>
1.2.liferay-portlet-ext.xml
<portlet>
<portlet-name>EXT_2</portlet-name>
</portlet>
1.3. liferay-display.xml
<category name="category.example">
<portlet id="EXT_2"></portlet>
</category>
1.4 view.jsp
(create this file under "ext/ext-web/docroot/html/portlet/ext/jsp_portlet"
and enter the below contents)
Welcome to simple Basic JSP Portlet
1.5 Language-ext.properties
javax.portlet.title.EXT_2=JSP Portlet
Step II :
Go to inside the ext in terminal then give ant deploy
ext>ant deploy
- Gnaniyar Zubair
Saturday, September 27, 2008
jQuery datepicker in Liferay
This is date picker coding:
create any simple jsp portlet and in view.jsp apply this coding and try it out.
textbox id = basics
input type="textbox" id="basics" size="10" value="click here"
in script write this code :
jQuery('#basics').datepicker();
-Gnaniyar Zubair
create any simple jsp portlet and in view.jsp apply this coding and try it out.
textbox id = basics
input type="textbox" id="basics" size="10" value="click here"
in script write this code :
jQuery('#basics').datepicker();
-Gnaniyar Zubair
Hide the dock(welcome tab) for Guests.
If you want to hide the welcome tab (top rightside) which is called dock, you can use one of these code in portal_normal.vm file.
Firest Method:
#if($themeDisplay.isSignedIn())#parse ("$full_templates_path/dock.vm")#end
Second Method:
#if(!$user.isDefaultUser())#parse ("$full_templates_path/dock.vm")#end
- Gnaniyar Zubair
Firest Method:
#if($themeDisplay.isSignedIn())#parse ("$full_templates_path/dock.vm")#end
Second Method:
#if(!$user.isDefaultUser())#parse ("$full_templates_path/dock.vm")#end
- Gnaniyar Zubair
Subscribe to:
Comments (Atom)
