weixin_39918128 2020-11-20 13:09
浏览 0

Dependent Validation

Original report by Andreas Liebelt (Bitbucket: aliebelt, GitHub: aliebelt).

In some cases there should only be a validation of a control if a precondition is fulfilled. E.g. A TextField has only to be -not empty- if a specific item of a ComboBox is selected. ... See the attached application for an example

I thought how to solve this. My suggestion is: Only validate a control if it is not disabled or not invisible. Because one will not be able to change the control to a valid state if it is disabled or invisible.

But maybe you have an idea for a API solution for such "Dependent Validation".

Best regards

该提问来源于开源项目:controlsfx/controlsfx

  • 写回答

7条回答 默认 最新

  • weixin_39918128 2020-11-20 13:09
    关注

    Original comment by Jason Shattu (Bitbucket: jasons2000, GitHub: jasons2000).

    Has there been any development on this?

    评论

报告相同问题?