Wednesday, July 30, 2014

How to pass parameters through URL in JSF

To pass parameters through URL in a web application, is to append the parameters into the base URL.

eg, www.google.com?parameter1=value1&parameter2=value2&parameter3=value3.

in JSF, it is nice to pass only 1 parameter through the URL.
When more than 1 parameter pass through the URL, an exception will happen.
Whenever "&" symbol appears in the URL, the exception will happen.

to resolve this problem, what we need to do is to encode the "&" symbol or manually append with the encoded value "&"

eg, www.google.com?parameter1=value1&parameter2=value2&parameter3=value3.


Done!!

Sunday, July 6, 2014

How to get Company Id in Liferay

To check company Id in Liferay, we can check from Portal Instance

1. Login as Liferay Administrator.

2. Go to > Control Panel > Server > Portal Instance


Last but not least, the default Company ID in Liferay 6.1.x is 1, default Company ID in Liferay 6.2.x is 10157.


Done!!

LinkWithin

Related Posts Plugin for WordPress, Blogger...