Skip to content

Commit 27f4265

Browse files
authored
Adding xfa template (#1534)
1 parent 9b1eb2a commit 27f4265

File tree

8 files changed

+150
-2
lines changed

8 files changed

+150
-2
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
3+
jcr:description="Page Component for the Forms Components Library"
4+
jcr:primaryType="cq:Component"
5+
jcr:title="Page"
6+
sling:resourceSuperType="core/fd/components/xfa-page/v1/xfa-page"
7+
componentGroup=".hidden"/>

examples/ui.content/src/main/content/META-INF/vault/filter.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<filter root="/conf/core-components-examples/settings/wcm/policies/forms-components-examples" mode="update"/>
1111
<filter root="/conf/core-components-examples/settings/wcm/templates/af-blank-v2" mode="update"/>
1212
<filter root="/conf/core-components-examples/settings/wcm/templates/afv2frag-template" mode="update"/>
13+
<filter root="/conf/core-components-examples/settings/wcm/templates/af-xfa-blank-v2" mode="update"/>
1314
<filter root="/conf/core-components-examples/settings/wcm/templates/content-page/policies/jcr:content/root/responsivegrid/core-components-examples/components/form/container" mode="update"/>
1415
<filter root="/conf/core-components-examples/settings/wcm/templates/content-page/policies/jcr:content/root/responsivegrid/forms-components-examples" mode="update"/>
1516
<filter root="/content/core-components-examples/library/forms-and-communications-portal" mode="update"/>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
3+
jcr:primaryType="cq:Template">
4+
<jcr:content
5+
cq:lastModified="{Date}2021-08-31T15:15:47.862+05:30"
6+
cq:lastModifiedBy="admin"
7+
cq:templateType="/conf/core-components-examples/settings/wcm/template-types/af-page-v2"
8+
jcr:description="XFA based AF Blank Template for Core component examples"
9+
jcr:primaryType="cq:PageContent"
10+
jcr:title="XFA AF Blank"
11+
status="enabled"/>
12+
</jcr:root>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:fd="http://www.adobe.com/aemfd/fd/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"
3+
jcr:primaryType="cq:Page">
4+
<jcr:content
5+
cq:deviceGroups="[/etc/mobile/groups/responsive]"
6+
jcr:primaryType="cq:PageContent"
7+
sling:resourceType="forms-components-examples/components/xfa-page"
8+
cq:template="/conf/core-components-examples/settings/wcm/templates/af-blank-v2"
9+
guideComponentType="fd/af/templates">
10+
<guideContainer
11+
fd:version="2.1"
12+
jcr:primaryType="nt:unstructured"
13+
fieldType="form"
14+
sling:resourceType="forms-components-examples/components/form/container">
15+
</guideContainer>
16+
</jcr:content>
17+
</jcr:root>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0"
3+
xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
4+
jcr:primaryType="cq:Page">
5+
<jcr:content
6+
cq:policy="forms-components-examples/components/page/default"
7+
jcr:primaryType="nt:unstructured"
8+
sling:resourceType="wcm/core/components/policies/mappings">
9+
<container1
10+
jcr:primaryType="nt:unstructured"
11+
jcr:title="Header"
12+
sling:resourceType="wcm/core/components/policies/mapping"
13+
cq:policy="wcm/foundation/components/responsivegrid/page-header"
14+
layout="responsiveGrid"
15+
editable="{Boolean}true" />
16+
<guideContainer
17+
cq:policy="forms-components-examples/components/form/container/default"
18+
jcr:primaryType="nt:unstructured"
19+
sling:resourceType="wcm/core/components/policies/mapping">
20+
<forms-components-examples
21+
jcr:primaryType="nt:unstructured">
22+
<components
23+
jcr:primaryType="nt:unstructured">
24+
<form
25+
jcr:primaryType="nt:unstructured">
26+
<numberinput
27+
cq:policy="forms-components-examples/components/form/numberinput/default"
28+
jcr:primaryType="nt:unstructured"
29+
sling:resourceType="wcm/core/components/policies/mapping">
30+
</numberinput>
31+
<datepicker
32+
cq:policy="forms-components-examples/components/form/datepicker/default"
33+
jcr:primaryType="nt:unstructured"
34+
sling:resourceType="wcm/core/components/policies/mapping">
35+
</datepicker>
36+
<telephoneinput
37+
cq:policy="forms-components-examples/components/form/telephoneinput/default"
38+
jcr:primaryType="nt:unstructured"
39+
sling:resourceType="wcm/core/components/policies/mapping">
40+
</telephoneinput>
41+
<panelcontainer
42+
cq:policy="forms-components-examples/components/form/panelcontainer/default"
43+
jcr:primaryType="nt:unstructured"
44+
sling:resourceType="wcm/core/components/policies/mapping">
45+
</panelcontainer>
46+
<switch
47+
cq:policy="forms-components-examples/components/form/switch/default"
48+
jcr:primaryType="nt:unstructured"
49+
sling:resourceType="wcm/core/components/policies/mapping">
50+
</switch>
51+
</form>
52+
</components>
53+
</forms-components-examples>
54+
55+
</guideContainer>
56+
<container2
57+
jcr:primaryType="nt:unstructured"
58+
jcr:title="Footer"
59+
sling:resourceType="wcm/core/components/policies/mapping"
60+
cq:policy="wcm/foundation/components/responsivegrid/page-footer"
61+
layout="responsiveGrid"
62+
editable="{Boolean}true" />
63+
</jcr:content>
64+
</jcr:root>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:fd="http://www.adobe.com/aemfd/fd/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"
3+
jcr:primaryType="cq:Page">
4+
<jcr:content
5+
cq:deviceGroups="[/etc/mobile/groups/responsive]"
6+
jcr:primaryType="cq:PageContent"
7+
cq:template="/conf/core-components-examples/settings/wcm/templates/af-blank-v2"
8+
sling:resourceType="forms-components-examples/components/xfa-page"
9+
guideComponentType="fd/af/templates">
10+
<container1
11+
jcr:primaryType="nt:unstructured"
12+
jcr:title="Header"
13+
sling:resourceType="core/wcm/components/container/v1/container"
14+
cq:policy="wcm/foundation/components/responsivegrid/page-header"
15+
layout="responsiveGrid"
16+
editable="{Boolean}true" />
17+
<guideContainer
18+
jcr:primaryType="nt:unstructured"
19+
editable="{Boolean}true"
20+
fieldType="form"
21+
fd:version="2.1"
22+
sling:resourceType="forms-components-examples/components/form/container">
23+
</guideContainer>
24+
<container2
25+
jcr:primaryType="nt:unstructured"
26+
jcr:title="Footer"
27+
sling:resourceType="core/wcm/components/container/v1/container"
28+
layout="responsiveGrid"
29+
editable="{Boolean}true" />
30+
<cq:responsive jcr:primaryType="nt:unstructured">
31+
<breakpoints jcr:primaryType="nt:unstructured">
32+
<smallScreen
33+
jcr:primaryType="nt:unstructured"
34+
title="Smaller Screen"
35+
width="{Decimal}479"/>
36+
<phone
37+
jcr:primaryType="nt:unstructured"
38+
title="Phone"
39+
width="{Decimal}767"/>
40+
<tablet
41+
jcr:primaryType="nt:unstructured"
42+
title="Tablet"
43+
width="{Decimal}991"/>
44+
</breakpoints>
45+
</cq:responsive>
46+
</jcr:content>
47+
</jcr:root>
7.43 KB
Loading

it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/xfatest/.content.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
cq:deviceGroups="[/etc/mobile/groups/responsive]"
66
cq:lastModified="{Date}2025-02-28T12:14:58.923+05:30"
77
cq:lastModifiedBy="admin"
8-
cq:template="/conf/core-components-examples/settings/wcm/templates/af-blank-v2"
8+
cq:template="/conf/core-components-examples/settings/wcm/templates/af-xfa-blank-v2"
99
fd:ignoreTranslationInvalidation="{Boolean}true"
1010
jcr:language="en"
1111
jcr:primaryType="cq:PageContent"
1212
jcr:title="xfatest"
1313
sling:configRef="/conf/forms/xfatest/"
14-
sling:resourceType="core/fd/components/xfa-page/v1/xfa-page">
14+
sling:resourceType="forms-components-examples/components/xfa-page">
1515
<guideContainer
1616
fd:version="2.1"
1717
jcr:primaryType="nt:unstructured"

0 commit comments

Comments
 (0)