Siebel Self-Service Application Developer's Guide > Customizing Pages for Siebel Self-Service Applications >

Page Flow Example for the Self-Service Shopping Cart


The following code example shows the sections of the faces-config-base.xml file that define the behavior of the Shopping Cart:

  • Navigation rules
  • Backing beans, which are managed beans that contain event handler methods
<!-- Shopping Cart Navigation Rules -->

<navigation-rule>

<!--from-view-id>/ss/base/cart/CartDetail.jspx</from-view-id-->

<!--from-view-id>/*</from-view-id-->

<!-- Without from-view-id, access is allowed to Shopping Cart detail and checkout pages from the Shopping Cart bin on any page. -->

<navigation-case>

<from-outcome>dialog:viewcart</from-outcome>

<to-view-id>/ss/base/cart/CartDetail.jspx</to-view-id>

</navigation-case>

<navigation-case>

<from-action>#{CartDetailBean.checkOutAction}</from-action>

<from-outcome>B2BCheckOut</from-outcome>

<to-view-id>/ss/base/cart/checkout/Shipping.jspx</to-view-id>

<redirect/>

</navigation-case>

<navigation-case>

<from-action>#{CartDetailBean.checkOutAction}</from-action>

<from-outcome>B2CCheckOut</from-outcome>

<to-view-id>/ss/base/cart/checkout/ShippingAndBillingB2C.jspx</to-view-id>

<redirect/>

</navigation-case>

<navigation-case>

<from-action>#{CartDetailBean.checkOutAction}</from-action>

<from-outcome>GUESTCheckOut</from-outcome>

<to-view-id>/ss/base/cart/checkout/PreCheckout.jsp</to-view-id>

<redirect/>

</navigation-case>

</navigation-rule>

<!-- Navigation from Shopping Cart Detail Page -->

<navigation-rule>

<from-view-id>/ss/base/cart/CartDetail.jspx</from-view-id>

<navigation-case>

<from-action>#{CartDetailBean.executeCartAction}</from-action>

<from-outcome>login</from-outcome>

<to-view-id>/ss/base/common/Login.jspx</to-view-id>

<redirect/>

</navigation-case>

<navigation-case>

<from-action>#{CartDetailBean.reconfigure}</from-action>

<from-outcome>reconfigure</from-outcome>

<to-view-id>/ss/base/catalog/ProductDetails.jspx</to-view-id>

</navigation-case>

<navigation-case>

<from-action>#{CartDetailBean.executeCartAction}</from-action>

<from-outcome>dialog:renameCart</from-outcome>

<to-view-id>/ss/base/cart/popup/RenameCart.jspx</to-view-id>

</navigation-case>

<navigation-case>

<from-outcome>continueShopping</from-outcome>

<to-view-id>#{CartDetailBean.continueShopping}</to-view-id>

<redirect/>

</navigation-case>

</navigation-rule>

...

<!-- Shopping Cart Backing Beans -->

<managed-bean>

<managed-bean-name>CartManageDisplayBean</managed-bean-name>

<managed-bean-class>oracle.apps.ss.base.view.cart.CartManageDisplayBean</managed-bean-class>

<managed-bean-scope>session</managed-bean-scope>

</managed-bean>

<managed-bean>

<managed-bean-name>CartDetailBean</managed-bean-name>

<managed-bean-class>oracle.apps.ss.base.view.cart.CartDetailBean</managed-bean-class>

<managed-bean-scope>request</managed-bean-scope>

<managed-property>

<property-name>bindings</property-name>

<value>#{bindings}</value>

</managed-property>

</managed-bean>

<managed-bean>

<managed-bean-name>CartListBean</managed-bean-name>

<managed-bean-class>oracle.apps.ss.base.view.cart.CartListBean</managed-bean-class>

<managed-bean-scope>request</managed-bean-scope>

</managed-bean>

...

  </faces-config>

Siebel Self-Service Application Developer's Guide Copyright © 2010, Oracle and/or its affiliates. All rights reserved. Legal Notices.