Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Rohit_Utreja
Community profile Rohit_Utreja Level 4
Technical Lead
Bengaluru
15 BADGES
Level 4

Level 4

Learn more
Joined the community 27-04-2018 7:41:56 PM
Offline
Top badges earned by Rohit_Utreja
Customize the badges you want to showcase on your profile
Re: How to get browser details in AEM Servlet?
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
Hi @Anderson_Hamer ,Please refer brloe thread to extract browser information in JAVA code.https://stackoverflow.com/questions/1326928/how-can-i-get-client-information-such-as-os-and-browser/18030465 UserAgent userAgent = UserAgent.parseUserAgentString(request.getHeader("User-Agent")); Browser browser = userAgent.getBrowser(); String browserName = browser.getName(); //or // String browserName = browser.getGroup().getName(); Version browserVersion = userAgent.getBrowserVersion(); System.out.printl...

Views

177

Like

1

Replies

0
Re: Programmatically create aem dialog
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
Hi @dennyj13354090 , Please refer to the below URLs for this feature. https://github.com/adobe/aem-component-generatorhttps://www.bounteous.com/insights/2019/07/31/aem-component-generator/

Views

213

Likes

2

Replies

1
Re: AEM Non-licensed version 6.5.0
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
We cannot use the AEM instance without a license.

Views

345

Like

1

Replies

0
Re: AEM SP 6.5.8 Publish Login
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
Hi @sdouglasmc, CRX and package manager login has been restricted as per the release notes.But you can login through /crx/explorer/index.jsp.This will work.

Views

417

Like

1

Replies

0
Re: best way to implement env vars or similar?
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
Hi @TB3dock , In AEM, you can fetch these values using run modes.For different environments, for example, stage, prod, you can set a run mode for the same. Please refer to the below URL for the run mode creation.https://experienceleague.adobe.com/docs/experience-manager-65/deploying/configuring/configure-runmodes.html?lang=en#installation-run-modes You can create OSGI configuration in the AEM using OSGI annotation and its values can be saved in the AEM using run modes.So basically, runmode will ...

Views

507

Like

1

Replies

1
Re: how can I create a 040 error page in AEM?
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
Hi @MilanRapp, There are multiple ways to do it.First, you can implement it using ACS commons if you have installed it. You can refer to the below URL for the same.https://adobe-consulting-services.github.io/acs-aem-commons/features/error-handler/index.html Second, If you don't have ACS commons installed in your AEM instance, you can follow the below steps.1. Go to '/apps/sling/servlet/errorhandler'2 create 404.jsp, default.jsp in this directory and you can write the code to render content on th...

Views

176

Like

1

Replies

0
Re: AEM jar 6.5: [ERROR] Request to http://localhost:4502...
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
@jkiel1091, You need a license file for the AEM to be registered otherwise it won't work.

Views

358

Likes

0

Replies

0
Re: can you build and deploy core only?
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
Hi @TB3dock , When you hit the command "mvn clean install", maven will clean the target folder during the build and place the latest jar after creating it again. So basically, this will update the jar with the new codebase. Other than that, if you want to install only the OSGi bundle in the AEM instance, you can use the below command."mvn clean install -PautoInstallBundle". Here, "-PautoInstallBundle" will install only the OSGi bundle in the AEM instance. You need to deploy the OSGI bundle every...

Views

146

Likes

2

Replies

0
Re: AEM jar 6.5: [ERROR] Request to http://localhost:4502...
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
Hi @jkiel1091, Please refer below URL which has a solution for the same issue.https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/request-to-http-localhost-4502-crx-packmgr-service-jsp-failed/qaq-p/222974

Views

383

Like

1

Replies

2
Re: How to display JSON data through Sling Model
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
Hi @ashwinikhaple, Please refer below URLs for sling model creation. https://gist.github.com/Surajkamdi/6d51779d62278b56a747e04532f39036http://www.sgaemsolutions.com/2017/06/sling-model-exporter-in-aem-63.html

Views

344

Likes

2

Replies

0
Re: Create Multi Region/Country site in AEM 6.5
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
Hi @Heena91, If you are using only one DNS then it can be achieved by providing different URLs at the country dropdown.Let's say, USA: www.abc.com/us_en.htmlIndia: www.abc.com/in_en.html So in the dropdown, the USA will have a respective link as mentioned above and the same for India and other countries. Other than that, if you don't want the URL to be changed, everything depends on the dropdown values, then you can utilise AEM personalization.https://experienceleague.adobe.com/docs/experience-m...

Views

197

Like

1

Replies

0
Re: How to call 3rd part REST API from AEM (in server sid...
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
Hi @TB3dock, You can refer to below URL, it has a detailed implementation. https://medium.com/@codeandtheory/invoke-rest-services-in-aem-the-right-way-c5fb0af43afe

Views

320

Like

1

Replies

0
Re: What is the property or the way to apply Style System...
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
Hi @ashwinikhaple, Please refer to below link to apply style to any component.https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-wknd-tutorial-develop/style-system.html?lang=en#inspect-title-markup

Views

175

Like

1

Replies

0
Re: How can we duplicate the authoring contents of a fiel...
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
Hi @RkR_F5, You can write a touch UI clientlibs and read the value from the first field of multifield. Can copy the value from the first field and add it in the DOM object of dialog as and HTML using JS. You can refer below link for the clienlib creation for multifield.https://techforum.medium.com/how-to-enable-custom-validation-on-multifield-touch-ui-adobe-experience-manager-aem-7887e849169a

Views

372

Like

1

Replies

0
Re: Error while testing component's sling model
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
Hi, @ashwinikhaple, Please refer to the below link for a similar kind of issue and error.https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/junit-5-error-while-using-aemcontext/td-p/299132

Views

194

Like

1

Replies

0
Re: Configuring Multiple SAML configs in Publisher (audie...
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
Hi @Antony6790, Refer the following link for a similar kind of implementation.https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/saml-configuration-for-multiple-websites-on-same-aem-6-1-sp2/qaq-p/254032

Views

222

Like

1

Replies

0
Re: Detect component name after user interaction
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
Hi @Stochino, By default, the Component name is getting displayed at the bottom right corner of the component when you hover the cursor on it. Otherwise, you can add following code in every component. This is test component. Edit this component to make the changes. You can change this "test component" to the real component name.

Views

227

Like

1

Replies

0
Re: How to render/style a content fragment (i.e. not usin...
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
Hi @TB3dock, Please refer to below link for a similar scenario.https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/apply-css-styling-in-content-fragment/qaq-p/294865

Views

219

Like

1

Replies

0
Re: Not able to convert Content fragment into JSON format.
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
Hi @ShagunMalik, Can you check logs when you try to access json using model.json extension?

Views

227

Like

1

Replies

0
Re: Decimal value with number field failing for specific...
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
Hi, @volgadr10, The step should be a string as per the granite numberfield resource type.step="{String}0.0001"https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/reference-materials/granite-ui/api/jcr_root/libs/granite/ui/components/coral/foundation/form/numberfield/index.html

Views

259

Like

1

Replies

1
Re: How Can I call a Service in Servlet
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
Hi @ashwinikhaple, import javax.servlet.Servlet;import javax.servlet.ServletException;import org.apache.sling.api.SlingHttpServletRequest;import org.apache.sling.api.SlingHttpServletResponse;import org.apache.sling.api.servlets.HttpConstants;import org.apache.sling.api.servlets.SlingSafeMethodsServlet;import org.osgi.framework.Constants;import org.osgi.service.component.annotations.Component;import org.osgi.service.component.annotations.Reference;@Component(service = Servlet.class,property={Cons...

Views

306

Likes

0

Replies

0
Re: How Can I call a Service in Servlet
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
Hi, @ashwinikhaple, If you are using SCR annotation, you can use @Reference annotation to inject the service into the servlet.Something similar to this.@Reference MyService service;You can refer to the below thread for more details.https://stackoverflow.com/questions/56732548/aem-6-4-x-osgi-servlet-how-to-access-an-osgi-service-from-a-servlet If you are using R6 annotation, Please refer to below URL for the same.http://www.nateyolles.com/blog/2017/05/osgi-declarative-services-annotations-in-aem

Views

337

Like

1

Replies

3
Re: JSON Log
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
Hi @rishabhkrishan, You can refer to below URL for this requirement.https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/create-logs-in-json-format/qaq-p/352082

Views

209

Like

1

Replies

0
Re: Disable sub components from admin
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
Hi @lwang, If you don't want to show this specific set of components to admin, I assume that these sub-components will not be exposed to any other user as well. In this case, you can add componentGroup as ".hidden" in the component properties.' https://experienceleague.adobe.com/docs/experience-manager-64/developing/components/components-basics.html?lang=en#component-hierarchy-and-inheritance

Views

202

Like

1

Replies

1
Re: How to create a new template with a custom property i...
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
Hi @TB3dock, You can create your own set of templates in the project structure under /app//components/page. You can commit this code in the code repository, in the ui.apps. Whenever you will deploy the code, these templates will be deployed in the AEM. Here you can maintain multiple versioned templates as per your requirement.

Views

232

Like

1

Replies

0
Re: How to remove the wcmmode=disabled in Web URL?
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
Are you adding it manually on your own?if this is the case, you can go to editor mode by adding "editor.html" before the content in the URL and switch to preview mode. If this is happening in the publisher environment, then the source of this URL needs to be checked. There is a possibility that the source URL has this keyword mentioned in it.

Views

226

Like

1

Replies

0
Re: For my service Service Id is not getting Generated in...
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
Hi @ashwinikhaple, If you are using R6 annotation, then please add the below line of code for service creation.@Component(service=SimpleService.class, immediate=true, .. )If you are using SCR annotation,You need to add the below code to register it as a service.@Service(value = CustomerDemo.class) Please refer to the below URL for the service creation while using SCR/R6 annotation.https://www.argildx.com/technology/migration-of-scr-annotations-to-ds-annotations/

Views

214

Like

1

Replies

0
Re: Can i add a link to file within javascript ?
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
Hi @patrickpai , please use the below URLs for dynamic URLs creation.https://stackoverflow.com/questions/20834002/building-dynamic-url-using-a-hrefhttps://www.w3schools.com/jsref/jsref_link.asp

Views

162

Like

1

Replies

0
Re: Where is the i18n translator UI for AEM Cloud?
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- Adobe Experience Manager
@TB3dock , I18N needs to deploy as a part of the code.you can refer to the below URL for the same.https://experienceleague.adobe.com/docs/experience-manager-cloud-service/release-notes/aem-cloud-changes.html?lang=en#apps-libs-immutable

Views

613

Like

1

Replies

0
Re: Aem Nodes to JsonArray
Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

45 likes

Total Posts

46 posts

Correct reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
- XML Documentation
Yes, As we are using @childResource annotation as mentioned above, it will consider all child nodes of multifield.Combination of List and @childResource annotation will map all item nodes of multifield to a List and then you can use it for pass in sightly or anything else.

Views

300

Likes

0

Replies

0