2014-01-20 26 views
1

我誤解了複選框顯示爲禁用的原因。
我需要做些什麼來啓用它? 已經嘗試使用requestInvoice屬性的字符串對象,沒有幫助。複選框顯示爲禁用

JSP:

<fieldset class="aa-list-primary-indent"> 
      <label class="custombox-wrapper custombox" data-behavior="custombox"> 
      <div class="control checkbox"></div> 
       <html-el:checkbox styleId="requestInvoiceCheckbox" property="form(creditCardForm).personalId.requestInvoice" /> 
       In need of an invoice (factura) 
      </label> 
    </fieldset> 

形式:通過瀏覽器(Chrome)產生

private boolean requestInvoice = false; 

    public boolean isRequestInvoice() { 
     return requestInvoice; 
    } 
    public void setRequestInvoice(boolean requestInvoice) { 
     this.requestInvoice = requestInvoice; 
    } 

HTML:

<input type="checkbox" name="form(creditCardForm).personalId.requestInvoice" value="on" id="requestInvoiceCheckbox"> 

Screenshot:

+0

任何截圖? –

+0

@HüseyinBABAL添加了屏幕截圖。 – jprusakova

+0

可能有一種CSS樣式禁用了ceckboxes? –

回答

0

對不起,這是一個壞questio ñ。 CSS設置使複選框看起來被禁用,即使它不是。糟糕的CSS設計。 上面的所有JSP/Java/HTML代碼都很好。