Pass variable values from js controller to freemarker
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2013 10:43 AM
can anybody tell me what am I doing wrong?
I want to retrieve all my alfresco sites with this code (this should work):
return type=
So now I want to retrieve this list model.sites in my HTML freemarker template like this:
How can I view this sites list. I know i am getting it wrong in my ftl, but can't find a solution how to retrieve it.
thank you
I want to retrieve all my alfresco sites with this code (this should work):
model.sites = siteService.listSites(null, null, 0);
return type=
List<Site>
So now I want to retrieve this list model.sites in my HTML freemarker template like this:
<body> ${sites} </body>
How can I view this sites list. I know i am getting it wrong in my ftl, but can't find a solution how to retrieve it.
thank you
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2013 10:47 AM
Hi,
since
Rgeards,
Andrea
since
List<Site>
is a list, you have to iterate over it, as explained here http://freemarker.org/docs/ref_directive_list.htmlRgeards,
Andrea
