Planned maintenance is scheduled for the week of June 15th - the exact date and time will be announced soon.
See More Details
Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Retrieving the comanyid in a portlet
Hi,<br /><br />is it possible to retrieve the companyid in a portlet in liferay ?<br /><br />Thanks,<br />Oliver
PortalUtill.getCompanyId(req) if you're using a bundled portlet<br /> <br />If you're using a hot deploy portlet, there's only one company id.<br /> <br />String companyId = PortalInstances.getDefaultCompanyId();
Community
Company
Feedback