简体   繁体   English

Apache Wicket中的交互黑白两种形式

[英]Interaction b/w two forms in Apache Wicket

This may sound a bit odd, I have two forms in a single HTML page with different wicket id's.Is it possible that when a user clicks a button eg.(save) it saves the data from both the forms together.I can't keep a single form. 听起来有点奇怪,我在一个HTML页面中有两个表单,每个表单都有不同的wicket ID。是否有可能当用户单击一个按钮(例如)时,它将两个表单中的数据保存在一起。保持单一表格。 I am new to wicket,Thanks 我是新来的检票员,谢谢

You could add both forms to a third form as Wicket supports nested forms. 您可以将两种形式都添加到第三种形式,因为Wicket支持嵌套形式。 This way your button could be attached to the outer form submitting all of the form data. 这样,您的按钮可以连接到外部表单,从而提交所有表单数据。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM