开发者

Tapestry, determine if form has errors in tml

开发者 https://www.devze.com 2023-04-12 02:49 出处:网络
I have a text in a f开发者_如何学Corm that I want to hide if the form has errors and replace it with the error message.

I have a text in a f开发者_如何学Corm that I want to hide if the form has errors and replace it with the error message. How do i determine in the tml that the current form has an error?

Tx


You can inject your form in your java with the @Component annotation, and use the getHasError method. Then you can use this result with the "if" component.

Manu

0

精彩评论

暂无评论...
验证码 换一张
取 消