im尝试将UI中输入的值传递给数据库中的特定表和列时遇到一些问题,但是当我提交要传递的值时,我收到错误
WARNING: #{markingBean.markSectionOne}: java.lang.UnsupportedOperationException: Not supported yet.
javax.faces.FacesException: #{markingBean.markSectionOne}: java.lang.UnsupportedOperationException: Not supported yet.
在玻璃鱼控制台中
我正在使用NetBeans,JSF,Derby DB
<p:spinner id="ajaxspinner80-100" value="#{markingBean.spinnerNumber1}"
stepFactor = "1" min="80" max="100" disabled = "#{formBean.number != 8}">
<p:ajax update="ajaxspinnervalue" process="@this" />
</p:spinner>
<p:commandButton action="#{markingBean.markSectionOne}" value="#{bundle.buttonSave}" update=":growl" icon="ui-icon-disk"/>
以上是用户如何选择值,然后将其传递给 bean:
public void markSectionOne() {
this.markToCreate.create(this.markToCreate);
}
但是看起来这是错误的原因
public void create(Marking markToCreate) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
我在我的标记实体类的底部找到了该代码,
我的问题是如何将微调器中的值插入到标记部分一列下的表格标记中?
谢谢
您需要 UI 和数据库之间的中介。 您永远不应该将其视为"微调到我的表中"或任何其他 UI 元素。
分步骤进行:
- 将 UI 表单 POST 发送给中介。 验证并绑定传入数据。
- 处理传入的数据并持久保存。