Expand my Community achievements bar.

anasustic
anasustic
Offline
Type
  • All
  • Questions
  • Discussions
  • Ideas
  • Blogs
Filter by user contributions
  • 1_property=sling:resourceType 1_property.value=weretail/components/content/teaser 2_property=linkURL 2_property.operation=exists p.limit=-1Hi. Thanks so much for creating the test content and writing the query. Can you please explain the lines above (ie. 1_property, 1_property.value...)? 

    Type

    Discussions

    Views

    1.1K

    Like

    1

    Replies

    5
  • Can someone help me with this query.I am trying to find all the nodes under content that have a sling:resourceType=components/content/home/homeHeroTeaser I wrote the above as: String query = ''' SELECT * FROM [nt:base] AS n WHERE ISDESCENDANTNODE([/content]) AND n.[sling:resourceType]='comp...

    Type

    Discussions

    Views

    1.1K

    Likes

    0

    Replies

    7
  • I have a question regarding keywords in connection with fulltext search.I have a fulltext search using Predicates. It searches cq:Page under specific paths.This works correctly except the case when the Keyword is set on the Page that is also the search path.When the search path is parent of the page...

    Type

    Discussions

    Views

    281

    Likes

    0

    Replies

    0
  • Hi,Will this always evaluate: <sly data-sly-test.storeLink="${'android' == model.device ? model.appleStoreLink : model.googlePlayLink}"></sly>Why does the  data-sly-use throw an error?

    Type

    Discussions

    Views

    1.8K

    Likes

    0

    Replies

    1
  • HiWhen I add to my template<sly data-sly-use.storeLink="${'android' == model.device ? model.appleStoreLink : model.googlePlayLink}"></sly>I get the following errorCannot get DefaultSlingScript: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: data-sly-use needs to be passed an ide...

    Type

    Discussions

    Views

    1.9K

    Likes

    0

    Replies

    3
  • HiI was looking over the expression options used in sightly. I tried the below line of code, but it seems just render a modal. Can someone provide use of options with some good examples. I mostly do not understand the data-sly-resource statement and its options.<sly data-sly-test="${modal.hasModal &...

    Type

    Discussions

    Views

    301

    Likes

    0

    Replies

    0
  • I did as you suggested @Testvoid doGetTest() throws IOException { searchService = mock(SearchService.class); GoogleMapsApiConfigurationModel model = new GoogleMapsApiConfigurationModel(); String one = "one"; String two = "two"; when(searchService.getResults(model, one, two)).thenRetur...

    Type

    Discussions

    Views

    5.0K

    Like

    1

    Replies

    0
  • My SearchService class has two @reference annotations @Referenceprivate ResourceResolverService resourceResolverService;@Referenceprivate GeocodingService geocodingService;and two public methods with the following signatures:public List<LocationResult> getResults(@Nonnull GoogleMapsApiConfigurationM...

    Type

    Discussions

    Views

    5.0K

    Like

    1

    Replies

    0
  • I did as you suggested and in the beforeEach() added:context.registerInjectActivateService(new SearchService(), "prop1", "value1");The SearchService() has itself two @reference annotations. @Referenceprivate ResourceResolverService resourceResolverService;@Referenceprivate GeocodingService geocodin...

    Type

    Discussions

    Views

    5.0K

    Like

    1

    Replies

    1
  • I do not understand what do you mean bymock implementation for the searchService using when and thenReturn methods. Please update this thread in case of any issues.  This is what I have @ExtendWith(AemContextExtension.class)class LocationFinderByTitleServiceTest { private final AemContext context...

    Type

    Discussions

    Views

    5.1K

    Like

    1

    Replies

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