[AEM6.0] Not able to edit component in Classic UI | Community
Skip to main content
GK-007
New Participant
October 16, 2015
Solved

[AEM6.0] Not able to edit component in Classic UI

  • October 16, 2015
  • 9 replies
  • 2892 views

Hi All,

I am using AEM 6.0 and built a page component and included standalone component.

Have included component in a page component's JSP,when i open the page in Touch Optimized UI mode,i am able to edit the component but i could not able to edit component in classic UI and also components itself is not highlighted.

What we would be the issue and please help me.

Thanks,

Kishore

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ogill

From the following pagehttps://docs.adobe.com/docs/en/aem/6-0/develop/components/components-develop.html

A dialog defined for the classic UI will operate on the touch-optimized UI.

A dialog defined for the touch-optimized UI will not operate on the classic UI.

Depending on your instance and author environment you might want to define both types of dialog for your component.

Details on the difference between touch and classic components: http://www.willdev4donuts.com/aem6-touch-ui-cqdialog-vs-dialog/#.VXNn02DvwsA 

Is the same error present in the touch interface?

Can you isolate where your error is coming from? For example, remove your custom component from the page.

Can you add the component to a parsys in classic mode?

9 replies

Lokesh_Shivalingaiah
New Participant
October 16, 2015

what is the sling:resourceSuperType of your component ?

Dinu_Arya
New Participant
October 16, 2015

Can you check CQ5 dialog (xtype: dialog/panel/tabpanel) is there or not under your component? If it is there, are you able to see the dialog when you click on it? 

GK-007
GK-007Author
New Participant
October 16, 2015

bsloki wrote...

what is the sling:resourceSuperType of your component ?

 

My page component has sling:resourceSuperType as "foundation/components/page" but included component does not refer to any sling:resourceSuperType.

GK-007
GK-007Author
New Participant
October 16, 2015

Dinu_Arya wrote...

Can you check CQ5 dialog (xtype: dialog/panel/tabpanel) is there or not under your component? If it is there, are you able to see the dialog when you click on it? 

 

xtype value as 'dialog' is already there but the problem here is i could open and edit component in Touch Optimized-View but the same operations could not able to do in Classic-UI.

What could be the issue??

Employee
October 16, 2015

Is there any JavaScript errors? If you inspect the component in your browser, does it have the appropriate css class to highlight the component when you hover over it? Check the classes added to the other components which do work.

GK-007
GK-007Author
New Participant
October 16, 2015

Opkar Gill wrote...

Is there any JavaScript errors? If you inspect the component in your browser, does it have the appropriate css class to highlight the component when you hover over it? Check the classes added to the other components which do work.

 

Seeing "Uncaught TypeError: Cannot read property 'edit' of undefined" error on browser console.

Do we need to create separate dialog for classic and touch UI??

ogillAccepted solution
Employee
October 16, 2015

From the following pagehttps://docs.adobe.com/docs/en/aem/6-0/develop/components/components-develop.html

A dialog defined for the classic UI will operate on the touch-optimized UI.

A dialog defined for the touch-optimized UI will not operate on the classic UI.

Depending on your instance and author environment you might want to define both types of dialog for your component.

Details on the difference between touch and classic components: http://www.willdev4donuts.com/aem6-touch-ui-cqdialog-vs-dialog/#.VXNn02DvwsA 

Is the same error present in the touch interface?

Can you isolate where your error is coming from? For example, remove your custom component from the page.

Can you add the component to a parsys in classic mode?

GK-007
GK-007Author
New Participant
October 16, 2015

Opkar Gill wrote...

From the following pagehttps://docs.adobe.com/docs/en/aem/6-0/develop/components/components-develop.html

A dialog defined for the classic UI will operate on the touch-optimized UI.

A dialog defined for the touch-optimized UI will not operate on the classic UI.

Depending on your instance and author environment you might want to define both types of dialog for your component.

Details on the difference between touch and classic components: http://www.willdev4donuts.com/aem6-touch-ui-cqdialog-vs-dialog/#.VXNn02DvwsA 

Is the same error present in the touch interface?

Can you isolate where your error is coming from? For example, remove your custom component from the page.

Can you add the component to a parsys in classic mode?

 

 

Above given information is helpful.I have gone through the link it's exactly opposite to actual behavior.

I am not seeing the same error in Touch UI.

GK-007
GK-007Author
New Participant
October 16, 2015

Kishore@CQ wrote...

Opkar Gill wrote...

From the following pagehttps://docs.adobe.com/docs/en/aem/6-0/develop/components/components-develop.html

A dialog defined for the classic UI will operate on the touch-optimized UI.

A dialog defined for the touch-optimized UI will not operate on the classic UI.

Depending on your instance and author environment you might want to define both types of dialog for your component.

Details on the difference between touch and classic components: http://www.willdev4donuts.com/aem6-touch-ui-cqdialog-vs-dialog/#.VXNn02DvwsA 

Is the same error present in the touch interface?

Can you isolate where your error is coming from? For example, remove your custom component from the page.

Can you add the component to a parsys in classic mode?

 

 

Above given information is helpful.I have gone through the link it's exactly opposite to actual behavior.

I am not seeing the same error in Touch UI.

 

 

At below statement(from finally rendered script)  error is showing.

<script type="text/javascript">

CQ.WCM.edit({"path":"/content/eCampus/en/jcr:content/newslist","dialog":"/apps/ecampus/components/listchildren/dialog","type":"ecampus/components/listchildren","csp":"contentpage|page/newslist|listchildren","editConfig":{"listeners":{"afteredit":"REFRESH_PARENT"}}});
</script>
</div>