Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
How to create portlet widget????? Amit Kumar Singh January 20, 2011 9:35 AM
RE: How to create portlet widget????? Amit Kumar Singh January 21, 2011 9:44 PM
RE: How to create portlet widget????? Jonas Yuan January 22, 2011 12:06 AM
RE: How to create portlet widget????? Amit Kumar Singh January 22, 2011 1:41 AM
RE: How to create portlet widget????? Amit Kumar Singh January 24, 2011 8:01 PM
RE: How to create portlet widget????? Jonas Yuan January 26, 2011 7:45 AM
RE: How to create portlet widget????? Amit Kumar Singh January 26, 2011 9:49 AM
RE: How to create portlet widget????? Mohd Hanafi January 27, 2011 7:53 AM
RE: How to create portlet widget????? Amit Kumar Singh January 27, 2011 10:24 AM
RE: How to create portlet widget????? Amit Kumar Singh January 27, 2011 10:35 AM
RE: How to create portlet widget????? Mohd Hanafi January 27, 2011 2:10 PM
RE: How to create portlet widget????? Amit Kumar Singh January 27, 2011 8:53 PM
RE: How to create portlet widget????? Amit Kumar Singh January 28, 2011 4:33 AM
RE: How to create portlet widget????? Amit Kumar Singh January 31, 2011 7:21 PM
RE: How to create portlet widget????? Amit Kumar Singh February 6, 2011 8:06 PM
RE: How to create portlet widget????? Jonas Yuan February 1, 2011 9:08 AM
RE: How to create portlet widget????? Amit Kumar Singh August 2, 2011 3:33 AM
RE: How to create portlet widget????? Jonas Yuan August 4, 2011 7:17 AM
RE: How to create portlet widget????? Anil Sunkari August 22, 2011 9:58 PM
RE: How to create portlet widget????? Amit Kumar Singh August 22, 2011 10:30 PM
RE: How to create portlet widget????? Anil Sunkari August 22, 2011 10:40 PM
RE: How to create portlet widget????? Amit Kumar Singh August 22, 2011 11:57 PM
RE: How to create portlet widget????? Manikandan S August 23, 2011 12:07 AM
RE: How to create portlet widget????? Amit Kumar Singh August 23, 2011 12:40 AM
RE: How to create portlet widget????? Manikandan S August 23, 2011 1:35 AM
Amit Kumar Singh
How to create portlet widget?????
January 20, 2011 9:35 AM
Answer

Amit Kumar Singh

Rank: Junior Member

Posts: 71

Join Date: October 11, 2010

Recent Posts

Hi All,


I was trying to create portlet widget.

Widget will be having list of portlet on basis of user role. And user can drag the portlet through the available portlet links in widget. Anyone have idea regarding this implementation than please help me.

For example, to add portlet user will click option "More" and than user can drag the portlet on board. Same functionality i am trying to do with portlet widget.

Thanks in advance.....
Amit Kumar Singh
RE: How to create portlet widget?????
January 21, 2011 9:44 PM
Answer

Amit Kumar Singh

Rank: Junior Member

Posts: 71

Join Date: October 11, 2010

Recent Posts

guys it's bit urgent. Please help me.
Jonas Yuan
RE: How to create portlet widget?????
January 22, 2011 12:06 AM
Answer

Jonas Yuan

Rank: Liferay Master

Posts: 993

Join Date: April 26, 2007

Recent Posts

Hi Amit,

Not sure that I got your requirements.

But Liferay itself seems do what you need. You can drag and drop portlets to any pages, for instance.

By the way, do you try netvibes-widget-portlet?

Hope that it helps,

Thanks

Jonas Yuan
Amit Kumar Singh
RE: How to create portlet widget?????
January 22, 2011 1:41 AM
Answer

Amit Kumar Singh

Rank: Junior Member

Posts: 71

Join Date: October 11, 2010

Recent Posts

Hi Jonas Yuan,

Thanks for your reply.I will explain you my requirement.

admin can drag and drop portlets to any page using dockbar but i want to create one portlet with list of portlets on basis of user role. User can drag the portlets on same page using the available portlets link.

Please help me out and let me know if you have any doubt with my requirement.
Amit Kumar Singh
RE: How to create portlet widget?????
January 24, 2011 8:01 PM
Answer

Amit Kumar Singh

Rank: Junior Member

Posts: 71

Join Date: October 11, 2010

Recent Posts

Any one have idea?????emoticon
Jonas Yuan
RE: How to create portlet widget?????
January 26, 2011 7:45 AM
Answer

Jonas Yuan

Rank: Liferay Master

Posts: 993

Join Date: April 26, 2007

Recent Posts

Hi Amit,

Sorry to come back to you late.

I believe that you can reach the same by using Liferay OOB features.

1) re-use Liferay drag and drop to create pages

2) set permissions based on roles: MANAGE PAGES, etc.

Hope that it helps,

Thanks

Jonas Yuan
==================
The Author of Liferay Books:
Liferay User Interface Development
Liferay Portal 6 Enterprise Intranets
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
Amit Kumar Singh
RE: How to create portlet widget?????
January 26, 2011 9:49 AM
Answer

Amit Kumar Singh

Rank: Junior Member

Posts: 71

Join Date: October 11, 2010

Recent Posts

Hi Jonas,

Thanks for your kind reply. Still, i am struggling with my portlet gallery section. Working on that with some clue. But, if you understand my problem than let me know any suggestion from your side also.
thanks.
Mohd Hanafi
RE: How to create portlet widget?????
January 27, 2011 7:53 AM
Answer

Mohd Hanafi

Rank: Junior Member

Posts: 83

Join Date: January 17, 2010

Recent Posts

Amit Singh:
Hi All,

Widget will be having list of portlet on basis of user role. And user can drag the portlet through the available portlet links in widget.

Thanks in advance.....


This is my opinion.

1. You need create new role and assign users to that role.
2. Then you give Portlet Permission to the role.
3. When user login, he can only drag & drop permitted portlets in (2) above.

When you done no (1) & (2), you found that User only can work around portlets (edit, configure & etc)
that added by admin into page, but cannot add new portlet that you ordered in (2) above.

Am I right?


Best regards,
Hanafi,
KL, Malaysia.
Amit Kumar Singh
RE: How to create portlet widget?????
January 27, 2011 10:24 AM
Answer

Amit Kumar Singh

Rank: Junior Member

Posts: 71

Join Date: October 11, 2010

Recent Posts

Hi Hanafi ,

Thanks for your reply. I already done with 1st & 2nd point. My requirement is user will be having one portlet list gallery portlet. From that gallery portlet they can drag any portet to his/her dashboard area. If you have nay idea than please let me know the render method of portlet using aui with liferay.
Amit Kumar Singh
RE: How to create portlet widget?????
January 27, 2011 10:35 AM
Answer

Amit Kumar Singh

Rank: Junior Member

Posts: 71

Join Date: October 11, 2010

Recent Posts

Hi Jonas,

Please check this link.

Liferay redering the portlet


You have explained about my problem here. But when i am using this function that time i am getting error for showNetvibesInfo is not defined.

Could you please explain more about this functionality....???
Mohd Hanafi
RE: How to create portlet widget?????
January 27, 2011 2:10 PM
Answer

Mohd Hanafi

Rank: Junior Member

Posts: 83

Join Date: January 17, 2010

Recent Posts

Amit Singh:
Hi Hanafi ,

My requirement is user will be having one portlet list gallery portlet. From that gallery portlet they can drag any portet to his/her dashboard area.


It will be like this?

We try to visible Add Application part in dock.vm

This part just my illustration, because I cannot solved this yet.
Attachment

Attachments: modified_dock_new_ROLE.jpg (28.8k)
Amit Kumar Singh
RE: How to create portlet widget?????
January 27, 2011 8:53 PM
Answer

Amit Kumar Singh

Rank: Junior Member

Posts: 71

Join Date: October 11, 2010

Recent Posts

Hi Hanafi,

Please see attached image. It will clear your more.
Attachment

Attachments: GALLERY.PNG (10.3k)
Amit Kumar Singh
RE: How to create portlet widget?????
January 28, 2011 4:33 AM
Answer

Amit Kumar Singh

Rank: Junior Member

Posts: 71

Join Date: October 11, 2010

Recent Posts

Hi,

I am very near to resolve the issue of my portlet gallery section. It's completed more than 80%. But there is one small issue. I have fixed the column layout while dragging the portlet.Please let me know if anyone knows, how to get layout column id while dragging the portlet. It will be great help for me.

Thanks in advance.
Amit Kumar Singh
RE: How to create portlet widget?????
January 31, 2011 7:21 PM
Answer

Amit Kumar Singh

Rank: Junior Member

Posts: 71

Join Date: October 11, 2010

Recent Posts

i have done with my gallery section. But there is two issue....

1. After dragged the portlet, i have to refresh the page to see the dragged portlet. I am refreshing the page by program but i don't want to refresh the page after dragged portlet.

2. Admin is able to drag the portlet but user is not able to drag any portlet on dashboard.Please let me know if any permission or setting is required.

Let me know if anyone having idea about these two points.

Thanks in advance.
Jonas Yuan
RE: How to create portlet widget?????
February 1, 2011 9:08 AM
Answer

Jonas Yuan

Rank: Liferay Master

Posts: 993

Join Date: April 26, 2007

Recent Posts

Hi Amit,

I got your requirements. Eventually, I got the same requirements last year from one client.

This is a nice feature. But it will take time to implement. Of course, based on liferay framework and main features, this is doable.

Better design, simple implementation.

Maybe, it would be nice that you can share your plan here.

Thanks

Jonas Yuan
==================
The Author of Liferay Books:
Liferay User Interface Development
Liferay Portal 6 Enterprise Intranets
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
Amit Kumar Singh
RE: How to create portlet widget?????
February 6, 2011 8:06 PM
Answer

Amit Kumar Singh

Rank: Junior Member

Posts: 71

Join Date: October 11, 2010

Recent Posts

I have done with my second point also. Now only the first point is in pending. Let me know if anyone can guide me for that.

If any one having doubt to dynamically adding portlet on page than let me know.

Thanks.
Amit Kumar Singh
RE: How to create portlet widget?????
August 2, 2011 3:33 AM
Answer

Amit Kumar Singh

Rank: Junior Member

Posts: 71

Join Date: October 11, 2010

Recent Posts

Jonas Yuan:
Hi Amit,

I got your requirements. Eventually, I got the same requirements last year from one client.

This is a nice feature. But it will take time to implement. Of course, based on liferay framework and main features, this is doable.

Better design, simple implementation.

Maybe, it would be nice that you can share your plan here.

Thanks

Jonas Yuan
==================
The Author of Liferay Books:
Liferay User Interface Development
Liferay Portal 6 Enterprise Intranets
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets


Hi Jonas,

I have done with above functionality. Let me know if want to know more about development.
Jonas Yuan
RE: How to create portlet widget?????
August 4, 2011 7:17 AM
Answer

Jonas Yuan

Rank: Liferay Master

Posts: 993

Join Date: April 26, 2007

Recent Posts

Hi Amit,

Great! would you be able to share more details here?

Thanks

Jonas
Anil Sunkari
RE: How to create portlet widget?????
August 22, 2011 9:58 PM
Answer

Anil Sunkari

Rank: Expert

Posts: 427

Join Date: August 11, 2009

Recent Posts

Hi Amit,

I too have similar requirement.Can you share your idea so that it will be very useful for all who are in need of it.

Thanks
Anil Sunkari
Amit Kumar Singh
RE: How to create portlet widget?????
August 22, 2011 10:30 PM
Answer

Amit Kumar Singh

Rank: Junior Member

Posts: 71

Join Date: October 11, 2010

Recent Posts

Anil Sunkari:
Hi Amit,

I too have similar requirement.Can you share your idea so that it will be very useful for all who are in need of it.

Thanks
Anil Sunkari


Hi Anil,

Sure, i will help you with this feature. But first let me know where are you getting stuck.
Anil Sunkari
RE: How to create portlet widget?????
August 22, 2011 10:40 PM
Answer

Anil Sunkari

Rank: Expert

Posts: 427

Join Date: August 11, 2009

Recent Posts

Amit Kumar Singh:
Anil Sunkari:
Hi Amit,

I too have similar requirement.Can you share your idea so that it will be very useful for all who are in need of it.

Thanks
Anil Sunkari


Hi Amit,

Thanks for reply .... actually i just want to implement only draggable of portlets which liferay wont provide at this attached image location.

Thanks
Anil Sunkari
Attachment

Attachments: Draggable.JPG (52.4k)
Amit Kumar Singh
RE: How to create portlet widget?????
August 22, 2011 11:57 PM
Answer

Amit Kumar Singh

Rank: Junior Member

Posts: 71

Join Date: October 11, 2010

Recent Posts

Hi Anil,

If you need only drag-gable code of portlet than you can just go through the http://alloy.liferay.com. Download the alloy. Inside demo folder you will get the code for drag and drop using alloy. You have to use same code for you dragging portlets. And also need not to add any other java script bcz liferay uses only alloy.
Manikandan S
RE: How to create portlet widget?????
August 23, 2011 12:07 AM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

Here you can get the war file of netvibes widget portlet.
Attachments: netvibes-widget-portlet-6.0.5.1.war (17.0k)
Amit Kumar Singh
RE: How to create portlet widget?????
August 23, 2011 12:40 AM
Answer

Amit Kumar Singh

Rank: Junior Member

Posts: 71

Join Date: October 11, 2010

Recent Posts

Hi Mani,

Can you more explain more about netvibes-widget-portlet bcz i deployed the war file but i can not see anything. I am getting this message "Please configure this portlet to make it visible to all users. ". Let me know if anything has to configure.
Manikandan S
RE: How to create portlet widget?????
August 23, 2011 1:35 AM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

In netvibes-widget-portlet portlet Go To Configuration -> there you will find many widgets like Facebook Login etc.,

Click any of those widget then you will get that selected widget in that portlet.

See the attachment images.
Attachment

Attachment

Attachment

Attachments: first.png (157.7k), second.png (219.9k), third.png (153.0k)