使用挂毯提交表单并将数据存储在数据库中

时间:2019-03-22 08:15:17

标签: html hibernate tapestry tml

我一直在挂毯进行表单提交,并使用休眠方式将数据提交到数据库中。

我在下面引用了两个链接。

https://tapestry.apache.org/using-beaneditform-to-create-user-forms.html
https://tapestry.apache.org/using-tapestry-with-hibernate.html

但是在这些链接中制作表格是使用beaneditform组件给出的。

但是我不想使用beaneditform,而只是使普通的html / tml提交表单并将数据存储到数据库中。我该怎么做?请帮忙。

1 个答案:

答案 0 :(得分:0)

Tapestry表单和验证的主要参考页面可以在这里找到:https://tapestry.apache.org/forms-and-validation.html

如果需要更好地控制表单元素和布局,请使用t:Formt: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