Expand my Community achievements bar.

SOLVED

few values in cq:dialog not working

Avatar

Level 3

few properties like checked(checkbox, radiogroup) , margin (container) , defaultValue (Numberfield) are not working 
below is my cq:dialog

<?xml version="1.0" encoding="UTF-8"?>

<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" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"

jcr:primaryType="nt:unstructured"

jcr:title="Employee Details"

sling:resourceType="cq/gui/components/authoring/dialog">

<content

jcr:primaryType="nt:unstructured"

sling:resourceType="granite/ui/components/coral/foundation/container">

<items jcr:primaryType="nt:unstructured">

<tabs

jcr:primaryType="nt:unstructured"

sling:resourceType="granite/ui/components/coral/foundation/tabs">

<items jcr:primaryType="nt:unstructured">

<tab1

jcr:primaryType="nt:unstructured"

jcr:title="tab1"

sling:resourceType="granite/ui/components/coral/foundation/container">

<items jcr:primaryType="nt:unstructured">

<columns

jcr:primaryType="nt:unstructured"

sling:resourceType="granite/ui/components/coral/foundation/fixedcolumns">

<items jcr:primaryType="nt:unstructured">

<column

jcr:primaryType="nt:unstructured"

sling:resourceType="granite/ui/components/coral/foundation/container">

<items jcr:primaryType="nt:unstructured">

<name

jcr:primaryType="nt:unstructured"

sling:resourceType="granite/ui/components/coral/foundation/form/textfield"

fieldLabel="Enter employee name"

name="./name"/>

<gender

jcr:primaryType="nt:unstructured"

sling:resourceType="granite/ui/components/coral/foundation/form/radiogroup"

fieldLabel="Gender"

name="./gender"

vertical="{Boolean}false">

<items jcr:primaryType="nt:unstructured">

<notmention

jcr:primaryType="nt:unstructured"

checked="{Boolean}true"

text="Not Mention"

value="notmention"/>

<male

jcr:primaryType="nt:unstructured"

text="Male"

value="male"/>

<female

jcr:primaryType="nt:unstructured"

text="Female"

value="female"/>

</items>

</gender>

</items>

</column>

</items>

</columns>

</items>

</tab1>

<tab2

jcr:primaryType="nt:unstructured"

jcr:title="other info"

sling:resourceType="granite/ui/components/coral/foundation/container">

<items jcr:primaryType="nt:unstructured">

<columns

jcr:primaryType="nt:unstructured"

sling:resourceType="granite/ui/components/coral/foundation/fixedcolumns">

<items jcr:primaryType="nt:unstructured">

<column

jcr:primaryType="nt:unstructured"

sling:resourceType="granite/ui/components/coral/foundation/container">

<items jcr:primaryType="nt:unstructured">

<probationperiod

jcr:primaryType="nt:unstructured"

sling:resourceType="granite/ui/components/coral/foundation/form/checkbox"

name="./isProbation"

text="Is probation completed"/>

<yearsofexp

jcr:primaryType="nt:unstructured"

sling:resourceType="granite/ui/components/coral/foundation/form/numberfield"

defaultValue="2"

fieldLabel="No of years of experience"

name="yearsofexp"/>

</items>

</column>

</items>

</columns>

</items>

</tab2>

</items>

</tabs>

</items>

</content>

</jcr:root>

 

ashwinka_0-1730224854655.png

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

I am not sure exactly what you are trying to accomplish, but you could explore the use of cq:template, which will give you an initial value. http://www.sgaemsolutions.com/2018/02/cqtemplate-and-cqtemplatepath.html 

 

Hope this helps!



Esteban Bustamante

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hi,

I am not sure exactly what you are trying to accomplish, but you could explore the use of cq:template, which will give you an initial value. http://www.sgaemsolutions.com/2018/02/cqtemplate-and-cqtemplatepath.html 

 

Hope this helps!



Esteban Bustamante

Avatar

Level 4

Hi @ashwinka 

 

Can you please elaborate what exactly is not working ?

 

Thanks

Avatar

Administrator

@ashwinka Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni