Siebel Developer's Reference > Siebel Web Engine Tags >

swe:idgroup


SWE supports having separate Siebel object-to-SWE tag mappings for various browsers. To support this feature, use a namespace. A namespace is defined by using a new SWE tag called swe:idgroup.

Syntax

swe:idgroup

Usage

<swe:idgroup name="xxx">

Attributes

Name. The namespace ID.

For example, consider the following requirement. You want to show an applet with a DHTML-based menu in an IE 5.0 browser, with regular controls in place of the tasks performed by the menu with other browsers. All other controls in the applet are the same for all the browsers. You can have browser-specific mappings by enclosing those mappings within a swe:idgroup tag as shown here:

<swe:switch>

<swe:case condition="Web Engine User Agent, IsMemberVirtualUA, 'VirtualAgent:IE5'">

<swe:idgroup name="IE5">

<swe:menu>

...

</swe:menu>

</swe:idgroup>

</swe:case>

<swe:default>

<swe:idgroup name="NonIE5">

<swe:control id="1" ..>

<swe:control id="2" ..>

</swe:idgroup>

</swe:default>

</swe:switch>

<swe:control id="3" ..>

<swe:control id="4" ..>

In this case, when applet controls are mapped to swe:control tags with IDs 1 and 2, they are marked with the namespace "NonIE5". There is a new attribute of "Applet Web Template Item" object called "Namespace" that stores the namespace value. When the mapping is done using the visual Web Layout editor in Siebel Tools, this attribute is filled in automatically. The mappings to swe:control tags with IDs 3 and 4 are outside the namespace; hence, this attribute is NULL for these mappings.

The namespace can be applied to other Siebel object-to-SWE tag mapping, such as applets and page items.

Siebel Developer's Reference Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices.