generated controller should inherit a base class
------------------------------------------------

         Key: JSF-4
         URL: http://jira.andromda.org/browse/JSF-4
     Project: JSF cartridge
        Type: Improvement
    Reporter: Wenhu Guan
 Assigned to: Chad Brandon 


I saw a lot of functions like:
protected javax.faces.context.FacesContext getContext()
    {
        return javax.faces.context.FacesContext.getCurrentInstance();
    }
    
    protected javax.servlet.http.HttpServletRequest getRequest()
    {
        return 
(javax.servlet.http.HttpServletRequest)this.getContext().getExternalContext().getRequest();
    }

are common across all controller classes. Although we won't bother the 
controller class, but it is still nice feature to put all those functions to a 
base class or a helper class.

What do you think?

Thanks




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

Reply via email to