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

AmlSelectListItem

Description

An AmlSelectListItem is a standard list item. An AmlSelectListItem can be an item in an AmlSelectList. An AmlSelectListItem has no attributes.

Element Body

(((AmlContainer | AmlLink)*, AmlStyle?)

Parent

AmlSelectList

Restrictions

None

AML Attributes

Attribute  

Description  

Possible values  

Default  

Req’d?  

None 

Not Applicable 

Not Applicable 

Not Applicable 

Not Applicable 

Markup Language Examples

Sample AML Input:

<AmlDocument bold="true" title="Welcome">
  <AmlPage title="Chooser" bold="true">
    	<AmlSelectList>
      		<AmlSelectListItem> 
				<AmlLink url="Running" text="Running"/> 
				</AmlSelectListItem> 
				<AmlSelectListItem>
        	<AmlLink url="Jumping" text="Jumping"/>
      		</AmlSelectListItem> 
				<AmlSelectListItem>
        	<AmlLink url= "Skipping" text="Skipping"/> 
				</AmlSelectListItem>
		</AmlSelectList>
  </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">Chooser</p>
		<p>
		<select>
			<option onpick="Running">Running</option>
			<option onpick="Jumping">Jumping</option>
			<option onpick="Skipping">Skipping</option>
		</select>
		</p>
	</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">
				<b>Chooser</b>
			</a>
		</div>
			<a href="Running">Running</a><br>
			<a href="Jumping">Jumping</a><br>
			<a href="Skipping">Skipping</a><br>
	</body>
</html>