You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@causeway.apache.org by "Andi Huber (Jira)" <ji...@apache.org> on 2023/06/07 10:00:00 UTC
[jira] [Commented] (CAUSEWAY-3480) [demo app] parameter#mustSatisfy is evaluated when hit OK, rather than when tab out (ie action scoped, not parameter scoped)
[ https://issues.apache.org/jira/browse/CAUSEWAY-3480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17730045#comment-17730045 ]
Andi Huber commented on CAUSEWAY-3480:
--------------------------------------
I don't see how it could work any different: the action is validated only once all params were entered by the user, no?
> [demo app] parameter#mustSatisfy is evaluated when hit OK, rather than when tab out (ie action scoped, not parameter scoped)
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: CAUSEWAY-3480
> URL: https://issues.apache.org/jira/browse/CAUSEWAY-3480
> Project: Causeway
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0.0-RC1
> Reporter: Daniel Keir Haywood
> Priority: Minor
> Fix For: 2.0.0-RC2
>
> Attachments: image-2023-06-02-09-08-43-370.png
>
>
> in demo app, @Property > mustSatisfy
> invoke the action, enter '17' (which is an invalid value).
> Tabbing out does not trigger the validation.
> When we hit OK, we see the validation checked, with the error in the location of action validation (of all parameters):
> !image-2023-06-02-09-08-43-370.png|width=942,height=229!
> by way of contrast, if a parameter is marked as mandatory, then that _is_ checked when tab out, ie at the parameter level.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)