Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
João Cartaxo
Dynamic Data Lists - List Templates
August 14, 2012 3:02 AM
Answer

João Cartaxo

Rank: New Member

Posts: 9

Join Date: October 10, 2011

Recent Posts

Hello,

I'm developing a List Template for custom presentation of a Data List Definition. For this, I've followed this article: Dynamic Data Lists III , and all is fine with the data presentation. My problem is about the actions button, because once I apply the template, this button no longer show, since it's not declared anywhere in my Velocity template.

So my question is simple, how can I add this actions button in my Velocity template?


P.S.: If you look at the comments for the article I've referenced, there are other's with this very same problem.

Cheers,
João Cartaxo
João Cartaxo
RE: Dynamic Data Lists - List Templates
August 16, 2012 1:07 AM
Answer

João Cartaxo

Rank: New Member

Posts: 9

Join Date: October 10, 2011

Recent Posts

No one can help me with this?
Anonymous
RE: Dynamic Data Lists - List Templates
August 16, 2012 9:14 AM
Answer

Anonymous

I would say look at this page, and maybe you can use the an alloy taglib

https://github.com/liferay/liferay-portal/blob/master/portal-web/docroot/html/portlet/dynamic_data_list_display/view.jsp

in your velocity or freemarker template
João Cartaxo
RE: Dynamic Data Lists - List Templates
August 17, 2012 2:47 AM
Answer

João Cartaxo

Rank: New Member

Posts: 9

Join Date: October 10, 2011

Recent Posts

Bradley Wood:
I would say look at this page, and maybe you can use the an alloy taglib

https://github.com/liferay/liferay-portal/blob/master/portal-web/docroot/html/portlet/dynamic_data_list_display/view.jsp

in your velocity or freemarker template


Thank you for your reply, but that does not help me much...I already had looked into that file, but what I need e something more like what's in this page:

https://github.com/liferay/liferay-portal/blob/master/portal-web/docroot/html/portlet/dynamic_data_lists/view_records.jsp

As you can see, in this file a SearchContainer is used, and in relation to my issue (show the actions button), this is added to each list row:

1row.addJSP("right", SearchEntry.DEFAULT_VALIGN, "/html/portlet/dynamic_data_lists/record_action.jsp");



And, as so, my question is how can I use a SearchContainer in Vaadin so I can mirror this logic into the VM template script.


P.S.: I think that this functionality should be supplied by Liferay from scratch, because otherwise I don't quite see the purpose of using Dynamic Data Lists Templates since you loose the capability of executing actions over the listed DDLRecords....It doesn't serve me much to have a beautiful presented list that I can't use to nothing more than look at....
Michael Bravo
RE: Dynamic Data Lists - List Templates
November 19, 2012 5:18 PM
Answer

Michael Bravo

Rank: New Member

Posts: 20

Join Date: April 26, 2012

Recent Posts

Hi João,

I am relatively new to Liferay and am also trying to see if this type of functionality is available from a VM template. Did you ever find a soultion to this?

~Michael
João Cartaxo
RE: Dynamic Data Lists - List Templates
November 20, 2012 1:22 AM
Answer

João Cartaxo

Rank: New Member

Posts: 9

Join Date: October 10, 2011

Recent Posts

Hi Michael,

No, I did not find any solution for this problem. Sorry

Cheers.
Marco Endres
RE: Dynamic Data Lists - List Templates
March 14, 2013 6:09 AM
Answer

Marco Endres

Rank: Junior Member

Posts: 71

Join Date: August 22, 2012

Recent Posts

I have the same Problem, did you find a solution now?
Adam Lauchner
RE: Dynamic Data Lists - List Templates
July 22, 2013 4:36 AM
Answer

Adam Lauchner

Rank: New Member

Posts: 4

Join Date: October 23, 2012

Recent Posts

I suspect you've come up with a solution by now, but for future web surfers stumbling across this page (as I did) check out these links:
http://webapplicationdeveloper.blogspot.com/2012/10/liferay-authorization-of-actions-on.html
http://webapplicationdeveloper.blogspot.be/2012/10/liferay-dynamic-data-lists-record.html