cq5 - AEM DefaultValue written to JCR -
i noticed when set defaultvalue dropdown, altho correctly selected in drop down when first add component page not write defaultvalue corresponding jcr until edit component , save it. if open corresponding dialog , click ok component works expected because values have been added jcr.
i sure there important piece missing here, knows how defaultvalues required in order component render can added jcr when first added page?
like shwan say's that's way works. default values or empty texts dialog. aren't persisted until dialog authored. properties have set different method. cq ships feature , can without custom code.
under component , create node called cq:template[nt:unstructured] . if data stored on component node , add default values properties cq:template node name same ones in dialog. in case data stored in child node add similar node under cq:template node.
source : http://blogs.adobe.com/experiencedelivers/experience-management/defaults-in-your-component/
Comments
Post a Comment