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

On adding parsys for a component not able to delete the component in AEM 6.4

Avatar

Avatar
Validate 1
Level 2
sundarig9086821
Level 2

Likes

10 likes

Total Posts

28 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
sundarig9086821
Level 2

Likes

10 likes

Total Posts

28 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
sundarig9086821
Level 2

19-01-2019

v

Hi,

I have a component as below:

<a data-sly-use.button="we.retail.core.model.Button"

   class="btn btn-primary btn-action cq-dd-linkTo ${button.cssClass}"

   href="${button.linkTo == '#' ? '#' : button.linkTo @ extension = 'html'}" role="button">${properties.label}</a>

  <div data-sly-resource="${'par' @ resourceType='wcm/foundation/components/parsys'}"/>

1671851_pastedImage_0.png

Once the component is added in page, if i try to delete it there is the error in console and component is not deleting.

1671852_pastedImage_1.png

But if i add a div above parsys in  html,

   <div>

  <div data-sly-resource="${'par' @ resourceType='wcm/foundation/components/parsys'}"/>

  </div>

the component can be deleted.

But while editing, one child div editable structure is shown while authoring.

parent div authoring view:

1671853_pastedImage_2.png

child one (showing due to addition of <div> above parsys):

1671857_pastedImage_3.png

We don't need the child editable authoring view.

NOTE: code without additional <div> works fine in AEM 6.1

smacdonald2008 Arun Patidar can you kindly help with this?

Thanks in advance!!

Thanks,

Sundari.

Replies

Avatar

Avatar
Boost 250
MVP
Gaurav-Behl
MVP

Likes

250 likes

Total Posts

1,147 posts

Correct Reply

283 solutions
Top badges earned
Boost 250
Establish
Give back 300
Give Back 50
Give Back 5
View profile

Avatar
Boost 250
MVP
Gaurav-Behl
MVP

Likes

250 likes

Total Posts

1,147 posts

Correct Reply

283 solutions
Top badges earned
Boost 250
Establish
Give back 300
Give Back 50
Give Back 5
View profile
Gaurav-Behl
MVP

19-01-2019

The child node of parsys with specified name 'par' is not created until you add a component inside the parsys. That's the default behavior of parsys. In this case, its throwing error because of missing child component and unable to locate the path of parsys which you have seen in console logs. Once you have added child component, the parent container allows the parsys to be deleted without any issue. This could probably be a bug. You may log a ticket for same.

If you add unbalanced div tag, that would break DOM structure and create other issues.

Temporary workaround - Drop a component inside parsys and then delete it, per your use case, till the time you get a fix from customer care.

Avatar

Avatar
Validate 1
Level 2
sundarig9086821
Level 2

Likes

10 likes

Total Posts

28 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
sundarig9086821
Level 2

Likes

10 likes

Total Posts

28 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
sundarig9086821
Level 2

20-01-2019

Hi gauravd83019631 ,

Thanks for the reply!!

I tried your workaround by adding some component in parsys (hence the node "par" will be created). Once I delete the whole component it disappears from the page. However, on refresh of the page, the component is again visible. (the component is not deleted from CRX)

Added an image component in child parsys.

1672285_pastedImage_0.png

When I delete the component, it disappears from the page.

If I refresh the page again, the component is visible.

1672292_pastedImage_1.png

However, the child "image" component has been deleted.

Kindly help on this one.

Thanks,

Sundari.

Avatar

Avatar
Boost 250
MVP
Gaurav-Behl
MVP

Likes

250 likes

Total Posts

1,147 posts

Correct Reply

283 solutions
Top badges earned
Boost 250
Establish
Give back 300
Give Back 50
Give Back 5
View profile

Avatar
Boost 250
MVP
Gaurav-Behl
MVP

Likes

250 likes

Total Posts

1,147 posts

Correct Reply

283 solutions
Top badges earned
Boost 250
Establish
Give back 300
Give Back 50
Give Back 5
View profile
Gaurav-Behl
MVP

21-01-2019

I would recommend to log a ticket wit daycare and ask for the patch.

You could obviously overlay '/libs/cq/gui/components/authoring/editors/clientlibs/core.js'  & fix it, if that's critical. This doesn't seem to be a showstopper for authors to continue. The developers could delete it from /crx/de as and when required.

Avatar

Avatar
Validate 1
Level 1
mikes22421318
Level 1

Likes

2 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
mikes22421318
Level 1

Likes

2 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mikes22421318
Level 1

18-02-2019

Hi sundarig90868210

We have exactly the same issue in our project!

Did you get a solution for this?

We created a daycare ticket but we were not able to reproduce this issue on a plain 6.4.3 instance.

Is it possible that the issue only occurs on upgraded instances?

Thanks,

Mike

Avatar

Avatar
Give Back
Level 1
Yochaubs
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Give Back
View profile

Avatar
Give Back
Level 1
Yochaubs
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Give Back
View profile
Yochaubs
Level 1

29-04-2020

Hey @sundarig9086821 ,

 

Did you found the solution?

 

Thank You!

Avatar

Avatar
Give Back
Level 1
nimishk58651467
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Give Back
View profile

Avatar
Give Back
Level 1
nimishk58651467
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Give Back
View profile
nimishk58651467
Level 1

09-06-2021

Hi @sundarig9086821 

Did you found any solution, I see the same error in AEM 6.5.4