Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When Tag is created on the fly, it is not able to persist value when tags are used inside a multifieldpannel #1116

Closed
amanagarwal21 opened this issue Sep 15, 2017 · 2 comments

Comments

@amanagarwal21
Copy link

amanagarwal21 commented Sep 15, 2017

Hi Team,

We have a project requirement for creating a component, where we have used xtype=tags inside a multifieldPanel. When using this component, tags are selected from the list, multifield is able to persist the value, but if we create tags on the fly, the tag is created, but values are not persisted. Kindly help me here.

The component, looks something like this.
{
"jcr:primaryType":"cq:Dialog",
"title":"Resource 2-column",
"width":"1050",
"xtype":"dialog",
"items":{
"jcr:primaryType":"cq:Widget",
"xtype":"tabpanel",
"items":{
"jcr:primaryType":"cq:WidgetCollection",
"tab1":{
"jcr:primaryType":"cq:Panel",
"title":"Resource-2 Column",
"items":{
"jcr:primaryType":"cq:WidgetCollection",
"heading":{
"jcr:primaryType":"cq:Widget",
"allowBlank":true,
"name":"./heading",
"xtype":"textfield",
"fieldLabel":"Heading"
},
"display":{
"jcr:primaryType":"cq:Widget",
"name":"./display",
"xtype":"dialogfieldset",
"fieldLabel":"How to Display",
"items":{
"jcr:primaryType":"cq:WidgetCollection",
"item":{
"jcr:primaryType":"cq:Widget",
"anchor":"",
"allowBlank":false,
"name":"./item",
"width":"100",
"xtype":"textfield",
"fieldLabel":"Number of items"
},
"rows":{
"jcr:primaryType":"cq:Widget",
"anchor":"",
"allowBlank":false,
"defaultValue":"1",
"name":"./rows",
"type":"select",
"width":"100",
"xtype":"selection",
"fieldLabel":"Number of Rows",
"options":{
"jcr:primaryType":"cq:WidgetCollection",
"one":{
"jcr:primaryType":"nt:unstructured",
"text":"1",
"value":"1"
},
"two":{
"jcr:primaryType":"nt:unstructured",
"text":"2",
"value":"2"
},
"three":{
"jcr:primaryType":"nt:unstructured",
"text":"3",
"value":"3"
},
"four":{
"jcr:primaryType":"nt:unstructured",
"text":"4",
"value":"4"
},
"five":{
"jcr:primaryType":"nt:unstructured",
"text":"5",
"value":"5"
},
"six":{
"jcr:primaryType":"nt:unstructured",
"text":"6",
"value":"6"
},
"seven":{
"jcr:primaryType":"nt:unstructured",
"text":"7",
"value":"7"
},
"eight":{
"jcr:primaryType":"nt:unstructured",
"text":"8",
"value":"8"
},
"nine":{
"jcr:primaryType":"nt:unstructured",
"text":"9",
"value":"9"
},
"ten":{
"jcr:primaryType":"nt:unstructured",
"text":"10",
"value":"10"
},
"eleven":{
"jcr:primaryType":"nt:unstructured",
"text":"11",
"value":"11"
},
"twelve":{
"jcr:primaryType":"nt:unstructured",
"text":"12",
"value":"12"
},
"thirteen":{
"jcr:primaryType":"nt:unstructured",
"text":"13",
"value":"13"
},
"fourteen":{
"jcr:primaryType":"nt:unstructured",
"text":"14",
"value":"14"
},
"fifteen":{
"jcr:primaryType":"nt:unstructured",
"text":"15",
"value":"15"
}
}
},
"displayLogic":{
"jcr:primaryType":"cq:Widget",
"allowBlank":false,
"name":"./displayLogic",
"type":"radio",
"xtype":"selection",
"fieldLabel":"Display Logic",
"options":{
"jcr:primaryType":"cq:WidgetCollection",
"mostRecent":{
"jcr:primaryType":"nt:unstructured",
"text":"Most Recent",
"value":"Most Recent"
},
"priority":{
"jcr:primaryType":"nt:unstructured",
"text":"Priority",
"value":"Priority"
},
"alphabetical":{
"jcr:primaryType":"nt:unstructured",
"text":"Alphabetical",
"value":"Alphabetical"
},
"exact":{
"jcr:primaryType":"nt:unstructured",
"text":"Exact",
"value":"Exact"
}
}
},
"hideTitle":{
"jcr:primaryType":"cq:Widget",
"defaultValue":false,
"name":"./hidetc",
"type":"checkbox",
"xtype":"selection",
"fieldLabel":"Hide title and category"
}
}
},
"identifyMultifield":{
"jcr:primaryType":"cq:Widget",
"orderable":false,
"name":"./multifield",
"width":"200",
"xtype":"multifield",
"fieldLabel":"Identify",
"fieldConfig":{
"jcr:primaryType":"cq:Widget",
"xtype":"multifieldpanel",
"items":{
"jcr:primaryType":"cq:WidgetCollection",
"identifier":{
"jcr:primaryType":"cq:Widget",
"boxMaxWidth":"{Long}300",
"anchor":"",
"key":"identify",
"name":"./identify",
"width":"400",
"xtype":"tags",
"tagsBasePath":"/etc/tags",
"fieldDescription":"Tags within this field are connected by AND logic.",
"namespaces":{
"jcr:primaryType":"cq:WidgetCollection",
"filter":{
"jcr:primaryType":"nt:unstructured",
"name":"Identifier"
}
}
}
}
}
},
"pathC":{
"jcr:primaryType":"cq:Widget",
"name":"./pathC",
"xtype":"hidden"
},
"exactPath":{
"jcr:primaryType":"cq:Widget",
"name":"./exactPath",
"xtype":"hidden"
},
"topicpathC":{
"jcr:primaryType":"cq:Widget",
"name":"./topicPath",
"xtype":"hidden"
},
"lrcpathC":{
"jcr:primaryType":"cq:Widget",
"name":"./lrcPath",
"xtype":"hidden"
}
}
}
}
}
}

@stale
Copy link

stale bot commented Nov 14, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Nov 14, 2017
@stale stale bot removed the wontfix label Nov 17, 2017
@stale
Copy link

stale bot commented Jan 16, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jan 16, 2018
@stale stale bot closed this as completed Jan 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants