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

brolinuk
Community profile brolinuk Level 2
Job title here
Location here
11 BADGES
Level 2

Level 2

Learn more
Joined the community 18-01-2018 9:30:34 AM
Offline
Top badges earned by brolinuk
Customize the badges you want to showcase on your profile
Re: Packages in apps/system/install is wiped off
Avatar
Ignite 5
Level 2
brolinuk
Level 2

Likes

5 likes

Total Posts

16 posts

Correct reply

1 solution
Top badges earned
Ignite 5
Give Back 5
Give Back 3
Ignite 3
Give Back
View profile
brolinuk
- Adobe Experience Manager
if I choose a different path, would jars be installed? I thought it has to be those specific path? If not what what is requirement for create/specify a new path

Views

984

Likes

0

Replies

0
Packages in apps/system/install is wiped off
Avatar
Ignite 5
Level 2
brolinuk
Level 2

Likes

5 likes

Total Posts

16 posts

Correct reply

1 solution
Top badges earned
Ignite 5
Give Back 5
Give Back 3
Ignite 3
Give Back
View profile
brolinuk
- Adobe Experience Manager
I have created project (say project A) just pushing AWS libraries to AEM in the apps/system/install folder, so that my other project (say project B) running on the same author instance can use those libraries within OSGI framework. After project A has pushed the libraries, I can see them in apps/system/install. However, when I tried to build project B, the command mvn clean install -PautoInstallPackage will wipe whatever project A added to apps/system/install. So that project B bundle will not b...

Views

2.1K

Likes

2

Replies

5
Re: validation selector not defined
Avatar
Ignite 5
Level 2
brolinuk
Level 2

Likes

5 likes

Total Posts

16 posts

Correct reply

1 solution
Top badges earned
Ignite 5
Give Back 5
Give Back 3
Ignite 3
Give Back
View profile
brolinuk
- Adobe Experience Manager
Hi, this is not a dialog, but the property fields when create a new page. I think the problem is this js is called before the page render completed (I can only see content in the header tag), therefore anything you set for selector will be "not defined". Please let me know if I understand this wrongly. (function(window, $) { ... });})(window, jQuery);BTW, this is my .content.xml I have found an alternative way to do the job using jquery onclick function, which is only called when document ready ...

Views

1.7K

Likes

0

Replies

0
Re: validation selector not defined
Avatar
Ignite 5
Level 2
brolinuk
Level 2

Likes

5 likes

Total Posts

16 posts

Correct reply

1 solution
Top badges earned
Ignite 5
Give Back 5
Give Back 3
Ignite 3
Give Back
View profile
brolinuk
- Adobe Experience Manager
Yes, I was following these two posts. ThanksAEM Touch UI Dialog Validation New Best Practice: Use Foundation-Validation – Adobe https://www.codeflair.ch/page/aem/aem-touchui-dropdown-mandatory-validation/

Views

1.7K

Likes

0

Replies

0
Re: validation selector not defined
Avatar
Ignite 5
Level 2
brolinuk
Level 2

Likes

5 likes

Total Posts

16 posts

Correct reply

1 solution
Top badges earned
Ignite 5
Give Back 5
Give Back 3
Ignite 3
Give Back
View profile
brolinuk
- Adobe Experience Manager
PS. when I click the save button, it never run into this validate function neither. (I thought the function should be called only when save button clicked though)

Views

1.7K

Likes

0

Replies

0
validation selector not defined
Avatar
Ignite 5
Level 2
brolinuk
Level 2

Likes

5 likes

Total Posts

16 posts

Correct reply

1 solution
Top badges earned
Ignite 5
Give Back 5
Give Back 3
Ignite 3
Give Back
View profile
brolinuk
- Adobe Experience Manager
Hi, I am writing a new clientlib to validate my customised field on page properties, which is defined below. My validation js below will be called when the page for create/update is loaded. However, it never run into the function defined for validate and the error message shows that selector is not defined. I am not sure what have been done wrong here. Is it because the page not rendered yet when the js being called (The page shows blank when debug point hit the js). Please advise. Thanks (funct...

Views

4.2K

Like

1

Replies

6
Re: SlingServlet return javax.jcr.nodetype.ConstraintViolationException: No default node type available
Avatar
Ignite 5
Level 2
brolinuk
Level 2

Likes

5 likes

Total Posts

16 posts

Correct reply

1 solution
Top badges earned
Ignite 5
Give Back 5
Give Back 3
Ignite 3
Give Back
View profile
brolinuk
- Adobe Experience Manager
Found the issue. Service referenced from this servlet is failed in the run time when AEM startup.

Views

1.3K

Likes

0

Replies

0
SlingServlet return javax.jcr.nodetype.ConstraintViolationException: No default node type available
Avatar
Ignite 5
Level 2
brolinuk
Level 2

Likes

5 likes

Total Posts

16 posts

Correct reply

1 solution
Top badges earned
Ignite 5
Give Back 5
Give Back 3
Ignite 3
Give Back
View profile
brolinuk
- Adobe Experience Manager
I have created a slingServlet like below with post request. It worked before and somehow stopped working. @SlingServlet(methods = {HttpConstants.METHOD_POST, HttpConstants.METHOD_OPTIONS}, paths = {"/bin/v1/cms/content/sitemap"})public class SitemapServlet extends SlingAllMethodsServlet {}Not sure why exception complaining about node type, as the path is not for node but url request path? Please advise.Here is the log19.03.2018 09:58:43.395 *ERROR* [0:0:0:0:0:0:0:1 [1521453523392] POST /bin/v1/c...

Views

2.2K

Likes

0

Replies

2
Re: service injection with parameter
Avatar
Ignite 5
Level 2
brolinuk
Level 2

Likes

5 likes

Total Posts

16 posts

Correct reply

1 solution
Top badges earned
Ignite 5
Give Back 5
Give Back 3
Ignite 3
Give Back
View profile
brolinuk
- Adobe Experience Manager
Thanks Jörg. How would I able to make sure that the injection happens before the initialisation? I have already tried to set attribute immediate to true for the Component, but that doesn't make any difference. Is there something I can configure the order or so ? Thanks

Views

776

Likes

0

Replies

0
service injection with parameter
Avatar
Ignite 5
Level 2
brolinuk
Level 2

Likes

5 likes

Total Posts

16 posts

Correct reply

1 solution
Top badges earned
Ignite 5
Give Back 5
Give Back 3
Ignite 3
Give Back
View profile
brolinuk
- Adobe Experience Manager
I am trying to call AWS S3 bucket from our AEM. I have created an S3Manager class/service to to wrap it. which will be injected/referenced from wherever needed. This is working fine, but requires to create AmazonS3Client instance each time when I need to upload or download a file. I am trying to initialise the amazonS3Client in the constructor instead, so I don't need to create so many instance. private AmazonS3Client amazonS3Client;public S3Manager(){ String externalId = sitemapService.getAssum...

Views

1.0K

Likes

0

Replies

3
Re: OSGI third party libraries
Avatar
Ignite 5
Level 2
brolinuk
Level 2

Likes

5 likes

Total Posts

16 posts

Correct reply

1 solution
Top badges earned
Ignite 5
Give Back 5
Give Back 3
Ignite 3
Give Back
View profile
brolinuk
- Adobe Experience Manager
Thanks

Views

1.1K

Likes

0

Replies

0
Re: OSGI third party libraries
Avatar
Ignite 5
Level 2
brolinuk
Level 2

Likes

5 likes

Total Posts

16 posts

Correct reply

1 solution
Top badges earned
Ignite 5
Give Back 5
Give Back 3
Ignite 3
Give Back
View profile
brolinuk
- Adobe Experience Manager
Thanks. This is very helpful. Two more small questions to your reply. As you mentioned,"In the MF file, make sure that Package X is specified in the Export section. Once you place that bundle into an Active State, then all OSGi bundles in AEM can use methods exposed by Class A."I have seen some examples that in Package X would also specified in the import section in the POM file (guess this is what MF your refer? ) of the bundle which requires it. Should it mean optional? As I can find, putting ...

Views

1.1K

Likes

0

Replies

0
OSGI third party libraries
Avatar
Ignite 5
Level 2
brolinuk
Level 2

Likes

5 likes

Total Posts

16 posts

Correct reply

1 solution
Top badges earned
Ignite 5
Give Back 5
Give Back 3
Ignite 3
Give Back
View profile
brolinuk
- Adobe Experience Manager
This might be a dumb question. Why OSGI doesn't support using third party directly? If my bundle requires a non-osgi dependency, I got options to use maven Felix maven-bundle-plugin (as import resource) or just add as separate bundle via the install folder(any other option?). What I don't understand is when we build the project with maven, the libraries have already been added to the target jar and should be available in class path in run time. Why OSGI can't handle the rest or should even bothe...

Views

2.2K

Like

1

Replies

5
Re: Access AWS S3 from AEM
Avatar
Ignite 5
Level 2
brolinuk
Level 2

Likes

5 likes

Total Posts

16 posts

Correct reply

1 solution
Top badges earned
Ignite 5
Give Back 5
Give Back 3
Ignite 3
Give Back
View profile
brolinuk
- Adobe Experience Manager
I have read the s3 data store bit online, but it seems not giving me everything I was looking for, such as download file and calling at s3 at a specific time etc. Please let me know if I understand it wrong and share the link for the relevant links. Many thanks

Views

2.0K

Likes

0

Replies

1
Access AWS S3 from AEM
Avatar
Ignite 5
Level 2
brolinuk
Level 2

Likes

5 likes

Total Posts

16 posts

Correct reply

1 solution
Top badges earned
Ignite 5
Give Back 5
Give Back 3
Ignite 3
Give Back
View profile
brolinuk
- Adobe Experience Manager
I am creating the sitemap file within the AEM and upload to the S3 bucket. I have tried to use normal AWS sdk and osgi version, but both end up with same issue, when I try to run the upload. java.lang.NoClassDefFoundError: Could not initialize class com.amazonaws.services.s3.AmazonS3ClientI have definitely imported the AWS sdk package into my module, however, it is still unable to find it when it is called, though other class in the same package seems to be able to be found. ie. Class.forName("c...

Views

2.8K

Like

1

Replies

4
Sitemap update without iterating through JCR
Avatar
Ignite 5
Level 2
brolinuk
Level 2

Likes

5 likes

Total Posts

16 posts

Correct reply

1 solution
Top badges earned
Ignite 5
Give Back 5
Give Back 3
Ignite 3
Give Back
View profile
brolinuk
- Adobe Experience Manager
I am creating a sitemap from part of my JCR. I am happy to iterate the JCR when first time creating it, but really don't want to re-iterate every time a request come in to pickup the latest content. I would assume there is some thing like a listener to catch the change that have been made in the JCR where my sitemap generate from. If so, I only needs to update the sitemap file already generated, with some process with the changes has been caught by the listener. Please advise if there is such li...

Views

723

Likes

0

Replies

2
Likes given to
Likes from