4 Replies Latest reply on Dec 30, 2012 11:24 PM by Veena_07

    Value not loading when using checkboxgroup.

    Veena_07 Level 3

      Hi

       

            I am using a checkboxgroup as xtype. I have a cq:widget node whose xtype is checkboxgroup. Inside the node i have one items node. and inside items i have my individual checkboxes. In my dialog whatever i am selecting and submitting is goin to my CRX. But when i refresh and load my component again , all my checkboxes are unchecked. Can somebody please suggest me a solution for this. Its very urgent

       

       

      Thanks in advance

       

      Veena

        • 1. Re: Value not loading when using checkboxgroup.
          EricF_Axis41

          I'm running into this same issue. Checkboxes work fine but when they are in a checkboxgroup they don't work. Here is what I am using:

           

          <region
              jcr:primaryType="cq:Widget"
              fieldLabel="Region"
              fieldDescription="Check all that apply"
              columns="{Long}10"
              xtype="checkboxgroup">
              <items jcr:primaryType="cq:WidgetCollection">
                  <isUS
                      jcr:primaryType="cq:Widget"
                      boxLabel="US"
                      name="./jcr:content/isUS"
                      inputValue="on"
                      xtype="checkbox"
                      checked="checked" />
                  <isEurope
                      jcr:primaryType="cq:Widget"
                      boxLabel="Europe"
                      inputValue="on"
                      name="./jcr:content/isEurope"
                      xtype="checkbox" />
              </items>
          </region>
          <isExclusive
              jcr:primaryType="cq:Widget"
              fieldLabel="Is Exclusive?"
              boxLabel="Yes"
              inputValue="on"
              name="./jcr:content/isExclusive"
              xtype="checkbox" />
          

          Were you able to find a fix?

          • 2. Re: Value not loading when using checkboxgroup.
            Veena_07 Level 3

            Hi

             

                 No I was not... So we had to go back to selection(xtype) and checkbox(type)

            • 3. Re: Value not loading when using checkboxgroup.
              hkr123

              Please can you let me know how to display values of selected checkboxes present in a checkboxgroup onto a jsp.

              • 4. Re: Value not loading when using checkboxgroup.
                Veena_07 Level 3

                Hi hkr,

                 

                      For that you have to pick those selected values from ur CRX and put in an HTML tag.... Then u can see all the values.... or u can use

                 

                <c:text> tag also

                 

                Thanks

                 

                Veena