我想自定义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 !
更多推荐
发布评论