我有这个 XML 代码:
<extension id="free_textfield" label="Description notes" readOnly="true"/>
现在我想在那里添加一个参数
<extension id="free_textfield" label="Description notes" readOnly="true" text="sample string maybe with links"/>
现在我想在我的 Java 类中使用这个文本参数:
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;
}
我怎样才能做到这一点?
谢谢你的帮助!