Adding the details component to a JSF application

Add the Business Process Choreographer Explorer list to a component JavaServer Faces (JSF) application to display the properties of tasks, work items, activities, process instances, and process templates.

Steps for this task

  1. Add the details component to the JavaServer Pages (JSP) file.

    Add the bpe:details tag to the <h:form> tag. You can add properties to the details component with the bpe:property tag. If the details component does not contain any properties, all of the properties of the object are displayed.

    The following example shows how to add a details component to display some of the properties for a task instance.

    <h:form>
    
       <bpe:details model="#{TaskInstanceDetails}">
          <bpe:property name="displayName" />
          <bpe:property name="owner" />
          <bpe:property name="kind" />
          <bpe:property name="state" />
          <bpe:property name="escalated" />
          <bpe:property name="suspended" />
          <bpe:property name="originator" />
          <bpe:property name="activationTime" />
          <bpe:property name="expirationTime" />
       </bpe:details>
    
    </h:form>

    The model attribute refers to a managed bean, TaskInstanceDetails. The bean provides the properties of the Java object.

  2. Configure the managed bean referred to in the bpe:details tag.

    For the details component, this managed bean must have the com.ibm.bpe.jsf.BPCDetailsHandler class. This handler class wraps a Java object and exposes its public properties to the details component.

    The following example shows how to add the TaskInstanceDetails managed bean to the configuration file.

    <managed-bean>
       <managed-bean-name>TaskInstanceDetails</managed-bean-name>
       <managed-bean-class>com.ibm.bpe.jsf.BPCDetailsHandler</managed-bean-class>
       <managed-bean-scope>session</managed-bean-scope>
       <managed-property>
          <property-name>type</property-name>
          <value>com.ibm.bpe.client.model.TaskInstanceBean</value>
       </managed-property>
    </managed-bean>

    The example shows that TaskInstanceDetails has a configurable type property. The value of this property (com.ibm.bpe.client.model.TaskInstanceBean) refers a mapping of the client model objects to the business process and human task objects.

Your JSF application contains the details component functionality.

Terms of use | | Broken links

Last updated: Tue Feb 21 17:21:51 2006

(c) Copyright IBM Corporation 2005.
This information center is powered by Eclipse technology (http://www.eclipse.org)