Eelco,

I would certainly be interested in sharing the code.  I've spent most of
the time since our first correspondence coding some other stuff in the
project; so I haven't actually worked on this JasperReport classes until
today.  The JasperReportResourceStream is at
http://pcsw.us/misc/JasperReportResourceStream.java.  It's not as
generic as we would want, but you'll get the idea.

I don't think subclassing page would work.  My thought is that using the
IResourceStream, it can produce html, pdf, xls, or even xml output;
rather than just html.

I'm not sure how the subclass of ResourceStreamLocator would work,
except maybe for me, it would take a URL something like:

http://mywebapp/report?oid=?&param1name=param1value&param2name=param2value...

Again this isn't exactly generic.  I am keeping the reports serialized
and stored in large objects in a postgreSQL database.  I think a more
generic method would probably have the reports loaded from the classpath
or an external URL.

I have not written any code for the ResourceStreamLocator yet.  I was
pretty much polling for opinions on whether this is a good idea.  I'm
still trying to get comfortable with wicket and wasn't sure if this was
how others that are more familiar with it would approach the problem.

Thanks,

Eelco Hillenius wrote:
> How would you use it? Could you give us example code of how you would
> plan to use it (like, would you use it instead of a Page, or include it
> somehow)? And would you be interested in sharing your code?
> 
> Thanks,
> 
> Eelco
> 
> 
> Philip A. Chapman wrote:
> 
>> I have created a IResourceStream that will provide the JasperReport
>> output.  I am thinking that I should create a ResourceStreamLocator that
>> will return the new ResourceStream and override the
>> Application.getResourceStreamLocator().  Is this the right way to do it?
>> I don't yet have a good grasp of ResourceStreamLocator.  It's a good
>> bit to wade through.
>>
>> Thanks,
>>
>> Eelco Hillenius wrote:
>>  
>>
>>> I haven't yet. It's been on my wish list for a long time. Shouldn't be
>>> too hard probably... maybe you could take a look at how resources are
>>> handled.
>>>
>>> Eelco


-- 
Philip A. Chapman

Application Development:
Java, Visual Basic (MCP), PostgreSQL, MySQL, MSSQL
Linux, Windows 9x, Windows NT, Windows 2000, Windows XP

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to