Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Is there any radio sling:resourceType for the new Granite

Avatar

Avatar
Validate 10
Level 4
Var
Level 4

Likes

44 likes

Total Posts

113 posts

Correct Reply

5 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 25
View profile

Avatar
Validate 10
Level 4
Var
Level 4

Likes

44 likes

Total Posts

113 posts

Correct Reply

5 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 25
View profile
Var
Level 4

29-11-2018

I see in the legacy there is a Radio component available, but where as its missing in the new version of Granite, have only Radiogroup. ?

1633443_pastedImage_1.png

Legacy : RadioGroup — Granite UI 1.0 documentation

1633444_pastedImage_3.png

New Granite : Granite UI Foundation Server-side — Granite UI 1.0 documentation

Can any one suggest where is the radio component properties will be belonging to when am upgrading the components dialog to AEM 6.4 .?

i.e

--> " granite/ui/components/foundation/form/radiogroup " to "granite/ui/components/coral/foundation/form/radiogroup" and

--> "granite/ui/components/foundation/form/radio" to "There is no component available"

Also what will happens to the properties like  below from old radiogroup will be belongs to when i upgrade.

  •           cq-msm-lockable="radiostype"
  •           renderReadOnly="{Boolean}true"
  •           checked = "{Boolean}true"

Old dialog

<myoldradiogroup

     jcr:primaryType="nt:unstructured"

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

     fieldLabel="Select myoldradiogroup Type"

     name="./myoldradiogroup"

     text="Select myoldradiogroup Type"

     value="manage-radios">

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

     <option1

          jcr:primaryType="nt:unstructured"

          sling:resourceType="granite/ui/components/foundation/form/radio"

          cq-msm-lockable="radiostype"

          renderReadOnly="{Boolean}true"

          text="Manage radios"

          checked = "{Boolean}true"

          value="manage-radios"/>

     <option2

          jcr:primaryType="nt:unstructured"

          sling:resourceType="granite/ui/components/foundation/form/radio"

          cq-msm-lockable="radiostype"

          renderReadOnly="{Boolean}true"

          text="My Signup"

          value="my-signup"/>

     <option3

          jcr:primaryType="nt:unstructured"

          sling:resourceType="granite/ui/components/foundation/form/radio"

          cq-msm-lockable="radiostype"

          renderReadOnly="{Boolean}true"

          text="My Settings"

          value="my settings"/>                                  

  </items>

</myoldradiogroup>

New dialog

<mynewradiogroup

     jcr:primaryType="nt:unstructured"

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

     fieldLabel="Select myoldradiogroup Type"

     name="./myoldradiogroup"

     text="Select myoldradiogroup Type"

     value="manage-radios">

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

     <option1

     />

     <option2

     />

     <option3

     />

    </items>

</mynewradiogroup>

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

29-11-2018

Arun is correct - see the reference docs here -- RadioGroup — Granite UI 1.0 documentation

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,358 likes

Total Posts

3,228 posts

Correct Reply

918 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,358 likes

Total Posts

3,228 posts

Correct Reply

918 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

29-11-2018

Hi,

For Granite you don't need to specify resource type radio unlike Coral2. you can create options without using sling:resourceType but below properties are required.

RadioGroup — Granite UI 1.0 documentation

And to add cq-msm-lockable="radiostype"you need to add granite:data node as child node of option and need specify this property.

value string

The value of the field.

disabled boolean

Indicates if the field is in disabled state.

checked boolean

Indicates if the radio is checked when the form values don’t have a match by name property.

e.g. Given a radiogroup with name = name1

Form Values has named1?Its value match?checkedChecked?
truetruen/atrue
truefalsen/afalse
falsen/atruetrue
falsen/afalsefalse
text string
i18n

The text of the radio.