私は単純なバッキングビーンを持っています:
@Named
@RequestScoped
public class BackingBean {
public String[] getStorageLocations() {
return new String[]{"0088", "0016", "0022"};
}
}
xhtml ファイルでは<ui:repeat />
、バッキング Bean から文字列の配列を出力するためにタグを使用しています。
<ui:repeat value="#{backingBean.storageLocations}" var="location">
<h:panelGroup layout="block">
<h:outputText value="#{location}" />
</h:panelGroup>
</ui:repeat>
私が期待しているのはこれです:
<div>0088</div>
<div>0016</div>
<div>0022</div>
私がJSFから実際に受け取ったのはこれです:
<ui:repeat>0088</ui:repeat>
<ui:repeat>0016</ui:repeat>
<ui:repeat>0022</ui:repeat>
私は何を間違っていますか?