blob: 4dbe0c837c5e653ee44465b304639099d8da5159 [file] [log] [blame]
package ${packageName}.pages;
import org.apache.tapestry.html.BasePage;
import org.apache.tapestry.services.ResponseBuilder;
import java.util.Date ;
/**
* Start page of "${artifactId}".
*/
abstract public class Home extends BasePage
{
abstract public ResponseBuilder getResponseBuilder() ;
/**
* Re-renders (via ajax) the Tapestry node containing the date and time.
*/
public void refresh ()
{
getResponseBuilder().updateComponent("time");
}
/**
* a synthesized property returning the current time.
*
* @return the current data and time
*/
public Date getCurrentTime()
{
return new Date();
}
}