adobe-marketing-cloud / aem-authoring-dialog-fields-customization Goto Github PK
View Code? Open in Web Editor NEWSample for customizing field dialogs in AEM Touch-optimized UI
License: Apache License 2.0
Sample for customizing field dialogs in AEM Touch-optimized UI
License: Apache License 2.0
Please use https://github.com/Adobe-Marketing-Cloud/aem-authoring-dialog-fields-customization/tree/master/src/main/content/jcr_root/apps/cqgems/customizingfield/components/colorpicker2 instead of https://github.com/Adobe-Marketing-Cloud/aem-authoring-dialog-fields-customization/tree/master/src/main/content/jcr_root/apps/cqgems/customizingfield/components/colorpicker. It seems that there's an issue with the first colorpicker script itself (the picker UI doesn't show up).
Hi,
I am writing a custom component with event handlers (Touch UI - Using AEM 6.2. ) for dialog fields using the example provided. Whenever I launch the dialog on any component, I am getting the error - "coralui2.js:12588 Uncaught TypeError: Cannot read property 'selectedIndex' of undefined" and I believe this stops the events are getting registered or triggered.
Error is appearing when the below highlighted line of code runs -
getValue: function () {
if (this.options.multiple) { // multiple returns array
return this._tagListWidget.getValues();
} else if (this.options.type === 'static') { // static
return this._nativeSelect[0][this._nativeSelect[0].selectedIndex].value;
} else if (this.options.type === 'dynamic') {
return this._valueInput.val();
}
return null;
},
We don't see this error when loading the page and this highlighted line of code runs fine. We have this error on all component dialog boxes and on all local instance and on our test instance.
Please can you advice if you have encountered this issue before and guide us to the right direction?
Not sure if this still support anymore. I am having tons of error when I try to compile it? Can a maintainer confirm this should still compile?
FYI for others who are about to use this project.
Following repository [1] doesn't have mentioned dependency. Project doesn't compile. Removing this dependency seems to be having no issues with project compilation.
[1] http://repo.adobe.com/nexus/content/groups/public/
Also there seems to be some issue with maven version as well. Worth going though [2]. Comment from Marcel Kottmann worked for me. My local maven version is 3.3.1
[2] https://stackoverflow.com/questions/29848324/maven-error-java-lang-noclassdeffounderror-org-slf4j-helpers-markerignoringba
@martinischeery : consider making changes if required.
<dependency>
<groupId>com.adobe.granite</groupId>
<artifactId>com.adobe.granite.ui.clientlibs</artifactId>
<version>1.0.4</version>
<scope>provided</scope>
</dependency>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.