0

我正在尝试将动态值添加到 bundle.properties 中的字符串,然后按照f:param与 outputFormat 组件使用的相同方法将所有这些值放入 graphicsImage 组件的 alt 文本属性中。

但它似乎没有按预期工作。

bundle.properties

alt.logo={0} logo

演示.xhtml

<h:graphicImage value="#{result.imageUrl}" alt="#{bundle[alt.logo]}">
    <f:param value="#{result.name}"/>
</h:graphicImage>

我做错了什么还是有另一种方法可以达到相同的预期结果?

4

0 回答 0