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 13:42:33 UTC

[jira] [Closed] (WW-4613) UIBean class. "required" property not found when migrating from Struts 2.3.8 to 2.3.24

     [ https://issues.apache.org/jira/browse/WW-4613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

perkas closed WW-4613.
----------------------

The issue had been disscused in [WW-4188].
Thanks four your soon reply!

> 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.8
>         Environment: Running on MyEclipse 2015 Stable 3.0, Windows 7 x86, Java 6
>            Reporter: perkas
>             Fix For: 2.5
>
>
> 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)