Re: GridDataSource has been transformed and may not be directly instantiated

2012-08-22 Thread William Lopes
Ok, thank you again. You already saved me twice today. 2012/8/22 Christian Riedel > That's up to your personal taste ;-) > > Am 23.08.2012 um 02:18 schrieb William Lopes: > > > Thank you so much again, it is solved. > > > > I put in util package, is a good practice? > > > > 2012/8/22 Christian R

Re: GridDataSource has been transformed and may not be directly instantiated

2012-08-22 Thread Christian Riedel
That's up to your personal taste ;-) Am 23.08.2012 um 02:18 schrieb William Lopes: > Thank you so much again, it is solved. > > I put in util package, is a good practice? > > 2012/8/22 Christian Riedel > >> move br.cnt.aas.material.components.MaterialGridDataSource into another >> package si

Re: GridDataSource has been transformed and may not be directly instantiated

2012-08-22 Thread William Lopes
Thank you so much again, it is solved. I put in util package, is a good practice? 2012/8/22 Christian Riedel > move br.cnt.aas.material.components.MaterialGridDataSource into another > package since it's obviously not a component class! > > Am 23.08.2012 um 02:03 schrieb William Lopes: > > > Th

Re: GridDataSource has been transformed and may not be directly instantiated

2012-08-22 Thread Christian Riedel
move br.cnt.aas.material.components.MaterialGridDataSource into another package since it's obviously not a component class! Am 23.08.2012 um 02:03 schrieb William Lopes: > Thanks. > > So, what do you advise? > > 2012/8/22 Christian Riedel > >> Before Tapestry 5.3 it was just a recommendation

Re: GridDataSource has been transformed and may not be directly instantiated

2012-08-22 Thread William Lopes
Thanks. So, what do you advise? 2012/8/22 Christian Riedel > Before Tapestry 5.3 it was just a recommendation, now it's a requirement: > NEVER put other classes than components, mixins or pages (except > base-classes) into their corresponding packages! > You know… Tapestry is doing MAGIC a.k.a.

Re: GridDataSource has been transformed and may not be directly instantiated

2012-08-22 Thread Christian Riedel
Before Tapestry 5.3 it was just a recommendation, now it's a requirement: NEVER put other classes than components, mixins or pages (except base-classes) into their corresponding packages! You know… Tapestry is doing MAGIC a.k.a. convention over configuration ;) Am 23.08.2012 um 01:36 schrieb W

Re: Trouble with update of the tapestry(5.1.0.5 => 5.3.4)

2012-08-22 Thread Christian Riedel
Oh great that it works, wasn't even sure if you need the exclusion for hibernate-jpa-2.0-api… I had it in there for that project because JPA came with another dependency :-) Am 22.08.2012 um 19:38 schrieb William Lopes: > Thank you so much Christian, with your tip I achieved fix it. > > I alr

Re: Firing a tapestry event from javascript

2012-08-22 Thread Thiago H de Paula Figueiredo
@Inject private ComponentResources resources; Link link = resources.createEventLink(...); Pass this link(.toString()) to your JavaScript and use it in AJAX requests. On Wed, 22 Aug 2012 18:10:05 -0300, Chris Cureau wrote: I have found some examples of what I want to do here, but they don't

Re: Streaming file from resource package

2012-08-22 Thread George Christman
Thanks Michael. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Streaming-file-from-resource-package-tp5715725p5715727.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscr

Re: Streaming file from resource package

2012-08-22 Thread Michael Prescott
Can you use MyPage.class.getResourcesAsStream( ... ) ? Don't forget to ensure to include .xsl files in your maven resources list, otherwise it won't get put in the .war file. On 22 August 2012 14:31, George Christman wrote: > I have an xsl file which I "believe" should be placed in the resource

Streaming file from resource package

2012-08-22 Thread George Christman
I have an xsl file which I "believe" should be placed in the resource package along with my hibernate.cfg files. "Please correct me if I'm wrong". Anyhow, I'm wondering if tapestry offers a way to access the file so I can pass it into my StreamSource without having to use new File(). Thanks -- V

Re: Trouble with update of the tapestry(5.1.0.5 => 5.3.4)

2012-08-22 Thread William Lopes
Thank you so much Christian, with your tip I achieved fix it. I already had searched for many hours and nothing, was paste your code and worked fine. 2012/8/22 Christian Riedel > Try this: > > > > org.hibernate > hibernate-entitym

Re: Tomcat 7 Parallel Deployment

2012-08-22 Thread trsvax
It does look like a similar problem but I don't think I'm doing anything special. I'm not running clustered. All I did what change my Hudson build script to add the build number into the warfile name and copy that to tomcat webapps so I ended up with CJIS##0645.war which deployed as CJIS##0645 I'

Re: Tomcat 7 Parallel Deployment

2012-08-22 Thread Kalle Korhonen
This bug seems to match with what you are seeing: https://issues.apache.org/bugzilla/show_bug.cgi?id=50679 Kalle On Wed, Aug 22, 2012 at 8:21 AM, Kalle Korhonen wrote: > Cool that you found it. I was actually thinking that was off-topic > here, so I only posted the following to Maven users list

Re: Tomcat 7 Parallel Deployment

2012-08-22 Thread Kalle Korhonen
Cool that you found it. I was actually thinking that was off-topic here, so I only posted the following to Maven users list: On Mon, Aug 20, 2012 at 11:16 AM, Kalle Korhonen wrote: > As a by-product of some infrastructure work some time ago I hacked > together an Ant/Maven script for parallel depl

Tomcat 7 Parallel Deployment

2012-08-22 Thread trsvax
I was looking at the Tynamo site this morning and found a writeup about Tomcat 7 Parallel Deployment. It looked simple and useful so I gave it a try but my context does not start up because of the following error: Caused by: java.io.FileNotFoundException: /home/cjis/apache-tomcat-7.0.23/webapps/C

Exceptions thrown by ComponentEventRequestFilter do not render exception page

2012-08-22 Thread Stephan Windmüller
Hello! We are using a custom ComponentEventRequestFilter for transaction management. If the commit fails, the transaction is rolled back and the filter throws a RuntimeException. However, these RuntimeExceptions are lost on the way somewhere. They appear in the logfile after submitting the form w

Re: Trouble with update of the tapestry(5.1.0.5 => 5.3.4)

2012-08-22 Thread Christian Riedel
Try this: org.hibernate hibernate-entitymanager 3.6.8.Final org.hibernate.javax.persistence hibernate-jpa-2.0-api