0
我是AEM新手,考慮我的js會返回itemList(例如:var itemList = list.getItems();)。 每個項目的框架是:基於語言環境下的人口下降(輕微AEM)
interface Item {
/**
* Get the item's title.
*
* @return the title
*/
@Nonnull
String getTitle();
/**
* Get the item's localized title.
*
* @param locale the locale for localization
*
* @return the title
*/
@Nonnull
String getTitle(Locale locale);
/**
* Get the item's value.
*
* @return the value
*/
@Nonnull
String getValue();
}
我怎樣才能獲得基於區域標題代替在select
標籤的HTML代碼如下提到${list.title}
(即調用getTitle(locale)
)(我需要這兩個標題(區域)和值在項目列表中): option value =「$ {list.value}」> $ {list.title}