我刚刚将Wicket应用程序从6.0.0升级到7.6.0,现在我遇到的一个表单没有提交问题。
我浏览了这些版本,我的表单在6.12.0版本中工作,而在6.14.0中没有工作6.13.0还有其他问题
我正在使用Button并覆盖onSubmit()方法。我有一些日志作为方法的第一行。我也覆盖了onError()方法,并将日志记录作为第一行。
我还删除了Button并将我的代码放在Form onSubmit()和onError()中并使用日志记录,但仍未在该代码中调用它。
我在页面上有一个FeedbackPanel,并且没有错误显示在那里。
我已经检查了javascript控制台,并且没有显示错误。
我还尝试将Button更改为SubmitLink,并产生相同的结果。
我检查了我的HTML并且所有标记都存在,再次它在以前的版本中工作。
单击这些选项时,它只刷新同一页面并将表单中的所有值重置为页面原始载荷上的值。
任何帮助将不胜感激。
Java
Form form = new Form("vvoForm"){
@Override
protected void onSubmit(){
System.out.println("comment here");//This is never called
{
@Override
public void onError(){
System.out.println("Another commment here");//This is never called
{
}
HTML
<form wicket:id="vvoForm">
//There is a table here with input tags all with wicket:id's and
//included and added to the Java code
<input type="submit" value="Save" />//I had a wicket:id here but removed it for simplicity. The wicket:id refferenced the Button
</form>