Using Authority.ftl

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2018 09:10 AM
I am trying to use authority.ftl to select a group that is going to be used in an action for editing group roles. How do i write the java action so that there are no erros? Tried this
protected void addParameterDefinitions(List<ParameterDefinition> list) {
list.add(new ParameterDefinitionImpl(X, DataTypeDefinition.TEXT, true,getParamDisplayLabel(X)));
}
But i got the error that the types were different, think it was field.endpointtype. What is this, and how do i get it in the addParameterDefinitions, what type does the authority.ftl return, a string? I assume that you can use AuthorityService afterwards to get the group name or something similar.
Thanks in advance for the help.
- Labels:
-
Alfresco Content Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2018 11:20 AM
My bad... I left the tab open when I went to have lunch, and then sent the answer without checking if someone had answered

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2018 09:04 AM
Weirdly enough, i still get the error, this is how it looks like after i have picked a group
and this is the failure i get, there are no errors in the .log files
I made a class for the action, added the bean, and wrote the above in the add-doclib-action xml file, is there something that i may perhaps have forgotten?
Here is the config for the button that creates the form
