Expand my Community achievements bar.

component uneditable

Avatar

Level 2

I have copied from an existing and working component in CQ5, the new component has had its title, description etc changed but all else is the same. It appears in the SideKick, can be dragged onto the page, yet unable to edit it. As a test I can still add the original component to the page and edit and publish successfully.

I have been through all the settings in CRX and WCM all look correct, replicated, refreshed, stop started author/publisher, purged etc. And yet it is still uneditable. How can the original work and the copy not, when has all the same values.

Dialog.xml

<?xml version="1.0" encoding="UTF-8"?><jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"    jcr:primaryType="cq:Dialog"    title="Bryans Test Component"    xtype="tabpanel"><items jcr:primaryType="cq:WidgetCollection"><tab1            jcr:primaryType="cq:Widget"            anchor="100%"            title="Bryans Test Component"            xtype="panel"><items jcr:primaryType="cq:WidgetCollection"><heading                    jcr:primaryType="cq:Widget"                    fieldLabel="Heading"                    name="./heading"                    xtype="textfield"/><descriptionlineone                    jcr:primaryType="cq:Widget"                    fieldLabel="Description Line 1"                    name="./desclineone"                    xtype="textfield"/><descriptionlinetwo                    jcr:primaryType="cq:Widget"                    fieldLabel="Description Line 2"                    name="./desclinetwo"                    xtype="textfield"/></items></tab1></items></jcr:root>

bryantest.jsp

<%@include file="/apps/*******/global/global.jsp" %><% request.setAttribute("wcmEditMode",WCMMode.fromRequest(request) == WCMMode.EDIT); %><c:choose><c:when            test="${wcmEditMode eq true and fn:length(properties.heading) eq 0}"><img src="/libs/cq/ui/resources/0.gif" class="cq-carousel-placeholder"             alt="Bryans Test" title="Bryans Test" /></c:when><c:otherwise><div><div class="content-inner marall0"><div><div><h2><span class="info-icon"></span>${properties.heading}<span class="close-icon"></span></h2></div><div><div class="clearfix"></div><p>${properties.desclineone}</p><p>${properties.desclinetwo}</p></div></div></div></div></c:otherwise></c:choose>

 

_cs_editConfig.xml

<?xml version="1.0" encoding="UTF-8"?><jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"     jcr:primaryType="cq:EditConfig"><cq:inplaceEditing            jcr:primaryType="cq:InplaceEditingConfig"            active="{Boolean}false"            configPath="../../dialog/items/tab1/items/text"            editorType="text"/></jcr:root>

.content.xml

<?xml version="1.0" encoding="UTF-8"?><jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"          jcr:description="Bryans Test Component"          jcr:primaryType="cq:Component"          jcr:title="Bryans Test Component"          allowedParents="[*/parsys]"          componentGroup="Group One"/>
6 Replies

Avatar

Level 10

email me this component - scottm@adobe.com. I need to look at it to tell you whats wrong. 

Avatar

Administrator

HI

Also please share the error.log/ browser console log.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

Avatar

Level 2

Hello all, thanks for your replies. As recommended I looked in the Chrome inspector. The original component when clicked on to edit works fine, the copy component when clicked to edit generates the following error: 

Uncaught TypeError: Cannot read property 'events' of undefined 

in the widgets.js file. 

So I will investigate further but any help appreciated.

Avatar

Level 2

This component is being dropped into a parent jsp which has a 

resourceType="/libs/foundation/components/parsys"/ area, as I say the original component works the new one does not sad

Avatar

Level 7

Kindly attach the package here in the ticket itself.

Thanks

Tuhin