Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

touch ui page not getting refreshed on adding new component

Avatar

Avatar
Validate 1
Level 2
krithikar545354
Level 2

Likes

5 likes

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
krithikar545354
Level 2

Likes

5 likes

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile
krithikar545354
Level 2

13-06-2017

Hi,

I am adding a touch ui component to the page, but am getting the below js error and the page is not getting refreshed,  so am not able to edit the component. Only when i refresh the page manually am able to edit the component.

editor.js:5633 : Uncaught TypeError: Cannot read property 'getParentPath' of undefined

    at Array.ns.store.self.getParent (http://52.86.19.183:4502/libs/cq/gui/components/authoring/clientlibs/editor.js:5633:41)

    at Object.<anonymous> (http://52.86.19.183:4502/libs/cq/gui/components/authoring/clientlibs/editor.js:18000:47)

    at fire (http://52.86.19.183:4502/etc/clientlibs/granite/jquery.js:3143:30)

    at Object.fireWith [as resolveWith] (http://52.86.19.183:4502/etc/clientlibs/granite/jquery.js:3255:7)

    at Object.deferred.(anonymous function) [as resolve] (http://52.86.19.183:4502/etc/clientlibs/granite/jquery.js:3345:34)

    at http://52.86.19.183:4502/libs/cq/gui/components/authoring/clientlibs/editor.js:26200:104

    at dispatch (http://52.86.19.183:4502/etc/clientlibs/granite/jquery.js:4665:9)

    at elemData.handle (http://52.86.19.183:4502/etc/clientlibs/granite/jquery.js:4333:28)

  I already have the cq:listeners for the components which have the property to refresh the page on adding a new component. Kindly suggest how to fix this js issue.

Replies

Avatar

Avatar
Validate 10
Level 6
leeasling
Level 6

Likes

73 likes

Total Posts

292 posts

Correct Reply

75 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 10
Level 6
leeasling
Level 6

Likes

73 likes

Total Posts

292 posts

Correct Reply

75 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile
leeasling
Level 6

13-06-2017

First off, I would maybe try a private browser window and make sure it's not a javascript caching issue.

Secondly, I would take a look at your node structure and make sure that the page has a valid cq:template and sling:resourceType.

Avatar

Avatar
Boost 5
Level 2
rodolfoe6195251
Level 2

Likes

5 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
View profile

Avatar
Boost 5
Level 2
rodolfoe6195251
Level 2

Likes

5 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
View profile
rodolfoe6195251
Level 2

13-06-2017

Was a component node added to the jcr on that page as a result of dragging the component on to the page?

Also, it might be useful to share some details of your component and/or try stripping out most of the logic out to test out a basic component.

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

13-06-2017

Paste a screen shot of the component and dialog. Looks like there is an issue with the way its setup. Also - is your component an HTL component? WHat version of AEM are you using?

Avatar

Avatar
Validate 1
Level 8
MC_Stuff
Level 8

Likes

78 likes

Total Posts

467 posts

Correct Reply

158 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 25
View profile

Avatar
Validate 1
Level 8
MC_Stuff
Level 8

Likes

78 likes

Total Posts

467 posts

Correct Reply

158 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 25
View profile
MC_Stuff
Level 8

13-06-2017

Hi Kritikar,

It looks like you are loading an external library before editor is loaded. Change the order of loading the script.

Thanks,

Avatar

Avatar
Validate 1
Level 2
krithikar545354
Level 2

Likes

5 likes

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
krithikar545354
Level 2

Likes

5 likes

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile
krithikar545354
Level 2

14-06-2017

I am facing this issue when i drag and drop any of the components in my page. Also the mentioned js error comes up only when  the page under particular hierarchy say "/content/projectname/en-us" , but when the page is under "/content/projectname" am not facing this issue.

Am using HTL component and AEM version is 6.1.

Also i tried removing all the js as well from the template but still the issue persists

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,123 likes

Total Posts

6,108 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,123 likes

Total Posts

6,108 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

16-06-2017

Can you please state the steps to reproduce this?

Any particular component showing this? Can you try it on fresh instance as well ?

~kautuk

Avatar

Avatar
Validate 1
Level 2
geoffreym935937
Level 2

Likes

2 likes

Total Posts

13 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
geoffreym935937
Level 2

Likes

2 likes

Total Posts

13 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
geoffreym935937
Level 2

20-06-2017

I am getting the exact same issue (behaviour and JS error).

AEM 6.2 SP1 - Touch UI

Avatar

Avatar
Boost 1
Level 1
taurean8
Level 1

Likes

2 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
Applaud 5
View profile

Avatar
Boost 1
Level 1
taurean8
Level 1

Likes

2 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
Applaud 5
View profile
taurean8
Level 1

18-07-2019

Did you get any resolution?

Avatar

Avatar
Validate 1
Level 1
rafcap
Level 1

Likes

0 likes

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back
Applaud 5
View profile

Avatar
Validate 1
Level 1
rafcap
Level 1

Likes

0 likes

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back
Applaud 5
View profile
rafcap
Level 1

26-04-2021

any solution?