Decorator pageContext is null
-----------------------------

         Key: DISPL-322
         URL: http://jira.codehaus.org/browse/DISPL-322
     Project: DisplayTag
        Type: Bug

    Versions: 1.1    
    Reporter: Jeff Sheets


The getPageContext method of the Decorator base class is returning null in 
version1.1 (I never tried this in 1.0).  From a quick glance at the Decorator 
source, it appears that the problem is at line 88:

init(pageContext, decorated); should instead be init(context, decorated);

Here is the method that this line is in:
    public void init(PageContext context, Object decorated, TableModel 
tableModel)
    {
        // temporary used for backward (source) compatibility
        init(pageContext, decorated);
        // this.pageContext = context;
        // this.decoratedObject = decorated;
        this.tableModel = tableModel;
    }

Notice that the "pageContext" class variable is incorrectly passed into the 
init method instead of the "context" parameter.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to