简体   繁体   English

Powermail验证问题-typo3

[英]powermail validation issue - typo3

Hi I have to show the validation error message when validation fails.But powermail returns an error message Validation failed while trying to call ....createAction(); 嗨,我必须在验证失败时显示验证错误消息。但是powermail返回一条错误消息尝试调用.... createAction()时验证失败。 How to redirect the page when validation fails? 验证失败时如何重定向页面?

I think you're writing about the serverside validation in powermail. 我认为您是在谈论Powermail中的服务器端验证。 There is nothing special - it's a normal Extbase validation behaviour. 没什么特别的-这是正常的Extbase验证行为。 This means, that the validators will be checked before createAction() or confirmationAction(). 这意味着,将在createAction()或confirmationAction()之前检查验证器。 If a validation fails, extbase will redirect the user to the last working action - in this case formAction() - and should show the errors above the rendered form. 如果验证失败,则extbase会将用户重定向到最后一个工作操作-在这种情况下为formAction()-并应在呈现的表单上方显示错误。 So your problem is, that the form is rendered again but there are no error messages? 因此,您的问题是,再次呈现了表单,但是没有错误消息?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM