Sly-resource won't place class selectors in preview mode

Avatar

Avatar

Pekket

Avatar

Pekket

Pekket

13-11-2017

I use data-sly-resource like this.

The goal is to create a component where you can pick a begin date and an end date.

<div>
   van:

   <div>
  <sly data-sly-resource="${'./date1' @ resourceType='fd/af/components/guidedateinput'}"/>
  </div>
   tot:

   <div>
  <sly data-sly-resource="${'./date2' @ resourceType='fd/af/components/guidedateinput'}"/>
  </div>
</div>

The problem im having is that the class selectors aren't placed on the html tags for the date input component in preview mode.

And because of that the css isn't loaded.

This is edit mode.

Screen Shot 2017-11-13 at 10.39.11.png

This is preview mode.

Screen Shot 2017-11-13 at 10.39.40.png

Thanks

Replies

Highlighted

Avatar

Avatar

Veena_Vikram

MVP

Avatar

Veena_Vikram

MVP

Veena_Vikram
MVP

15-11-2017

@Pekket

     I understand the issue. Could you please send me your code which is not working over mail. I will do an analysis and see if I can figure out the exact issue

Thanks

Veena

Highlighted

Avatar

Avatar

Pekket

Avatar

Pekket

Pekket

16-11-2017

Veena_07

What code you want me to send? Can't send whole project..

Highlighted

Avatar

Avatar

Veena_Vikram

MVP

Avatar

Veena_Vikram

MVP

Veena_Vikram
MVP

16-11-2017

Oh thats my bad. I mistook this post for some component in AEM core components. I was not aware this was specifically for adaptive forms .