[ http://jira.codehaus.org/browse/DISPL-310?page=comments#action_61036 ]
Jose Quintanilla commented on DISPL-310: ---------------------------------------- Hello,... well i found the problem i maybe can used my sugestion. If you saw the attach file I'll be extended the class TableTag and ColumnTag. After I review the code of displaytag I see there is somethings maybe canbe updated like this: (just my sugestions). In TableWritertemplate the method writeTable, has an only big try catch, maybe its better if this byg try-catch can be separated in the necesary try-catch over each method calle inside this method, using the corresponding log4j for example. (that helps to found more quickly any exception). my problem was like i was extended the TableTag, but with the new version 1.1, in my code was missing some code aparently now necesary like id, footer, a more necesary the caption. if you see my code I set the Caption, but when get inside of HtmlTableWriter.java i think is necesary change to something like this: protected void writeCaption(TableModel model) { if (captionTag != null){ this.write(captionTag.getOpenTag() + model.getCaption() + aptionTag.getCloseTag()); }else{ this.write( model.getCaption()); } } that because like this case I'll be setting the Caption using something like this: this.setCaption("<caption>"+ tcDataSet2D.getDescription() +"</caption>"); and not using the object CaptionTag. Maybe I need to set in my code something to set the CaptionTag and not modified the method writeCaption such above write These are my sugestions, i hope you can review this, i'll be waiting your commentaries. thanks > Problem Extended TableTag with columnDecorator with DisplayTag1.1 version > ------------------------------------------------------------------------- > > Key: DISPL-310 > URL: http://jira.codehaus.org/browse/DISPL-310 > Project: DisplayTag > Type: Task > Components: Decorators > Versions: 1.0, 1.1 > Reporter: Jose Quintanilla > Attachments: Problem description.txt > > > Hi. I'be using this great Tool since long time ago. > I'be using DisplayTag extended the class TableTag with colunmDecorator, > without any TableDecorator it works very well until last realese 1.1, when I > found there isn't still work my apliccation with the last realese.! > At class TableTag calls to writeHTMLData(); method which calls > new HtmlTableWriter( this.tableModel, this.properties, this.baseHref, > this.export, > out, getCaptionTag(), this.paginatedList, this.listHelper, > this.pagesize, > getAttributeMap(), this.uid).writeTable(this.tableModel, > this.getUid()); > given a NullPointerException at "PageContext" which isn't null. Only I can > presum the problem is with the "tableModel", in wich the table decorator and > footer are null. (I'm not using a TableDecorator) > Can anybody tell me which other characteristic maybe in "tableModel" u other > is necesary to avoid this NullPointerException in the "page context". > Thanks. -- 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