org.apache.shale.blank
Class WelcomeBean

java.lang.Object
  extended by org.apache.shale.view.AbstractFacesBean
      extended by org.apache.shale.view.AbstractViewController
          extended by org.apache.shale.blank.WelcomeBean
All Implemented Interfaces:
org.apache.shale.view.ViewController

public class WelcomeBean
extends org.apache.shale.view.AbstractViewController

Sample ViewController class for /welcome.jsp.


Constructor Summary
WelcomeBean()
           
 
Method Summary
 Date getTimestamp()
          Return the current date and time value.
 void prerender()
          Just before rendering occurs, set the timestamp property to the current date and time.
 void setTimestamp(Date timestamp)
          Set the current date and time value.
 
Methods inherited from class org.apache.shale.view.AbstractViewController
destroy, init, isPostBack, preprocess, setPostBack
 
Methods inherited from class org.apache.shale.view.AbstractFacesBean
erase, error, error, fatal, fatal, getApplication, getApplicationMap, getBean, getExternalContext, getFacesContext, getLifecycle, getRequestHeaderMap, getRequestMap, getRequestParameter, getRequestParameterMap, getRequestParameterValues, getSessionMap, getValue, info, info, log, log, retrieveData, saveData, setBean, setValue, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WelcomeBean

public WelcomeBean()
Method Detail

getTimestamp

public Date getTimestamp()

Return the current date and time value.


setTimestamp

public void setTimestamp(Date timestamp)

Set the current date and time value.

Parameters:
timestamp - The new date and time value

prerender

public void prerender()

Just before rendering occurs, set the timestamp property to the current date and time.

Specified by:
prerender in interface org.apache.shale.view.ViewController
Overrides:
prerender in class org.apache.shale.view.AbstractViewController


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.