Issues Using extraClientLibs property on dialog open in Touch UI in AEM 6.3

Avatar

Avatar

Sagar_Birkar

Avatar

Sagar_Birkar

Sagar_Birkar

01-05-2018

Hi,

I am using extraClientLibs property to load a js on dialog open. My concern is that the js gets loaded on a page refresh and subsequent  opening a dialog. The js is unable to load if a page refresh is not performed and the dialog is opened.

For example, I have a js mycomponent.js placed under a clientlib "image.ms". This clientlib value is populated on the cq:dialog in the extraClientLibrary property.

The expectation is that the mycomponent.js should be loaded every time I open the  Touch UI dialog widget. This is not happening. However, after page refresh I am able  to load the js on opening the dialog.

Is this expected behavior ?

Regards,

Sagar

Replies

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

01-05-2018

Checking this with our Touch UI experts.

Avatar

Avatar

Sagar_Birkar

Avatar

Sagar_Birkar

Sagar_Birkar

08-05-2018

Hi smacdonald2008​, Any update on this?

Regards,

Sagar

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

08-05-2018

More information here about Clientlibs - Using Client-Side Libraries

I believe that a clientlib loads when the page is refreshed. That makes sense too when you refresh the page - the libs should load that are available when you open a component dialog.