Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道我们将如何基于validation.xml 中的xml 启用前端验证?
如果您正在使用支持前端验证的主题之一(如 css_xhtml),则只需在标签上设置 validate="true"。这应该从您的validation.xml(或ActionName-validation.xml)生成javascript函数并在onSubmit处理程序中调用它。