title: disable/enable text boxes by using wicket
body: <p>my requirement is based on group of checkbox checks shipping address fields will be disable or enabled.</p>
  
  <p>make clear my requirement:Wicket id:"nonDigital" having 6 check boxes.if any one of check box is checked then only shipping address section is enabled and then only user can enter value.</p>
  
  <p>Here is my code</p>
  
  <p>My HTML code:</p>
  
  <pre><code> &lt;fieldset class="deliveryFormats"&gt;
            &lt;h2 class="sectionHeading"&gt;Delivery Formats&lt;/h2&gt;
            &lt;span class="required"&gt;* Required Field&lt;/span&gt;
           &lt;br/&gt;
              &lt;div class="leftDiv"&gt;
            &lt;label&gt;Non-digital&lt;/label&gt;
            &lt;div class="radioLabel" wicket:id="nonDigital" &gt;
              &lt;label&gt;
               &lt;input class="checkbox" type="checkbox" name="formatType" /&gt;Beta SP NTSC
              &lt;/label&gt;
             &lt;/div&gt;&lt;!--  /.radioLabel non digital --&gt;
  &lt;/fieldset&gt;
  &lt;fieldset class="shippingAddress" style="border-bottom: 0px;" &gt;
             &lt;h2 class="sectionHeading"&gt;Shipping Address&lt;/h2&gt;
            &lt;table class="form"&gt;
              &lt;tbody&gt;
                &lt;tr&gt;
                  &lt;th class="fieldName" scope="row"&gt;Company&lt;/th&gt;
                  &lt;td class="fieldEdit"&gt;
                    &lt;input class="organization" type="text" wicket:id="address.organization"/&gt;
                  &lt;/td&gt;
                &lt;/tr&gt;
                &lt;tr&gt;
                  &lt;th class="fieldName" scope="row"&gt;Address 1&lt;/th&gt;
                  &lt;td class="fieldEdit"&gt;
                    &lt;input class="long" type="text" wicket:id="address.line1"&gt;
                  &lt;/td&gt;
                &lt;/tr&gt;
                &lt;tr&gt;
                  &lt;th class="fieldName" scope="row"&gt;Address 2&lt;/th&gt;
                  &lt;td class="fieldEdit"&gt;
                    &lt;input class=" long" type="text" wicket:id="address.line2"&gt;
                  &lt;/td&gt;
                &lt;/tr&gt;
                &lt;tr&gt;
                  &lt;th class="fieldName" scope="row"&gt;Address 3&lt;/th&gt;
                  &lt;td class="fieldEdit"&gt;
                    &lt;input class="long" type="text" wicket:id="address.line3"&gt;
                  &lt;/td&gt;
                &lt;/tr&gt;
                &lt;tr&gt;
                  &lt;th class="fieldName" scope="row"&gt;City&lt;/th&gt;
                  &lt;td class="fieldEdit"&gt;
                    &lt;input class="long" type="text" wicket:id="address.city"/&gt;
                  &lt;/td&gt;
                &lt;/tr&gt;
                &lt;tr&gt;
                  &lt;th class="fieldName" scope="row"&gt;State&lt;/th&gt;
                  &lt;td class="fieldEdit"&gt;
                    &lt;input class="long" type="text" wicket:id="address.state"/&gt;
                  &lt;/td&gt;
                &lt;/tr&gt;
                &lt;tr&gt;
                  &lt;th class="fieldName" scope="row"&gt;Postal Code&lt;/th&gt;
                  &lt;td class="fieldEdit"&gt;
                    &lt;input class="postalcode" type="text" wicket:id="address.postalCode"/&gt;
                  &lt;/td&gt;
                &lt;/tr&gt;
              &lt;/tbody&gt;
            &lt;/table&gt;
  </code></pre>
  
  <p>Java code:</p>
  
  <pre><code>List&lt;DeliveryFormat&gt; formatChoices = lookupProcessor.getLookupValues(DeliveryFormat.class);
  List&lt;DeliveryFormat&gt; nonDigital = new ArrayList&lt;DeliveryFormat&gt;();
  List&lt;DeliveryFormat&gt; digital = new ArrayList&lt;DeliveryFormat&gt;();
  
              Iterator&lt;DeliveryFormat&gt; nondigitalIterator = formatChoices.iterator();
              while(nondigitalIterator.hasNext()){
                  DeliveryFormat df = nondigitalIterator.next();
                  if(df.getLabel().equals("Audio Bundle") || df.getLabel().equals("XDCAM file")|| df.getLabel().equals("FTP")){
                      digital.add(df);
                  }
                  else
                  {
                      nonDigital.add(df);
                  }
              }
  
           //Add the check boxes for Delivery format for digital List
  
            // add(new CheckBoxMultipleChoice&lt;DeliveryFormat&gt;("nonDigital", nonDigital, new ChoiceRenderer&lt;DeliveryFormat&gt;("label")));
           ChoiceRenderer&lt;DeliveryFormat&gt; deliveryFormatShippment = new ChoiceRenderer&lt;DeliveryFormat&gt;("label", "id");
              CheckBoxMultipleChoice&lt;DeliveryFormat&gt; nonDigitalDelivery = new CheckBoxMultipleChoice&lt;DeliveryFormat&gt;(
                      "nonDigital", nonDigital, deliveryFormatShippment);
  
              CheckBoxMultipleChoice&lt;DeliveryFormat&gt; digitalDelivery = new CheckBoxMultipleChoice&lt;DeliveryFormat&gt;(
                      "digital", digital, deliveryFormatShippment);
              add(nonDigitalDelivery);
   /*final CheckBox test = new CheckBox("nonDigital");
              test.setOutputMarkupId(true);
  
              nonDigitalDelivery.add(new AjaxEventBehavior("onKeyUp")
              {
  
                  *//**
                   * 
                   *//*
                  private static final long serialVersionUID = 1L;
  
                  @Override
                  protected void onEvent(AjaxRequestTarget target) {
                      // TODO Auto-generated method stub
  
                      test.setEnabled(false);
                      target.addComponent(test);
                  }
  
              });*/
  </code></pre>