Foren

Dynamic Data Lists - List Templates

thumbnail
João Cartaxo, geändert vor 11 Jahren.

Dynamic Data Lists - List Templates

New Member Beiträge: 9 Beitrittsdatum: 10.10.11 Neueste Beiträge
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
thumbnail
João Cartaxo, geändert vor 11 Jahren.

RE: Dynamic Data Lists - List Templates

New Member Beiträge: 9 Beitrittsdatum: 10.10.11 Neueste Beiträge
No one can help me with this?
Bradley Wood, geändert vor 11 Jahren.

RE: Dynamic Data Lists - List Templates

thumbnail
João Cartaxo, geändert vor 11 Jahren.

RE: Dynamic Data Lists - List Templates

New Member Beiträge: 9 Beitrittsdatum: 10.10.11 Neueste Beiträge
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:

row.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....
thumbnail
Michael Bravo, geändert vor 11 Jahren.

RE: Dynamic Data Lists - List Templates

New Member Beiträge: 20 Beitrittsdatum: 26.04.12 Neueste Beiträge
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
thumbnail
João Cartaxo, geändert vor 11 Jahren.

RE: Dynamic Data Lists - List Templates

New Member Beiträge: 9 Beitrittsdatum: 10.10.11 Neueste Beiträge
Hi Michael,

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

Cheers.
thumbnail
Marco Endres, geändert vor 11 Jahren.

RE: Dynamic Data Lists - List Templates

Regular Member Beiträge: 112 Beitrittsdatum: 22.08.12 Neueste Beiträge
I have the same Problem, did you find a solution now?
thumbnail
Adam Lauchner, geändert vor 10 Jahren.

RE: Dynamic Data Lists - List Templates

New Member Beiträge: 4 Beitrittsdatum: 23.10.12 Neueste Beiträge
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