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 :)


Cheers!

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