Dag Liodden wrote:

That fixed some of it. :) Now I get a NullPointerException here:

java.lang.NullPointerException
at javax.servlet.jsp.tagext.BodyTagSupport.getPreviousOut(BodyTagSupport.java:191)


at de.laures.cewolf.taglib.tags.ChartImgTag.doAfterBody(ChartImgTag.java:85)

Cheers,

Dag

Matt Ho wrote:

Dag Liodden wrote:

I'm trying to get the CeWolf taglib to work with WW/Velocity. However, findAncestorWithClass() fails with a null response. Does the #bodytag-directive support this and/or am I doing something wrong?

Here's my template:

$req.setAttribute("dataset", $dataset)
#bodytag(SimpleChart "id=line" "title='Test'" "type='line'" "xaxislabel='X'" "yaxislabel='Y'" )
#bodytag( Data )
#tag( Producer "id=dataset")
#end
#end


The ProducerTag fails with a NullPointerException at de.laures.cewolf.taglib.tags.ProducerTag.doEndTag(ProducerTag.java:57) due to the line

DataAware dw = (DataAware) findAncestorWithClass(this, DataAware.class);

returning null.

Any ideas?



Yep. It looks like tag.setParent wasn't being called. I've fixed the stuff in CVS. Give it a whirl now :)

hahaha. Here's the test I tried that works for me.


#set( $pageViews = $stack.findValue("new com.PageViewCountData()") )
$req.session.setAttribute("pageViews", $pageViews )
#bodytag( SimpleChart "id=line" "title=Page View Statistics" "type=line" "xaxislabel=Page" "yaxslabel=Views" )
#bodytag( Data )
#tag( Producer "id=pageViews" )
#end
#end


#tag( ChartImg "chartid=line" "renderer=cewolf" "width=400" "height=300" )


I'll try you stuff and see what I get :)


M






------------------------------------------------------- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to