Friday, March 28, 2014

ADF Tips and Tricks: SkipValidation for PageDef of Method Call Activity

When working on a method call activity in a task flow, JDeveloper creates a PageDef file for the operation called in the activity. For the root tag <pageDefinition> in this file, these is a special attribute SkipValidation, which determines whether data validation should occur for the activity.

In the case where the operation being called is, for example ADF Create, CreateInsert or CreateWithParams, the value of the attribute SkipValidation is true by default. If for some reason (for example manually editing the PageDef file), the attribute is missing, you will end up with exceptions rooted on some validation error if the newly created row has mandatory attributes.

Here's a code snippet as an example:

<pageDefinition
    xmlns="http://xmlns.oracle.com/adfm/uimodel" 
    version="12.1.2.66.68"
    id="CreateDataElementTaskFlowlPageDef" 
    Package="backoffice.taskflows"
    SkipValidation="true">

You can find more information from the section "A.8.1 PageDef.xml Syntax" in the documentation Developing Fusion Web Applications with Oracle Application Development Framework at:

http://docs.oracle.com/middleware/1212/adf/ADFFD/appendixa.htm#CHDBJJAH

No comments:

Post a Comment