我一直在挂毯进行表单提交,并使用休眠方式将数据提交到数据库中。
我在下面引用了两个链接。
https://tapestry.apache.org/using-beaneditform-to-create-user-forms.html
https://tapestry.apache.org/using-tapestry-with-hibernate.html
但是在这些链接中制作表格是使用beaneditform组件给出的。
但是我不想使用beaneditform,而只是使普通的html / tml提交表单并将数据存储到数据库中。我该怎么做?请帮忙。
答案 0 :(得分:0)
Tapestry表单和验证的主要参考页面可以在这里找到:https://tapestry.apache.org/forms-and-validation.html
如果需要更好地控制表单元素和布局,请使用t:Form
,t:TextField
和其他表单组件。
BeanEditForm
是一个帮助程序组件,允许快速为给定的JavaBean生成表单。该组件只是t:Form
+ t:BeanEditor
的组合。
您还可以尝试使用Jumpstart示例之一,即:
http://jumpstart.doublenegative.com.au/jumpstart/examples/input/forms1
上面示例的解释在这里:
http://jumpstart.doublenegative.com.au/jumpstart/examples/input/formsexplained1