我有这样的代码:
<ul class="topnav" data-sly- use.topnav="com.company.companysite.util.myJavaClass" data-sly-list="${topnav.getPathValueMap}">
<li>${!item}></li> ( what do I put here?? )
</ul>
和一个像这样的java使用类方法:
public ValueMap getPathValueMap() {
String parentPath = "/content/siteregion/en/jcr:content/toplevel/regionNames";
ResourceResolver resourceResolver = getResourceResolver();
Resource resource = resourceResolver.getResource(parentPath);
ValueMap vm = ResourceUtil.getValueMap(resource);
return vm;
}
问题: 我在 /content/siteregion/en/jcr:content/toplevel/regionNames 级别有一个多字段对话框
我需要 Slightly 代码来迭代用户在多字段对话框中输入的值