Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Yannick Weinz
Accessing the Chat-bar
April 10, 2012 12:57 AM
Answer

Yannick Weinz

Rank: Junior Member

Posts: 69

Join Date: November 15, 2010

Recent Posts

Hi,

is there any way to access the chat bar programmatically? We're using Liferay 6.0.6.

What I try to do:
By the click of a button i want the Chat bar to pop up with the right Chat buddy. So if i have a list of people of the Server, for everyone who is currently online there will be a button called "start Chat". Now i want the Chat bar below to open a Chat with the Person.

Is there any way to do that out of the box?
Hitoshi Ozawa
RE: Accessing the Chat-bar
April 15, 2012 6:34 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7954

Join Date: March 23, 2010

Recent Posts

Chat bar is just a portlet as any other portlet on Liferay. It's accessible as any other portlet.

Unfortunately, there isn't any OOTB solution to your requirements.

Source to the Chat portlet is available in the following folder:
webapps\chat-portlet\WEB-INF\src
Yannick Weinz
RE: Accessing the Chat-bar
May 22, 2012 1:07 PM
Answer

Yannick Weinz

Rank: Junior Member

Posts: 69

Join Date: November 15, 2010

Recent Posts

Ah ok feared so...
But how do I get the Chat-Portlet in Eclipse?
Importing it as an Liferay-Project doesn't work, and trying to change it via hook doesn't work as well becaus it's not shown in the list... and simply copying the Source doesnt really work as well (not that i excepted that this would work -.-)
Hitoshi Ozawa
RE: Accessing the Chat-bar
May 22, 2012 2:59 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7954

Join Date: March 23, 2010

Recent Posts

There's a source code in the following folder:
liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23\webapps\chat-portlet\WEB-INF\src
Yannick Weinz
RE: Accessing the Chat-bar
May 22, 2012 10:49 PM
Answer

Yannick Weinz

Rank: Junior Member

Posts: 69

Join Date: November 15, 2010

Recent Posts

Yeah, but how do I integrate that into an Liferay Portlet-project in Eclipse with the Liferay Plugin SDK?

Right now i tried the following (we are using Liferay 6.0.5.1):
A) I downloaded the Chat-Portlet 6.0.5.1 plugin as a war, then importet that into Eclipse, moved it (via Refactor in Liferay) to <Plugin SDK path>/portlet/Chat-portlet, then converted it into a Liferay project... but that didn't work at all.
emoticon Tried to import it as a "Liferay Plugin SDK Project", selected the SDK i use but couldn't find the Chat-portlet
C) Tried to import it as an "Existing Liferay Project", but when i selected the chat-portlet folder, it wouldn't accept it.
D) Tried to use a hook overwriting existing jsps.... but well, the chat-portlet isn't listed there...

So right know i don't know how i import the source code from the chat-portlet as a protlet project into Eclipse with an installed Liferay Plugin SDK...
Hitoshi Ozawa
RE: Accessing the Chat-bar
May 23, 2012 3:44 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7954

Join Date: March 23, 2010

Recent Posts

If you want to compile, just get it from github.
https://github.com/liferay/liferay-plugins/tree/master/portlets/chat-portlet
Yannick Weinz
RE: Accessing the Chat-bar
May 23, 2012 6:01 AM
Answer

Yannick Weinz

Rank: Junior Member

Posts: 69

Join Date: November 15, 2010

Recent Posts

Tahnks, but that doesn't help me at all.

I have absolutely no knowledge about manual compiling what so ever.
I only program Liferay portlets using Eclipse with the Liferay Plugin SDK.
I simply add the portlets to the server there and when the portlet is ok, i export it as a war.

Anything beyond that is something i don't know how to do...

I got the Code from github, extracted the chat-portlet to the Liferay SDK Folder and then tried to import the portlet in eclipse... well that didn't really work as a lot of dependencies didn't get loaded.

What i need is a solution to get the chat-portlet into one of my Portlet-Projects that I have in Eclipse or creating a new one with it, so that if i add it to the server then, I can use it in Liferay.
Hitoshi Ozawa
RE: Accessing the Chat-bar
May 23, 2012 6:19 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7954

Join Date: March 23, 2010

Recent Posts

You can try reading Liferay's Developer's manual (url below). If you can't understand it, I recommend that you take a Liferay's course on basic development to have someone nearby to assist you on each step. From what I've heard, they have very good instructors.
http://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/installing-the-sdk
Yannick Weinz
RE: Accessing the Chat-bar
May 23, 2012 6:50 AM
Answer

Yannick Weinz

Rank: Junior Member

Posts: 69

Join Date: November 15, 2010

Recent Posts

Thanks.

Tried it that way as well, didn't work as well...
First i used the chat-portlet from the github location, it was build successfully, but the server gave me some errors and couldn't deploy it...

Then i tried to copy the chat-portlet from the Server (the one that got there when i installen the chat portlet plugin via the Control Panel of the Server), but that one doesn't have any build information, so i couldn't build that as well...

btw. we're using Liferay 6.0.5