This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Extension to the standard dropdown/select component. It enabled hidding/unhidding of tabs based on the | |
* selection made in the dropdown/select. | |
* | |
* How to use: | |
* | |
* - add the class cq-dialog-dropdown-tab-showhide to the dropdown/select element | |
* - add the data attribute cq-dialog-dropdown-tab-showhide-target to the dropdown/select element, value should be the | |
* selector, usually a specific class name, to find all possible target elements that can be shown/hidden. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.poc.osgiannotation.core.servlets; | |
import org.osgi.service.component.annotations.Activate; | |
import org.osgi.service.component.annotations.Component; | |
import org.osgi.service.component.annotations.Modified; | |
import org.osgi.service.metatype.annotations.Designate; | |
@Component(service=UserAccountDetail.class,immediate=true) | |
@Designate(ocd = UserConfiguration.class) | |
public class UserAccountDetail { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.poc.osgiannotation.core.servlets; | |
import org.osgi.service.metatype.annotations.AttributeDefinition; | |
import org.osgi.service.metatype.annotations.AttributeType; | |
import org.osgi.service.metatype.annotations.ObjectClassDefinition; | |
import org.osgi.service.metatype.annotations.Option; | |
@ObjectClassDefinition(name = "SGAEM User Account Configuration", description = "Configure the user Details") | |
public @interface UserConfiguration { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.aem.sgaem.project.servlets; | |
import com.adobe.cq.account.api.AccountManagementService; | |
import java.io.IOException; | |
import javax.jcr.RepositoryException; | |
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.servlets.SlingAllMethodsServlet; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mycompany.myproject.sling.models; | |
import org.apache.sling.api.resource.Resource; | |
import org.apache.sling.models.annotations.DefaultInjectionStrategy; | |
import org.apache.sling.models.annotations.Model; | |
import javax.inject.Inject; | |
import javax.inject.Named; | |
@Model(adaptables = Resource.class, defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mycompany.myproject.sling.models; | |
import org.apache.sling.api.resource.Resource; | |
import org.apache.sling.models.annotations.DefaultInjectionStrategy; | |
import org.apache.sling.models.annotations.Exporter; | |
import org.apache.sling.models.annotations.ExporterOption; | |
import org.apache.sling.models.annotations.Model; | |
import javax.inject.Inject; | |
import javax.inject.Named; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).on("dialog-ready", function () { | |
$(".js-coral-Multifield-add").click(function() { | |
var field = $(this).parent(); | |
var size = field.attr("data-limit"); | |
if (size) { | |
var ui = $(window).adaptTo("foundation-ui"); | |
var totalLinkCount = $(this).prev('ol').children('li').length; | |
if (totalLinkCount >= size) { | |
ui.alert("Warning", "Maximum " + size + " links are allowed!", "notice"); | |
return false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($, $document) { | |
var DATA_EAEM_NESTED = "data-eaem-nested"; | |
var CFFW = ".coral-Form-fieldwrapper"; | |
function isSelectOne($field){ | |
return !_.isEmpty($field) && ($field.prop("type") === "select-one"); | |
} | |
function setSelectOne($field, value){ | |
var select = $field.closest(".coral-Select").data("select"); | |
if(select){ | |
select.setValue(value); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<sly data-sly-include="/libs/foundation/components/account/requestconfirmation/requestconfirmation.jsp" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="${resource.path}.html" method="post"> | |
<ul class="form-style-1"> | |
<h1>Change Password</h1> | |
<li> | |
<label>New Password <span class="required">*</span></label> | |
<input type="password" name="passwordreset"/> | |
</li> | |
<li> | |
<label>Confirm Password <span class="required">*</span></label> | |
<input type="password" name="passwordreset_confirm"/> |