Sun Java System Portal Server Mobile Access 7.1 Developer's Reference

AmlContainer

Description

An AmlContainer element contains text that is not passed through the rendering engine; therefore, the text appears on browsers in the original format, for example, in javascript or in a native markup language, such as WML. You can add an AmlContainer element to any element that accepts an AmlText element.

Element Body

Empty

Parent

AmlDocument, AmlPage, AmlChoice, AmlOption, AmlForm, AmlTable, AmlTableRow, AmlTableCol, AmlTableHead, AmlInput, AmlLink, AmlControlMenu, AmlTextArea, AmlCheckBox, AmlText, AmlBr, AmlImage, AmlGroup, AmlListItem, AmlSelectListItem, AmlOrderedList, AmlList, AmlSelectList, AmlSpace

Restrictions

None

AML Attributes

Attribute  

Description  

Possible values  

Default  

Req’d?  

persist 

Set persist flag. 

(true|false) 

false 

No 

text 

Set text in container 

   

No 

Markup Language Examples

Sample AML Input:

<AmlDocument title="Welcome">
	<AmlPage title="Script">
		<AmlContainer text="&ltbr/&gt;"/> </AmlPage>
</AmlDocument>

Sample WML Output:

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<head>
		<meta http-equiv="Cache-Control" content="max-age=0"/>
</head>
<card id="agp0">
		<p align="center">Script</p>
			<br/> </card>
</wml>

Sample cHTML Output:

<html>
	<head>
		<title>Welcome</title>
		<meta name="PalmComputingPlatform" content="true"></meta>
		<meta http-equiv="Pragma" content="no-cache"></meta>
		<meta http-equiv="Cache-Control" content="no-cache"></meta>
	</head>
	<body>
		<div align="center">
			<a name="agp0">Script</a>
		</div><br/>
	</body>
</html>