You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "perkas (JIRA)" <ji...@apache.org> on 2016/03/17 12:44:33 UTC
[jira] [Created] (WW-4613) UIBean class. "required" property not
found when migrating from Struts 2.3.8 to 2.3.24
perkas created WW-4613:
--------------------------
Summary: UIBean class. "required" property not found when migrating from Struts 2.3.8 to 2.3.24
Key: WW-4613
URL: https://issues.apache.org/jira/browse/WW-4613
Project: Struts 2
Issue Type: Bug
Components: Core Actions, Other, Plugin - Tags
Affects Versions: 2.3.24
Environment: Running on MyEclipse 2015 Stable 3.0, Windows 7 x86, Java 6
Reporter: perkas
Fix For: 2.3.8
Hi,
I am migrating from Struts 2.3.8 to 2.3.24.
After changing libraries, i have several compilation errors in my custom tag classes:
My class extend from TextField:
{code}
public class CustomTextfield extends TextField{
.. .
... .
protected void evaluateExtraParams() {
super.evaluateExtraParams();
if( required != null){
. . . . . . . . .
{code}
The *UIBean* class has defined the "required" property in line _458_ in 2.3.8, although is missing in 2.3.24
{code}
protected String required;
{code}
In 2.3.24, this property is missing. It seems that this property has been changed for "*requiredLabel*".
2.3.8:
{code}
if (required != null) {
addParameter("required", findValue(required, Boolean.class));
}
{code}
2.3.24:
{code}
if (requiredLabel != null) {
addParameter("required", findValue(requiredLabel, Boolean.class));
}
{code}
In 2.3.24, the property "_required_" is in the javadoc ("_requiredLabel_" no).
I don't know if "*required*" property has been deprecated, and i have to use "requiredLabel", or if it is a bug.
Please, can you check this issue?
Thanks you and best regards!
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)