menjajal komponen select tapestry5

File .tml

<html xmlns:t="">

 <t:label for="hp"/><t:select t:id="hp" t:model="literal:nokia,cross,sony,motorola"/>
 <t:submit t:value="Pesan"/>
 <t:if test="hp">
 Item dipesan : ${hp}


File .java

package com.example.tutorial.pages;

import org.apache.tapestry5.annotations.Persist;
 import org.apache.tapestry5.annotations.Property;

public class Tselect {

 private String hp;

void onActivate(String hp){
 hp = hp;

Object onPassivate(){
 return hp;



Published by


Begin a big Process with a bit trying

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s