Go Component Index Input

wml:Image
org.apache.tapestry.wml.Image
Image Component
 
Description
Displays a WML image, deriving the source URL for the image from an asset. Note that not all devices can display images.
See Also
Parameters
Name Type Direction Required Default Description
image IAsset in yes   The asset to display.
alt String in no   This attribute specifies an alternative textual representation for the image. This representation is used when the image can not be displayed using any other method

Body: removed
Informal parameters: allowed
Reserved parameters: src

Example

This example uses a <context-asset> to reference the image. It implements a splash screen.

WML Image Example

Template

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN"
"http://www.wapforum.org/DTD/wml12.dtd">

<wml>

<card id="card0" title="Animal QUIZ" ontimer="#card1" newcontext="true">
 <timer name="t" value="20"/>
 <p align="center">
  <br/>
  <img jwcid="@wml:Image" image="ognl:assets.logo" alt="WMLZoo"/>
  <br/>
  <strong>Animal QUIZ</strong>
  <br/>
 </p>
</card>

<card id="card1" title="Animal QUIZ" newcontext="true">
<p>Welcome!
<br/>
</p>

</card>

</wml>

Specification

<page-specification class="org.apache.tapestry.wap.quiz.Home">
 <context-asset name="logo" path="images/logo.wbmp"/>
</page-specification>

 


Go Component Index Input