Webflow2:未预先填充后退按钮上的表单
我是 webflow 2 的新手,我对单击后退按钮时使用以前的数据预填充表单有疑问。 我使用 webflow 2 开发了一个简单的应用程序,在其中填写表单并提交并获取相应的结果。但是当我单击后退按钮时,表单没有显示我之前填写的任何数据?当单击后退按钮时,webflow 2 是否会返回到之前的状态并丢失与模型绑定的所有数据?
我在我的表单中使用了 spring 的表单标签库。
有人可以帮助我理解为什么会发生这种情况吗?
谢谢。
I am new to webflow 2 and I have query regarding the pre-population of the form with previous data on clicking the back botton.
I developed a simple application using webflow 2, in which I fill the form and submit and get the results accordingly. But when i click the back button the form doesnt show any of the previously filled data by me? Is it that webflow 2 gets back to its previous state when one clicks the back button and lose all the bound data with the model?
I have used the form tag library from spring in my form.
Could someone help me understand that why is it happening?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当使用webflow时,有一个名为transition的标签。这个标签有一个属性history,它可以获取这些值{preserve,discard,invalidate},如下所述。
描述:设置此转换的状态历史策略。默认值为“preserve”,允许在此转换执行后回溯到当前状态。 “discard”防止回溯到状态,“invalidate”防止回溯到状态以及任何先前输入的视图状态。
When using webflow there is a tag named transition.This tag has an attribute history ,it can get these values {preserve,discard,invalidate} witch is described below
Description : Sets the state history policy for this transition. The default is 'preserve', which allows back-tracking to the current state after this transition executes. 'discard' prevents back-tracking to the state, and 'invalidate' prevents back-tracking to the state as well as any previously entered view-state.