Expand my Community achievements bar.

HanL
HanL
Offline
Type
  • All
  • Questions
  • Discussions
  • Ideas
  • Blogs
Filter by user contributions
  • 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

    299

    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

    237

    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

    752

    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

    781

    Likes

    0

    Replies

    6
  • Hi I want to add a property in some nodes in AEM, those nodes were created using a template and I already added that property to the template. The question is how can I change the existing nodes created using that template? Here's my code: String queryString = "SELECT [jcr:path] FROM [cq:Page] AS s ...

    Type

    Questions

    Views

    723

    Likes

    0

    Replies

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