What should be the scope of the GiftlistSearch component?
A.
GiftlistSearch should be request scoped
B.
GiftlisSearch should be session-scoped because multiple pages are
typicallyinvolvedingathering and displayinginformation.
C.
GiftlisSearch Search should be global scoped as it is a stateless componentinvoking
GiftlistManager.
D.
GiftlistSearch scope cannot be changed as It Is overridden by ATG when itinitializes and its life
cycle is timer based.
Explanation:
GiftlistSearch should be session-scoped because multiple pages are typically
involved in gathering and displaying information for gift list searching (for example, you might want
to maintain a list of results for paging purposes). This form handler uses supporting servlet beans
to add the retrieved gift lists to the customer’s profile and to display gift list contents.
Note: The GiftlistSearch form handler is used to search the repository for gift lists based on
properties other than id. The handler uses input from the customer such as owner name, event
name, event type, and state to find gift lists that other customers have published and to return a
list of gift lists that match the given criteria.
ATG Commerce Programming Guide, Gift List Form Handlers