since ‎30-05-2017
‎10-12-2019
rohitn62196663
Level 3
how to build the form summary in AEM forms
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager Forms
I recently started using AEM forms. Currently I am working on a requirement where we need to display the summary of all the form fields to the customer before submitting the form. I have come across two out of the box components i.e. "verify step" and "summary step". However these components are displaying a pdf document part of an iframe instead of HTML. But I need to make some styling changes like adding edit links so that the user can edit it. I was not sure whether its recommended to use the...

Views

3.5K

Likes

0

Replies

7
Can we use OOTB AEM form components for the actual application development
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
Recently we started using AEM forms for our web application development. For our requirements mostly out of the box form components itself are good enough. We started using components like textbox, submit button, panel and many more. Is it fine to continue our development using these components itself or do we need to overlay(copy) these components and create our own set of components under apps folder ? The main concern which I have with using OOTB components is whenever we upgrade to a new AEM...

Views

817

Likes

0

Replies

1
Re: Best practices to embed general components(site components) in an Adaptive Form
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
Thanks for the response, that helped us. I think the issue is when we create a AEM form template using template editor. In this case we dont have a design mode present. Instead we have content policies present where we can define the design properties. I need to take this route to include the general components in design mode so that I have them in the side kick.Below link has helped me understanding the content policies:Page Templates - Editable

Views

254

Likes

0

Replies

0
Best practices to embed general components(site components) in an Adaptive Form
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
I am working on developing an Adaptive form in AEM. We already have a sites component which we drag into the parsys system on the site pages. However in the AEM forms parsys I am unable to include the site component(General). Its only allowing me to include the adaptive form components. Is there a way to include the sites component within AEM forms or do I need to convert the sites component to an adaptive form component ?

Views

366

Likes

0

Replies

2
Re: Unable to redirect to another page in AEM using request dispatcher in sling servlet via POST
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
Thanks bsloki and Jorg Hoh for the suggestion. I also found a similar solution in the following link too:http://suryakand-shinde.blogspot.in/2016/07/aem-form-submission-handling-post.htmlhttp://suryakand-shinde.blogspot.in/2016/07/aem-form-submission-handling-post.htmlAs per the above link:In AEM every page (.html) has a primary type jcr:primaryType = cq:Page and there are set of scripts that are mapped with this primary type which intercepts request and renders a page differently based on facto...

Views

452

Likes

0

Replies

1
Re: Unable to redirect to another page in AEM using request dispatcher in sling servlet via POST
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
Thanks for the reply !! Below is the code snippet:Servlet code:@SlingServlet(paths = { "/bin/rap/welcomepage" }, methods = {"GET,""POST"})public class RapWelcomePageServlet extends SlingAllMethodsServlet { /** * */ private static final long serialVersionUID = 7184595514100008389L; @Override protected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response) throws ServletException, IOException { Map paramMap = request.getParameterMap(); request.setAttribute("WelcomePageParam...

Views

2.1K

Likes

0

Replies

1
Re: Unable to redirect to another page in AEM using request dispatcher in sling servlet via POST
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
Thank you !!I am looking for a way to call a page in AEM via POST. I am able to do the same in a non AEM application.

Views

2.1K

Likes

0

Replies

0
Re: Unable to redirect to another page in AEM using request dispatcher in sling servlet via POST
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
Its just the thought I got. The use case is to call a page on AEM by passing some hidden params to the page which are used for some business reasons. I would appreciate if you could let me know if there is any other way to do it ?

Views

2.1K

Likes

0

Replies

2
Unable to redirect to another page in AEM using request dispatcher in sling servlet via POST
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
I have a scenario where from one page in AEM, I need to call another AEM page in the same application and I need to pass some hidden parameters. I choose to do it via POST and below are the steps which I followed:From page "A", I did a form submission via POST to the sling servlet and passed some parameters. 2. In the servlet, using request dispatcher I redirected the same request and response to a different page in doPost method using the following code snippet: request.getRequestDispatcher("/c...

Views

6.2K

Like

1

Replies

11
How to consume AEM experience fragments
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
I have a use case where I need to create an Xfragment which will be consumed by an external application. My question is once the fragment is created how is it consumed by an external web application which is non cms application. I have gone through a tutorial which is posted by adobe about it. But it says about social posting the fragments to websites like facebook & Pinterest through Cloud which is not the same case in my case.If there is any adobe doc about it, can someone post it over here ?T...

Views

3.1K

Likes

0

Replies

2
Re: DataSourcePool Connection Issues
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
Thanks for the reply !!!I reported the issue in a separate link too but didn't get any reply. Below is the link:http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__2c7m-i_have_a_scenarioin.html I would like to know whether its a known issue with connections pool.

Views

399

Likes

0

Replies

0
Re: DataSourcePool Connection Issues
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
Hello all,I have a similar problem with day commons connections pool. After some time the connections to the data base are getting timed out. Is it an issue with the connections pool iotself. Any solution for this. Below is the error I got.SQL exception while storing data in table java.sql.SQLRecoverableException: IO Error: Connection timed outI even added the validation query i.e. "select 1 from dual" but still its throwing the connection time out errors.

Views

334

Likes

0

Replies

0
Oracle JDBC connection timed out issue when using Day commons JDBC connections pool
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
I have a scenario in production for a web app, where when a form is submitted the data gets stored in 3 tables in Oracle DB through JDBC. Sometimes I am seeing connection time out errors in logs while the app is trying to connect to Oracle DB through Java code. This is intermittnent. I am using Day commons connections pool for this.Below is the exception:SQL exception while storing data in table java.sql.SQLRecoverableException: IO Error: Connection timed outMost of the times the web app is able...

Views

1.3K

Likes

0

Replies

0
Unable to Iteare Paragraph object in sightly
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
I am trying to convert the existing component code from JSP to Sightly. For that I need to get the paragarph object in the backend i.e. java and send it to sightly(HTL).Existing code in JSP:<% ParagraphSystem parSys = ParagraphSystem.create(resource, slingRequest); for (Paragraph par: parSys.paragraphs()) { %> <% } %>In this way there are including a resource inside a component.Below is the new sightly & jave code for the above one:Java:public class AnchorList extends WCMUsePojo{ private List pa...

Views

494

Likes

0

Replies

3
Re: Unable to iterate paragraph object in Sightly
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
Yes. The data is coming correctly in the backend. I am converting a component from JSP to Sightly and that is where I am seeig the error. I need the paragraph data so that I can use that as a path to include a new component. Existing JSP code looks like this:<%ParagraphSystem parSys = ParagraphSystem.create(resource, slingRequest); for (Paragraph par: parSys.paragraphs()) { %> <%}%>Now in order to convert this in sightly, I created a list in backend and added the paragraphs to the list and then...

Views

191

Likes

0

Replies

0
Re: Unable to iterate paragraph object in Sightly
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
Its a copy paste mistake. I have initailized the list now as linkedlist.

Views

192

Likes

0

Replies

0
Re: Unable to iterate paragraph object in Sightly
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
Sightly is unable to read the data in paragraphs list. Its able to get the paragraphs in java and I am adding that paragraphs to a linked list and sending it to HTML. But Its not displaying the values in front end. I suspect its unable to read that paragraph object itself in front end.

Views

190

Likes

0

Replies

0
Unable to iterate paragraph object in Sightly
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
I am trying to iterate a list of paragraphs(com.day.cq.wcm.foundation.Paragraph) using JAVA USE API and Sightly. However it displays an empty list in the front end.Below is the code:Java:public class AnchorList extends WCMUsePojo{ private List paragraphs; public List getParagraphs() { return paragraphs; } public void setParagraphs(List paragraphs) { this.paragraphs = paragraphs; } public void activate() throws Exception{ paragraphs = new LinkedList(); Resource resource = getResource(); SlingHttp...

Views

907

Likes

0

Replies

10
Re: How to access Gloabal objects in HTL
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
Thanks a lot it worked. I was using the upper case thats why it didn't work.

Views

227

Likes

0

Replies

0
How to access Gloabal objects in HTL
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
I have gone through the documentation in below url about Global objects in HTL:https://docs.adobe.com/docs/en/htl/docs/global-objects.html. I need to change the below existing code in JSP to Sightly(HTL):<% if (WCMMode.fromRequest(request) == WCMMode.EDIT){ %><% }%>I want to access the wcmmode and the request object directly in sightly without using the Java class. However I am facing issues in doing that. Could someone provide me the way(syntax) to access the objects directly in HTL ?Thanks.

Views

331

Likes

0

Replies

3
Re: unable to get the List of objects using Java Use API and Sightly(Htl)
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
Thanks a lot. It worked now. I was expecting it to work with the variable name itself,didnt know we need to call the getter too in sightly. To refer the linkedlist in sightly I didn't call any getter but I just called the navList object directly as "${mininav.navList}">. But dont know why do we need to call the getter for the variables in bean. Thanksa lot. It worked now. I was expecting it to work with the variable name itself,didnt know we need to call the getter in sightly. To refer the linke...

Views

661

Likes

0

Replies

0
Re: unable to get the List of objects using Java Use API and Sightly(Htl)
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
package com.xxx.totalinsight.components;public class MiniNavBean { private String fPath; private String activeAttr; private String scpTitle; public MiniNavBean(String fPath, String activeAttr, String scpTitle){ this.fPath = fPath; this.activeAttr = activeAttr; this.scpTitle = scpTitle; } public String getFpath() { return fPath; } public void setFpath(String fpath) { this.fPath = fpath; } public String getActiveattr() { return activeAttr; } public void setActiveattr(String activeattr) { this.acti...

Views

661

Likes

0

Replies

3
Re: unable to get the List of objects using Java Use API and Sightly(Htl)
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
My code is similar to yours, but wondering why is it not working on my end: Code sample: public class MiniNav extends WCMUsePojo { private List navList; public List getNavList() { return navList; } public void setNavList(List navList) { this.navList = navList; } @Override public void activate() { navList = new LinkedList(); MiniNavBean miniNavObj = new MiniNavBean("fpath", "activeattr", "scptitle"); navList.add(miniNavObj); }} Sighly: fpath : ${navlist.fPath} activeAttr: ${navlist.activeAttr...

Views

661

Likes

0

Replies

5
Re: unable to get the List of objects using Java Use API and Sightly(Htl)
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
Feike Visser wrote... Just tried your sample with a LinkedList, and works perfectly on my end. Share your sample that doesn't work, to make sure we don't hit basic typos for example. Did you try the LinkedList of type custome object i.e. new LinkedList() or is it a linkedlist of type String i.e. new LinkedList(). It works fine with linkedlist of type String. The issue is only with the list of custom objects. Sightly is unable to find that custom object I guess. If you observe my code, I have a l...

Views

894

Likes

0

Replies

7
Re: unable to get the List of objects using Java Use API and Sightly(Htl)
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
Does it matter if I combine data-sly-attributes within an element or not. I need to display the values of the mainnav bean object which is part of linked list.

Views

894

Likes

0

Replies

10
Re: unable to get the List of objects using Java Use API and Sightly(Htl)
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
sorry this is a sample code and I have forgot to add those changes. I have made the chnages now to refer the list

Views

894

Likes

0

Replies

1
unable to get the List of objects using Java Use API and Sightly(Htl)
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
I am trying to get a List of custom object of type linked list into html using Sightly. But I a unable to read them in sightly. Sample Code is pasted below:Java Bean:public class MiniNavBean {private String fPath; private String activeAttr;public MiniNavBean(String fPath, String activeAttr){ this.fPath = fPath; this.activeAttr = activeAttr; }public String getFpath() { return fPath; } public void setFpath(String fpath) { this.fPath = fpath; } public String getActiveattr() { return activeAttr; } p...

Views

1.8K

Likes

0

Replies

16
unable to get the List of objects using Java Use API and Sightly(Htl)
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
I am trying to get a List of custom object of type linked list into html using Sightly. But I a unable to read them in sightly. Sample Code is pasted below:Java Bean:public class MiniNavBean {private String fPath; private String activeAttr;public MiniNavBean(String fPath, String activeAttr){ this.fPath = fPath; this.activeAttr = activeAttr; }public String getFpath() { return fPath; } public void setFpath(String fpath) { this.fPath = fpath; } public String getActiveattr() { return activeAttr; } p...

Views

262

Likes

0

Replies

0
Re: How to access a request paramater from the page url in HTL(sightly)
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
Thanks for the suggestion. I will try that. I am aware of the second approach i.e. java class but I dont want to use that just to get the req params from request object.

Views

646

Likes

0

Replies

0
How to access a request paramater from the page url in HTL(sightly)
Avatar

rohitn62196663

rohitn62196663
- Adobe Experience Manager
I am converting a component from JSP to HTL(Sightly). In the existing jsp file we are getting the req paramater using the following code:request.getAttribute("urlAttr");Similarily, I want to access the above url request paramater using sighlty tags. Is there any sightly tag to get the current request object and get the request params from that ?I dont want to use the JAVA USE API for this one. I just want to do it in the html file itself using sightly tags so that I can avoid the server side cod...

Views

2.1K

Likes

0

Replies

5