Class Name

atg.commerce.gifts.GiftlistDroplet

Component(s)

/atg/commerce/gifts/GiftlistDroplet

The GiftlistDroplet servlet bean adds or removes other customers’ gift lists from a customer’s profile.

Input Parameters

action (Required)
The action to perform on the gift list.

giftlistId (Required)
The ID of the gift list.

profile
The profile of the current customer. If not passed, the profile will be resolved by Nucleus.

Output Parameters

None.

Open Parameters

output
The open parameter rendered if the gift list is added or removed successfully from a profile.

error
The open parameter rendered if an error occurs while adding or removing the gift list.

Example

The following code example demonstrates how to use the GiftlistDroplet to add a retrieved gift list to a customer’s profile.

<dsp:droplet name="/atg/dynamo/droplet/IsEmpty">
<dsp:param param="giftlistId" name="value"/>
<dsp:oparam name="false">
 <dsp:droplet name="/atg/commerce/gifts/GiftlistDroplet">
   <dsp:param param="giftlistId" name="giftlistId"/>
   <dsp:param value="add" name="action"/>
   <dsp:param bean="/atg/userprofiling/Profile" name="profile"/>
 </dsp:droplet>
</dsp:oparam>
</dsp:droplet>

Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices