since ‎16-01-2017
‎10-12-2019
joell91868939
Level 3
Re: Granite.I18n.get() language JSON lookup gets 404 when using contextpath joell91868939 - Adobe Experience Manager Forms
The JSP is outside the repository.We connect to the form from outside AEM. We register for the submit events and talk to guidebridge.We pass Granite into the JS on the JSP.
773
Views
0
Likes
0
Replies
Granite.I18n.get() language JSON lookup gets 404 when using contextpath joell91868939 - Adobe Experience Manager Forms
AEM: 6.2 SP1 CFP4 OS: Windows 7 EnterpriseStart script: java -XX:MaxPermSize=256m -Xmx1024m -jar cq5-author-p4502.jar -Dsling.run.modes=author,nosamplecontent -contextpath webformsIssue: When I use "-contextpath webforms", Granite translation no longer works. JSON gets 404.Details:We have a JSP outside of AEM (we pass Granite into JSP): (function(document, $, Granite, util, HTTP) { ...>> Granite.I18n.get(errorCode)English and French have JSON registered as jcr:language "en", and jcr:mixinTypes "...
1330
Views
0
Likes
2
Replies
AEM 6.2 CFP4: Submit has ns2 on tags joell91868939 - Adobe Experience Manager Forms
We installed AEM Forms 6.2 CFP4.Our submit has ns2 on the xml. Any idea why? Seems to be something to do with panels.XSD has no mention of "ns2"."==============================" 2 1 name section me false me ..."=============================="Appears to be with JDK jdk1.8.0_92 (my machine). Doesn't occur with jdk1.8.0_74 (another machine). But we doubt the JDK is related.Also doesn't seem to occur on my machine when I don't do a prefill.-Joel
1181
Views
0
Likes
3
Answers and Comments
Re: [New] Welcome to AEM Community! Please Introduce Yourself joell91868939 - Adobe Experience Manager
Hey Chris: We've been doing forms on 6.2 since Nov 2016. You are not the only one.-Joel
8568
Views
1
Like
0
Replies
Re: Translation of Text in (custom) panelContainer.jsp not working joell91868939 - Adobe Experience Manager Forms
Also tried the attached which is slightly different.
744
Views
0
Likes
0
Replies
Translation of Text in (custom) panelContainer.jsp not working joell91868939 - Adobe Experience Manager Forms
We've created a custom accordion panel with "Add" "Remove" buttons. Now we need to translate these to french.AEM 6.2 SP1.Why doesn't i18n.get("Add") give french back? Is this the right api?We are using ManualTranslation, and http://localhost:4502/libs/cq/i18n/translator.html-Joel"==========================="<%@include file="/libs/fd/af/components/guidesglobal.jsp"%><%@page session="false"%><%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %><%@page import="java.util.Locale,java...
828
Views
0
Likes
1
Replies
Re: AEM i18n from Javascript (try 2) joell91868939 - Adobe Experience Manager
Note we solved this using https://docs.adobe.com/docs/en/aem/6-2/develop/the-basics/clientlibs.html and adding a dependency to our client lib."categories (string) multiple" or "dependencies String[] granite.utils"This defines the Granite.I18n.get API. Similar to a Java import.Hope this helps others trying to solve this issue.-Joel
2609
Views
1
Like
0
Replies
Re: AEM i18n from Javascript (try 2) joell91868939 - Adobe Experience Manager
Hi,Did you ever solve this? If so, how?Joel
2609
Views
0
Likes
1
Replies
Re: [New] Welcome to AEM Community! Please Introduce Yourself joell91868939 - Adobe Experience Manager
Hi Jason.What specifically do you like about Sling? I've been pondering what advantages it provides over a simple servlet with a supporting api to get resources using variables stuffed in the session or request. In my mind you could say it adds a layer of complexity that needs to be maintained.I guess it's a moot point because Sling is here to stay, just curious what they were thinking when they created this, and why others like it.-Joel
5528
Views
1
Like
0
Replies
Re: Create and run a prefill service, sample boilerplate project download link is missing joell91868939 - Adobe Experience Manager Forms
Was the boilerplate zip ever located? I found the zip file provides examples for preloading data via URL. I did not see anything related to an example of a prefill service. Specifically AdaptiveFormContainer (configuration) => Prefill ServiceThanksJoel
12778
Views
1
Like
0
Replies
Re: hooking up custom validation joell91868939 - Adobe Experience Manager Forms
We solved this ourselves.Basically you need to:1. Create js specifically for validation. Similar to: var saveAndAddClickHandler = function(param) { //do something } 2. Now "saveAndClickHandler" is available as a drag and drop function for your button function list.Joel
550
Views
0
Likes
0
Answers
Data entered into table not submitted when "Repeat Settings" are set joell91868939 - Adobe Experience Manager Forms
Hi,I'm creating an Address History Table. Trying to submit the rows of the address history table via the submitted XML.When I define the Table in an adaptive form, with one row, then I manually enter a "Street Number" into the table, the Data is submitted fine."=============================" >> 11 guide[0].guide1[0].guideRootPanel[0].addressHistoryTable[0] "==============================================="When I change the Row settings "Repeat Settings" to min: 1 max: 5, the data i...
448
Views
0
Likes
1
Answers and Comments
Re: hooking up custom validation joell91868939 - Adobe Experience Manager Forms
Further to this...AEM uses the JCR property "validateExp" to do validation.guideRuntime.js:25733: if (validFlag && this.validateExp ) { >> validFlag = this.executeExpression("validateExp");guideRuntime.js:25149: _expressionHandler: function (expressionName) { var expFn, returnValue; if (this._compiledExpressions[expressionName]) { expFn = this._compiledExpressions[expressionName]; try {>> returnValue = expFn.apply(this);We have the option to override guideRuntime.js (I think) to check our own JC...
557
Views
0
Likes
0
Answers
hooking up custom validation joell91868939 - Adobe Experience Manager Forms
Hi all.AEM (6.2) Forms provides validation facilities for entry fields (email, telephone) for example. We'd like to add new functions that we can share, for more than just simple patterns. In the rules editor (visual editor) there is function list you can use. We'd like to add to that.We tried creating this:/** *Validate pattern *@param {string} pattern - the pattern to use */ function ValidatePattern(pattern) { console.log('hello'); return (this.value && this.value.match(pattern) == null) ? fal...
897
Views
0
Likes
2
Answers and Comments
Re: [New] Welcome to AEM Community! Please Introduce Yourself joell91868939 - Adobe Experience Manager
Hi All.My name is Joel. I have been working in AEM since Nov. I worked at Adobe doing AEM tech support back in 2012-2013. I have been a Smalltalk/Java/Python/JS developer and consultant since '92.We are using AEM Forms right now. Glad to be part of this community.Joel
10950
Views
1
Like
0
Replies
Re: Tools repo for native windows joell91868939 - Adobe Experience Manager
Hi Daniel.I'll give Cygwin a try...sorry...missed that.Joel
591
Views
0
Likes
0
Answers
Re: Tools repo for native windows joell91868939 - Adobe Experience Manager
Hi Daniel,Our main issue is with .content.xml, which VLT Synch doesn't handle.But thanks for the suggestion.-Joel
603
Views
0
Likes
0
Answers
Re: Tools repo for native windows joell91868939 - Adobe Experience Manager
Hi Alex,I will talk to my management about writing a Windows version, but I expect they will just say to use Vault, and wait for issues to be resolved. I spoke to a friend in AEM engineering, he said they don't use Vault, they use repo, and it's much better.Which is why I asked.We are on Windows 7. The repo tool is only available via Windows 10 Bash tool, which will not be ported back to 7.-Joel
602
Views
0
Likes
0
Answers
Re: custom function for the rules editor joell91868939 - Adobe Experience Manager Forms
A client library has been created respectively but the issue I am having is that the custom function is not appearing on the touch UI rules editor sidebar. I used the following jsdoc sample:"=============================="var area;//Some codes later/** */area = function(len) { return len*len;};"=============================="but it is not working.
6475
Views
0
Likes
1
Replies
Re: custom function for the rules editor joell91868939 - Adobe Experience Manager Forms
A client library has been created respectively but the issue I am having is that the custom function is not appearing on the touch UI rules editor sidebar. I used the following jsdoc sample:"=============================="var area;//Some codes later/** */area = function(len) { return len*len;};"=============================="but it is not working.
6475
Views
0
Likes
1
Replies
Tools repo for native windows joell91868939 - Adobe Experience Manager
Found this: https://github.com/Adobe-Marketing-Cloud/tools/blob/master/repo/repoIs there a version of this for native windows? (no unix)Having some issues with Vault, wondering if this might be better. But rather not convert to Windows if someone has already done this.-Joel
1658
Views
0
Likes
8
Answers and Comments
custom function for the rules editor joell91868939 - Adobe Experience Manager Forms
I tried creating a custom function for the rules editor using the doc example, but the side panel didn’t contain the functions:https://helpx.adobe.com/aem-forms/6-2/rule-editor.htmlDo I need to initialize it? There is a some form of hook that is missing here…
7466
Views
0
Likes
7
Replies
Re: Remote debug post.POST.jsp joell91868939 - Adobe Experience Manager Forms
Solved it. Used -debug [port] when starting the quickstart. I was using the traditional JVM debug approach, which opens a port on the launcher, no the actual AEM VM
563
Views
0
Likes
0
Answers
Remote debug post.POST.jsp joell91868939 - Adobe Experience Manager Forms
Using AEM 6.2 SP1.We are using VLT to integrate/synch Eclipse and JCR.This *should* also allow us to remote debug JSPs,but it doesn't seem to allow us to remote debug post.POST.jsp.Suggestions?I am using this: https://helpx.adobe.com/experience-manager/using/creating-aem-project-using-eclipse.html as a starting point.-Joel
760
Views
0
Likes
1
Answers and Comments
Re: Can I use GuideSubmitServlet to generate a POST? joell91868939 - Adobe Experience Manager Forms
Hi Sakshi,I should have clarified. GuideSubmitServlet.setRedirectUrl(slingRequest, request.getHeader("Referer")); eventually uses a GET (to redirect back to the referrer). I would like to change this to a POST. Joel
1840
Views
0
Likes
1
Replies
Re: Can I use GuideSubmitServlet to generate a POST? joell91868939 - Adobe Experience Manager Forms
Sure. I have a post.POST.jsp which takes the XML submitted from the client, makes decisions, and checks for errors.If there are no errors, it generates a PDF using the pdf generator service.If there are errors, it uses the GuideSubmitServlet to redirect back to the URL the client came from, with the submitted document included with the errors in the redirectParams, so the user can see the data they submitted to give context to the errors.We want to use a POST rather than a GET, because there are...
1840
Views
0
Likes
3
Replies
Can I use GuideSubmitServlet to generate a POST? joell91868939 - Adobe Experience Manager Forms
Hi,Using AEM 6.2 SP1. Have a successful GET working with post.POST.jsp and:GuideSubmitServlet.setRedirectParameters(slingRequest, redirectParams); GuideSubmitServlet.setRedirectUrl(slingRequest, request.getHeader("Referer")); Is there a way I can change that to a POST?
2007
Views
0
Likes
5
Replies
Re: Version Management joell91868939 - Adobe Experience Manager
Yes I should have clarified. Source code. I jump between Eclipse and AEM, and sometimes forget that.-Joel
335
Views
0
Likes
0
Answers
Re: Revalidate on Server VS Custom Submit Action joell91868939 - Adobe Experience Manager Forms
We have a separate server that does more complex validation. The post.POST.jsp is essentially a middle man and PDF generator.
1301
Views
0
Likes
0
Replies
Re: Revalidate on Server VS Custom Submit Action joell91868939 - Adobe Experience Manager Forms
Q: Is the following link https://cqwemblog.wordpress.com/2014/01/19/an-approach-for-server-side-validation-in-cq5/ related to this?More specifically, does 'Revalidate on server' require /apps/foundation/components/form/defaults/field/servervalidation.jsp to be written? And it will be called in a similar fashion to post.POST.jsp?
1301
Views
0
Likes
2
Replies