p:pickList 示例中的 converter="theme" 指的是什么?

What does converter="theme" refer to in the p:pickList example?

Primefaces pickList examples 包含声明

<p:pickList id="PojoPickList" value="#{pickListView.themes}" var="theme" effect="bounce"
            itemValue="#{theme}" itemLabel="#{theme.displayName}" showSourceControls="true" showTargetControls="true" showCheckbox="true" responsive="true"
            showSourceFilter="true" showTargetFilter="true" filterMatchMode="contains"
            converter="theme">

converter="theme"指的是什么?唯一可能的参考是 var 的值,但这不是一个有效的转换器,是吗?将示例提取到单独的 Java EE 项目中并在 GlassFish 4.1 上 运行 毫不奇怪会导致失败 ~named object theme not found(请参阅 https://github.com/krichter722/jsf-picklist-example 以作为 git 存储库提供) .

在展示中 ThemeConverter.java 文件丢失,您可以在其中看到正在使用的真实姓名,并注意 'theme' 是一个输入错误。在示例项目中使用以下代码。

<p:pickList id="PojoPickList" value="#{pickListView.themes}" var="theme" effect="bounce"
                        itemValue="#{theme}" itemLabel="#{theme.displayName}" showSourceControls="true" showTargetControls="true" showCheckbox="true"
                        showSourceFilter="true" showTargetFilter="true" filterMatchMode="contains" converter="themeConverter" responsive="true">

我也会尝试在 github 项目中修复。