본문 바로가기
└ AEM

[AEM6.0] Dialog 라디오버튼(radio button) 생성

by 짜장이누나 2017. 12. 26.

 

 

 

 

 

 

아이고 입사한지 2년이 되서야 AEM관련 포스팅을 시작하다니...

틈틈히 이 전에 노트에 정리해둔 것도 올려야겠다!

 

 

 

 

라디오버튼(radio button) 속성 -  xml 파일 소스

 

<radioButton

    .

    .

    .

    type = "radiogroup"

    xtype = "selection"

    <options> 

        <opt0 jcr:primaryType="nt:unstructured" text="Dialog에 표시될 text"
                    value="property에 저장될 값" /> 

    <opt1

    .... />

        <opt2

  .... />

    </options> // radio 항목

</radioButton>

 

 

 

 

 

 

 

▶ 예제 소스

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<radioButton
    jcr:primaryType="cq:Widget"
    fieldLabel="Radio Button"
    name="./radio"
    type="radiogroup"
    xtype="selection">
    <options jcr:primaryType="cq:WidgetCollection">
        <pos0 jcr:primaryType="nt:unstructured" text="radio 1"
            value="rd1" />
        <pos1 jcr:primaryType="nt:unstructured" text="radio 2"
            value="rd2" />
        <pos2 jcr:primaryType="nt:unstructured" text="radio 3"
            value="rd3" />
    </options>
</radioButton>
cs

 

 

 

 

 

 

 

Dialog 사진

 

 

 

 

 

 

 

CRX/DE 해당 노드에 저장된 상태

 

 

 

 

 

 

 

요렇게 노드의 프로퍼티 확인까지 하면 끝!