Commits

Anonymous committed 0e5d620

readonly attribute on various tags does not behave as a boolean
o fixed for readonly and disabled
Issue number: WW-1310
Obtained from:
Submitted by:
Reviewed by:

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@2654573baa09-0c28-0410-bef9-dab3c582ae83

  • Participants
  • Parent commits 7b54b04

Comments (0)

Files changed (3)

File src/java/template/ajax/head.ftl

     // Dojo configuration
     djConfig = {
         baseRelativePath: "<@ww.url includeParams='none' value='/webwork/dojo/' encode='false'/>",
-        isDebug: ${parameters.debug},
+        isDebug: ${parameters.debug?default(false)},
         bindEncoding: "${parameters.encoding}",
         debugAtAllCosts: true // not needed, but allows the Venkman debugger to work with the includes
     };

File src/java/template/ajax/textarea.ftl

 <#if parameters.disabled?default(false)>
  disabled="disabled"<#rt/>
 </#if>
-<#if parameters.readonly?exists>
+<#if parameters.readonly?default(false)>
  readonly="readonly"<#rt/>
 </#if>
 <#if parameters.tabindex?exists>

File src/java/template/simple/combobox.ftl

 <br/>
 <#if parameters.list?exists>
 <select onChange="this.form.elements['${parameters.name?html}'].value=this.options[this.selectedIndex].value"<#rt/>
-    <#if parameters.disabled?exists && parameters.disabled>
+    <#if parameters.disabled?default(false)>
  disabled="disabled"<#rt/>
     </#if>
 >