Sunday 6 March 2016

ADF Interview Questions - Set 5

Question: How to identify default activity in bounded task flow?
Answer: A green circle identifies the default activity in a task flow diagram.The first activity that you add to a new ADF bounded task flow diagram is automatically identified as the default activity. You can also right-click any activity in the task flow diagram and choose Mark Activity > Default Activity. The default can be any activity type and it can be located anywhere in the control flow of the ADF bounded task flow. To find the default activity, right-click anywhere on the task flow diagram and choose Go to Default Activity.

Question: What is <f:facet>?
Answer: This tag is used to add a child facet to the parent component. With the help of this tag we can add header and footer facet to the container component like panelGroup. This tag contains one attribute "name". This is the required attribute and is used to set the name of the facet. "header" and "footer" values can be used for this attribute.

Question: How to pass 'af:selectOneChoice' value to other page?
Answer: Add valuePassThru="true" attribute to select list. 

Question: What are types of ADF Faces components?
Answer: ADF Faces components:
Data components
Input components
Layout components
Navigational components
Output components

Question: What is Bundled Exception Mode in ADF?
Answer: An application module provides a feature called bundled exception mode which allows web applications to easily present a maximal set of failed validation exceptions to the end user, instead of presenting only the first error that gets raised. By default, the ADF Business Components application module pool enables bundled exception mode for web applications.

You typically will not need to change this default setting. However it is important to understand that it is enabled by default since it effects how validation exceptions are thrown. Since the Java language and runtime only support throwing a single exception object, the way that bundled validation exceptions are implemented is by wrapping a set of exceptions as details of a new "parent" exception that contains them. For example, if multiple attributes in a single entity object fail attribute-level validation, then these multipleValidationException objects will be wrapped in a RowValException. This wrapping exception contains the row key of the row that has failed validation. At transaction commit time, if multiple rows do not successfully pass the validation performed during commit, then all of the RowValException objects will get wrapped in an enclosing TxnValException object.

Question: What are UI Hints and List UI Hints?
Answer: UI Hints: VO -> Query -> Create or Edit view criteria -> click Tab UI Hints
Use to specify the default properties for a query search component’s runtime usage of individual named view criteria. Named view criteria that you create for view object collections can be used by the web page designer to create query-by-example search forms.



List UI Hints: Open view-object -> List UI Hints

Use to specify default LOV (list of values) hints when you want the LOV-enabled attributes of other view objects to inherit the list UI hints from the current view object. Use to specify the type of LOV (list of values) component and one or more attributes to display in the LOV for the attributes that you will LOV-enabled. Additionally, you can set properties of the LOV component to customize it behavior in the user interface.






No comments:

Post a Comment