开发者

Tapestry, determine if form has errors in tml

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜