Would there have been any changes to the validator?

This is now not working:

    <validator type="expression">
        <param name="expression"><![CDATA[
          !( (bean.address.postcode1 == null || bean.address.postcode1.trim().length() == 0) and (bean.address.postcode2 != null && bean.address.postcode2.trim().length() > 0)              || (bean.address.postcode1 != null && bean.address.postcode1.trim().length() > 0) and (bean.address.postcode2 == null || bean.address.postcode2.length() == 0)
          )
        ]]></param>
        <message key="postcodes.error.bothpostcodes">unspecified key</message>
    </validator>

It works on RC3.

It is odd as the validator is still working on other fields.

On 24/05/2022 13:25, Lukasz Lenart wrote:
Hello,

This is another RC (I hope the last one) of incoming Struts 6.x with
tons of changes. Please take the time and test the bits - any help is
appreciated. Please report any problems you will spot.

Here are the changes from the previous RC version:
https://github.com/apache/struts/releases/tag/STRUTS_6_0_0_RC4

Staging Maven repo
https://repository.apache.org/content/groups/staging/

Standalone artifacts
https://dist.apache.org/repos/dist/dev/struts/6.0.0-RC4/

Release notes
https://cwiki.apache.org/confluence/display/WW/Version+Notes+6.0.0


Kind regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org

Reply via email to