title: HTML JSF inputText disable with checkbox
body: <pre><code>&lt;table class="layout-table"&gt; 
  &lt;tr&gt;
          &lt;td&gt;&lt;strong&gt;a. Copy of Contract&lt;/strong&gt;
              &lt;br/&gt;
              &lt;p:inputText value="#{question4dDte}"&gt;&lt;/p:inputText&gt;
  
               &lt;input type="checkbox" name="chk" id="chk1" value="#{question4dNA}"/&gt; (something like this)
              &lt;br/&gt;
              &lt;h:outputText id="counter24" /&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
     &lt;/table&gt;
  </code></pre>
  
  <p>So I have this code which is not working the way I want but I am not sure how to do it. I want to be able to have a inputText and a checkbox like this.</p>
  
  <pre><code>______________   ()
  </code></pre>
  
  <p>I was using the radio button because it is a circle but I would rather use a checkbox instead, (if its possible to make it a circle that would be awesome too :) ). But what I want to do is when the checkbox is clicked it disables the text field. When it is unchecked it enables the text field. But when the checkbox is selected it needs to put question4dNA to 2. This is where it makes it a bit harder :(.</p>