Showing posts with label Liferay. Show all posts
Showing posts with label Liferay. Show all posts

Monday, 15 July 2013

Liferay Portlet as facebook application



The easy step to configure your portlet as facebook app.

  • Goto facebook create a sample application. for example we create a 'hareshliferay' application.


  • Create a Portlet and drop it on a Portal Page.  
  • Now goto right top corner 'Configuration' menu.
  • Click on 'Sharing' tab, and than click on child tab 'Facebook' , copy and paste API Key from Facebook application.And add canvas page URL and click on 'save'   button. It generate a Callback URL, And Save.


  • Copy the callback URL and specify in facebook application,in Canvas URL under the app on facebook tab, And Save
.


  • Click on 'App Details' Menu.fill mandatory information and save than go for 'Submit App Detail Page' , if successfully done than it's showing approval status as 'Live'. Click on 'Web Preview' , it show a Facebook application page.






  • Now click on 'Go to App'.your Liferay portlet is rendered as facebook app. Simply you can add "Facebook Api" in your portlet to do some facebook specific function.



Sunday, 18 December 2011

Build EXT Service with "id" column - [JDBCExceptionReporter:101] Unknown column 'xxxxxxx_.id_' in 'field list'

In Liferay5.2.3 when you are trying to build a sevice with Column name "id" not
a Id,ID or etc other than "id".

for Example a table- ExampleTable has field


id long not null,
name varchar(30),
emailAddress varchar(30),

After Creating Table when you creat a Ext Service and trying to call LocalSrviceUtil ,Liferay-Hibernate  gives error like,

 [JDBCExceptionReporter:101] Unknown column 'ExampleTable0_.id_' in 'field list'


..Liferay portal doesnot support for "id" name column.

To remove these type of error,


Just rename the table field "id" to "id_" you doesn't have to rebuild Service.







 

Thursday, 15 December 2011

Run Your Liferay on Shared Server.

1.Download Liferay Portal
            http://www.liferay.com/downloads/liferay-portal/available-releases

2.Extract Portal on your Shared Server.

3.Goto ..\liferay-portal-Version\tomcat-6.0.18\webapps\ROOT\WEB-INF\classes\

4.Edit portal-ext.properties  , if file is not there create a new file same name.

5. put cofiguration of database.(or it will take default liferay DB HSQL )


       #
       #   db connection
       #
       jdbc.default.driverClassName=com.mysql.jdbc.Driver
       jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
       jdbc.default.username=xxxx
       jdbc.default.password=xxxx

       #
       #  if running from sub folder.because you are running on shared.
       #  change Root foleder naem to your context.
       #
      
      portal.ctx=/portal    


       #
       #  Document ,Articles and images Stored

       # 
     
        liferay.home=/home/lportal/liferay
create a .htaccess file to Liferay root directory 
and Add following contentc to file ..
     SetHandler jakarta-servlet
     SetEnv JK_WORKER_NAME ajp13

Infinidb _CpNoTf_ problem

infinidb table with a varchar column insert string as a '_CpNoTf_' while using Cpimport. The Problem is occured if inserted string ...