<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6633923710566020468</id><updated>2026-07-29T17:26:50.298-07:00</updated><category term="Configure database with liferay"/><category term="Hide Sign In Portlet"/><category term="Liferay Beanshell"/><category term="Liferay Custom Fields"/><category term="Liferay Installation"/><category term="Liferay Plugin SDK"/><category term="Open Office Integration"/><title type='text'>  Liferay Guru</title><subtitle type='html'>Visit www.proliferay.com</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://liferayguru.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6633923710566020468/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://liferayguru.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Hamidul Islam</name><uri>http://www.blogger.com/profile/16880971203803159294</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6633923710566020468.post-3657861658010117712</id><published>2014-08-28T12:05:00.000-07:00</published><updated>2014-08-28T12:07:16.195-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Hide Sign In Portlet"/><title type='text'>Hide Sign In Portlet </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Have you ever thought of hiding Sign In Portlet? Once I got a requirement to do this for my project. Here is a quick tips.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMVlEd98otexdXsAlnYIQmnkT-YFfmAwcq4CiYTHwYUyH5nBObPnO8FBifySTrKPQfzkNVfB7P7j-bLEgHlwtgvOitTk0jR3LwWgCT4viaTilTHqPMz82PM7UQa7PZt-IaJdCL0pippHo/s1600/sign-in-portlet.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMVlEd98otexdXsAlnYIQmnkT-YFfmAwcq4CiYTHwYUyH5nBObPnO8FBifySTrKPQfzkNVfB7P7j-bLEgHlwtgvOitTk0jR3LwWgCT4viaTilTHqPMz82PM7UQa7PZt-IaJdCL0pippHo/s1600/sign-in-portlet.png&quot; height=&quot;262&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Sign In Portlet&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Log in Liferay as Admin and go to look and feel as below&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEnNMS0Q9fiqFPQHpbAeZG2jA5a5QFnCwwGO41jBjtawzvDQiGBVoDzZx6veqCfiN_RlEoJEkJdMcNEEoOlf5i5hzQoXwx4QcgMJ-Bwd7Y8AFfpCebE48s1exAVcjzYosOlmqoZDE3z3U/s1600/look-and-feel.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEnNMS0Q9fiqFPQHpbAeZG2jA5a5QFnCwwGO41jBjtawzvDQiGBVoDzZx6veqCfiN_RlEoJEkJdMcNEEoOlf5i5hzQoXwx4QcgMJ-Bwd7Y8AFfpCebE48s1exAVcjzYosOlmqoZDE3z3U/s1600/look-and-feel.png&quot; height=&quot;168&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Go to look and feel&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In the advance styling add below code and save the changes.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;i&gt;&lt;b&gt;.signed-in .portlet-login {&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; display: none;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;i&gt;&lt;b&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjx1uctauuBwgNXs3WnB_ELEmg4NN2uDeh690yVrogfYeV_qZIr_viEAbqhse-CQhM9kpmuSh-b6w3PkPdTo7r4roFNEFH_RqUqHEEUD4mo7sWQN4seZftePgbrU75HDrNP1MMJZ1n1G0E/s1600/advance-styling.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjx1uctauuBwgNXs3WnB_ELEmg4NN2uDeh690yVrogfYeV_qZIr_viEAbqhse-CQhM9kpmuSh-b6w3PkPdTo7r4roFNEFH_RqUqHEEUD4mo7sWQN4seZftePgbrU75HDrNP1MMJZ1n1G0E/s1600/advance-styling.png&quot; height=&quot;262&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Advance Styling&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Refresh your browser&lt;b&gt;. Sign In Portlet will be invisible.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #660000; font-size: large;&quot;&gt;Careful:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Suppose you want to revert back. How will you do that?&amp;nbsp;Because its invisible.&amp;nbsp;&amp;nbsp;By firebug just inspect the page as below&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgumxQ8wUNxQddiYxFmfUs4Fz-ZgeyTDwjAKx0XtYembuZ2bSxsbli-oqzUkc2YqTWFiRHhytfu8mgD0o4To3_gqRDA9RYSIegNC9p8GNTpk0dzXG0ivC0eXNoaRqr4QI80d0c11zGCYwc/s1600/inspect.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgumxQ8wUNxQddiYxFmfUs4Fz-ZgeyTDwjAKx0XtYembuZ2bSxsbli-oqzUkc2YqTWFiRHhytfu8mgD0o4To3_gqRDA9RYSIegNC9p8GNTpk0dzXG0ivC0eXNoaRqr4QI80d0c11zGCYwc/s1600/inspect.png&quot; height=&quot;258&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Inspect&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The same thing can be in &lt;b&gt;VM &lt;/b&gt;file of the theme also. But this is the most light wight option to&amp;nbsp;achieve this.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://liferayguru.blogspot.com/feeds/3657861658010117712/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://liferayguru.blogspot.com/2014/08/hide-portlet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6633923710566020468/posts/default/3657861658010117712'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6633923710566020468/posts/default/3657861658010117712'/><link rel='alternate' type='text/html' href='http://liferayguru.blogspot.com/2014/08/hide-portlet.html' title='Hide Sign In Portlet '/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMVlEd98otexdXsAlnYIQmnkT-YFfmAwcq4CiYTHwYUyH5nBObPnO8FBifySTrKPQfzkNVfB7P7j-bLEgHlwtgvOitTk0jR3LwWgCT4viaTilTHqPMz82PM7UQa7PZt-IaJdCL0pippHo/s72-c/sign-in-portlet.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6633923710566020468.post-5408651357526518031</id><published>2014-08-26T04:48:00.001-07:00</published><updated>2014-08-27T11:33:12.225-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Open Office Integration"/><title type='text'>Open Office Integration</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Liferay has a capability to convert document in different&amp;nbsp;format like pdf, doc...etc. We can convert web content as well as document media content in different format.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;But this feature is not enabled by default. To enable this feature we need to perform some extra steps.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Consider the below web content and you want to have a link in the content to export as PDF.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj22uScJ3A7MVBcDtfa2m7gkQEperkJ9Xxd67WIHJ8WC0-EfTQdapK2oyqId1RCsox_DlpzABGSfTUJLUD2nPsW8K6WZ0fWkniT1G2jQfeODD7NpGaAFpigxPBFeQNuk4eq28s9EEeaFUs/s1600/web-content.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj22uScJ3A7MVBcDtfa2m7gkQEperkJ9Xxd67WIHJ8WC0-EfTQdapK2oyqId1RCsox_DlpzABGSfTUJLUD2nPsW8K6WZ0fWkniT1G2jQfeODD7NpGaAFpigxPBFeQNuk4eq28s9EEeaFUs/s1600/web-content.png&quot; height=&quot;144&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Sample Web Content&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;To&amp;nbsp;achieve this we can integrate open office in your portal. Once &lt;b&gt;open office&lt;/b&gt; is configured we can easily convert any document as well as liferay web content in&amp;nbsp;different formats.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Below are the few steps to integrate open office in Liferay.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Step 1:&lt;/b&gt; Download open office from the site &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;https://www.openoffice.org&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Step 2:&lt;/b&gt; Install open office.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Step 3:&lt;/b&gt; Run the open office service.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Step 4:&lt;/b&gt; Configure Liferay to use open office service.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Step 5:&lt;/b&gt; Enable export option for web content.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;I have downloaded&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Apache_OpenOffice_4.1.1_Win_x86_install_en-US.exe. &lt;/b&gt;You can download open office according to your machine. (S&lt;b&gt;tep 1 is completed&lt;/b&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Install open office in your machine in any drive. I have installed in&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;C:\Program Files (x86)\OpenOffice 4. &lt;/b&gt;You can install according to your interest. (&lt;b&gt;Step 2 is completed&lt;/b&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In the &lt;b&gt;Step 3&lt;/b&gt;&amp;nbsp;you have to start the open office service. Navigate to&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;C:\Program Files (x86)\OpenOffice 4\program (&lt;/b&gt;In your case it may be different&lt;b&gt;). &lt;/b&gt;Run the below command (its a windows command)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;soffice -headless -accept=&quot;socket,host=127.0.0.1,port=8100;urp;&quot; -nofirststartwizard&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;(&lt;b&gt;Step 3 is completed&lt;/b&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In step 4 configure Liferay to use this service. To integrate go to your control panel and navigate as shown in below screen shot.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9TzmEKSf1vwDFvKu8VyYDdTsd_FZhyQXZC8Yc66hL0KBGDzFoxqo3CFwTEz4jMwbfYgkD4Aiki3sbbsm8OA8i1fvrvNEJNBtUFB3-HK6bVK_RnSD-2hjzN9QseW6IocXnOlgoRhPDxTk/s1600/external-services.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9TzmEKSf1vwDFvKu8VyYDdTsd_FZhyQXZC8Yc66hL0KBGDzFoxqo3CFwTEz4jMwbfYgkD4Aiki3sbbsm8OA8i1fvrvNEJNBtUFB3-HK6bVK_RnSD-2hjzN9QseW6IocXnOlgoRhPDxTk/s1600/external-services.png&quot; height=&quot;144&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;External Services&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Then enable open office as below&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_6mpgYQw1b0-yD7rFjH854_ZyhChyHnw8in3Vq86ouO3HSazP8klZvWD7DCKGR_THTdBwS1FDtYHE5tNgJ_QJziYajw7OlC2BWQUcq84rzCtWlNHCZPCOrvaTYZMtpt-DxK2-7ZY9kZ4/s1600/enable-open-office.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_6mpgYQw1b0-yD7rFjH854_ZyhChyHnw8in3Vq86ouO3HSazP8klZvWD7DCKGR_THTdBwS1FDtYHE5tNgJ_QJziYajw7OlC2BWQUcq84rzCtWlNHCZPCOrvaTYZMtpt-DxK2-7ZY9kZ4/s1600/enable-open-office.png&quot; height=&quot;240&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Enable Open Office&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;(Step 4 is completed)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In Step 5 go to your web content. Click the setting icon or Configuration icon.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKX6q3XwplTh6HhIeI3jLEhUtFVIHyM_eetCY4-vmNWKQPbijFuVukSSXFraTs68569tQ6RYnZDVJJh2iYClz5rv7RBiZ5S9i2rP4fWra1bhCiO719OogASil08ZmD-dX6QJA6bT3Xd38/s1600/web-content-settings.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKX6q3XwplTh6HhIeI3jLEhUtFVIHyM_eetCY4-vmNWKQPbijFuVukSSXFraTs68569tQ6RYnZDVJJh2iYClz5rv7RBiZ5S9i2rP4fWra1bhCiO719OogASil08ZmD-dX6QJA6bT3Xd38/s1600/web-content-settings.png&quot; height=&quot;182&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Click the settings icon&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Check the PDF and Save.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAK3WFE3yrP_BBPd6sxpGDdUoNsflvX6dSgYL8G3V9Tug2dj9WphGX6_qSLF3ZKGIjU3xd82b5YU6RpUCxbd8zQNp8Ti-oIVXr5e3z7gXQefedF7OCUFiyUgB26bcwpLxOMexgJA7iIqs/s1600/enable-pdf.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAK3WFE3yrP_BBPd6sxpGDdUoNsflvX6dSgYL8G3V9Tug2dj9WphGX6_qSLF3ZKGIjU3xd82b5YU6RpUCxbd8zQNp8Ti-oIVXr5e3z7gXQefedF7OCUFiyUgB26bcwpLxOMexgJA7iIqs/s1600/enable-pdf.png&quot; height=&quot;284&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Enable PDF&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Refresh your page. PDF icon will appear in your web content as in the below image. (&lt;b&gt;Step 5 is completed&lt;/b&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivB0CGuTPOuC7V_GFue5W0fsRZRL5LfA0Po6ITrr3ENToPBVAgipU2DmEymhQgjtMKjfRzuPe1Yi_MGjRV-d3ciVgYXEx28wzkyShBKPybAutGY9wGjGBBtevw6XrJjkcyADmDtUVKcUk/s1600/pdf-enabled.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivB0CGuTPOuC7V_GFue5W0fsRZRL5LfA0Po6ITrr3ENToPBVAgipU2DmEymhQgjtMKjfRzuPe1Yi_MGjRV-d3ciVgYXEx28wzkyShBKPybAutGY9wGjGBBtevw6XrJjkcyADmDtUVKcUk/s1600/pdf-enabled.png&quot; height=&quot;176&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;PDF icon appeared&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Similarly you can convert your documents which are uploaded through document and media portlet. Just open any&amp;nbsp;document from your document and media portlet. You will see&amp;nbsp;different formats to convert a document.&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://liferayguru.blogspot.com/feeds/5408651357526518031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://liferayguru.blogspot.com/2014/08/open-office-integration.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6633923710566020468/posts/default/5408651357526518031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6633923710566020468/posts/default/5408651357526518031'/><link rel='alternate' type='text/html' href='http://liferayguru.blogspot.com/2014/08/open-office-integration.html' title='Open Office Integration'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj22uScJ3A7MVBcDtfa2m7gkQEperkJ9Xxd67WIHJ8WC0-EfTQdapK2oyqId1RCsox_DlpzABGSfTUJLUD2nPsW8K6WZ0fWkniT1G2jQfeODD7NpGaAFpigxPBFeQNuk4eq28s9EEeaFUs/s72-c/web-content.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6633923710566020468.post-5359490048840375963</id><published>2014-08-25T00:47:00.002-07:00</published><updated>2014-08-28T00:21:32.059-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Liferay Beanshell"/><title type='text'>Liferay Beanshell</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; text-align: justify;&quot;&gt;Beanshell is a Java scripting language that’s designed to run Java code with &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; text-align: justify;&quot;&gt;little or no changes. &amp;nbsp;Beanshell doesn’t support the use of Java Generics.&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Liferay has a great feature to run java code from the UI. Consider you want to &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;check some java API then beanshell is very handy to use. Because for using beanshell you no need to develop anything. You can just run your liferay API directly.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #4c4c4e; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 19.5px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #4c4c4e; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 19.5px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #4c4c4e; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 19.5px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #4c4c4e; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 19.5px;&quot;&gt;To use beanshell go to your control panel. Access the beanshell as shown in below screen shot&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #4c4c4e; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 19.5px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9AGALU1MDoBPY2Q4BNSbkJpXDReRINYwwXZp9b7_UJK3FzkFmoNpWXzCV8UT4zoqNbcUwQ9mGDoM1JlDBBaU7NkbF7HLzsUTZzH2CIcmvHpKNhG5-lUqc9M0M9o8Xgvom_YQiA0wNvZg/s1600/beanshell.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9AGALU1MDoBPY2Q4BNSbkJpXDReRINYwwXZp9b7_UJK3FzkFmoNpWXzCV8UT4zoqNbcUwQ9mGDoM1JlDBBaU7NkbF7HLzsUTZzH2CIcmvHpKNhG5-lUqc9M0M9o8Xgvom_YQiA0wNvZg/s1600/beanshell.png&quot; height=&quot;238&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9AGALU1MDoBPY2Q4BNSbkJpXDReRINYwwXZp9b7_UJK3FzkFmoNpWXzCV8UT4zoqNbcUwQ9mGDoM1JlDBBaU7NkbF7HLzsUTZzH2CIcmvHpKNhG5-lUqc9M0M9o8Xgvom_YQiA0wNvZg/s1600/beanshell.png&quot;&gt;Beanshell UI&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Below are the implicit objects that we can use in beanshell&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #eeeeee; font-family: Verdana, sans-serif; line-height: 13.199999809265137px; text-align: left; white-space: pre;&quot;&gt;&lt;b&gt;portletConfig&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; font-family: Verdana, sans-serif; line-height: 13.199999809265137px; text-align: left; white-space: pre;&quot;&gt;portletContext&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #eeeeee; font-family: Verdana, sans-serif; line-height: 13.199999809265137px; text-align: left; white-space: pre;&quot;&gt;&lt;b&gt;actionRequest&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; font-family: Verdana, sans-serif; line-height: 13.199999809265137px; text-align: left; white-space: pre;&quot;&gt;actionResponse&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #eeeeee; font-family: Verdana, sans-serif; line-height: 13.199999809265137px; text-align: left; white-space: pre;&quot;&gt;&lt;b&gt;out&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;Now lets run some Liferay API from the beanshell &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #660000; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;&lt;b&gt;1. Display the total number of users: &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #660000; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;import com.liferay.portal.model.User;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;import com.liferay.portal.service.UserLocalServiceUtil;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;import java.util.List;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;int userCount = UserLocalServiceUtil.getUsersCount();&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;out.println(userCount);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh7e5Zz5CKKDbHgwLjNGWLoxd8Lz6Kww6A-9srM4EHoD1TaSxeXs1mfzoVxl15bNYkR28yUajcERZwlLcDe5RtZ9L9zHMQ4unZgNWAx3FH7iMyl2mVUImp5pwMQVIZxK5okupKH90TAQo/s1600/run-code.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh7e5Zz5CKKDbHgwLjNGWLoxd8Lz6Kww6A-9srM4EHoD1TaSxeXs1mfzoVxl15bNYkR28yUajcERZwlLcDe5RtZ9L9zHMQ4unZgNWAx3FH7iMyl2mVUImp5pwMQVIZxK5okupKH90TAQo/s1600/run-code.png&quot; height=&quot;230&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #660000; font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;2. Find the company ID&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #660000; font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;import com.liferay.portal.util.PortalUtil;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;long companyId = PortalUtil.getCompanyId(actionRequest );&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;out.println(&quot;The comapny Id is : &quot;+companyId);&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #660000; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;&lt;b&gt;3. Get current user object &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #660000; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;import com.liferay.portal.util.PortalUtil;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;import com.liferay.portal.model.User;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;User user = PortalUtil.getUser(actionRequest );&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;out.println(&quot;First Name :&quot;+user.getFirstName());&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;out.println(&quot;Last Name :&quot;+user.getLastName());&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;out.println(&quot;Full Name :&quot;+user.getFullName());&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #660000; line-height: 13.199999809265137px; white-space: pre;&quot;&gt;&lt;b&gt;4. Get the version of your Liferay &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;import com.liferay.portal.kernel.util.ReleaseInfo;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;String version = ReleaseInfo.getVersion();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;out.println(&quot;The Liferay Version :&quot;+version);&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #660000; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;&lt;b&gt;5. Get theme &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;import com.liferay.portal.theme.ThemeDisplay ;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;import com.liferay.portal.util.WebKeys;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;import com.liferay.portal.model.Theme;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;ThemeDisplay themeDisplay = (ThemeDisplay)actionRequest.getAttribute(WebKeys.THEME_DISPLAY);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;Theme theme = themeDisplay.getTheme();&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 13.199999809265137px; white-space: pre;&quot;&gt;out.println(&quot;Current Theme: &quot;+theme.getName());&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Here in this session I have given only basics of using beanshell. However you can use this feature according to your requirements. For example consider you have 10,000 users in your portal and now you want update each user with a particular role. In this case you can use this feature instead of doing it manually.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #660000; font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Limitation:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;This feature can be used only for &lt;b&gt;Liferay API &lt;/b&gt;as well as &lt;b&gt;liferay default services&lt;/b&gt;. You will not be able to test your own custom services which are developed as plugin portlet.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://liferayguru.blogspot.com/feeds/5359490048840375963/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://liferayguru.blogspot.com/2014/08/liferay-beanshell.html#comment-form' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6633923710566020468/posts/default/5359490048840375963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6633923710566020468/posts/default/5359490048840375963'/><link rel='alternate' type='text/html' href='http://liferayguru.blogspot.com/2014/08/liferay-beanshell.html' title='Liferay Beanshell'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9AGALU1MDoBPY2Q4BNSbkJpXDReRINYwwXZp9b7_UJK3FzkFmoNpWXzCV8UT4zoqNbcUwQ9mGDoM1JlDBBaU7NkbF7HLzsUTZzH2CIcmvHpKNhG5-lUqc9M0M9o8Xgvom_YQiA0wNvZg/s72-c/beanshell.png" height="72" width="72"/><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6633923710566020468.post-4017294798297304842</id><published>2014-08-24T11:04:00.001-07:00</published><updated>2014-08-25T01:55:30.689-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Liferay Custom Fields"/><title type='text'>Liferay Custom Field</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Before going to the topic lets have a look in Liferay Entity. If you have used Liferay Service Builder then you are aware of Liferay Entity. An entity is simply a Java Class which is auto generated by Service Builder. An Entity represents model data and persisted in database.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Liferay by default it has many entities. Some of them are &lt;b&gt;User,Page,Role &lt;/b&gt;and many more. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Liferay provides UI and API to allow for the creation of customized fields&amp;nbsp; associated with any entity generated by Service Builder. 
These fields provide extensibility without the need for 
extending the Liferay DB schema.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Lets explore how to add custom fields through UI. You need to login to your portal as Admin. Go to your control panel. Click Custom Fields as shown in red color in below picture.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaKQJd1Gv7tNT3kwnmDkLccyqYJcV8txrcJiuGT3TtTld3Ox-j-e0cciSvcHL-QpZIirbqQ5n98t7aKN0MkCDeVIPsKew577XZC4FbA0pwKiPg6VL7jpVYb7Xg4x7Q3rnpXtS_V2bzv74/s1600/Control+Panel.png&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaKQJd1Gv7tNT3kwnmDkLccyqYJcV8txrcJiuGT3TtTld3Ox-j-e0cciSvcHL-QpZIirbqQ5n98t7aKN0MkCDeVIPsKew577XZC4FbA0pwKiPg6VL7jpVYb7Xg4x7Q3rnpXtS_V2bzv74/s1600/Control+Panel.png&quot; height=&quot;243&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaKQJd1Gv7tNT3kwnmDkLccyqYJcV8txrcJiuGT3TtTld3Ox-j-e0cciSvcHL-QpZIirbqQ5n98t7aKN0MkCDeVIPsKew577XZC4FbA0pwKiPg6VL7jpVYb7Xg4x7Q3rnpXtS_V2bzv74/s1600/Control+Panel.png&quot;&gt;Liferay Control Panel&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaKQJd1Gv7tNT3kwnmDkLccyqYJcV8txrcJiuGT3TtTld3Ox-j-e0cciSvcHL-QpZIirbqQ5n98t7aKN0MkCDeVIPsKew577XZC4FbA0pwKiPg6VL7jpVYb7Xg4x7Q3rnpXtS_V2bzv74/s1600/Control+Panel.png&quot;&gt;&lt;br /&gt;&lt;/a&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaKQJd1Gv7tNT3kwnmDkLccyqYJcV8txrcJiuGT3TtTld3Ox-j-e0cciSvcHL-QpZIirbqQ5n98t7aKN0MkCDeVIPsKew577XZC4FbA0pwKiPg6VL7jpVYb7Xg4x7Q3rnpXtS_V2bzv74/s1600/Control+Panel.png&quot;&gt;&lt;br /&gt;&lt;/a&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaKQJd1Gv7tNT3kwnmDkLccyqYJcV8txrcJiuGT3TtTld3Ox-j-e0cciSvcHL-QpZIirbqQ5n98t7aKN0MkCDeVIPsKew577XZC4FbA0pwKiPg6VL7jpVYb7Xg4x7Q3rnpXtS_V2bzv74/s1600/Control+Panel.png&quot;&gt;&lt;br /&gt;&lt;/a&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaKQJd1Gv7tNT3kwnmDkLccyqYJcV8txrcJiuGT3TtTld3Ox-j-e0cciSvcHL-QpZIirbqQ5n98t7aKN0MkCDeVIPsKew577XZC4FbA0pwKiPg6VL7jpVYb7Xg4x7Q3rnpXtS_V2bzv74/s1600/Control+Panel.png&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
You will see below list&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbUnsSEzcVIukkwHqmwWPjSqDDqKBsRY1sqXuVwEZ6x4cCWn5ZEOHVZngtvYlWdwLvjmnI1i4HmSFX18eJ2eL6lJCEzZQSpsKbpHK5AaWuzAtPPFCZrhGu8SeodBZUfraRv7llpQgvgp0/s1600/Custom+Fields.png&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbUnsSEzcVIukkwHqmwWPjSqDDqKBsRY1sqXuVwEZ6x4cCWn5ZEOHVZngtvYlWdwLvjmnI1i4HmSFX18eJ2eL6lJCEzZQSpsKbpHK5AaWuzAtPPFCZrhGu8SeodBZUfraRv7llpQgvgp0/s1600/Custom+Fields.png&quot; height=&quot;346&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbUnsSEzcVIukkwHqmwWPjSqDDqKBsRY1sqXuVwEZ6x4cCWn5ZEOHVZngtvYlWdwLvjmnI1i4HmSFX18eJ2eL6lJCEzZQSpsKbpHK5AaWuzAtPPFCZrhGu8SeodBZUfraRv7llpQgvgp0/s1600/Custom+Fields.png&quot;&gt;Custom Fields&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;You will see list of all entities &amp;nbsp;for which you can add custom fields. However you can add your own Entity in this list. I will cover how to add your own entity in another session.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now you can add your custom fields for any entity in the list. Consider you want to add custom fields for &lt;b&gt;User entity. &lt;/b&gt;Click edit for the entity &lt;b&gt;User.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Follow the below screen shot&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy_bzvd0CzxXx5t_ylNixK5o0V1Iu6bdQWqC6kHGWhhytXUOhzyO3I8Jvo44WViknF-iAKwXCS3BLf5owmPjmeMU8yeXr3Toc-zKrPLN_l2ljFZajcp238jacW3_TsTHAInTsFHF14KfU/s1600/secondary-email.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy_bzvd0CzxXx5t_ylNixK5o0V1Iu6bdQWqC6kHGWhhytXUOhzyO3I8Jvo44WViknF-iAKwXCS3BLf5owmPjmeMU8yeXr3Toc-zKrPLN_l2ljFZajcp238jacW3_TsTHAInTsFHF14KfU/s1600/secondary-email.png&quot; height=&quot;210&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Adding Custom Field&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Select type as Text Field. There are many other options under type. You can explore yourself. You can add many custom fields for a given Entity. For this session we will concentrate on only one field.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;After adding the custom field we can view, update from the Liferay UI as well as we can use in our custom portlet. &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp;View and Update Custom Field By Code:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In your jsp add below code&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #660000;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;lt;%@page import=&quot;com.liferay.portal.model.User&quot;%&amp;gt; &lt;br /&gt;&lt;br /&gt;&amp;lt;%&lt;br /&gt;User currentUser = themeDisplay.getUser(); &lt;br /&gt;&lt;br /&gt;%&amp;gt;&lt;br /&gt;&lt;br /&gt;View / Edit Custom Field&amp;lt;br/&amp;gt;&lt;br /&gt;&amp;lt;portlet:actionURL var=&quot;updateCustomField&quot; name=&quot;updateUserCustomeField&quot;/&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;aui:form action=&quot;&amp;lt;%= updateCustomField %&amp;gt;&quot; method=&quot;post&quot; name=&quot;fm&quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;liferay-ui:custom-attribute-list&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; className=&quot;&amp;lt;%= User.class.getName() %&amp;gt;&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; classPK=&quot;&amp;lt;%= currentUser != null ? currentUser.getUserId() : 0 %&amp;gt;&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; editable=&quot;&amp;lt;%= true %&amp;gt;&quot; label=&quot;true&quot;/&amp;gt;&lt;br /&gt;&amp;lt;aui:button type=&quot;submit&quot; value=&quot;update&quot;/&amp;gt;&lt;br /&gt;&amp;lt;/aui:form&amp;gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In your portlet class file add below code&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;@ProcessAction(name=&quot;updateUserCustomeField&quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void updateUserCustomeField(ActionRequest actionRequest,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ActionResponse actionResponse) throws IOException,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; PortletException, PortalException, SystemException {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ServiceContext serviceContext = ServiceContextFactory.getInstance(User.class.getName(), actionRequest);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; User user = PortalUtil.getUser(actionRequest);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; user.setExpandoBridgeAttributes(serviceContext);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; UserLocalServiceUtil.updateUser(user);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;b&gt;Show all the custom fields for a given Entity(in JSP):&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;liferay-ui:custom-attribute-list&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; className=&quot;&amp;lt;%= User.class.getName() %&amp;gt;&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; classPK=&quot;&amp;lt;%= currentUser != null ? currentUser.getUserId() : 0 %&amp;gt;&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; editable=&quot;&amp;lt;%= false %&amp;gt;&quot; label=&quot;true&quot;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;b&gt;Show specific Custom Field Value (in JSP) :&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;liferay-ui:custom-attribute&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; className=&quot;&amp;lt;%= User.class.getName() %&amp;gt;&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;classPK=&quot;&amp;lt;%= currentUser != null ? currentUser.getUserId() : 0 %&amp;gt;&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; editable=&quot;&amp;lt;%= false %&amp;gt;&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; name=&quot;secondary-email&quot; label=&quot;true&quot;/&amp;gt;&lt;/span&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;Add Custom Field dynamically by Java Code:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;@ProcessAction(name=&quot;addUserCustomeField&quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void addUserCustomeField(ActionRequest actionRequest,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ActionResponse actionResponse) throws IOException,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; PortletException, PortalException, SystemException {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; String customField = ParamUtil.getString(actionRequest, &quot;customField&quot;,&quot;&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; User user = PortalUtil.getUser(actionRequest);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; user.getExpandoBridge().addAttribute(customField);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;To call this method add below code in your JSP page&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;portlet:actionURL&amp;nbsp; var=&quot;addCustomField&quot; name=&quot;addUserCustomeField&quot;/&amp;gt;&lt;br /&gt;&amp;lt;aui:form action=&quot;&amp;lt;%= addCustomField %&amp;gt;&quot; method=&quot;post&quot; name=&quot;fm&quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;aui:input name=&quot;customField&quot; label=&quot;Custom Field&quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;lt;aui:button type=&quot;submit&quot; value=&quot;Add Custom Field&quot;/&amp;gt;&lt;br /&gt;&amp;lt;/aui:form&amp;gt; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;a href=&quot;https://drive.google.com/file/d/0B7ZVy3pNtY29eWxOdEszS3VWU0U/edit?usp=sharing&quot; target=&quot;_blank&quot;&gt;Download Code&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://liferayguru.blogspot.com/feeds/4017294798297304842/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://liferayguru.blogspot.com/2014/08/liferay-custom-fields-before-going-to.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6633923710566020468/posts/default/4017294798297304842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6633923710566020468/posts/default/4017294798297304842'/><link rel='alternate' type='text/html' href='http://liferayguru.blogspot.com/2014/08/liferay-custom-fields-before-going-to.html' title='Liferay Custom Field'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaKQJd1Gv7tNT3kwnmDkLccyqYJcV8txrcJiuGT3TtTld3Ox-j-e0cciSvcHL-QpZIirbqQ5n98t7aKN0MkCDeVIPsKew577XZC4FbA0pwKiPg6VL7jpVYb7Xg4x7Q3rnpXtS_V2bzv74/s72-c/Control+Panel.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6633923710566020468.post-8821817101707716072</id><published>2011-10-15T12:41:00.000-07:00</published><updated>2014-08-23T12:11:09.052-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Liferay Plugin SDK"/><title type='text'>Liferay Plugin SDK</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
  var _gaq = _gaq || [];
  _gaq.push([&#39;_setAccount&#39;, &#39;UA-26353830-1&#39;]);
  _gaq.push([&#39;_trackPageview&#39;]);

  (function() {
    var ga = document.createElement(&#39;script&#39;); ga.type = &#39;text/javascript&#39;; ga.async = true;
    ga.src = (&#39;https:&#39; == document.location.protocol ? &#39;https://ssl&#39; : &#39;http://www&#39;) + &#39;.google-analytics.com/ga.js&#39;;
    var s = document.getElementsByTagName(&#39;script&#39;)[0]; s.parentNode.insertBefore(ga, s);
  })();
&lt;/script&gt;

&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;The Liferay Plugins SDK is a development environment that helps in the development of all types of plugins for Liferay Portal. Following are the plugins supported by Liferay Portal&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
1. Portlet&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
2. Theme&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
3. Layout&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
4. Hooks &lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
So I want to say to beginners that Plugin SDK is nothing but development environment of Liferay Portal. Lets download it. To download Plugin SDK &lt;a href=&quot;http://sourceforge.net/projects/lportal/files/Liferay%20Portal/6.0.6/liferay-plugins-sdk-6.0.6-20110225.zip/download&quot;&gt;click here&lt;/a&gt;. The link will download a file liferay-plugins-sdk-6.0.6-20110225.zip in your local box.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;Configure Plugin SDK:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
To configure plugin sdk follow the following steps&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
1. Unzip the above zip file in your local box&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
2. Go inside the unzipped plugin sdk and create a file with name &lt;b&gt;build.${your_user_name}.properties&lt;/b&gt; file. Here&amp;nbsp; &lt;b&gt;${your_user_name}&lt;/b&gt; should be replaced by your user name of your computer. If your computer user name is &lt;b&gt;&quot;john&quot;&lt;/b&gt; then your file name should be&lt;b&gt; build.john.properties&lt;/b&gt; and if its&lt;b&gt; &quot;test&quot;&lt;/b&gt; then it should be &lt;b&gt;build.test.properties&lt;/b&gt; ans so on. If you don&#39;t know your computer user name then command prompt ant type &lt;b&gt;&#39;set&#39;&lt;/b&gt; and press enter. You will see a screen as bellow where you will see your user name.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0URkUHV-GzJOASQ0MceYfr85oPVpTtxqxxJIWd3a6ywaYBQWrV35EIIQiA3Sa3C06dqnSaUpHpwJKoUik_MTJoj-IYScOsrdvrBi3Ila2-yXguVNhny1J2e1Yjm8VMyt5CjkiAZm1mCY/s1600/username.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0URkUHV-GzJOASQ0MceYfr85oPVpTtxqxxJIWd3a6ywaYBQWrV35EIIQiA3Sa3C06dqnSaUpHpwJKoUik_MTJoj-IYScOsrdvrBi3Ila2-yXguVNhny1J2e1Yjm8VMyt5CjkiAZm1mCY/s400/username.jpg&quot; height=&quot;267&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
3. Open the file and add the following contents&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; app.server.type=tomcat&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; app.server.dir=&lt;b&gt;G:/liferay/liferay-portal-6.0.6/tomcat-6.0.29&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; app.server.deploy.dir=${app.server.dir}/webapps&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; app.server.lib.global.dir=${app.server.dir}/lib/ext&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; app.server.portal.dir=${app.server.dir}/webapps/ROOT&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Here &quot;&lt;b&gt;G:/liferay/liferay-portal-6.0.6/tomcat-6.0.29&lt;/b&gt;&quot; is my tomcat path. So you should replace it with your corresponding tomcat path.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
That&#39;s all about your configuration. &lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://liferayguru.blogspot.com/feeds/8821817101707716072/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://liferayguru.blogspot.com/2011/10/liferay-plugin-sdk.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6633923710566020468/posts/default/8821817101707716072'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6633923710566020468/posts/default/8821817101707716072'/><link rel='alternate' type='text/html' href='http://liferayguru.blogspot.com/2011/10/liferay-plugin-sdk.html' title='Liferay Plugin SDK'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0URkUHV-GzJOASQ0MceYfr85oPVpTtxqxxJIWd3a6ywaYBQWrV35EIIQiA3Sa3C06dqnSaUpHpwJKoUik_MTJoj-IYScOsrdvrBi3Ila2-yXguVNhny1J2e1Yjm8VMyt5CjkiAZm1mCY/s72-c/username.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6633923710566020468.post-4289809004380720044</id><published>2011-10-14T12:10:00.000-07:00</published><updated>2014-08-23T12:11:52.563-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Configure database with liferay"/><title type='text'>Configure database with liferay</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;By&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt; default liferay use hsql database. To override this default be&lt;/span&gt;havior we can configure &lt;span style=&quot;font-family: verdana;&quot;&gt;to different database of our own interests. Here we are going to show that how can we configure MySQL with Liferay Portal. This is pretty simple database and its free of cost. That&#39;s why its taken for this example. &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
Before configuring MySQL with liferay be sure that you have installed MySQL in your local machine. If you have not installed download it from &lt;a href=&quot;http://www.mysql.com/downloads/&quot;&gt;http://www.mysql.com/downloads/&lt;/a&gt; and follow the following steps.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Step 1:&lt;/span&gt;&lt;br /&gt;
Open your note pad and save it any where in your local machine with a file name &lt;span style=&quot;font-weight: bold;&quot;&gt;&quot;portal-ext.properties&quot;&lt;/span&gt;. Now add the following contents in your empty &lt;span style=&quot;font-weight: bold;&quot;&gt;&quot;portal-ext.properties&quot; &lt;/span&gt;file.&lt;br /&gt;
&lt;br /&gt;
jdbc.default.driverClassName=com.mysql.jdbc.Driver&lt;br /&gt;
&lt;br /&gt;
jdbc.default.url=jdbc:mysql://localhost/&lt;span style=&quot;font-weight: bold;&quot;&gt;lportal&lt;/span&gt;?useUnicode=true&amp;amp;characterEncoding=UTF-8&amp;amp;useFastDateParsing=false&lt;br /&gt;
jdbc.default.username=root&lt;br /&gt;
jdbc.default.password=root&lt;br /&gt;
&lt;br /&gt;
If you don&#39;t have knowledge on database just remember the following&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;lportal &lt;/span&gt;is the database that liferay is going to use. So &lt;span style=&quot;font-weight: bold;&quot;&gt;lportal &lt;/span&gt;schema should be created in your MySQL.&lt;br /&gt;
&lt;br /&gt;
root is the user name and password for your MySQL server. It can be different in individual machine. So replace it with your user name and password.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Step 2:&lt;/span&gt;&lt;br /&gt;
Now copy &lt;span style=&quot;font-weight: bold;&quot;&gt;&quot;portal-ext.properties&quot; &lt;/span&gt;and past inside&lt;span style=&quot;font-weight: bold;&quot;&gt; liferay-portal-6.0.6\tomcat-6.0.29\webapps\ROOT\WEB-INF\classes&lt;/span&gt; folder&lt;br /&gt;
&lt;br /&gt;
That&#39;s all. Start your server. If MySQL is connected successfully it will populate liferay tables inside the schema &lt;span style=&quot;font-weight: bold;&quot;&gt;&quot;lportal&quot;&lt;/span&gt; as mentioned above.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://liferayguru.blogspot.com/feeds/4289809004380720044/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://liferayguru.blogspot.com/2011/10/configure-database-with-liferay.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6633923710566020468/posts/default/4289809004380720044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6633923710566020468/posts/default/4289809004380720044'/><link rel='alternate' type='text/html' href='http://liferayguru.blogspot.com/2011/10/configure-database-with-liferay.html' title='Configure database with liferay'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6633923710566020468.post-6897234393293332797</id><published>2011-10-14T11:12:00.000-07:00</published><updated>2014-08-23T12:12:15.740-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Liferay Installation"/><title type='text'>Liferay Installation</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Step 1:&lt;/span&gt;&lt;br /&gt;Go to the &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_0&quot;&gt;Liferay&lt;/span&gt; Official site &lt;a href=&quot;http://www.liferay.com/downloads/liferay-portal/available-releases&quot;&gt;www.liferay.com&lt;/a&gt;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;font-size: 100%;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;and click download as shown bellow.It will download &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_1&quot;&gt;liferay&lt;/span&gt; tomcat bundle. The file looks like  &lt;span style=&quot;font-weight: bold;&quot;&gt;liferay-portal-tomcat-6.0.6-20110225.zip&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg93WERroFgcqlXd3gxjJXjgYYuR3P1B-VnKO4JIh0td6vY7CZVnptHAUue95Q0xdHjZWHOGArAGQVheoNmGTTEZJV5jNtSZrWfDR4tcRPshJN1Tz6Y7YJg143Ipqb8aif5DQpOkWjrp50/s1600/liferay.jpg&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg93WERroFgcqlXd3gxjJXjgYYuR3P1B-VnKO4JIh0td6vY7CZVnptHAUue95Q0xdHjZWHOGArAGQVheoNmGTTEZJV5jNtSZrWfDR4tcRPshJN1Tz6Y7YJg143Ipqb8aif5DQpOkWjrp50/s320/liferay.jpg&quot; id=&quot;BLOGGER_PHOTO_ID_5663421541790986642&quot; style=&quot;cursor: pointer; float: left; height: 95px; margin: 0pt 10px 10px 0pt; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Step 2:&lt;/span&gt;&lt;br /&gt;
Unzip the above zip file to your local drive. By default the name of the unzipped folder will be &lt;span style=&quot;font-weight: bold;&quot;&gt;liferay-portal-6.0.6&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Step 3:&lt;/span&gt;&lt;br /&gt;
Go inside &lt;span style=&quot;font-weight: bold;&quot;&gt;liferay-portal-6.0.6\tomcat-6.0.29\bin&lt;/span&gt; folder and double click on &lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_2&quot;&gt;startup&lt;/span&gt; &lt;/span&gt;file. It will start &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_3&quot;&gt;liferay&lt;/span&gt; portal.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Step 4:&lt;/span&gt;&lt;br /&gt;
Waite for some time until you get the message &quot;server start up&quot; in the console.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Step 5:&lt;/span&gt;&lt;br /&gt;
Open browser and enter &lt;a href=&quot;http://localhost:8080/&quot;&gt;http://localhost:8080&lt;/a&gt;. It will ask for user name and password. By default&lt;br /&gt;
&lt;br /&gt;
User Name: test@liferay.com&lt;br /&gt;
Password:    test&lt;br /&gt;
&lt;br /&gt;
Enter inside the portal and explore liferay features.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://liferayguru.blogspot.com/feeds/6897234393293332797/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://liferayguru.blogspot.com/2011/10/liferay-installation.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6633923710566020468/posts/default/6897234393293332797'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6633923710566020468/posts/default/6897234393293332797'/><link rel='alternate' type='text/html' href='http://liferayguru.blogspot.com/2011/10/liferay-installation.html' title='Liferay Installation'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg93WERroFgcqlXd3gxjJXjgYYuR3P1B-VnKO4JIh0td6vY7CZVnptHAUue95Q0xdHjZWHOGArAGQVheoNmGTTEZJV5jNtSZrWfDR4tcRPshJN1Tz6Y7YJg143Ipqb8aif5DQpOkWjrp50/s72-c/liferay.jpg" height="72" width="72"/><thr:total>2</thr:total></entry></feed>