adobe - AEM pathfield appending values without changing -


i have path field widget in aem error page handling.

i have added @ base page implementation , when try , select path, see there "," appended path. if clear field , save, see old path still exists. if add new path, see new path appended old path saperated comma.

intially error pages coming good after clicking ok , checking properties again (note "," being appended) after adding new path (again path appended after ",")

fig 1: intially error pages coming good.
fig 2: after clicking ok , checking properties again (note "," being appended)
fig 3: after adding new path (again path appended after ",")

has faced same issue. tried different forums wasn't able answers. same configuration working fine on local creating problem when push same code server.

updated -

dialog.xml - here i'm defining tab the error pages path field displayed

<?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" height="400" stateful="false" xtype="dialog"> <items jcr:primarytype="cq:widgetcollection">     <tabs jcr:primarytype="cq:tabpanel">         <items jcr:primarytype="cq:widgetcollection">             <livecopy                 jcr:primarytype="cq:widget"                 path="/libs/foundation/components/page/tab_livecopy.infinity.json"                 xtype="cqinclude"/>             <mytab                 jcr:primarytype="cq:widget"                 path="/apps/webex/eopi/components/pages/home-page/tab_something.infinity.json"                 xtype="cqinclude"/>         </items>     </tabs> </items> </jcr:root> 

tab_something.xml - defining pathfield widget errorpages

<?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:panel" title="webex"> <items jcr:primarytype="cq:widgetcollection">     <basic         jcr:primarytype="cq:widget"         collapsed="{boolean}false"         collapsible="{boolean}false"         xtype="dialogfieldset">         <items jcr:primarytype="cq:widgetcollection">             <errorpages                 jcr:primarytype="cq:widget"                 fielddescription="error pages content tree"                 fieldlabel="error pages"                 name="./errorpages"                 xtype="pathfield"/>         </items>     </basic> </items> </jcr:root> 

as @d33t has mentioned in comments answer, there pathfield node same name under foundation , had overlooked it. removed node , working now.

thanks @d33t


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -