Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
BZ-1012891: changed readonly behaviour on HTML Label properties
Browse files Browse the repository at this point in the history
  • Loading branch information
pefernan committed Jan 23, 2014
1 parent ae55953 commit 72e4901
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,12 @@
<mvc:fragmentValue name="height" id="height">
<mvc:fragmentValue name="readonly" id="readonly">
<mvc:fragmentValue name="lang" id="languageForEditor">
<%
readonly= readonly==null ? Boolean.FALSE : readonly;
%>
<table border="0" cellpadding="0" cellspacing="0" >
<tr valign="top">
<td>
<%
String value = StringEscapeUtils.escapeHtml(StringUtils.defaultString((val == null || "".equals(val)) ? "" : ((HTMLi18n) val).getValue(LocaleManager.currentLang())));
if (Boolean.TRUE.equals(readonly)) {
if (!Boolean.TRUE.equals(readonly)) {
%>
<table border="0" cellpadding="0" cellspacing="0" >
<tr valign="top">
Expand All @@ -66,7 +63,7 @@
<%=tabindex != null ? " tabindex=\"" + tabindex + "\"" : ""%>
<%=accesskey != null ? " accesskey=\"" + accesskey + "\"" : ""%>
<%=cssStyle != null ? " style=\"" + cssStyle + "\"" : ""%>
<%=readonly != null && ((Boolean) readonly).booleanValue() ? " readonly disabled " : ""%>><%=value%></textarea>
<%=Boolean.TRUE.equals(readonly) ? " readonly disabled " : ""%>><%=value%></textarea>
</div>
</td>
</tr>
Expand Down

0 comments on commit 72e4901

Please sign in to comment.