Liferay Portlet : trun off portlet namespace prefixed to input field

When we do the portlet development in the Liferay, each input field name and request parameters needs to be prefixed with the portlet namespace.

Portletnamespace prefix is used avoid the conflict, if multiple portlets are dropped on the same page. But if you want to make your portlet work without portlet namespace prefix, it can be done by setting the requires-namespaced-parameters to false in the liferay-portlet.xml file.

<portlet>
	<portlet-name>customportlet</portlet-name>
	<icon>/icon.png</icon>
	<instanceable>false</instanceable>
	<requires-namespaced-parameters>false</requires-namespaced-parameters>
</portlet>

Liferay jBoss turn off the version info from http response Header

According to Security best practices, it good to turn off the portal and application server version information from the HTTP response header. By default, Liferay portal deployed on jBoss server shows the following information in the HTTP response header

Liferay-Portal:Liferay Portal Enterprise Edition X.X CE (Augustine / Build XXXX / Month DD, YYYY)
Server: Apache-Coyote/1.1
X-Powered-By: JSP/2.2

Following are the details for turning off these response headers.
Continue reading

Deploying enterprise liferay dependency in local maven repository

Download the Liferay maven kit from Liferay customer portal and unzip it.

Configure the local maven repository path and id in the {unzippedliferaymavenkit}\build.properties file.

gpg.keyname=
gpg.passphrase=
lp.version.maven=6.2.10.5
lp.maven.repository.id=mavenrepoid
lp.maven.repository.url=http://localmavenrepositoryserver:port/nexus/content/repositories/snapshots

Continue reading