title: Dynamic making input-tag readonly
body: <p>At this moment I use Tomahawk20 (v1.1.14) in Tomee (v1.7.4) for my input fields in the form:</p>
  
  <pre><code>&lt;t:inputText id="email" value="#{bean.klant.email}" maxlength="255" size="50" readonly="#{bean.aktie.readonly}" /&gt;
  </code></pre>
  
  <p>The <code>#{bean.aktie.readonly}</code> returns <em>true</em> or <em>false</em>. Tomahawk takes care of the setting of the readonly attribute.</p>
  
  <p>Now I want to change to <em>bootstrap.js</em>. Here I can use the normal <code>&lt;input /&gt;</code> tag but the setting of the readonly causes me trouble. I searched the internet but could not find a solution. On one site they proposed to use a ternary test (<code>${bean.aktie.readonly?'readonly':''}</code>):</p>
  
  <pre><code>&lt;input id="email" type="text" class="form-control" value="#{bean.klant.email}" maxlength="255" size="50" ${bean.aktie.readonly?'readonly="readonly":''} /&gt;
  </code></pre>
  
  <p>This however gives me the error:</p>
  
  <blockquote>
    <p>javax.servlet.ServletException: Error Parsing /viewMetadata/bean/detail.xhtml: Error Traced[line: 99] Element type "input" must be followed by either attribute specifications, ">" or "/>".</p>
  </blockquote>
  
  <p>What is the simplest way to achieve this?</p>