I have this XML-Code:
<extension id="free_textfield" label="Description notes" readOnly="true"/>
Now I want to add a parameter there like
<extension id="free_textfield" label="Description notes" readOnly="true" text="sample string maybe with links"/>
Now I want to use this text-parameter in my Java class:
public class FormExtensionExample implements IFormExtension {
public static final String ID = "free_textfield";
@Inject
private IDataService service;
@Override
public String render(IPObject object, Map<String, String> attributes) {
return null;
}
How can I do this?
Thanks for your help!
Well all attributes that you specify in the Form Configuration like this:
can be found in the
attributes
map parameter of therender()
method you have to override: