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 136 | Next

Alexander Kolesnikov

"Tapestry 5: Building Web Applications"

Two types of components
are used??”a RadioGroup component that communicates with the page class to define
which radio button was selected, and a few Radio components that provide options
to choose from.
Simple Components
[ 108 ]
The value parameter of the RadioGroup component should be connected to a
property of the page class. In our case, this property is named gender, and we need
to ensure that this property exists. We also need to provide a few properties for the
username and password components to work properly. All in all, the page class
should at this stage look at similar to the following code listing:
package com.packtpub.celebrities.pages;
public class Registration
{
private String userName;
private String password;
private String password2;
private String gender;
public String getUserName()
{
return userName;
}
public void setUserName(String userName)
{
System.out.println("Setting user name: " + userName);
this.userName = userName;
}
public String getPassword()
{
return password;
}
public void setPassword(String password)
{
System.out.println("Setting password: " + password);
this.password = password;
}
public String getPassword2()
{
return password2;
}
public void setPassword2(String password2)
{
this.


Pages:
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6