cq:包含CQ形式的默认组件以及服务器验证(cq:include default components in CQ form with server validation)

编程入门 行业动态 更新时间:2024-10-10 09:22:53
cq:包含CQ形式的默认组件以及服务器验证(cq:include default components in CQ form with server validation)

我想自定义OOTB CQ5用户表单组件的开始/结束,以便在将“表单”组件拖放到页面上时预先填充某些自定义组件。

我目前有一个覆盖/应用/基础/组件/表单元素,其中定制了开始/结束/操作。 但是,无论何时将表单添加到页面,我都要找出将表单属于FORM组的方法添加到表单start ....... end。

我已经尝试将<cq:include path= "customComp" resourceType="/pathto/customComponent" />用于form-end组件的jsp,这会在显示时添加/显示自定义组件,但不会执行服务器-validations,因为它不是页面上的起始节点和结束节点之间的单独节点,而是动态添加的节点。

这基本上是在表单放置在页面上时强制/强制使用我的自定义验证码组件。

提前致谢 !

I would like to customize start/end of OOTB CQ5 user form component to start with certain custom components pre-populated when the 'form' component is drag/dropped on to the page.

I currently have an over-laid /apps/foundation/components/form elements with start/end/actions customized. But I am to figure out way to add a component belonging to the FORM group, to the form start.......end to the page whenever a form is added to the page.

I have tried using a <cq:include path= "customComp" resourceType="/pathto/customComponent" /> to the jsp of the form-end component, this adds / shows the custom-component on display but does not perform the server-validations as it is not a separate node between the start and end nodes on the page, but a dynamically added one.

This is basically to enforce/mandate the use of my custom captcha component whenever a form is placed on a page.

thanks in Advance !

更多推荐

本文发布于:2023-07-27 03:58:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1284847.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:组件   形式   服务器   cq   CQ

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!