Expand my Community achievements bar.

SOLVED

Nested multifield : authored multifield item delete issue

Avatar

Level 1

Hi ,

 

i created Nested multifield for adding multi level links(3 levels) with addition promo card section in one of the level. each level has multifield to author multiple links. 

 

Issue: authored 5 tab sections with nested multifield values. after adding one more tab section ex:6th Tab section with nested links. now i am trying to remove 6th tab or 5th Tab section, in dialog it shows tab section deleted after click on save dialog content showing with deleted tab section. edit dialog and validated content still persist in dialog. 

 

error logs :

17.01.2023 14:45:29.179 *ERROR* [TarMK filer reaper [C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore]] org.apache.jackrabbit.oak.segment.file.tar.SegmentTarManager Can't remove archive data00172a.tar
java.nio.file.FileSystemException: C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore\data00172a.tar: The process cannot access the file because it is being used by another process.

at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:274)
at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
at java.base/java.nio.file.Files.deleteIfExists(Files.java:1180)
at org.apache.jackrabbit.oak.segment.file.tar.SegmentTarManager.delete(SegmentTarManager.java:141) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at org.apache.jackrabbit.oak.segment.file.FileReaper.reap(FileReaper.java:76) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at org.apache.jackrabbit.oak.segment.file.SafeRunnable.run(SafeRunnable.java:67) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
17.01.2023 14:45:29.179 *WARN* [TarMK filer reaper [C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore]] org.apache.jackrabbit.oak.segment.file.FileReaper Unable to remove file data00172a.tar
17.01.2023 14:45:34.181 *ERROR* [TarMK filer reaper [C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore]] org.apache.jackrabbit.oak.segment.file.tar.SegmentTarManager Can't remove archive data00172a.tar
java.nio.file.FileSystemException: C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore\data00172a.tar: The process cannot access the file because it is being used by another process.

at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:274)
at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
at java.base/java.nio.file.Files.deleteIfExists(Files.java:1180)
at org.apache.jackrabbit.oak.segment.file.tar.SegmentTarManager.delete(SegmentTarManager.java:141) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at org.apache.jackrabbit.oak.segment.file.FileReaper.reap(FileReaper.java:76) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at org.apache.jackrabbit.oak.segment.file.SafeRunnable.run(SafeRunnable.java:67) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
17.01.2023 14:45:34.181 *WARN* [TarMK filer reaper [C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore]] org.apache.jackrabbit.oak.segment.file.FileReaper Unable to remove file data00172a.tar
17.01.2023 14:45:39.185 *ERROR* [TarMK filer reaper [C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore]] org.apache.jackrabbit.oak.segment.file.tar.SegmentTarManager Can't remove archive data00172a.tar
java.nio.file.FileSystemException: C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore\data00172a.tar: The process cannot access the file because it is being used by another process.

at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:274)
at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
at java.base/java.nio.file.Files.deleteIfExists(Files.java:1180)
at org.apache.jackrabbit.oak.segment.file.tar.SegmentTarManager.delete(SegmentTarManager.java:141) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at org.apache.jackrabbit.oak.segment.file.FileReaper.reap(FileReaper.java:76) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at org.apache.jackrabbit.oak.segment.file.SafeRunnable.run(SafeRunnable.java:67) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
17.01.2023 14:45:39.185 *WARN* [TarMK filer reaper [C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore]] org.apache.jackrabbit.oak.segment.file.FileReaper Unable to remove file data00172a.tar
17.01.2023 14:45:44.196 *ERROR* [TarMK filer reaper [C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore]] org.apache.jackrabbit.oak.segment.file.tar.SegmentTarManager Can't remove archive data00172a.tar
java.nio.file.FileSystemException: C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore\data00172a.tar: The process cannot access the file because it is being used by another process.

at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:274)
at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
at java.base/java.nio.file.Files.deleteIfExists(Files.java:1180)
at org.apache.jackrabbit.oak.segment.file.tar.SegmentTarManager.delete(SegmentTarManager.java:141) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at org.apache.jackrabbit.oak.segment.file.FileReaper.reap(FileReaper.java:76) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at org.apache.jackrabbit.oak.segment.file.SafeRunnable.run(SafeRunnable.java:67) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
17.01.2023 14:45:44.196 *WARN* [TarMK filer reaper [C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore]] org.apache.jackrabbit.oak.segment.file.FileReaper Unable to remove file data00172a.tar
17.01.2023 14:45:49.198 *ERROR* [TarMK filer reaper [C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore]] org.apache.jackrabbit.oak.segment.file.tar.SegmentTarManager Can't remove archive data00172a.tar
java.nio.file.FileSystemException: C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore\data00172a.tar: The process cannot access the file because it is being used by another process.

at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:274)
at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
at java.base/java.nio.file.Files.deleteIfExists(Files.java:1180)
at org.apache.jackrabbit.oak.segment.file.tar.SegmentTarManager.delete(SegmentTarManager.java:141) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at org.apache.jackrabbit.oak.segment.file.FileReaper.reap(FileReaper.java:76) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at org.apache.jackrabbit.oak.segment.file.SafeRunnable.run(SafeRunnable.java:67) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
17.01.2023 14:45:49.198 *WARN* [TarMK filer reaper [C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore]] org.apache.jackrabbit.oak.segment.file.FileReaper Unable to remove file data00172a.tar
17.01.2023 14:45:49.416 *WARN* [Apache Sling Resource Resolver Finalizer Thread] org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl Closed unclosed ResourceResolver. The creation stacktrace is available on info log level.
17.01.2023 14:45:49.417 *INFO* [Apache Sling Resource Resolver Finalizer Thread] org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl Unclosed ResourceResolver was created here:
java.lang.Exception: Opening Stacktrace
at org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl$ResolverReference.<init>(CommonResourceResolverFactoryImpl.java:538) [org.apache.sling.resourceresolver:1.7.2]
at org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl.register(CommonResourceResolverFactoryImpl.java:228) [org.apache.sling.resourceresolver:1.7.2]
at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.<init>(ResourceResolverImpl.java:105) [org.apache.sling.resourceresolver:1.7.2]
at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.<init>(ResourceResolverImpl.java:98) [org.apache.sling.resourceresolver:1.7.2]
at org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl.getResourceResolverInternal(CommonResourceResolverFactoryImpl.java:273) [org.apache.sling.resourceresolver:1.7.2]
at org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl.getResourceResolver(CommonResourceResolverFactoryImpl.java:183) [org.apache.sling.resourceresolver:1.7.2]
at org.apache.sling.resourceresolver.impl.ResourceResolverFactoryImpl.getResourceResolver(ResourceResolverFactoryImpl.java:98) [org.apache.sling.resourceresolver:1.7.2]
at com.day.cq.wcm.workflow.impl.WcmWorkflowServiceImpl.autoSubmitPageAfterModification(WcmWorkflowServiceImpl.java:443) [com.day.cq.wcm.cq-wcm-workflow:5.11.24]
at com.day.cq.wcm.workflow.impl.WcmWorkflowServiceImpl.process(WcmWorkflowServiceImpl.java:243) [com.day.cq.wcm.cq-wcm-workflow:5.11.24]
at com.day.cq.wcm.workflow.impl.WcmWorkflowServiceImpl$1.run(WcmWorkflowServiceImpl.java:191) [com.day.cq.wcm.cq-wcm-workflow:5.11.24]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
17.01.2023 14:45:54.219 *ERROR* [TarMK filer reaper [C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore]] org.apache.jackrabbit.oak.segment.file.tar.SegmentTarManager Can't remove archive data00172a.tar
java.nio.file.FileSystemException: C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore\data00172a.tar: The process cannot access the file because it is being used by another process.

at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:274)
at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
at java.base/java.nio.file.Files.deleteIfExists(Files.java:1180)
at org.apache.jackrabbit.oak.segment.file.tar.SegmentTarManager.delete(SegmentTarManager.java:141) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at org.apache.jackrabbit.oak.segment.file.FileReaper.reap(FileReaper.java:76) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at org.apache.jackrabbit.oak.segment.file.SafeRunnable.run(SafeRunnable.java:67) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
17.01.2023 14:45:54.219 *WARN* [TarMK filer reaper [C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore]] org.apache.jackrabbit.oak.segment.file.FileReaper Unable to remove file data00172a.tar

 

 

any suggestion for resolve it. 

 

Thanks,
Prasad 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
<nastedmultifield
	jcr:primaryType="nt:unstructured"
	jcr:title="Nasted Multifield"
	sling:resourceType="granite/ui/components/coral/foundation/container">
	<items jcr:primaryType="nt:unstructured">
		<well
			jcr:primaryType="nt:unstructured"
			sling:resourceType="granite/ui/components/coral/foundation/well"
			fieldLabel="Details">
			<items jcr:primaryType="nt:unstructured">
				<detailswithnastedmultifield
					jcr:primaryType="nt:unstructured"
					sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
					composite="{Boolean}true"
					fieldLabel="Details"
					required="{Boolean}false">
					<field
						jcr:primaryType="nt:unstructured"
						sling:resourceType="granite/ui/components/coral/foundation/container"
						name="./detailswithnastedmultifield">
						<items jcr:primaryType="nt:unstructured">
							<prop1
								jcr:primaryType="nt:unstructured"
								sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
								fieldLabel="Prop1"
								name="./prop1"/>
							<prop2
								jcr:primaryType="nt:unstructured"
								sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
								fieldLabel="Prop2"
								name="./prop2"/>
							<prop3Nested
								jcr:primaryType="nt:unstructured"
								sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
								composite="{Boolean}true"
								fieldLabel="prop3Nested">
								<field
									jcr:primaryType="nt:unstructured"
									sling:resourceType="granite/ui/components/coral/foundation/container"
									name="./innerProps">
									<items jcr:primaryType="nt:unstructured">
										<innerProp1
											jcr:primaryType="nt:unstructured"
											sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
											fieldLabel="innerProp1"
											name="./innerProp1"/>
										<innerProp2
											jcr:primaryType="nt:unstructured"
											sling:resourceType="granite/ui/components/coral/foundation/form/numberfield"
											fieldLabel="innerProp2"
											name="./innerProp2"
											step="1"
											value="1"/>
									</items>
								</field>
							</prop3Nested>
						</items>
					</field>
				</detailswithnastedmultifield>
			</items>
		</well>
	</items>
</nastedmultifield>

Is your XML structure similar to this, also check if the name fields are unique.

View solution in original post

5 Replies

Avatar

Community Advisor

@user04148 The error seems to be related to a file lock on a file on the segment store and access related, however, your issue might be related to the node structure of the multifield. Could you also share the node structure for your multifield?

Avatar

Level 1

Thanks for response Manu,

delete all multi field items save working fine, but when try to delete one multi field item facing issue.

 here is the node structure.node structure.png

Avatar

Correct answer by
Community Advisor
<nastedmultifield
	jcr:primaryType="nt:unstructured"
	jcr:title="Nasted Multifield"
	sling:resourceType="granite/ui/components/coral/foundation/container">
	<items jcr:primaryType="nt:unstructured">
		<well
			jcr:primaryType="nt:unstructured"
			sling:resourceType="granite/ui/components/coral/foundation/well"
			fieldLabel="Details">
			<items jcr:primaryType="nt:unstructured">
				<detailswithnastedmultifield
					jcr:primaryType="nt:unstructured"
					sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
					composite="{Boolean}true"
					fieldLabel="Details"
					required="{Boolean}false">
					<field
						jcr:primaryType="nt:unstructured"
						sling:resourceType="granite/ui/components/coral/foundation/container"
						name="./detailswithnastedmultifield">
						<items jcr:primaryType="nt:unstructured">
							<prop1
								jcr:primaryType="nt:unstructured"
								sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
								fieldLabel="Prop1"
								name="./prop1"/>
							<prop2
								jcr:primaryType="nt:unstructured"
								sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
								fieldLabel="Prop2"
								name="./prop2"/>
							<prop3Nested
								jcr:primaryType="nt:unstructured"
								sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
								composite="{Boolean}true"
								fieldLabel="prop3Nested">
								<field
									jcr:primaryType="nt:unstructured"
									sling:resourceType="granite/ui/components/coral/foundation/container"
									name="./innerProps">
									<items jcr:primaryType="nt:unstructured">
										<innerProp1
											jcr:primaryType="nt:unstructured"
											sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
											fieldLabel="innerProp1"
											name="./innerProp1"/>
										<innerProp2
											jcr:primaryType="nt:unstructured"
											sling:resourceType="granite/ui/components/coral/foundation/form/numberfield"
											fieldLabel="innerProp2"
											name="./innerProp2"
											step="1"
											value="1"/>
									</items>
								</field>
							</prop3Nested>
						</items>
					</field>
				</detailswithnastedmultifield>
			</items>
		</well>
	</items>
</nastedmultifield>

Is your XML structure similar to this, also check if the name fields are unique.

Avatar

Level 1

Hi Manu,

yes, Nested multifiled is similar to above.

our scenario similar to above. i have one dropdown list to enable to Tab section (Ex: site_1, site_2, site_3 )to author nested multifield section for site nav links. PFB dialog structure.

 

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:granite="http://www.adobe.com/jcr/granite/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:primaryType="nt:unstructured"
jcr:title="Nav Component"
sling:resourceType="cq/gui/components/authoring/dialog"
extraClientlibs="[showhidetab.clientlibs,navigationmenuv1.hideshow]">
<content
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/container">
<items jcr:primaryType="nt:unstructured">
<layout
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/layouts/tabs">
<items jcr:primaryType="nt:unstructured">
<basic
jcr:primaryType="nt:unstructured"
jcr:title="Basic"
sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns">
<items jcr:primaryType="nt:unstructured">
<column
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/container">
<items jcr:primaryType="nt:unstructured">
<type
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/include"
path="/apps/softwareag/components/commons/dialog/website/selectwebsite"/>
</items>
</column>
</items>
</basic>
<additionallinks
jcr:primaryType="nt:unstructured"
jcr:title="Additional Links"
sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns">
<items jcr:primaryType="nt:unstructured">
<column
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/container">
<items jcr:primaryType="nt:unstructured">
<links
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
composite="{Boolean}true"
fieldLabel="Links">
<field
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container"
name="./additionalLinks">
<items jcr:primaryType="nt:unstructured">
<column
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<linklabel
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldDescription="Link Label"
fieldLabel="Link Label"
name="./linkLabel"/>
<linkdestination
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/pathbrowser"
fieldDescription="Link Destination"
fieldLabel="Link Destination"
name="./linkDestination"
rootPath="/content"/>
</items>
</column>
</items>
</field>
</links>
</items>
</column>
</items>
</additionallinks>
<site_1
jcr:primaryType="nt:unstructured"
jcr:title="site_1 Site Navigation"
sling:resourceType="granite/ui/components/coral/foundation/container">
<layoutConfig
jcr:primaryType="nt:unstructured"
class="hide image-video-tab-showhide-target site_1"/>
<layout
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"/>
<items jcr:primaryType="nt:unstructured">
<site_1
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
composite="{Boolean}true"
fieldLabel="Navigation Menu">
<field
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container"
name="./site_1">
<items jcr:primaryType="nt:unstructured">
<column
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<levelzeroTitle
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldDescription="Level Zero Title"
fieldLabel="Level Zero Title"
name="./levelzerotitle"/>
<levelone
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
composite="{Boolean}true"
fieldLabel="Add Level one Navigation">
<field
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container"
name="./levelone">
<items jcr:primaryType="nt:unstructured">
<column
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<levelonetitle
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldDescription=" Level 1 Title"
fieldLabel="Level 1 Title"
name="./levelonetitle"/>
<levelonedestination
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/pathbrowser"
fieldDescription=" Level 1 Destination"
fieldLabel="Level 1 Destination"
name="./levelonedestination"
rootPath="/content"/>
<primarypromodisplay
granite:class="cq-dialog-checkbox-showhide"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/checkbox"
checked="{Boolean}false"
fieldDescription="Add Primary Promo "
name="./enableprimarypromo"
text="Add Primary Promo "
uncheckedValue="{Boolean}false"
value="{Boolean}true">
<granite:data
jcr:primaryType="nt:unstructured"
cq-dialog-checkbox-showhide-target=".primarypromodisplay"/>
</primarypromodisplay>
<primarypromosection
granite:class="primarypromodisplay"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<primarypromoheading
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldDescription="Primary Promo Heading"
fieldLabel="Primary Promo Heading"
name="./primarypromoheading"/>
<primarypromocaption
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldDescription="Primary Promo Caption"
fieldLabel="Primary Promo Caption"
name="./primarypromocaption"/>
<primarypromodescription
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldDescription="Primary Promo Description"
fieldLabel="Primary Promo Description"
name="./primarypromodescription"/>
<primarypromoimage
jcr:primaryType="nt:unstructured"
sling:resourceType="cq/gui/components/authoring/dialog/fileupload"
autoStart="{Boolean}false"
class="cq-droptarget"
fileNameParameter="./primaryPromoName"
fileReferenceParameter="./primaryPromoReference"
mimeTypes="[image/gif,image/jpeg,image/png,image/tiff,image/svg+xml]"
multiple="{Boolean}false"
name="./primaryPromoImage"
title="Upload Image Asset"
useHTML5="{Boolean}true"/>
<primarypromolinklabel
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldDescription="Primary Promo Link Label"
fieldLabel="Primary Promo Link Label"
name="./primarypromolinklabel"/>
<primarypromolinkdestination
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/pathbrowser"
fieldDescription="Primary Logo Link Destination"
fieldLabel="Primary Logo Link Destination"
name="./primarypromolinkdestination"
rootPath="/content"/>
</items>
<granite:data
granite:class="primarypromodisplay"
jcr:primaryType="nt:unstructured"/>
</primarypromosection>
<secondarypromodisplay
granite:class="cq-dialog-checkbox-showhide"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/checkbox"
checked="{Boolean}false"
fieldDescription="Add Secondary Promo "
name="./enablesecondarypromo"
text="Add Secondary Promo "
uncheckedValue="{Boolean}false"
value="{Boolean}true">
<granite:data
jcr:primaryType="nt:unstructured"
cq-dialog-checkbox-showhide-target=".secondarypromodisplay"/>
</secondarypromodisplay>
<secondarypromosection
granite:class="secondarypromodisplay"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<secondarypromoheading
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldDescription="Secondary Promo Heading"
fieldLabel="Secondary Promo Heading"
name="./secondarypromoheading"/>
<secondarypromocaption
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldDescription="Secondary Promo Caption"
fieldLabel="Secondary Promo Caption"
name="./secondarypromocaption"/>
<secondarypromodescription
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldDescription="Secondary Promo Description"
fieldLabel="Secondary Promo Description"
name="./secondarypromodescription"/>
<secondarypromoimage
granite:id="dmFileReference"
jcr:primaryType="nt:unstructured"
sling:resourceType="cq/gui/components/authoring/dialog/fileupload"
allowUpload="{Boolean}false"
autoStart="{Boolean}false"
class="cq-droptarget"
fieldDescription="Secondary Promo Level 1"
fieldLabel="Secondary Promo Image"
fileNameParameter="./secondaryPromoName"
fileReferenceParameter="./secondaryPromoReference"
mimeTypes="[image/.*]"
multiple="{Boolean}false"
name="./secondaryPromoImage"
title="Secondary Promo Image"
useHTML5="{Boolean}true"/>
<secondarypromolinklabel
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldDescription="Secondary Promo Link Label"
fieldLabel="Secondary Promo Link Label"
name="./secondarypromolinklabel"/>
<secondarypromolinkdestination
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/pathbrowser"
fieldDescription="Secondary Logo Link Destination"
fieldLabel="Secondary Logo Link Destination"
name="./secondarypromolinkdestination"
rootPath="/content"/>
</items>
<granite:data
granite:class="secondarypromodisplay"
jcr:primaryType="nt:unstructured"/>
</secondarypromosection>
<leveltwo
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
composite="{Boolean}true"
fieldLabel="Level 2"
max-item="2">
<field
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container"
name="./leveltwo">
<items jcr:primaryType="nt:unstructured">
<column
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<leveltwotitle
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldDescription=" Level 2 Title"
fieldLabel="Level 2 Title"
name="./leveltwotitle"/>
<leveltwodestination
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/pathbrowser"
fieldDescription=" Level 2 Destination"
fieldLabel="Level 2 Destination"
name="./leveltwodestination"
rootPath="/content"/>
</items>
</column>
</items>
</field>
</leveltwo>
</items>
</column>
</items>
</field>
</levelone>
<overviewlinklabel
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldDescription="Overview Link Label"
fieldLabel="Overview Link Label"
name="./overviewlinklabel"/>
<overviewlinkdestination
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/pathbrowser"
fieldDescription="Overview Link Destination"
fieldLabel="Overview Link Destination"
name="./overviewlinkdestination"
rootPath="/content"/>
</items>
</column>
</items>
</field>
</site_1>
</items>
</site_1>
</items>
</layout>
</items>
</content>
</jcr:root>

 

Thanks,

Prasad

Avatar

Level 1

Tab hide and show functionality using based on drop down(site name) selection.