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

问题描述 投票:0回答:1

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

我在下面提到它的两个链接。

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

但是使用beaneditform组件在这些链接中创建表单。

但我不想使用beaneditform只是制作一个正常的html / tml提交表单并将数据存储到数据库。我该怎么做?请帮忙。

html hibernate tapestry tml
1个回答
0
投票

Tapestry Forms&Validation的主要参考页面可以在这里找到: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

© www.soinside.com 2019 - 2024. All rights reserved.