Show TOC

Procedure documentationDefining Element Content Locate this document in the navigation structure

Procedure

In general, BSP elements have a particular content. This means that the resulting tags consist of a start and an end tag, and between these two there are either further (embedded) tags, script elements, or even simply just text. By selecting the option for the element content in the attribute display of the BSP element, you can define whether and which content should be embedded in the element.

You can select the following options:

Empty

You select this option if the BSP element is not to have any content.

Syntax Syntax

Example: Example: Input field from the BSP extension HTMLB

  1. <ui:inputField id="myID" value="" />
End of the code.

or

Syntax Syntax

  1. <ui:inputField id="myID" value="" >
    </ui:inputField >
    
End of the code.

Only BSP Elements

By selecting this option, you define that the BSP element is only to contain further BSP elements. Any existing HTML part will be ignored by the runtime environment. This reduction enables you to achieve performance optimization during runtime.

Syntax Syntax

Example: Example: Tree element from HTMLB

  1. <ui:tree id="myTREE">
      <ui:treeNode id="ROOT" text="Root node">
        <ui:treeNode id="N1" text="Node 1"/>
        <ui:treeNode id="N2" text="Node 2"/>
      </ui:treeNode>
    </ui:tree>
    
End of the code.

BSP Elements and Static HTML

The element can include both further BSP elements as well as any HTML part.

Syntax Syntax

Example: Example: Tree element from HTMLB

  1. <ui:form id="myFormID" method="POST">
      <ui:inputField id="myID" value="" size="24"/>
        <br><br>
        Some text.....
        <a HREF="" ...> ...</a>
    </ui:form>
End of the code.

Element Interprets the Content Itself

With this selection, you define that the content of the element is to be passed on unchanged, without previous parsing, to the element handler class. This is appropriate whenever an interpretation of the element content is not required by the runtime environment.

Syntax Syntax

Example: Example: The BSP element executes an SQL statement that must be specified in the element content.

  1. <sql:selectStatement>
      SELECT * from SFLIGHT into table myFlights
    </sql:selectStatement >
    
End of the code.