@Eager triggers validation

23 views
Skip to first unread message

Mario Giammarco

unread,
Jan 12, 2018, 5:59:43 AM1/12/18
to invesdwin-platform
Hello,
I am doing as always a dynamic interface.
I have a search type enum marked as eager so depending on search type I can present a date/text/integer search box.
But if I put a validation @notnull on search box when I change value in the eager select it blocks because the search box is empty.
How can I solve this problem?
Thanks,
Mario

sub es

unread,
Jan 12, 2018, 6:07:40 AM1/12/18
to Mario Giammarco, invesdwin-platform
Hi Mario,

you can try the annotation @Forced on your button method, this ignores any validations and still execute the given button method.

Let me know if this does not help.

Best regards, Edwin

--
You received this message because you are subscribed to the Google Groups "invesdwin-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to invesdwin-platf...@googlegroups.com.
To post to this group, send email to invesdwin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/invesdwin-platform/4db6fb79-5f8e-41f2-a337-ad07f58fb1e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Edwin Stang

unread,
Jan 14, 2018, 5:12:41 AM1/14/18
to invesdwin-platform


Am Freitag, 12. Januar 2018 12:07:40 UTC+1 schrieb subes:
Hi Mario,

you can try the annotation @Forced on your button method, this ignores any validations and still execute the given button method.

Let me know if this does not help.

Best regards, Edwin

Gesendet: 12. Januar 2018 11:59 vorm.
Betreff: @Eager triggers validation

Hello,
I am doing as always a dynamic interface.
I have a search type enum marked as eager so depending on search type I can present a date/text/integer search box.
But if I put a validation @notnull on search box when I change value in the eager select it blocks because the search box is empty.
How can I solve this problem?
Thanks,
Mario

--
You received this message because you are subscribed to the Google Groups "invesdwin-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to invesdwin-platform+unsub...@googlegroups.com.
To post to this group, send email to invesdwin-platform@googlegroups.com.

Edwin Stang

unread,
Jan 14, 2018, 5:15:48 AM1/14/18
to invesdwin-platform
Btw, by adding @Forced to your @Eager property, you can disable validations for the request that is caused by the value change if you desire. Then only the non forced updates will trigger the validations.

Mario Giammarco

unread,
Jan 14, 2018, 5:57:22 AM1/14/18
to Edwin Stang, invesdwin-platform
I will look immediately, I did not dare to ask for that example.

To unsubscribe from this group and stop receiving emails from it, send an email to invesdwin-platform+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "invesdwin-platform" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/invesdwin-platform/sufW0nQgWic/unsubscribe.
To unsubscribe from this group and all its topics, send an email to invesdwin-platform+unsub...@googlegroups.com.

To post to this group, send email to invesdwin-platform@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages