Forum Stats

  • 3,873,081 Users
  • 2,266,504 Discussions
  • 7,911,416 Comments

Discussions

Data Validation ADF

Varun Dhondea
Varun Dhondea Member Posts: 163 Blue Ribbon
edited Mar 26, 2018 9:46AM in JDeveloper and ADF

Hi,

Having to do a data validation on new inputs from ADF Screen with multiple concurrent sessions. VO validation will not work as it uses a cache version.

Can i know how to do validation against Database?

Do i implement the validation in the Application Module or Entity object?

JDEV 12.2.1.1.0

Regards,

Varun

Tagged:
Cvele_new_account

Best Answer

  • Hammam Samir
    Hammam Samir Member Posts: 109 Blue Ribbon
    edited Mar 21, 2018 7:55PM Answer ✓

    HI ,

    View Object validation will be implemented to the client, but not to the EO nor the database,

    Entity Object validation will be implemented to both View Object and Entity object and not to the Database,

    Database Validation will be implemented to All Vo, EO and The Database,

    So The Database validation is your best Choice, and will be implemented to all when you are building the EO and VO and will be evaluated during the Commit operation.

    regards

    Hammam

    Cvele_new_accountVarun Dhondea

Answers

  • GingerHead
    GingerHead Member Posts: 172
    edited Mar 20, 2018 11:34AM

    Hello Varun,

    If you like input validation on the client side then,

    In the Structure window, right-click the component for which you would like to add a validator.

    In the context menu, choose Insert inside <UI component>, then ADF Faces to insert an ADF Faces validator, or JSF Core to insert a JSF reference implementation validator.

    Choose a validator tag (for example, ValidateDateTimeRange).

    Thanks,

    Hart

  • Varun Dhondea
    Varun Dhondea Member Posts: 163 Blue Ribbon
    edited Mar 21, 2018 3:14AM

    I want to do a validation on back end side.

    Does it have to be in the view object implementation or entity object implementation?

  • Cvele_new_account
    Cvele_new_account Member Posts: 4,810 Bronze Crown
    edited Mar 21, 2018 7:42AM

    we are always using database validation, nothing else.

    You should always have DB valdiation anyway, so why boring framework with additional job?

  • Hammam Samir
    Hammam Samir Member Posts: 109 Blue Ribbon
    edited Mar 21, 2018 7:55PM Answer ✓

    HI ,

    View Object validation will be implemented to the client, but not to the EO nor the database,

    Entity Object validation will be implemented to both View Object and Entity object and not to the Database,

    Database Validation will be implemented to All Vo, EO and The Database,

    So The Database validation is your best Choice, and will be implemented to all when you are building the EO and VO and will be evaluated during the Commit operation.

    regards

    Hammam

    Cvele_new_accountVarun Dhondea
This discussion has been closed.