cancel
Showing results for 
Search instead for 
Did you mean: 

Using Authority.ftl

malikaasen
Champ on-the-rise
Champ on-the-rise

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.

11 REPLIES 11

douglascrp
World-Class Innovator
World-Class Innovator

My bad... I left the tab open when I went to have lunch, and then sent the answer without checking if someone had answered

malikaasen
Champ on-the-rise
Champ on-the-rise

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 

Getting started

Explore our Alfresco products with the links below. Use labels to filter content by product module.