Java 选择一个带有ace数据表的菜单-值丢失

Java 选择一个带有ace数据表的菜单-值丢失,java,jsf,datatable,icefaces,icefaces-3,Java,Jsf,Datatable,Icefaces,Icefaces 3,也许有人能帮我 我有一个ace:datatable,其中一列在内联编辑模式下使用selectonemenu <ace:column id="bundesland" headerText="Bundesland"> <ace:cellEditor> <f:facet name="output"> <h:outputText id="bundeslandCell1" value="Baden-Württemb

也许有人能帮我

我有一个ace:datatable,其中一列在内联编辑模式下使用selectonemenu

<ace:column id="bundesland" headerText="Bundesland">
    <ace:cellEditor>
        <f:facet name="output">

            <h:outputText id="bundeslandCell1" value="Baden-Württemberg" rendered="#{current.bundesland == 1}"/>  
            <h:outputText id="bundeslandCell2" value="Bayern" rendered="#{current.bundesland == 2}"/>  
            <h:outputText id="bundeslandCell3" value="Hamburg" rendered="#{current.bundesland == 3}"/>  
            <h:outputText id="bundeslandCell4" value="Nordrhein-Westfalen" rendered="#{current.bundesland == 4}"/>  
            <h:outputText id="bundeslandCell5" value="Sachsen" rendered="#{current.bundesland == 5}"/>

        </f:facet>
        <f:facet name="input">

            <h:selectOneMenu id="bundeslandInput" value="#{current.bundesland}">
                <f:selectItem itemLabel="Baden-Württemberg" itemValue="1" />
                <f:selectItem itemLabel="Bayern" itemValue="2" />
                <f:selectItem itemLabel="Hamburg" itemValue="3" />    
                <f:selectItem itemLabel="Nordrhein-Westfalen" itemValue="4" />    
                <f:selectItem itemLabel="Sachsen" itemValue="5" />                                  
            </h:selectOneMenu>

        </f:facet>
    </ace:cellEditor>   
</ace:column> 
datatable被分配给一个bean列表,该列表引用其他bean

问题是,如果我提交数据表的形式,bundesland字段会丢失数据

例如:

使用操作侦听器在数据表中添加新行 内联编辑非持久性新行 执行保存 一切都好

现在我想插入一个新行。我重复同样的步骤。下一次,执行save时,单击命令按钮,用persist清除整个datatable中的bundesland列

问题不在于命令按钮后面的操作。如果CommandButton没有actionListener,列也将被清除

到目前为止

为什么只有在我使用selectonemenu时,Icefaces才会清除每行的bundesland列

在内联编辑模式下使用仍然没有问题

谢谢你的帮助