mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
@@ -60,7 +60,6 @@ public class Checkbox extends UIBean {
|
||||
final public static String TEMPLATE = "checkbox";
|
||||
|
||||
protected String fieldValue;
|
||||
protected String readonly;
|
||||
|
||||
public Checkbox(ValueStack stack, HttpServletRequest request, HttpServletResponse response) {
|
||||
super(stack, request, response);
|
||||
@@ -76,10 +75,6 @@ public class Checkbox extends UIBean {
|
||||
} else {
|
||||
addParameter("fieldValue", "true");
|
||||
}
|
||||
|
||||
if (readonly != null) {
|
||||
addParameter("readonly", findValue(readonly, Boolean.class));
|
||||
}
|
||||
}
|
||||
|
||||
protected Class getValueClassType() {
|
||||
@@ -90,10 +85,5 @@ public class Checkbox extends UIBean {
|
||||
public void setFieldValue(String fieldValue) {
|
||||
this.fieldValue = fieldValue;
|
||||
}
|
||||
|
||||
@StrutsTagAttribute(description="Whether the input is readonly", type="Boolean", defaultValue="false")
|
||||
public void setReadonly(String readonly) {
|
||||
this.readonly = readonly;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -53,8 +53,6 @@ import com.opensymphony.xwork2.util.ValueStack;
|
||||
public class CheckboxList extends ListUIBean {
|
||||
final public static String TEMPLATE = "checkboxlist";
|
||||
|
||||
protected String readonly;
|
||||
|
||||
public CheckboxList(ValueStack stack, HttpServletRequest request, HttpServletResponse response) {
|
||||
super(stack, request, response);
|
||||
}
|
||||
@@ -65,15 +63,6 @@ public class CheckboxList extends ListUIBean {
|
||||
|
||||
public void evaluateExtraParams() {
|
||||
super.evaluateExtraParams();
|
||||
|
||||
if (readonly != null) {
|
||||
addParameter("readonly", findValue(readonly, Boolean.class));
|
||||
}
|
||||
}
|
||||
|
||||
@StrutsTagAttribute(description="Whether the input is readonly", type="Boolean", defaultValue="false")
|
||||
public void setReadonly(String readonly) {
|
||||
this.readonly = readonly;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -60,8 +60,6 @@ import javax.servlet.http.HttpServletResponse;
|
||||
public class Radio extends ListUIBean {
|
||||
final public static String TEMPLATE = "radiomap";
|
||||
|
||||
protected String readonly;
|
||||
|
||||
public Radio(ValueStack stack, HttpServletRequest request, HttpServletResponse response) {
|
||||
super(stack, request, response);
|
||||
}
|
||||
@@ -72,14 +70,5 @@ public class Radio extends ListUIBean {
|
||||
|
||||
public void evaluateExtraParams() {
|
||||
super.evaluateExtraParams();
|
||||
|
||||
if (readonly != null) {
|
||||
addParameter("readonly", findValue(readonly, Boolean.class));
|
||||
}
|
||||
}
|
||||
|
||||
@StrutsTagAttribute(description="Whether the input is readonly", type="Boolean", defaultValue="false")
|
||||
public void setReadonly(String readonly) {
|
||||
this.readonly = readonly;
|
||||
}
|
||||
}
|
||||
@@ -27,9 +27,6 @@
|
||||
<#if parameters.disabled!false>
|
||||
disabled="disabled"<#rt/>
|
||||
</#if>
|
||||
<#if parameters.readonly!false>
|
||||
readonly="readonly"<#rt/>
|
||||
</#if>
|
||||
<#if parameters.tabindex?has_content>
|
||||
tabindex="${parameters.tabindex?html}"<#rt/>
|
||||
</#if>
|
||||
|
||||
@@ -73,9 +73,6 @@
|
||||
<#if parameters.disabled!false>
|
||||
disabled="disabled"<#rt/>
|
||||
</#if>
|
||||
<#if parameters.readonly!false>
|
||||
readonly="readonly"<#rt/>
|
||||
</#if>
|
||||
<#if parameters.tabindex?has_content>
|
||||
tabindex="${parameters.tabindex?html}"<#rt/>
|
||||
</#if>
|
||||
|
||||
@@ -273,14 +273,6 @@ Please do not edit it directly.
|
||||
<td align="left" valign="top">String</td>
|
||||
<td align="left" valign="top">Set the html onselect attribute on rendered html element</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" valign="top">readonly</td>
|
||||
<td align="left" valign="top">false</td>
|
||||
<td align="left" valign="top">false</td>
|
||||
<td align="left" valign="top">false</td>
|
||||
<td align="left" valign="top">Boolean</td>
|
||||
<td align="left" valign="top">Whether the input is readonly</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" valign="top">requiredLabel</td>
|
||||
<td align="left" valign="top">false</td>
|
||||
|
||||
@@ -329,14 +329,6 @@ Please do not edit it directly.
|
||||
<td align="left" valign="top">String</td>
|
||||
<td align="left" valign="top">Set the html onselect attribute on rendered html element</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" valign="top">readonly</td>
|
||||
<td align="left" valign="top">false</td>
|
||||
<td align="left" valign="top">false</td>
|
||||
<td align="left" valign="top">false</td>
|
||||
<td align="left" valign="top">Boolean</td>
|
||||
<td align="left" valign="top">Whether the input is readonly</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" valign="top">requiredLabel</td>
|
||||
<td align="left" valign="top">false</td>
|
||||
|
||||
@@ -329,14 +329,6 @@ Please do not edit it directly.
|
||||
<td align="left" valign="top">String</td>
|
||||
<td align="left" valign="top">Set the html onselect attribute on rendered html element</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" valign="top">readonly</td>
|
||||
<td align="left" valign="top">false</td>
|
||||
<td align="left" valign="top">false</td>
|
||||
<td align="left" valign="top">false</td>
|
||||
<td align="left" valign="top">Boolean</td>
|
||||
<td align="left" valign="top">Whether the input is readonly</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" valign="top">requiredLabel</td>
|
||||
<td align="left" valign="top">false</td>
|
||||
|
||||
Reference in New Issue
Block a user