SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 258 | Next

Alexander Kolesnikov

"Tapestry 5: Building Web Applications"

util.Calendar class.
Having all these basics ready, we can create a class and a template for the future
component. They both should be placed into the com.packtpub.celebrities.
components package, and let them be named DateInput.java and DateInput.tml
correspondingly. Here is the content for the component template:
Chapter 8
[ 215 ]

t:encoder="encoder"/>

t:encoder="encoder"/>

Nothing special, as you see; just three Select components with their corresponding
values, models, and encoders in case of day and year.
All we need now is to provide all these parameters in the component class and to
handle properly any selection made by the user in the page class. Following is the
code for the component class:
package com.packtpub.celebrities.components;
import com.packtpub.celebrities.util.IntegerEncoder;
import com.packtpub.celebrities.util.IntegerSelectModel;
import com.packtpub.celebrities.util.Month;
import java.util.Calendar;
import java.util.Date;
import org.


Pages:
246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6