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

Customizing the Menu Model to Add the Survey Page


To customize the menu model to add the survey page, SRSurvey.jspx, you must do the following:

  • Add an entry in your customized version of the faces-config-base-menu.xml file to create the third-level menu for the survey page.
  • Add a managed bean property to control the rendering.
  • Modify the survey page to reference the SRSummary backing bean.
  • Modify the SRSummary backing bean.

For more information on the menu model and customizing it, see Customizing Menus for Siebel Self-Service Applications.

To customize the menu model to add the survey page

  1. Copy the faces-config-base-menu.xml file in the ViewController/public_html/WEB-INF directory, and rename it, for example, faces-config-ABC-menu.xml, where ABC is the name of your company.
  2. Replace faces-config-base-menu.xml with faces-config-ABC-menu.xml in ViewController/public_html/web.xml under the context parameter javax.faces.CONFIG_FILES:

    <context-param>

    <param-name>javax.faces.CONFIG_FILES</param-name>

    <param-value>...,/WEB-INF/faces-config-ABC-menu.xml,...</param-value>

    </context-param>

  3. Open faces-config-ABC-menu.xml in a text editor.
  4. Add a managed bean for the third-level menu:

      <managed-bean>

    <managed-bean-name>m3_SRSURVEY</managed-bean-name>

    <managed-bean-class>oracle.apps.ss.base.view.util.MenuItem</managed-bean-class>

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

    <managed-property>

    <property-name>label</property-name>

    <value>SS_SR_CREATE_REQUEST</value>

    </managed-property>

    <managed-property>

    <property-name>fileName</property-name>

    <value>/ss/base/sr/SRSurvey.jspx</value>

    </managed-property>

    <managed-property>

    <property-name>condition</property-name>

    <value>backing_ss_base_sr_SRSummary.SRSurveyRendered</value>

    </managed-property>

      </managed-bean>

  5. Add the third-level menu as a child of the second-level Service Request menu:

      <managed-bean>

    <managed-bean-name>m2_ServiceRequest</managed-bean-name>

    <managed-bean-class>oracle.apps.ss.base.view.util.MenuItem</managed-bean-class>

    ...

    <managed-property>

    <property-name>children</property-name>

    <list-entries>

    <value-class>oracle.apps.ss.base.view.util.MenuItem</value-class>

    <value>#{m3_SRCRCONFIRM}</value>

    <value>#{m3_SRCRSELECTTYPE}</value>

      <value>#{m3_SRREVIEW}</value>

      <value>#{m3_SRCONTACTINFO}</value>

      ...

      <value>#{m3_SRSUGGESTSOLUTION}</value>

      <value>#{m3_SRSURVEY}</value>

      <value>#{m3_SRREVIEWSINGLE}</value>

      ...

    </list-entries>

    </managed-property>

      </managed-bean>

  6. Open SRSurvey.jspx in Oracle JDeveloper or a text editor, and then modify the af:form tag as follows:

    <af:form binding="#{backing_ss_base_sr_SRSummary.srSurveyform}">

  7. Open the SRSummary managed bean (ViewController/src/oracle/apps/ss/base/view/sr/SRSummary.java) in Oracle JDeveloper or a text editor, and then add the following code:

    private CoreForm srSurveyform;

    public void setSrSurveyform(CoreForm form) {

    createSRTabCount = 12 //Assign a unique value.

    this.srSurveyform = form;

    }

    public CoreForm getSrSurveyform() {

    return srSurveyform;

    }

    public boolean getSRSurveyRendered() {

    if (createSRTabCount == 12) //Use the same value as above.

      return true;

    else

      return false;

    }

    NOTE:  You must assign to createSRTabCount a value that does not already exist in the SRSummary.java file.

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