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

AmlControlMenu

Description

An AmlControlMenu is an individual menu item that is a link to a URL. An AmlControlMenu is added to an AmlPage. All AmlControlMenus added to a page are gathered and placed together in a common location to form the menu.

Element Body

((AmlContainer*, (AmlText | AmlImage)?, AmlStyle?)

Parent

AmlForm, AmlTableCol, AmlGroup, AmlListItem

Restrictions

None

AML Attributes

Attribute  

Description  

Possible values  

Default  

Req’d?  

url 

Set URL for AmlControlMenu

CDATA 

No Default 

Yes 

label 

Deprecated

CDATA 

No Default 

No 

italics 

Deprecated

(true|false) 

false 

No 

bold 

Deprecated

(true|false) 

false 

No 

underline 

Deprecated

(true|false) 

false 

No 

text 

Deprecated

CDATA 

No Default 

No 

textsize 

Deprecated

(big|normal|small) 

normal 

No 

key 

Set selection key 

(options|accept|prev) 

options 

No 

Markup Language Examples

Sample AML Input:

<?xml version="1.0" encoding="ISO-8859-6"?>
<AmlDocument>
	<AmlPage>
		<AmlControlMenu url="http://watchita" label="hehe" key="accept"/
		<AmlText text="Moon watchers in North America can see the lunar eclipse." />
	</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"></p>
			<do label="hehe" name="hehe" type="accept">
			<go href="http://watchita" sendreferer="true"/>
			</do> <p>Moonwatchers in North America
			can see the lunar eclipse.</p>
</card>
</wml>

Sample cHTML Output:

<html>
	<head>
		<title></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"></a>
		</div>
			<div><a href="http://watchita">hehe</a>
			</div> Moonwatchers in North America can see the lunar eclipse.
	</body>
</html>