简体   繁体   English

为什么在EWL中单击Enter时没有提交按钮,却出现并发错误?

[英]Why do I get a concurrency error when hitting Enter without a submit button in EWL?

I have a page with some form items and an EwfLink (not a submit button). 我有一个包含一些表单项和EwfLink的页面(不是提交按钮)。 If I post back by hitting enter on any of the form fields, I get a concurrency error (even if I didn't change anything). 如果我通过在任何表单字段上按Enter回发,则会收到并发错误(即使我没有进行任何更改)。 If I don't do that, the page otherwise works. 如果我不这样做,则该页面可以正常工作。 What's going on? 这是怎么回事?

In HTML, some form controls will post the form when Enter is pressed even if there is no submit button. 在HTML中,即使没有提交按钮,某些窗体控件也会在按下Enter键时发布该窗体。 See http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#implicit-submission . 请参阅http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#implicit-submission You got a concurrency error because, since there was no submit button, EWF was not expecting an implicit-submission post-back to occur. 您收到并发错误的原因是,由于没有提交按钮,因此EWF并不希望发生隐式提交回发。

I recently improved EWF's support for this situation; 我最近改善了EWF对这种情况的支持; see https://enduracode.kilnhg.com/Code/Ewl/Group/Bill/History/a91e41468f96 . 参见https://enduracode.kilnhg.com/Code/Ewl/Group/Bill/History/a91e41468f96 EWF now throws a helpful exception if you try to build a page that includes implicit-submission form controls but no submit button. 现在,如果您尝试构建一个包含隐式提交表单控件但没有提交按钮的页面,则EWF会抛出一个有用的异常。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我可以在没有提交按钮或没有按Enter的情况下提交表单吗? - can i submit a form without submit button or without hitting enter? 如何区分单击提交按钮和输入输入以提交表单? - How do I differentiate between clicking a submit button and hitting enter in an input to submit a form? 如何使用Enter键提交表单而没有提交按钮 - How do I submit forms with the Enter key without a submit button 当SELECT重点提交表单时为什么不进入? - why doesn't hitting enter when a SELECT is focused submit the form? 使一个提交按钮响应点击回车并单击 - making a submit button respond to hitting enter and click 我怎么做 <div> 进入 <textarea> 单击“输入键盘按钮”时是否也要复制换行符? - How do I make <div> into <textarea> copy to copy the line break too when hitting “enter keyboard button”? 如何通过按Enter键(无提交按钮)提交HTML表单? - How can I have a HTML form submit by just hitting Enter (no submit button)? 如何通过单击提交按钮或单击Enter来提交文本区域? - How to submit text area by clicking submit button OR by hitting Enter? 编辑文本输入时,如何在不使用表单的onSubmit处理程序的情况下按“ Enter”键执行特定的JavaScript操作? - When editing a text input, how do I do a specific JavaScript action on hitting “Enter” key without the form's onSubmit handler? 当我有按钮而不是提交时如何使用回车键提交表单 - How to submit form with enter key when I have a button, not a submit
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM