oracle.actualtests.1z0-419.v2018-10-15.by.jessica€¦ · templating is a useful facelets feature...

39
https://www.gratisexam.com/ 1z0-419.exam.50q Number : 1z0-419 Passing Score : 800 Time Limit : 120 min https://www.gratisexam.com/ 1z0-419 Oracle Application Development Framework 12c Essentials

Upload: others

Post on 29-May-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

1z0-419.exam.50q

Number: 1z0-419Passing Score: 800Time Limit: 120 min

https://www.gratisexam.com/

1z0-419

Oracle Application Development Framework 12c Essentials

Page 2: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

Exam A

QUESTION 1Identify three statements that are true about JSF. (Choose three.)

https://www.gratisexam.com/

A. Components are used to define page structure.

B. Navigation between pages is defined outside of the JSF page in the metadata.

C. Managed beans can have only one of two memory scopes.

D. Managed beans can be accessed from more than one page.

E. JSF does not support template creation for pages.

Correct Answer: ABDSection: (none)Explanation

Explanation/Reference:Incorrect:Not C: Managed beans can have the following scopes: Application, session, PageFlow, view, request, BackingBean.

Not E: JavaServer Faces (JSF) technology provides the tools to implement user interfaces that are easy to extend and reuse. Templating is a useful Faceletsfeature that allows you to create a page that will act as the base, or template, for the other pages in an application. By using templates, you can reuse code andavoid recreating similarly constructed pages. Templating also helps in maintaining a standard look and feel in an application with a large number of pages.

References: http://docs.oracle.com/javaee/6/tutorial/doc/giqxp.html

QUESTION 2Your page contains the following code that is invoked on an action by the current user:

<af:setPropertyListener from="#{applicant:surname}" to="#(...)" type="action"/>

To receive the value from the to property of the af:setPropertyListener, you create a managed bean as follows:

package view;

Page 3: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

public class Employee { String lastName;

public void setLastName(String lastName) { this.lastName = lastName; } public String getLastName() { return lastName;}

In the adfc-сonfig.xml file, the managed bean is configured as:>

<managed-bean> <managed-bean-name>emp</managed-bean-name> <managed-bean-class>view. Employee</managed-bean-class> <managed bean-scope>pageFlowScope</managed-bean-scope></managed-bean>

What EL expression would you write in the af:setPropertyListener "to" property to write the value to the lastName string of the Employee class?(Choose the best answer.)

A. to=”#{lastName}”

B. to=”#{LastName}”

C. to=”#{pageFlowScope.emp.lastName)”

D. to=”#{pageFlowScope.Emp.lastName}”

E. to=”#{emp.lastName}”

F. to=”#{pageFlowScope.emp.LastName}”

Correct Answer: CSection: (none)Explanation

Explanation/Reference:For example, the page might specify #{pageFlowScope.empno} as a page parameter and a bounded task flow might specify #{pageFlowScope.employeeID} as thevalue of an input parameter definition.

The from-value on the view activity input page parameter would be #{pageFlowScope.employeeID} and the to-value would be #{pageFlowScope.empno}. Thisenables reuse of both the page definition and bounded task flow because you don't have to redefine parameters for every context in which each is used.

References: https://docs.oracle.com/cd/E23943_01/web.1111/b31974/taskflows_parameters.htm#ADFFD19858

QUESTION 3Consider the following code:

Page 4: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

At run time, a user modifies the value in the af:inputText control, then presses af:commandButton.

Assuming no errors are raised, which option represents the managed bean code invoked in the correct order? (Choose the best answer.)

A. myBean.handleChange, myBean.doAction, myBean.qetDestination

B. myBean.doAction, myBean.handleChange, myBean.getDestination

C. myBean.handleChange, myBean.doAction

D. myBean.doAction, myBean.handleChange

Correct Answer: CSection: (none)Explanation

Explanation/Reference:

QUESTION 4Which three options does an entity object automatically implement? (Choose three.)

A. primary key functionality based on any column in the database that is marked as a primary key

B. not-null functionality based on any column in the database that is marked as not null

C. attribute precision based on column size

D. all table check constraints

E. any table triggers

Correct Answer: ABCSection: (none)Explanation

Explanation/Reference:When you create an entity object from an existing table, first JDeveloper interrogates the data dictionary to infer the following information:

The primary and unique key attributesThe mandatory flag on attributes, based on NOT NULL constraints

Page 5: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

The length and precision of each attributeThe Java-friendly entity attribute names from the names of the table's columns (for example, USER_ID -> UserId)The SQL and Java data types of each attribute based on those of the underlying columnThe relationships between the new entity object and other entities based on foreign key constraints

References: http://docs.oracle.com/cd/E48682_01/web.1111/b31974/bcentities.htm

QUESTION 5For what purpose would you use the entity object attribute setting Change Indicator? (Choose the best answer.)

A. to highlight the attribute in the UI with a border when the original attribute value has been changed

B. to fire an entity object custom method as soon as the original attribute value has been changed

C. to automatically lock the corresponding record in the database

D. to automatically refresh the attribute value if the underlying data in the database is changed by another user

E. to define an attribute that the framework uses to check whether the update is about to happen on underlying stale data in the database

Correct Answer: CSection: (none)Explanation

Explanation/Reference:By default, during commit operation, ADF scans each changed attribute from the current row and compares value in the DB. If it locates changed values in DB,reports error about another user changes in the same row. While this is expected functionality, there are use case when we want to allow commit, even data waschanged already by someone else. For example, in more complex systems, data is updated by PL/SQL procedures, we don't want to inform user with error aboutthis. There is a way to override lock method in EO implementation class, catch lock error and raise lock again. This works, but there is different way - to use ChangeIndicator. This property defines specific attribute to be responsible for row data changes tracking, instead of checking every attribute. Only if Change Indicatorattribute value will be changed in DB, then current row changes will be prevented and user will be informed about someone else changes in the same row.

References: https://blogs.oracle.com/emeapartnerweblogic/entry/explaining_change_indicator_property_for

QUESTION 6View the Exhibit.

Page 6: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

Which option represents the steps to add a relationship between OrdVO and ItemVO and create a master-detail hierarchy for the same in the data model? (Choosethe best answer.)

Page 7: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

A. Select View Link from the Components window and draw a line on the diagram from ItemVO to OrdVO. Use the Application Module Editor to define the datamodel for the hierarchy.

B. Create a view link with OrdVO as the source and ItemVO as the destination and define the linked attributes. Use the Application Module Editor to define the datamodel for the hierarchy.

C. Create a view link with ItemVO as the source and OrdVO as the destination and define the linked attributes. Use the Application Module Editor to nest theOrdVO instance beneath the ItemVO instance.

D. Select Association from the Components window and draw a line on the diagram from OrdEO to ItemEO. Right-click the association on the diagram and selectGenerate View Link.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:When you want to show the user a set of master rows, and for each master row a set of coordinated detail rows, then you can create view links to define how youwant the master and detail view objects to relate.

To create an association-based view link, you use the Create View Link wizard.

Note: A master-detail relationship is established when a view link is created to associate two view object instances. A view link represents the relationship betweentwo view objects, which is usually, but not necessarily, based on a foreign-key relationship between the underlying data tables. The view link associates a row of oneview object instance (the master object) with one or more rows of another view object instance (the detail object).

References: https://docs.oracle.com/middleware/1213/adf/develop/adf-bc-vo-master-detail.htm#ADFFD23705

QUESTION 7Which three statements are true about af:panelTabbed? (Choose three.)

https://www.gratisexam.com/

A. Tab position can be only top or bottom.

B. Content inside a tab can stretch horizontally.

C. You can use icons instead of text on tabs.

D. You can have only one disclosed tab at a time.

E. You cannot have an af:panelTabbed component inside one of the tabs.

Page 8: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

Correct Answer: BDESection: (none)Explanation

Explanation/Reference:E: The panelTabbed control can be used to display a group of contents that belongs to a showDetailItem.

Incorrect Answers:A: Valid positions of the tab bar are: bove, both, below, start, end, left, right

References: http://docs.oracle.com/cd/E41362_01/apirefs.1111/e12419/tagdoc/af_panelTabbed.html

QUESTION 8Which statement is true about the difference between an Action binding and a methodAction binding? (Choose the best answer.)

A. None; they are used interchangeably.

B. An Action binding is a binding to a method defined in the business service exposed through a data control, whereas a methodAction binding is used to bindonly to a method in a backing bean.

C. Both are bindings to methods defined in a business service, but an Action binding is used to bind to a UI component whereas a methodAction binding isonly called programmatically from a backing bean.

D. Both are bindings to methods defined in a business service, but a methodAction binding is used to bind to a UI control whereas an Action binding is onlycalled programmatically from a backing bean.

E. Action bindings are used to bind to built-in operations such as Create, Delete and Next, whereas a methodAction binding is used to bind to custom methodsin the data control.

Correct Answer: ESection: (none)Explanation

Explanation/Reference:Action binding object can be used to bind command components, such as buttons or links, to built-in data control operations (such as Commit or Rollback) or tobuilt-in collection-level operations (such as Create, Delete, Next, Previous, or ExecuteWithParams).Method bindings are similar to action bindings. But, they are used to bind to methods defined in an ADF BC application, view object, or view row client interfaces.

References: http://xmlandmore.blogspot.se/2010/05/action-bindings-and-method-bindings-in.html

QUESTION 9You create a default view object based on the Employees entity, using the wizard and accepting the default settings.

Page 9: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

Which option represents the source file(s) that are typically created for you? (Choose the best answer.)

A. EmployeesView.xml

B. EmployeesViewImpl.java

C. EmployeesViewRowImpl.java

D. EmployeesView.sql

E. EmployeesView.xml and EmployeesViewImpl.java

Correct Answer: ASection: (none)Explanation

Explanation/Reference:What Happens When You Create an Entity-Based View Object

When you create an entity-based view object, JDeveloper creates the XML component definition file that represents the view object's declarative settings and savesit in the directory that corresponds to the name of its package. For example, if the view object was named StaffList in the devguide.model.queries package, so theXML file created will be ./devguide/model/queries/StaffList.xml under the project's source path. This XML file contains the information about the SQL query, thename of the entity usage, and the properties of each attribute. If you're curious to see its contents, you can see the XML file for the view object by selecting the viewobject in the Application Navigator and looking in the corresponding Sources folder in the Structure Window. Double-clicking on the StaffList.xml node will open theXML in an editor so you can inspect it.

References: https://docs.oracle.com/cd/B31017_01/web.1013/b25947/bcvoeo002.htm

QUESTION 10Which two statements describe the characteristics of an entity object? (Choose two.)

A. An entity object represents a cache for records retrieved from the database.

B. An entity object includes an ORDER clause to allow you to order the data in it.

C. An entity object includes a WHERE clause to allow you to shape the data in it.

D. Every column in a database table must be represented as an entity object attribute.

E. An entity object definition is described in XML.

Correct Answer: ADSection: (none)Explanation

Explanation/Reference:A: An entity object caches data from a database and provides an object-oriented representation of it.

Page 10: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

D: When you use a Business Components for Java wizard to create entity objects from existing tables, each database table becomes an entity object. Each columnin the database table becomes an entity object attribute, which can have the same name as the column or a different name that is more meaningful to yourbusiness application.

References: https://docs.oracle.com/cd/A97335_02/apps.102/bc4j/developing_bc_projects/bc_awhatisaneo.htm

QUESTION 11Which three options are available in the ADF Controller that are not available in the generic JSF 2.0 controller layer? (Choose three.)

A. pageflow scope: a memory scope for managed beans that is available for several pages (longer than a request scope and shorter than a session scope)

B. ability to break the page flow of an application into multiple files

C. subflows that can be included as regions inside a page

D. method calls as part of the definition of a page flow

E. defining managed beans that contain references to components on a page

Correct Answer: ACESection: (none)Explanation

Explanation/Reference:A: ADF Memory scopesThere are 6 types of memory scopes3 from standard JSF application1) Application Scope 2) Session scope 3) Request scopeIn addition to above ADF Faces provides the following4) PageFlowScope 5) BackingBeanscope 6) ViewScope

C: There is no such thing as subflows in JSF, but they do exist in ADF.

E: Backing bean scope:Special case of request scopeAssociated with a specific manage bean instanceUsed with declarative components, regions and page fragments that use a managed bean to hold view state informationAllows multiple instances of the components to co-exists on a single page

Use this scope if it is possible that your task flow appears in two ADF regions on the same JSF page and you want to isolate each instance of ADF region

References: http://kotreshtm.blogspot.se/2015/04/adf-basics-memory-scope.html

QUESTION 12Which two options represent techniques that you would use together to deploy an ADF application? (Choose two.)

Page 11: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

A. Deploy an EAR file by using Enterprise Manager.

B. Create an EAR deployment profile in JDeveloper.

C. Deploy a WAR file by using Ant or ojdeploy.

D. Create a JAR deployment profile for a shared library in JDeveloper.

E. Deploy a WAR file by using Enterprise Manager.

Correct Answer: ABSection: (none)Explanation

Explanation/Reference:A: Deploying ADF ApplicationsYou can use Oracle Enterprise Manager Fusion Middleware Control to deploy the EAR file created in JDeveloper.

B: Deploying ADF ApplicationsDuring application development using JDeveloper, developers can test the application using the Integrated WebLogic Server that is built into the JDeveloperinstallation, or they can use JDeveloper to directly deploy to a standalone application server.

Incorrect Answers:C, E: For ADF applications, WAR and MAR files can be deployed only as part of an EAR file.

References: https://docs.oracle.com/cd/E26098_01/admin.1112/e16179/deploy.htm#ADFAG20574

QUESTION 13Identify two statements that describe the benefits of using ADF to build web applications for mobile devices. (Choose two.)

A. Mobile devices are supported by using native code.

B. ADF code and applications are re-used.

C. Separate applications are required for tablets and smart phones.

D. ADF Faces components adjust to support touch gestures and layouts.

E. Native mobile components are used to develop a user interface.

Correct Answer: BDSection: (none)Explanation

Explanation/Reference:B: Oracle ADF Mobile enables developers to build and extend enterprise applications for iOS and Android from a single code base.D: ADF Faces include Tablet/Touch Gesture Support.

Page 12: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

Incorrect Answers:A: Java code, not native code, is used. Oracle ADF Mobile enables developers to build and extend enterprise applications for iOS and Android from a single codebase.

References: http://www.oracle.com/technetwork/developer-tools/adf/overview/index-092391.html

QUESTION 14View the Exhibit

Page 13: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

A user interface requires a view of data for a customer order to include information about the order, items in the order, and information about the customer whoplaced the order. The application entities and their relationships are defined as shown in the Exhibit.

Which two steps would you perform to meet this requirement? (Choose two.)

A. Create a default view object based on OrdEO, and add ItemEO and CustomerEO as reference entities to the view object.

B. Create default view objects based on OrdEO, ItemEO, and CustomerEO, and create view links based on the defined associations.

Page 14: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

C. Create a view object based on SQL and define the SQL to select from the Ord, Item and Customer database tables.

D. Add attributes from the ItemEO and CustomerEO entities as needed.

E. Create calculated attributes as needed from the Order, Item, and Customer database tables.

F. Set the ItemEO and CustomerEO attributes to updatable=NEVER.

Correct Answer: BDSection: (none)Explanation

Explanation/Reference:B: Oracle ADF view links are business components that define a relationship between two Oracle ADF view object definitions (the "source" and "destination" viewobjects) based on sets of view attributes (the "source" and "destination" attributes) from each. These can range from simple one-to-many relationships to complexmany-to-many relationships. This allows you to easily create master/detail relationships between data controls in the client.

Reference: http://download.oracle.com/otn_hosted_doc/jdeveloper/1012/bc4j/intro/bc_avl.html

QUESTION 15View the Exhibit.

Which three options are true about the scenario in the Exhibit? (Choose three.)

Page 15: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

A. Two separate view object instances allow you, at run time, to maintain two separate current row indicators on each instance respectively, to display separaterecords at the same time.

B. Two separate view object instances defined through the same application module create separate entity object caches, allowing users to modify records in theirown independent transactions.

C. Two separate view object instances exposed through the application module allow you to apply separate view criteria and bind variable values to show separateresult sets.

D. Under the relating AppModuleDataControl in the JDeveloper Data Controls window, each view object instance appears as a separate selectable data collection.

E. ADF Faces restricts developers from using the same view object instance across pages, so developers at design time must create multiple separate view objectinstances.

Correct Answer: ACDSection: (none)Explanation

Explanation/Reference:

QUESTION 16You create a default entity object based on the Employees table, using the wizard and accepting the default settings. Which option represents the source file(s)that are typically created for you? (Choose the best answer.)

A. Employees.xml

B. Employees.xml and EmployeesImpl.java

C. Employees.xml and Employees.sql

D. EmployeesDefImp.java

E. EmployeesDefImpl.xml

Correct Answer: ASection: (none)Explanation

Explanation/Reference:JDeveloper creates the XML component definition file that represents its declarative settings and saves it in the directory that corresponds to the name of itspackage. For example, if one of the entities created above was named User in the devguide.model.entities package, so the XML file created will be ./devguide/model/entities/User.xml under the project's source path.

References: https://docs.oracle.com/cd/B31017_01/web.1013/b25947/bcentities002.htm

Page 16: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

QUESTION 17Which method must you override to ensure that messages are logged each time bind variable values are set in an application? (Choose the best answer.)

A. bindParametersForCollection() method in any ViewObjectImpl that uses bind variables

B. setBindVariables() method in any ViewObjectImpl that uses bind variables

C. bindParametersForCollection() method in the super-class of ViewObjectImpl

D. bindParametersForCollection() method in the super-class of ApplicationModuleImpl

Correct Answer: CSection: (none)Explanation

Explanation/Reference:References: http://www.awasthiashish.com/2015/01/setting-view-object-bind-variable.html

QUESTION 18When you manually create a binding such as an attribute value binding, what name would you give to the binding? (Choose the best answer.)

A. a name that reflects the UI component to which it is bound

B. the page name suffixed with the UI component name to which it is bound

C. the page name suffixed with the data control name

D. the name of the data control attribute to which the binding refers

E. an EL (Expression Language) of the form #{bindings.<datacontrolname>.value}

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Note: The oracle.jbo.uicli.binding.JUCtrlValueBinding class implements the attribute value binding.

The attribute value binding permits the databound UI component to obtain the attribute value of the specified collection's data object. Depending on the type of UIcomponent, users may view and, in some cases, edit the value of the attribute.

The attribute value binding defines its own set of runtime properties.

References: http://download.oracle.com/otn_hosted_doc/jdeveloper/1012/developing_mvc_applications/adf_aclientbindingcode.html

QUESTION 19

Page 17: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

Which two statements are true about the Key Exists validator? (Choose two.)

https://www.gratisexam.com/

A. It always issues a select to the database to ensure all data is up to date.

B. It first checks the cache for match and then goes to the database only if necessary.

C. It cannot validate any data changes that happened in the current transaction that have not yet been committed to the database.

D. It can validate any data changes that happened in the current transaction that have not yet been committed to the database.

E. It can be used only with attributes that are defined as primary keys in the database.

Correct Answer: BDSection: (none)Explanation

Explanation/Reference:The “Key Exists” Validator is validator that can be defined at either the entity level or the attribute level but pertains to an entity object attribute to check whether akey exists based on a primary key, foreign key or an alternate key. The “Key Exists” validator will check first the cache querying rows not committed yet to thedatabase and if the key is not found in the cache will run a check in the database.

References: http://antonis-antoniou.blogspot.se/2014/07/using-adf-bc-declarative-built-in-rules.html

QUESTION 20Which statement is true about creating a method at the application module level? (Choose the best answer.)

A. You cannot create methods at the application module level.

B. Application module methods provide an interface for the view layer to call custom business logic that may work across multiple data views.

C. Application module methods are best suited to writing validation logic for entity objects.

D. Methods in an application module allow you to manipulate UI components in the ViewController project.

E. Because ADF provides no way at run time to automatically create or delete view object records, you must create application module methods to do this.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:

Page 18: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

Application modules can contain service methods--methods that perform complex operations on data. These methods can be called from clients, requiring very littledata manipulation processing in the client itself.

Service methods are implemented in an application module's class, and exposed on tier-independent interfaces that allow clients to access the application moduleconsistently, whether it is deployed locally or as an EJB session bean. Inside the service method, you can do any of the following:

Dynamically add view object and view link instances to the data modelRemove view object and view link instances from the data modelFind view object instances and perform operations on their row setsRetrieve and manipulate transaction objects

References: http://download.oracle.com/otn_hosted_doc/jdeveloper/1012/bc4j/intro/bc_aam.html https://docs.oracle.com/cd/B14099_19/web.1012/b14362/chapter_bc4j.htm#i1024792

QUESTION 21You need to execute a managed bean function immediately when af:selectBooleanCheckhox is selected by a user. Which listener property would youimplement in af:selectBooleanCheckbox to achieve this? (Choose the best answer.)

A. valueChanqeListener

B. selectionListener

C. actionListener

D. queryListener

E. phaseListener

Correct Answer: ASection: (none)Explanation

Explanation/Reference:The value ChangeListener attribute is a method reference to a value change listener.

References: http://docs.oracle.com/cd/E12839_01/apirefs.1111/e12419/tagdoc/af_selectBooleanCheckbox.html

QUESTION 22Which two statements are true about af:tree? (Choose two.)

A. You can show only one outputText per node in af:tree.

B. To modify the data fields shown in a node of a tree created with ADF binding, you need to edit the tree bindings.

C. You can specify a filter for a tree’s node based on an attribute value at design time.

D. Trees can display, at the most, a three-level-deep hierarchy.

Page 19: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

Correct Answer: ACSection: (none)Explanation

Explanation/Reference:References: http://docs.oracle.com/html/E12419_09/tagdoc/af_tree.html

QUESTION 23Which statement is true about the role of data controls in ADF? (Choose the best answer.)

A. They implement business service functions.

B. They persist data from the database for display in the user interface.

C. They provide a consistent abstraction over the implementation details of a business service.

D. They are a Java API that is called directly from each UI component to populate the component with data.

E. They are the primary source of validation logic to control the behavior of your business service.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Once you have created your business services, you create the data controls that use metadata interfaces to abstract the implementation of those services anddescribe their operations and data collections, including information about the properties, methods, and types involved.

References: https://docs.oracle.com/middleware/1212/adf/ADFDC/adfm.htm#ADFDC769

QUESTION 24Which two statements are true about attribute value bindings? (Choose two.)

A. Multiple UI components can reference the same attribute value binding.

B. An attribute value binding can be created only by dragging and dropping a data control attribute onto a page.

C. Each data control attribute can have only one attribute value binding.

D. An ADF Faces inputText and an outputText component displaying the same attribute value would typically use separate bindings.

E. Creating an attribute value binding by dragging and dropping from the Data Controls window references, by default, an attribute value in the current row in thecollection.

Correct Answer: CDSection: (none)

Page 20: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

Explanation

Explanation/Reference:

QUESTION 25View the Exhibit.

You have defined a compare validation rule on the CommissionPct attribute of the Employees entity object such that Commission must be greater than zero. Howwould you define that the validation rule applies only to those with the JobId "SA_MAN" using the declarative features of ADF Business Components? (Choosethe best answer.)

A. Remove the current validator and, instead, write a method validator in Java and use an if statement to check the value of JobID.

B. Remove the current validator and, instead, write a script validator using Groovy and use an if statement to check the value of JobID.

C. Remove the current validator and, instead, write a regular expression validator to check the value of JobID.

D. The entity object has a Validation Execution tab and you use this to set a conditional execution expression JobId = "SA_MAN".

E. Change the literal value in the current validation rule to be if JobId = SA_MAN then return 0.1 else return null.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:You can us eGroovy Expressions for Business Rules and Triggers.

Page 21: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

References: https://docs.oracle.com/middleware/1213/adf/develop/adf-bc-validation-rules.htm#ADFFD430

QUESTION 26Identify three actions you can perform by entering a URL in a browser address bar. (Choose three.)

A. Navigate to a specific page in an unbounded task flow.

B. Navigate to the first page in a bounded task flow with page fragments.

C. Navigate to a page in a bounded task flow with regular pages.

D. Navigate to the second page in a bounded task flow with regular pages.

E. Pass parameters to a bounded task flow with regular pages.

Correct Answer: BCESection: (none)Explanation

Explanation/Reference:

QUESTION 27Which two statements describe the characteristics of an application module? (Choose two.)

A. It provides the database transaction for the queries that it encapsulates.

B. It defines view object instances to implement an application use case.

C. It defines entity object instances to implement an application use case.

D. There is a one-to-one mapping between view objects and application modules.

E. Each ADF application has only one application module.

Correct Answer: ABSection: (none)Explanation

Explanation/Reference:A: In general, one application module instance owns a single database transaction. All changes made through that instance are made in a single transaction, whichcan be rolled back or committed at any time.

B: Oracle ADF application modules are business components that represent particular application tasks. The application module provides a data model for the taskby aggregating the view object and view link instances required for the task. It also provides services that help the client accomplish the task. For example, anapplication module can represent and assist with tasks such as:

Page 22: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

Updating customer informationCreating a new orderProcessing salary increases

Incorrect Aanswers:D: An application module contains view object instances that retrieve the data needed by the client, as well as view link instances that specify the relationshipsbetween the view object instances. The view object and view link instances can be represented by a tree, called the application module's data model.

References: http://download.oracle.com/otn_hosted_doc/jdeveloper/1012/bc4j/intro/bc_aam.html

QUESTION 28Consider the JSF managed bean code to execute a function in ADF Business Components via an af:button actionListener on a page:

public void doSomethinq(ActionEvent event) { BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry(); OperationMethod method =bindings.getOperationBinding(“appModuleMethod”); Map paramsMap = method.getParamsMap(); paramsMap.put (“someParameter”,“someValue”); method.execute();}

Which three options must be implemented for this code to work? (Choose three.)

A. For the page definition file this code is called from, it must have a <methodAction> binding mapped to the ADF BC data control application module function.

B. For the page definition file this code is called from, it must have a <parameter> binding mapped to the parameters of the ADF BC data control applicationmodule function.

C. An appModuleMethod function must exist in the ADF BC application module to call from the <methodAction> binding.

D. An appModuleMethod function must be exposed through the client interface editor of the ADF BC application module.

Correct Answer: ABCSection: (none)Explanation

Explanation/Reference:

QUESTION 29Which two statements are true about developing applications for different clients? (Choose two.)

A. ADF can be used to build web applications for mobile devices that have browsers, such as tablets and smart phones.

Page 23: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

B. ADF Business Components need to be developed uniquely depending on the type of client accessing them.

C. ADF can be used to build applications where Microsoft Excel is the UI client.

D. It is necessary to develop completely different applications for mobile browsers, desktop browsers, and other clients.

E. ADF can be used to deploy server-based web applications as native mobile device applications.

Correct Answer: ACSection: (none)Explanation

Explanation/Reference:A: Oracle Application Development Framework Mobile (ADF Mobile) browser is a standards-based framework that enables the rapid development of browser-basedenterprise mobile applications. Its mobile-specific extensions to JSF enable you to develop mobile applications using the same methodologies for developing JSFapplications for the desktop.

C: You can integrate your Excel workbook with a Fusion web application.

References: https://docs.oracle.com/middleware/1212/adf/ADFCG/mobile.htm#ADFCG223 https://docs.oracle.com/middleware/1212/adf/ADFDI/inst_conf_dev_env.htm#ADFDI581 (Oracle Fusion Middleware Developing Applications with Oracle ADFDesktop Integration)

QUESTION 30Consider a development organization divided into two teams, one developing ADF Business Components and related methods, and one developing the view andcontroller layers. What two steps would the Business Components team perform to deliver the results of their work to the other team? (Choose two.)

A. Share the root ApplicationModuleImpl file on the file system or other shared location.

B. Create an ADF Library JAR file for the model project.

C. Create a path to the ADF Library JAR file in Tools > Manage Libraries.

D. Add the ADF Library JAR to the ViewController project.

E. Share the ADF Library JAR file on the file system or other shared location.

Correct Answer: BDSection: (none)Explanation

Explanation/Reference:References: http://rohanwalia.blogspot.se/2015/02/adf-shared-library-deploy-adf-library.html

QUESTION 31View the Exhibit.

Page 24: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

How would you implement functionality to display product details in a separate window when users place their cursors over a link in the table? (Choose the bestanswer.)

A. Create detail components in an af:popup component. Add af:showPopupBehavior to the link within the table and set the PopupId to the ID of the pop-upcomponent. Set the triggerType property on the pop-up to mouseHover.

B. Create detail components in an af:dialog component. Add af:showPopupBehavior to the link within the table and set the PopupId to the ID of the dialogcomponent. Set the triqgerType property on the dialog to mouseHover.

C. Create detail components in an af:popup component. Add af:showPopupBehavior to the link within the table and set the PopupId to the ID of the pop-upcomponent. Set the triggerType property on showPopupBehavior to mouseHover.

D. Create detail components in an af:panelForm component. Add af:showPopupBehavior to the link within the table and set the PopupId to the ID of thepanelForm component. Set the triggerType property on showPopupBehavior to mouseHover.

E. Create detail components in an af:dialog component. Add af:clientAttribute elements to the link within the table. Createaf:setPropertyListener components to pass the currently hovered row's attributes to client components.

Page 25: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

Correct Answer: CSection: (none)Explanation

Explanation/Reference:The af:showPopupBehavior tag is a declarative way to show a af:popup in response to a client-side event. The client event is specified using the triggerTypeattribute. The "action" event is the default triggerType if one is not provided. When the showPopupBehavior tag is associated with a component, the popup specifiedvia the popupId attribute will automatically be shown when the associated client event is activated. This tag only acts on client events similar to the af:clientListenertag.

This example will show the popup with the id "somePopup" when the button is clicked.

<af:commandButton id="button" text="Click me"> <af:showPopupBehavior popupid="somePopup" alignid="button" align="endBefore" triggerType="action" /></af:commandButton> References: http://docs.oracle.com/cd/E12839_01/apirefs.1111/e12419/tagdoc/af_showPopupBehavior.html

QUESTION 32Which two occur when a bounded task flow is created as a region on a page? (Choose two.)

A. The transaction property of the task flow is set to "Use Existing Transaction if Possible."

B. Any views defined as pages on the bounded task flow are changed to page fragments.

C. An af:reqion tag is added to the page.

D. The refresh property of the task flow binding is set to ifNeeded.

E. A task flow binding is added to the page definition for the page.

Correct Answer: CESection: (none)Explanation

Explanation/Reference:You can render a bounded task flow in a JSF page or page fragment (.jsff) by using an ADF region. An ADF region comprises the following:

An af:region tag that appears in the page or page fragment where you render the regionAn instance object that implements RegionModel from the following package: oracle.adf.view.rich.modelOne or other of the following:

- A task flow binding (taskFlow) in the page definition that identifies the bounded task flow to use in the ADF region- A multi task flow binding (taskFlowmultiTaskFlow) in the page definition that identifies the list of bounded task flow to use in the ADF region

Page 26: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

References: https://docs.oracle.com/cd/E48682_01/web.1111/b31974/taskflows_regions.htm

QUESTION 33Select three benefits that ADF Data Controls provide. (Choose three.)

A. They abstract the UI developer from the technology used to implement business logic.

B. They reduce the need to write managed beans.

C. They automate Ajax updates to the UI.

D. They enable drag-and-drop of data objects to UI component bindings.

E. They directly connect your UI to the database tables.

Correct Answer: ABDSection: (none)Explanation

Explanation/Reference:B: J2EE developers who do not want to rely on Oracle-specific libraries may use managed beans instead of the ADF data control. This is more complex.

AD: At a high level, the declarative development process for an application that contains data controls usually involves, among others, the following core steps:Creating data controls for your services: Once you have created your business services, you create the data controls that use metadata interfaces to abstractthe implementation of those services and describe their operations and data collections, including information about the properties, methods, and types involved.These data controls are displayed in the Data Controls panel and can be dragged to pages to create databound UI components.Adding declarative metadata to your data controls: You can augment your data controls with UI control hints, validation rules, criteria for use in search forms,and other features.Implementing the user interface: JDeveloper's Data Controls panel contains a representation of the services for your application. You can drag an object fromthe Data Controls panel onto a page and select the UI component you want to display the underlying data. For UI components that are not databound, you usethe Components window to drag and drop components. JDeveloper creates all the page code for you.

References: https://docs.oracle.com/cd/B31017_01/web.1013/b28967/build_app_services010.htmhttps://docs.oracle.com/middleware/1212/adf/ADFDC/adfm.htm#ADFDC769

QUESTION 34When creating a bounded task flow that uses ADF Business Components, which two steps do you need to perform to enable the task flow to manage its owntransaction? (Choose two.)

A. Define transaction properties at the task-flow level.

B. Include a phaseListener in a managed bean with methods for commit and rollback.

C. Add the application module commit and rollback operations as buttons or links on the last JSF page of the flow.

D. Define task flow return activities in the flow and associate “End transaction” attribute values with them.

Page 27: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

Correct Answer: ADSection: (none)Explanation

Explanation/Reference:A: To enable a bounded task flow to run as a transaction:1. In the overview editor for the called bounded task flow, click Behavior and expand the Transaction section.

2. Choose one of the following from the dropdown list:<No Controller Transaction>: The called bounded task flow does not participate in any transaction management.Always Use Existing Transaction: When called, the bounded task flow participates in an existing transaction already in progress.Use Existing Transaction If Possible: When called, the bounded task flow either participates in an existing transaction if one exists, or starts a new transactionupon entry of the bounded task flow if one doesn't exist.Always Begin New Transaction: A new transaction starts when the bounded task flow is entered, regardless of whether or not a transaction is in progress. Thenew transaction completes when the bounded task flow exits.

D: 1. Select the task flow return activity in the called bounded task flow.2. In the Property Inspector, expand the Behavior section.If the called bounded task flow supports creation of a new transaction (bounded task flow specifies Use Existing Transaction If Possible or Always Begin NewTransaction options), select one of the following in the End Transaction dropdown list:

commit: Select to commit the existing transaction to the database.rollback: Select to roll back a new transaction to its initial state on task flow entry. This has the same effect as cancelling the transaction.

References: https://docs.oracle.com/cd/E15523_01/web.1111/b31974/taskflows_complex.htm#ADFFD1710

QUESTION 35The current page includes the following entries in its page definition file:

<bindings> <attributeValues IterBinding="EmployeesView1Iterator" id="Email"> <AttrNames> <Item Value="Email"/> </AttrNames> </attributeValues></bindings>

Programmatically, in a managed bean, you need to read the current EmployeesView's email into a string. You write the following code to do this:

DCBindingContainer bc = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();XXXXXX emailBinding = (XXXXXX)bc.findCtrlBinding("Email");String emailValue = emailBinding.getAttribute().getString();

Page 28: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

What single class must you substitute for XXXXXX in the two locations in the code? (Choose the best answer.)

A. CtrlBindingContext

B. JUCtrlActionBinding

C. JUCtrlValueBinding

D. DCValueBinding

E. BCValueBinding

Correct Answer: CSection: (none)Explanation

Explanation/Reference:The findCtrlBinding method returns a control binding with the given name. Returns null if name is not found.

public final DCControlBinding findCtrlBinding(java.lang.String name)

A JUCtrlValueBinding class responsible for maintaining which attribute(s) of a row this binding can display/update.

References: https://docs.oracle.com/cd/B14099_19/web.1012/b14022/oracle/jbo/uicli/binding/JUCtrlValueBinding.htmlhttps://docs.oracle.com/cd/B14099_19/web.1012/b14022/oracle/adf/model/binding/DCBindingContainer.html

QUESTION 36To deploy an application, select the application drop-down and choose Deploy. In the resulting dialog box, select Deploy to EAR file to _______or Deploy toApplication Server to ______. (Choose the best answer.)

A. create a file to deploy to using WLST or Ant scripts; deploy an application to a managed server

B. deploy an application to a predefined application server; deploy a JAR file to a predefined application server

C. create a file to deploy to a clustered server; deploy an application to a third-party application server

D. deploy to the Integrated WebLogic server; deploy to a clustered server

E. create a file to deploy to a clustered server; deploy an application using Enterprise Manager

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Part 1: You can also use the deployment profile to create an archive file (EAR file). You can then deploy the archive file using Enterprise Manager, WLST, or the

Page 29: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

Oracle WebLogic Server Administration Console.

You can deploy to most application servers from JDeveloper, or use tools provided by the application server vendor. You may also use Ant to package and deployapplications.

Part 2: How to Deploy the Application Using JDeveloperAfter you have created an application server connection and an EAR deployment profile, you can deploy the application to a standalone application server.

To deploy an application:1. Deploy your project to the application server:a. In the Application Navigator, right-click your application and choose Deploy > deployment profile.b. In the Deploy wizard Deployment Action page, select Deploy to Application Server and click Next.Etc.

References: http://docs.oracle.com/cd/E25178_01/fusionapps.1111/e15524/adv_wls_e.htmhttps://docs.oracle.com/cd/E15523_01/web.1111/e15470/deploy.htm#ADFAG20592

QUESTION 37Your database has a strict security requirement that whenever users select from any table in the database schema, they must append the select statement withan additional where predicate that returns only records WHERE owner = :pUserName. This restricts users to seeing only records that they own.

When you design and develop the ADF Business Components in your ADF application, there will be more than 100 view objects that select against this database.You want to build a solution that not only ensures all your developers, when writing view objects, meet the database's strict security requirement, but takes the leastamount of development effort for your entire team and is easy to maintain in the long term.

Identify the correct solution. (Choose the best answer.)

A. Define a view criteria on each view object at design time to apply the predicate to the corresponding view object, ensuring the view criteria is defined against theview object instance in the Application Module Editor.

B. Override each view object's ViewObjectImpl class methods to programmatically modify each view object's where clause at run time to add the predicate tothe select clause regardless of the query executed.

C. Create a complete set of custom ADF Business Component framework classes for your business components and then override your custom ViewObjectImpl class to programmatically modify each view object’s where clause at run time to append the predicate.

D. In each view object, simply type the predicate into the WHERE clause of the View Object Editor query page.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:

Page 30: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

QUESTION 38View the Exhibit.

What does the SetCurrentRowWithKey activity do for this task flow? (Choose the best answer.)

https://www.gratisexam.com/

A. calls a method

B. calls the updateCustomer page

C. determines whether the user is navigated to the updateCustomer or callEmployeeTF activity

D. displays a pop-up that allows the user to enter a value for the current row

Correct Answer: BSection: (none)Explanation

Explanation/Reference:

Page 31: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

QUESTION 39Identify the two phases in the JSF life cycle that are always processed for a request, regardless if errors occur. (Choose two.)

A. Restore View

B. Apply Request Values

C. Process Validations

D. Update Model Values

E. Invoke Application

F. Render Response

Correct Answer: ABSection: (none)Explanation

Explanation/Reference:Figure, JavaServer Faces Standard Request-Response Lifecycle

Page 32: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

Page 33: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

References: http://docs.oracle.com/javaee/6/tutorial/doc/bnaqq.html

QUESTION 40What is the purpose of applying a view criteria to a list accessor (that defines the data source of a list of values)? (Choose the best answer.)

A. It allows the data in the list to be filtered based on the view criteria.

B. Defining a view criteria allows you to specify different UI options for the list of values.

C. It automatically gives end users a search panel from which they can filter the data in the list of values.

D. It defines the order in which the data in the list appears.

E. It automatically prevents excessively long lists of values by forcing the application of view criteria if the list of values has more than a defined number of rowsreturned.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:In an ADF application a view accessor is considered as an approach to access a view object from another view object or entity object. The view accessors aremostly used to provide result sets for the lists of values.

A view criteria you define lets you specify filter information for the rows of a view object collection. The view criteria object is a row set of one or more view criteriarows, whose attributes mirror those in the view object. The view criteria definition comprises query conditions that augment the WHERE clause of the target viewobject. Query conditions that you specify apply to the individual attributes of the target view obje

References: https://docs.oracle.com/cd/E15523_01/web.1111/b31974/bcquerying.htm#ADFFD21779

QUESTION 41Which two components allow you to divide your page into two sections, where one section can be collapsed and expanded by the user, without the need to codelogic in a backing bean? (Choose two.)

A. af:panelBorderLayout

B. af:panelSplitter

C. af:stretchLayout

D. af:panelDrawer

E. af:panelTabbed

Correct Answer: ABSection: (none)

Page 34: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

Explanation

Explanation/Reference:A: The panelBorderLayout component is a layout element which lays out all of its children consecutively in its middle, and supports twelve other facets: top, bottom,left, right, start and end. Clients should use only one of left/right or start/end for each side, in any one container, but if both are used, left/right "wins". Left, InnerLeft/Right InnerRight always means left/right regardless of LTR or RTL. Start, InnerStart/End, InnerEnd will respect bidi setting.B: PanelSplitters are used to divide a region into two parts with a repositionable divider. The two parts are identified as the "first" facet and the "second" facet. If thecontained component supports it, the contents of a section will stretch to fill up all available space in that section. The panel splitter can be adjusted with the mouse,by pressing a collapse button, or by use of the arrow keys when the splitter is selected.

Incorrect Answres:C: The panelStretchLayout component stretches the child in the center facet to fill all of available space. The available space may be constrained by the presence ofother children in the top/bottom/start/end facets.

D: The panelDrawer control can be used to display a group of showDetailItems. Drawer "handles", aka tabs, represent the showDetailItem children. Selecting a tab/handle opens the drawer and displays the associated showDetailItem.

E: The panelTabbed control can be used to display a group of contents that belongs to a showDetailItem. Tab bar(s) with tabs representing the showDetailItemchildren are displayed. Selecting a tab, displays the associated showDetailItem.

References: http://docs.oracle.com/cd/E15523_01/apirefs.1111/e12419/tagdoc/af_panelSplitter.htmlhttp://docs.oracle.com/cd/E12839_01/apirefs.1111/e12419/tagdoc/af_panelBorderLayout.html

QUESTION 42You have written a Groovy validation expression for the Employees entity object. How would you customize the error message to show the value of the LastNameattribute as all uppercase? (Choose the best answer.)

A. Add a token to the validation error message and define the token value as LastName.toUpperCase().

B. Add a token to the validation error message and define the token value as adf.object.hints.toUpperCase.

C. Add a token to the validation error message and define the token value as adf.object.hints.value.toUpperCase.

D. Manually change the error string in the ModelBundle.properties file to be uppercase.

E. Insert adf.error.raise ("< your error message>” + LastName.toUpperCase()) into the validation code as part of the failure processing.

Correct Answer: ESection: (none)Explanation

Explanation/Reference:

Page 35: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

QUESTION 43You have two entities, ItemEO and ProductEO. ItemEO contains the OrderId, ItemId, ProductId, Price, and Quantity attributes. ProductEO contains theId, ProductName, and ListPrice attributes. You need to return rows as shown in the table.

How would you create a view object to encapsulate these rows? (Choose the best answer.)

A. Create a view object based on the ItemEO entity and add ProductEО as a reference entity.

B. Create a view object based on the ItemEO entity and modify the generated query to include SELECT ProductEO.NAME, ProductEO.ID, FROMS_PRODUCT ProductEO.

C. Create a view object based on the ItemEO entity and modify the WHERE clause to include ItemEO.PRODUCT_ID = ProductEO.ID.

D. Create a view object based on the ItemEO entity and create a view criteria to add ItemEO.PRODUCT_ID - :productId. Define productId as a bindvariable to be passed in by the UI.

E. Create a view object based on the ItemEO entity and change the query mode to Expert. Define the query as SELECT Item.ORD_ID, Item.ITEM_ID,Item.PRODUCT_ID, Product.NAME, FROM S_ITEM Item JOIN S_PRODUCT Product ON Item.PRODUCT_ID=Product.Id.

Correct Answer: ESection: (none)Explanation

Explanation/Reference:

QUESTION 44Where could you write code to change the color of a JSF input text component if the value of the salary field on the same page is higher than a fixed value?(Choose the best answer.)

A. in a backing bean

B. in the validation for the view object’s salary attribute

C. in the CSS file that defines the skin for the application

Page 36: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

D. in a custom validator defined at the field level

Correct Answer: DSection: (none)Explanation

Explanation/Reference:In JSF, there is no official way to validate multiple components or fields. To solve it, you need to create a custom validator.

References: http://www.mkyong.com/jsf2/multi-components-validator-in-jsf-2-0/

QUESTION 45Select three options that page template developers can use when creating a page template. (Choose three.)

A. Create a page template based on a quick start layout.

B. Create a page template based on an existing JavaServer Faces (JSF) page.

C. Create a JavaServer Faces Fragment (JSFF) and register it as a page template.

D. Create a page template based on an existing template.

E. Create a page or fragment from a blank layout and register it as a page template.

F. Create a page template from a blank layout.

Correct Answer: BDFSection: (none)Explanation

Explanation/Reference:

QUESTION 46Which option is not supported by an af:table component? (Choose the best answer.)

A. turning off filtering for specific columns

B. grouping two columns under a single title

C. expandable area for each row

D. nested af:table for each row

E. automatically switching a row to edit when the user clicks a row

F. multiple row selection

Page 37: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Incorrect Answers:B: Column Groups<af:column> tags can be nested to produce groups of columns. The header of a column group spans across all the columns it contains.

E: The activeRowKey attribute is the row that is currently active on the client. In click-to-edit mode, the active row will be made editable and is brought into view.

F: Valid values for columnSelection, whether columns in this table are selectable, is none, single, and multiple.

References: http://docs.oracle.com/cd/E23943_01/apirefs.1111/e12419/tagdoc/af_table.html

QUESTION 47What is the first step you perform to secure an ADF application? (Choose the best answer.)

A. Edit the web.xml file and adf-confiq.xml file to include the ADF authentication servlet configuration.

B. Merge the application roles into the deployment server's roles.

C. Define a lifecycle listener to intercept the HTTP request for the application’s URL.

D. Use the Configure ADF Security wizard to enable security for the application.

E. Create a login page and run the application authenticated as the test-all user.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:To simplify the configuration process which allows ADF Security to integrate with OPSS, JDeveloper provides the Configure ADF Security wizard. The wizard is thestarting point for securing the Fusion web application using ADF Security. The wizard is an application-level tool that, once run, will enable ADF Security for all userinterface projects that your application contains.

References: https://docs.oracle.com/cd/E21764_01/web.1111/b31974/adding_security.htm#ADFFD19890

QUESTION 48Which code sample is the recommended way to override the create() method in EmployeesImpl, an implementation of oracle.jbo.server.EntityImplfor the Employee's entity object, to set default salary? (Choose the best answer.)

A. protected void create(AttributeList attributeList) {

Page 38: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

SetAttributeInternal (SALARY, 0);super.create(attributeList);}

B. protected void create(AttributeList attributeList) {super.create(attributeList);setAttributeInternal("SALARY", 0);}

C. protected void create(AttributeList attributeList) {super.create(attributeList);setSalary(0);}

D. protected void create(AttributeList attributeList) {setSalary(0);}

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Instances of subclasses should call super.create() before performing any operations.

References: http://docs.oracle.com/cd/E28280_01/apirefs.1111/e10653/oracle/jbo/server/EntityImpl.html

QUESTION 49The EmployeesVO view object is based on the Employees table and includes a DeptId attribute.However, DeptId is not really meaningful to the end user and so, for each employee returned by EmployeesVO, you need to show the correct DepartmentName,which comes from the Departments table and is referenced by the EmployeesVO DeptId attribute.

How can you achieve this behavior by using the declarative features of ADF Business Components? (Choose the best answer.)

A. Add a transient attribute to EmployeesVO and set its value to select DepartmentName from Departments where DeptId =:EmployeesView.DeptId.

B. Create a database view to join the Departments and Employees tables and base the view object on that view.

C. Define that EmployeesVO is also based on the Departments entity object. Then select "Add attribute from entity" in the EmployeesVO view object and select DepartmentName from the Departments entity object.

D. For the EmployeesVO view object, select the query and add WHERE Employees. DEPARTMENT_ID = Departments.DEPARTMENT_ID.

E. Add a transient attribute called DepartmentName in the view object and, in the ViewRowImpl class, override the getDepartmentName() accessor to:return (String) getAttributeInternal(DEPARTMENTNAME);

Page 39: Oracle.Actualtests.1z0-419.v2018-10-15.by.Jessica€¦ · Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the

https://www.gratisexam.com/

Correct Answer: ASection: (none)Explanation

Explanation/Reference:References: http://oracle-adf-blog.blogspot.se/2015/05/creating-join-view-object.html

QUESTION 50Your organization has specified that menu components should be located on the left-hand side of a page and that the main content should be displayed in thecenter.

How do you ensure that developers adhere to this standard? (Choose the best answer.)

A. Ask all developers to use the two-column quick start layout.

B. Create a page template that defines the specified layout and distribute it to developers.

C. Create an ADF library that contains a collection of ADF Faces components that developers must use.

D. Create a task flow template that defines the specified layout; this will enforce the correct layout on all pages that are built from the template.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:

https://www.gratisexam.com/