templating is a useful facelets feature that allows you to create a page that will act as the base,

Download Templating is a useful Facelets feature that allows you to create a page that will act as the base,

Post on 29-May-2020




0 download

Embed Size (px)


  • https://www.gratisexam.com/


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



    Oracle Application Development Framework 12c Essentials

  • https://www.gratisexam.com/

    Exam A

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


    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: ABD Section: (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 Facelets feature 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 and avoid 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 2 Your page contains the following code that is invoked on an action by the current user:

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

    package view;

  • 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:>

    emp view. Employee pageFlowScope

    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: C Section: (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 the value 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}. This enables 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 3 Consider the following code:

  • 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: C Section: (none) Explanation


    QUESTION 4 Which 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: ABC Section: (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 attributes The mandatory flag on attributes, based on NOT NULL constraints

  • https://www.gratisexam.com/

    The length and precision of each attribute The 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 column The 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 5 For 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: C Section: (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 was changed 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 about this. 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 Change Indicator. This property defines specific attribute to be responsible for row data changes tracking, instead of checking every attribute. Only if Change Indicator attribute 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 6 View the Exhibit.

  • 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? (Choose the best answer.)

  • 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 data model 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 data model 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 the OrdVO 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 select Generate View Link.

    Correct Answer: B Section: (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 you want 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 between two 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 one view 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 7 Which three statements are true about af:panelTabbed? (Choose three.)


    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.

  • https://www.gratisexam.com/

    Correct Answer: BDE Section: (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_panelTabbe