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

Jefferson_Setia
Jefferson_Setia
Offline

Badges

Badges
9

Accepted Solutions

Accepted Solutions
1

Likes Received

Likes Received
2

Posts

Posts
14

Discussions

Discussions
7

Questions

Questions
7

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by Jefferson_Setia
Customize the badges you want to showcase on your profile
How to pass curly brace inside sightly expression? - Adobe Experience Manager 06-10-2017
Hi, I have snippet like this: ${svg.html @ context= 'unsafe'} I'd like to pass the handlebars expression using double curly braces '{{ foo }}' to the sightly variable, but I got errortoken recognition error at: '{'I think it because sightly process curly brace and not bypass it. How can I pass that curly brace?Thank you.

Views

1.9K

Likes

0

Replies

1
Re: How to set httponly to the cookie from sling servlet and why the used version of javax.servlet is 2.5? - Adobe Experience Manager 10-09-2017
Sorry for late reply.I've update the javax.servlet to version 3, but it generate Failure to find javax.servlet:servlet-api:jar:3.1. so I just return it back to version 2.5.

Views

1.8K

Likes

0

Replies

0
Re: How to set httponly to the cookie from sling servlet and why the used version of javax.servlet is 2.5? - Adobe Experience Manager 29-08-2017
Here is my parent pom file. When I want to add additional dependency, I added it on parent pom file. I tried to add it in the core pom.xml, but it show error, so I just added it to the parent pom file. 4.0.0 id.jeffersonsetiawan.aem training pom 1.0-SNAPSHOT training core ui.apps ui.content it.tests it.launcher localhost 4502 localhost 4503 admin admin admin admin UTF-8 UTF-8 org.apache.maven.plugins maven-release-plugin 2.5.3 [maven-scm] : clean install install release org.apache.m org.apache.sling maven-sling-plugin -->...

Views

1.8K

Likes

0

Replies

0
Re: Install jar bundle to publisher instance. - Adobe Experience Manager 29-08-2017
I have reinstall the publish server, and still facing the same problem.Maybe my steps to replicate is wrong?This is my step that I used:mvn clean install -P autoInstallPackage (it install the package to the author server).In http://localhost:4502/crx/packmgr/index.jsp I replicate the ui.apps first, then ui.content.Am I miss something?

Views

1.4K

Likes

0

Replies

1
Re: How to set httponly to the cookie from sling servlet and why the used version of javax.servlet is 2.5? - Adobe Experience Manager 28-08-2017
I'm using AEM 6.2 @jorgsmacdonald2008​, I'm new in maven world, so that means that the maven repo doesn't have the javax.servlet package version 3.1, isn't it?

Views

1.8K

Likes

0

Replies

0
How to set httponly to the cookie from sling servlet and why the used version of javax.servlet is 2.5? - Adobe Experience Manager 28-08-2017
I add cookie to the SlingHttpServletResponse by using code: String accessToken = objectResult.getString("access_token"); Cookie responseCookie = new Cookie("web-token", accessToken); responseCookie.setMaxAge(1000); responseCookie.setPath("/"); response.addCookie(responseCookie);When I want to add responseCookie.setHttpOnly, there is error because the version of javax.servlet in AEM (It's version 2.5) doesn't have that method.I tried to update the version in the parent pom.xml file, but I got err...

Views

3.7K

Likes

2

Replies

10
Re: Install jar bundle to publisher instance. - Adobe Experience Manager 28-08-2017
Thanks for reply @veena_07, here is my code GitHub - jeffersonsetiawan/demo-aem

Views

3.8K

Likes

0

Replies

3
Re: Install jar bundle to publisher instance. - Adobe Experience Manager 27-08-2017
It just a code from the sample MyModel.java class```package id.jeffersonsetiawan.aem.core.models;import org.apache.sling.api.resource.Resource;import org.apache.sling.models.annotations.Default;import org.apache.sling.models.annotations.Model;import org.apache.sling.settings.SlingSettingsService;import javax.annotation.PostConstruct;import javax.inject.Inject;import javax.inject.Named;/** * Created by jeffersonsetiawan on 7/5/17. */@Model(adaptables=Resource.class)public class MyModel { @Inject ...

Views

3.8K

Likes

0

Replies

2
Re: Install jar bundle to publisher instance. - Adobe Experience Manager 27-08-2017
Hi Jorg, I install the bundle in the author via mvn clean install -P autoInstallPackage and I use autoInstallBundle if I change the java class. In the author it worked well, but when I replicated to the publisher all is there (including app/training/install/XYZ.jar). But when I use it in the component, it showed error "Cannot find a a file corresponding to class id.jeffersonsetiawan.aem.core.models.MyModel in the repository.".I assumed the it not work because the bundle is not exists. So I tried...

Views

3.8K

Likes

0

Replies

4
Re: Install jar bundle to publisher instance. - Adobe Experience Manager 27-08-2017
I've check that thread before. I've never install the jar before and when icheck in the osgi component or the bundle list, there is not foo package installed, and I can't use the java bundle in my component.

Views

3.8K

Likes

0

Replies

0
Likes given to
Likes from