Skip to content

Instantly share code, notes, and snippets.

a.hrefTarget ? ' target="' + a.hrefTarget + '"' : "", '><span unselectable="on">',
CQ.shared.XSS.getXSSValue(n.text.replace(/&lt;/g, "<")),"</span></a></div>"
a.hrefTarget ? ' target="' + a.hrefTarget + '"' : "", '><span unselectable="on">',
CQ.shared.XSS.getXSSValue(n.attributes.name.replace(/&lt;/g, "<")),"</span></a></div>"
title = cqPage.getTitle() == null ? cqPage.getName() : cqPage.getTitle();
title = cqPage.getName();
else{
var select = $field.closest(".coral-Select").data("select");
if(select){
select.setValue(rValue);
}
else{
$field.val(rValue);
}
}
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:primaryType="nt:unstructured"
jcr:title="Multifield"
sling:resourceType="cq/gui/components/authoring/dialog">
<content
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/container">
<layout
jcr:primaryType="nt:unstructured"
(function() {
var DATA_EAEM_NESTED = "data-eaem-nested";
var CFFW = ".coral-Form-fieldwrapper";
//reads multifield data from server, creates the nested composite multifields and fills them
function addDataInFields() {
$(document).on("dialog-ready", function() {
var $fieldSets = $("[" + DATA_EAEM_NESTED + "][class='coral-Form-fieldset']");
if (_.isEmpty($fieldSets)) {
return;
.dialog-width-50rem{
width:50rem;
}
.coral--dark + .dialog-width-50rem{
width:100%;
}
.coral--dark + .dialog-width-50rem .column-full-width{
width:60%;
package com.aem.sgaem.project.servlets;
import com.adobe.cq.account.api.AccountManagementService;
import java.util.HashMap;
import java.util.Map;
import org.apache.felix.scr.annotations.Reference;
import org.apache.felix.scr.annotations.sling.SlingServlet;
import org.apache.sling.api.SlingHttpServletRequest;
import org.apache.sling.api.SlingHttpServletResponse;
import org.apache.sling.api.request.RequestParameter;
package com.aem.sgaem.project.servlets;
import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import org.apache.sling.api.request.RequestParameter;
final class Parameters implements RequestParameter {
private final String parameter;
public Parameters(String parameter) { this.parameter = parameter; }