History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: JSF-4
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Chad Brandon
Reporter: Wenhu Guan
Votes: (View)
Watchers: (View)
Operations

If you were logged in you would be able to see more operations.
JSF cartridge

generated controller should inherit a base class

Created: 28/Nov/05 05:31 AM   Updated: 28/Nov/05 05:31 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None


 Description   
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

 All   Comments   Change History      Sort Order:
There are no comments yet on this issue.