我有一张地图,并制作了如下表格:
Random waitTime = new Random();
int milliseconds = waitTime.Next(3000, 5000);
System.Threading.Thread.Sleep(milliseconds);
当表单加载//...
<b:form>
<p:dataTable value="#{mb.map}" var="price">
<p:column>
<h:outputText value="#{price.key.description}"/>
</p:column>
<p:column>
<b:inputText label="Price"
value="#{price.value}"/>
</p:column>
</p:dataTable>
<b:commandButton action="#{mb.save}" value="Save"/>
</b:form>
//...
字段时,正确填充了地图中每个项目的值,但是当我点击“保存”时,在进入#{price.value}
函数之前,它中断了出现以下错误:
mb.save()