History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: WW-1310
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Rainer Hermanns
Reporter: Dieter van Baarle
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
WebWork

readonly attribute on ww:textfield does not behave as a boolean

Created: 26/Jun/06 10:39 AM   Updated: 27/Feb/07 04:10 PM
Component/s: Views
Affects Version/s: 2.2.2
Fix Version/s: 2.2.3

Flags: Patch


 Description  « Hide
The readonly attribute of ww:textfield is not checked on its value, but only on its existence.

The simple/text.ftl contains this:

<#if parameters.readonly?exists>
 readonly="readonly"<#rt/>
</#if>

But the documentation on ww:textfield (http://wiki.opensymphony.com/display/WW/textfield) says this:
readonly false false Boolean Whether the input is readonly

The simple/text.ftl should be changed as follows: (cfr disabled attribute)

<#if parameters.readonly?default(false)>
 readonly="readonly"<#rt/>
</#if>

 All   Comments   Change History      Sort Order:
Rainer Hermanns - [26/Jun/06 03:21 PM ]
Good catch, patch applied as well for text.ftl, checkbox.ftl, password.ftl and textarea.ftl.
Thanks,
Rainer