Expand my Community achievements bar.

HanL
HanL
Offline
Type
  • All
  • Questions
  • Discussions
  • Ideas
  • Blogs
Filter by user contributions
  • Hi In AEM, we can find where the pdfs/pictures are used by looking at the pdfs/pictures properties, I'm wondering if there's any way to load this info with Java code? Thanks

    Type

    Questions

    Views

    120

    Likes

    0

    Replies

    1
  • Sorry just noticed I missed one decimal, I meant "When I input data like 4999.0520, it gets displayed on the page as 4999.0518" 

    Type

    Questions

    Views

    150

    Likes

    0

    Replies

    0
  • HiI am using the SLY templating language in AEM to display data on company page, and I have run into a problem with decimal rounding. Here's a snippet of the sly code I'm using. <sly data-sly-test.fourDecimals="${'0.0000' @ i18n, locale=countryPage.language, hint='test page'}"></sly> <sly data-sly-...

    Type

    Questions

    Views

    242

    Likes

    0

    Replies

    3
  • That worked, thanks for the help!

    Type

    Questions

    Views

    240

    Likes

    2

    Replies

    0
  • Hi SureshFor those two annotations, I am using:import org.osgi.service.component.annotations.Component;import org.apache.felix.scr.annotations.Reference;In the log, an exception was thrown java.lang.NullPointerException: nullat  MessageGateway<HtmlEmail> messageGateway = messageGatewayService.g...

    Type

    Questions

    Views

    262

    Like

    1

    Replies

    2
  • Hi I am created an email servlet in AEM and it works fine when I tested it on my local 4502,but when I test this servlet on company DEV environment, the messageGateway is always null MessageGateway<HtmlEmail> messageGateway = messageGatewayService.getGateway(HtmlEmail.class); Here's my code:@co...

    Type

    Questions

    Views

    301

    Likes

    0

    Replies

    4
  • Hi I having an issue on the sling date:<sly data-sly-test.startingDate="${'dd-MMM-yyyy' @ i18n, format=pnp.firstDayOfYear, locale=countryPage.languageCode, type='date'}"></sly>the firstDayOfYear value comes from Java method: public Calendar getFirstDayOfYear(){ Calendar c = Calendar.getIn...

    Type

    Questions

    Views

    219

    Likes

    0

    Replies

    1
  • Hi I am trying to setup an email function servlet on AEM, it grabs nodes info in AEM and save them is a excel file. The servlet works fine on local, but somehow it's not working on live environment, here's my code: package com.fidelity.cms.aem.reports; import java.io.ByteArrayOutputStream; import j...

    Type

    Questions

    Views

    174

    Likes

    0

    Replies

    2
  • Sure, Here's the codeimport org.apache.sling.api.servlets.SlingAllMethodsServlet; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.Date; import javax.jcr.Session; import javax.jcr.query.Query; import javax.jcr.query.QueryManager; import javax.jcr.query.QueryResult; import ...

    Type

    Questions

    Views

    568

    Like

    1

    Replies

    1
  • Hi I am trying to create a servlet in AEM to unplish some pages. The servlet keeps throwing the nullpointer at:replicator.replicate(session, ReplicationActionType.DEACTIVE, path);  I found the root cause is the replictor is null, here's how I set it:@referenceReplicator replicator;I tried to do mave...

    Type

    Questions

    Views

    597

    Likes

    0

    Replies

    6
Top badges earned by HanL
Customize the badges you want to showcase on your profile