Action Listener property.
- By Howard Ship
- August 16, 2001
Component Java
Tapestry: Java Web Components
Howard Ship
Listing 3. Action Listener property.
public IActionListener getShowPetListener()
{
return new IActionListener()
{
public void actionTriggered(IComponent component,
RequestCycle cycle)
throws RequestCycleException
{
PetDetail petDetailPage = (PetDetail)cycle.getPage(“PetDetail”);
petDetailPage.setPet(currentPet);
cycle.setPage(petDetailPage);
}
};
}