Part III Fundamentals of Mobile Content
Create Sub-Groups
As you organize your content, on certain occasions you may want to create sub-groups; in other
words, create groups within groups. Defining a group within the body of the parent group creates
sub-groups.
The following example demonstrates how the company details group is further divided into two
sub-groups: one for the name; the other for the contact information.
<mm-group id="gp_company_details title="Details">
<mm-head id="hd_company_details" useradded="no">
Company Details
</mm-head>
<mm-body id="body_company_details" idref="hd_company_details">
<mm-group id="company_name" title="Name">
<mm-head id="hd_company_name" useradded="no">
Company Name
</mm-head>
<mm-body id="bd_company_name" idref="hd_company_name">
<p>ABC Company Ltd.</p>
</mm-body>
<mm-group>
<mm-group id="contact_info" title="Contact">
<mm-head id="hd_contact_info" useradded="no">
Contact Information
</mm-head>
<mm-body id="bd_ contact_info" idref="hd_contact_info">
<p>North Business Park, Circular Road, Dublin, Ireland</p>
<p>Phone: 888-000-111</p>
<p>Fax: 000-888-111</p>
</mm-body>
</mm-group>
</mm-body>
</mm-group>
It is important to note that when using nested groups (sub-groups), text that displays outside the
head and body of a sub-group will not appear when transformed for menu-driven devices even
though it may, in fact, be inside the body of an outer group. The reason for this is that the text is
interpreted by WebLogic Mobility Server as being logically part of the sub-group rather then as
text within the body of the surrounding group.
Work with Implicit Groups
Implicit groups are XHTML elements that can be assigned an
or a text area. Rather than re-marking these with the
directly within a layout through their existing
normally have an explicit ID (such as a paragraph, or a sentence) you can assign one by wrapping
it in a
or
<div>
<span>
<div id="ceo_1" align="right">John Doe</div>
Note: Implicit groups can only be referenced from within layout files. Using an
does this. Implicit groups are not allowed for menu-driven devices (that is, groups that are
referenced inside an
<mm-structure>
38 - BEA WebLogic Mobility Server User Guide
id
tag as follows.
tag).
attribute, such as a table, a form
id
tag, you can reference them
<mm-group>
attribute. For other content that does not
<mm-id-ref>
Need help?
Do you have a question about the WebLogic and is the answer not in the manual?