You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by degressor <pa...@yahoo.com> on 2011/03/17 14:11:54 UTC

Questions: Chenillekit-reports, Services

Hi, 

I'm new in tapestry, and trying to integrate JasperReports. I can run simple
report, with empty datasoeuce, but for more complex issues I need a custom
datasource class. Do I realy need to write a service, because I can't use
new. 

I tried to work with Chenillekit-reports, but I don't know how to integrate
a module into my app, are there some tutorials or help?


--
View this message in context: http://tapestry.1045711.n5.nabble.com/Questions-Chenillekit-reports-Services-tp3877500p3877500.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Questions: Chenillekit-reports, Services

Posted by Sven Homburg <ho...@googlemail.com>.
add the dependcies to your maven pom.xml

		<dependency>
			<groupId>org.chenillekit</groupId>
			<artifactId>chenillekit-quartz</artifactId>
		</dependency>

and add the contribuition to your application service

	/**
	 * configuring the jasperreports service.
	 *
	 * @param configuration configuration map
	 */
	public void contributeReportsService(OrderedConfiguration<URL> configuration)
	{
		String fileName = applConfigDir + "/jasperreports.properties";
		File file = new File(fileName);
		if (!file.canRead())
			throw new RuntimeException(String.format("can't read file '%s'",
file.getAbsolutePath()));

		try
		{
			configuration.add("configuration", file.toURI().toURL());
		}
		catch (MalformedURLException e)
		{
			throw new RuntimeException(e);
		}
	}

with regards
Sven Homburg
Founder of the Chenille Kit Project
http://chenillekit.codehaus.org





2011/3/17 degressor <pa...@yahoo.com>:
> Hi,
>
> I'm new in tapestry, and trying to integrate JasperReports. I can run simple
> report, with empty datasoeuce, but for more complex issues I need a custom
> datasource class. Do I realy need to write a service, because I can't use
> new.
>
> I tried to work with Chenillekit-reports, but I don't know how to integrate
> a module into my app, are there some tutorials or help?
>
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/Questions-Chenillekit-reports-Services-tp3877500p3877500.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Questions: Chenillekit-reports, Services

Posted by degressor <pa...@yahoo.com>.
Sorry, but there can I get the jar file from chenillekit-reports? Or maybe I
should download the source code and export an jar?

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Questions-Chenillekit-reports-Services-tp3877500p3878670.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Questions: Chenillekit-reports, Services

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Thu, 17 Mar 2011 10:11:54 -0300, degressor <pa...@yahoo.com> wrote:

> Hi,

Hi!

> I tried to work with Chenillekit-reports, but I don't know how to  
> integrate a module into my app, are there some tutorials or help?

Just add the module JAR in the webapp classpath.

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org