Re: T5: tapestry-hibernate: rollback

2008-01-11 Thread osamuo
Hi, I used the following code in order to rollback the current transaction. But its transaction was committed after the calling HibernateSessionManager.abort(). What's wrong? --- public class RegisterUser{ ... @Inject private Session session; @Inject private Hibern

[Slightly OT] GZIP compression filter and java.lang.IllegalStateException: Cannot create a session...

2008-01-11 Thread Kaspar Fischer
Hi, I've tried to install a compression filter and followed http://www.nabble.com/-slight-OT--GZip-compression-filter- td6901991.html for this. When I load my page, I get an exception (see below) about a OGNL expression that could not be parsed and "Cannot create a session after the re

org.apache.tapestry.page-pool-min-idle

2008-01-11 Thread Kaspar Fischer
Hi there, My website has, apart from a few seldomly accessed pages, one page, ArticlePage.html, which is used for *all* articles in our backend DB. That is, there are more than 500 different (friendly) URLs /app/ArticlePage.html?id=1000 /app/ArticlePage.html?id=1001 ... that all use

Re: Tapestry 5.0.7 : Filtering in Output component

2008-01-11 Thread Shing Hing Man
A JIRA is added. https://issues.apache.org/jira/browse/TAPESTRY-2036 Thanks! Shing --- Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > You will have to write your own component (a few > lines), or add a JIRA > issue so that we can work on providing this > functionality. > > On Jan 10, 2008 2:3

Re: T5 naming and case peculiarities

2008-01-11 Thread Josh Canfield
Hey Daniel, > Use of underscore prefixes for fields, but not in accessors > Some people just grew into doing it this way. Eclipse's > getter/setter autogeneration keeps the underscore. > This is configurable in Eclipse. Under Window | Preferences look at Java | Code Style there is a "Conventi

Re: T5 naming and case peculiarities

2008-01-11 Thread Andreas Andreou
>From my (yet limited) interaction with T5, it sounds quite right... But let me grab the opportunity and pay my respect to you (and to a few others fellows - Sven, Davor, e.t.c.) that keep the Tapestry Wiki so up to date and at such good quality... thx! On Jan 12, 2008 12:13 AM, Daniel Jue <[EMAI

T5.0.7: ThreadCleanupHubImpl.cleanup swallows exceptions

2008-01-11 Thread Franz Amador
ThreadCleanupHubImpl.cleanup (line 53) catches exceptions thrown by service initialization cleanup. It logs them, which is good, but it doesn't pass them up, which is causing me problems. I want to know if Hibernate initialized successfully, but this prevents me from seeing exceptions thrown d

Re: T5.0.8: Too much space being removed from rendered file

2008-01-11 Thread Daniel Jue
Maybe \s+ should be replaced \s Just to be sure. On Jan 11, 2008 4:39 PM, Josh Canfield <[EMAIL PROTECTED]> wrote: > I was playing around with the 5.0.8 snapshot and it looks like an effort has > been made to compact the html. The problem is that it's a little > over-zealous about the job and s

T5 naming and case peculiarities

2008-01-11 Thread Daniel Jue
I wanted to throw together a list of naming peculiarities (I hesitate to call them pitfalls), to put on the wiki. Some are documented on the API website, some of these are mailing list documented, some are only documented if you look into the code. Use of underscore prefixes for fields, but not in

T5.0.8: Too much space being removed from rendered file

2008-01-11 Thread Josh Canfield
I was playing around with the 5.0.8 snapshot and it looks like an effort has been made to compact the html. The problem is that it's a little over-zealous about the job and spaces between text nodes and elements are removed. For example: Click this Link becomes Click thisLink which looks like

Re: T5.0.8-Snapshot Proper way to use LinkImpl

2008-01-11 Thread Howard Lewis Ship
I think you should still be good, you just have to inject the RequestPathOptimizer and pass that along to the LinkImpl. On Jan 11, 2008 11:03 AM, Daniel Jue <[EMAIL PROTECTED]> wrote: > In 5.0.7 (and previously), I used this code: > > private Link getLink() { > logger.info(

T5.0.8-Snapshot Proper way to use LinkImpl

2008-01-11 Thread Daniel Jue
In 5.0.7 (and previously), I used this code: private Link getLink() { logger.info("request.getContextPath() " + request.getContextPath()); Link link = new LinkImpl(response, request.getContextPath(), Constants.J_ACEGI_SECURITY_CHECK); link.

Re: T5: Packaging 3rd Party Javascript Libraries

2008-01-11 Thread Howard Lewis Ship
Very astute. This is a good approach to me, and I'm always happy to see that people have picked up on a pattern I've put into the code. As Daniel points out, Tapestry's mix-and-match on the server could, potentially, cause some confusion on the client, especially if different versions of the same

Re: T5: Packaging 3rd Party Javascript Libraries

2008-01-11 Thread Daniel Jue
What about components that use different versions of a similarly named js, or two different components that use a similarly named, but entirely different js file? (i.e. Tree.js) Or what if my version of a component uses a tweaked version of ExtJs? Is there a way (or a need) to have namespaces for

T5: Packaging 3rd Party Javascript Libraries

2008-01-11 Thread Michael Lake
Let's say Sven, Chris, and I each are creating component libraries for re-use and each of us are using the ExtJs library. And supposing that a T5 project used all of our libraries, then there could potentially be a conflict on the client side because multiple javascript files of the same li

Re: Quick but urgent Tapestry question

2008-01-11 Thread Howard Lewis Ship
In 4.1 this can be done, the solution is no different than the chart built into the workbench, except that instead of returning an IAsset that invokes a URL request that generates the chart, the IEngineService will read and push the content of an external file. On Jan 11, 2008 3:28 AM, <[EMAIL PR

RE: T5 : if component help

2008-01-11 Thread Ville Virtanen
Hi, I too miss ognl, but your point is very good. At first this new way seems limited, but I agree that testability makes for it. (And one could argue that you dont have to learn yet another language to implement your logic.) Also, refactoring is a bit easier again. Thanks, - Ville >

T5: Is default form ValidationTracker's strategy persistence configurable in 5.0.7?

2008-01-11 Thread smithfox
Has this JIRA been solved in 5.0.7?? Go ahead and add a JIRA. A patch to make it configurable would be great. ;-) Actually I just remembered that it is configurable in that the persistence strategy is inherited from the Form's container, but it seems most of us agree that we don't want a defaul

Re: How to use images outside webroot

2008-01-11 Thread munich
I have tried the following: public abstract class Test extends TrailsPage { public IAsset getTest(){ FileResource resource = new FileResource("Z:\\Media\\0001.JPG"); Location location = new LocationImpl(resource); IAsset image = this.getEngine().getInfr

Re: How to make drop down box from ArrayList

2008-01-11 Thread Thiago H de Paula Figueiredo
On Thu, 10 Jan 2008 11:18:10 -0200, Yeeswara Nadapana (HCL Financial Services) <[EMAIL PROTECTED]> wrote: Hi Ulrich, I am using Tapestry 5. I have made a drop down box using the ArrayList. I want to fire an onChange event on my Page class and get some data relevant to the selected option

Re: T5: refreshing page when there is an error

2008-01-11 Thread smithfox
Has this JIRA been solved in 5.0.7?? Go ahead and add a JIRA. A patch to make it configurable would be great. ;-) Actually I just remembered that it is configurable in that the persistence strategy is inherited from the Form's container, but it seems most of us agree that we don't want a defau

Re: T5 : if component help

2008-01-11 Thread Thiago H de Paula Figueiredo
On Fri, 11 Jan 2008 04:33:43 -0200, Ville Virtanen <[EMAIL PROTECTED]> wrote: Hi all, I need to test if a property in my page equals a value from static constant class. I have no clue if this can be done. I mean something like:test="selectedSubMenu.equals(@[EMAIL PROTECTED])"> I'm currentl

Re: [T5] triggering multiple Zone component updates

2008-01-11 Thread Kristian Marinkovic
i just thought i'd ask before i file a JIRA issue ... because it's still under development :) "Thiago H de Paula Figueiredo" <[EMAIL PROTECTED]> 11.01.2008 13:40 Bitte antworten an "Tapestry users" An "Tapestry users" Kopie Thema Re: [T5] triggering multiple Zone component updates

Re: [T5] triggering multiple Zone component updates

2008-01-11 Thread Thiago H de Paula Figueiredo
On Fri, 11 Jan 2008 10:34:40 -0200, Kristian Marinkovic <[EMAIL PROTECTED]> wrote: is there a way to update multiple non-nested zone components with one AJAX call? Are there any plans to support this? This could be made in a very simple and elegant way in Tapestry 4.1 and it's the only thi

[T5] triggering multiple Zone component updates

2008-01-11 Thread Kristian Marinkovic
hi, is there a way to update multiple non-nested zone components with one AJAX call? Are there any plans to support this? g, kris

Re: Tapestry 5 book update

2008-01-11 Thread Andy Huhn
Thanks for the update, Alexander...and thanks for ensuring quality. I look forward to seeing the finished product! Andy On Fri, 2008-01-11 at 08:39 +, Kolesnikov, Alexander GNI wrote: > I was informed by the publisher that the book is going to be "uploaded > for printing" this week. However,

Re: How to use images outside webroot

2008-01-11 Thread Dapeng
juz copy ur application to the webapps folder it works fine for me 200M static files then u can use the images inside the root [EMAIL PROTECTED] wrote: What plugins are you using? What would be the "manual" step to achieve this? How do I avoid that I get a several Gigabyte big .war

Re: How to use images outside webroot

2008-01-11 Thread munich
What plugins are you using? What would be the "manual" step to achieve this? How do I avoid that I get a several Gigabyte big .war file ? Original-Nachricht > Datum: Thu, 20 Dec 2007 16:08:02 +0100 > Von: Sven Homburg <[EMAIL PROTECTED]> > An: Tapestry users > Betreff: Re: How

Re: T5: tapestry-hibernate: rollback

2008-01-11 Thread Davor Hrg
HibernateSessionManager On Jan 11, 2008 11:51 AM, Massimo Lusetti <[EMAIL PROTECTED]> wrote: > On Jan 11, 2008 10:00 AM, osamuo <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > I have noticed that the tapestry-hibernate commits the current transaction > > even after an exception occurs. > > > > I

Re: T5: tapestry-hibernate: rollback

2008-01-11 Thread Massimo Lusetti
On Jan 11, 2008 10:00 AM, osamuo <[EMAIL PROTECTED]> wrote: > > Hi, > > I have noticed that the tapestry-hibernate commits the current transaction > even after an exception occurs. > > Is there any way to do rollback its transaction? Use the manager ? -- Massimo http://meridio.blogspot.com --

Re: Tapestry 5 book update

2008-01-11 Thread Massimo Lusetti
On Jan 11, 2008 9:39 AM, Kolesnikov, Alexander GNI <[EMAIL PROTECTED]> wrote: > Anyway, the book should become available soon. At the end it's the important thing... and it's nice! -- Massimo http://meridio.blogspot.com -

RE: How about a PERSESSION_SCOPE?

2008-01-11 Thread Kristian Marinkovic
there are two ways: 1) @Persist("session")(= default) 2) @ApplicationState g, kris Donyee <[EMAIL PROTECTED]> 11.01.2008 02:12 Bitte antworten an "Tapestry users" An "Tapestry users" Kopie Thema How about a PERSESSION_SCOPE? T5 now supports singleton and per-thread scope; in

T5: tapestry-hibernate: rollback

2008-01-11 Thread osamuo
Hi, I have noticed that the tapestry-hibernate commits the current transaction even after an exception occurs. Is there any way to do rollback its transaction? Osamuo -- View this message in context: http://www.nabble.com/T5%3A-tapestry-hibernate%3A-rollback-tp14752000p14752000.html Sent from

Tapestry 5 book update

2008-01-11 Thread Kolesnikov, Alexander GNI
I was informed by the publisher that the book is going to be "uploaded for printing" this week. However, I was unhappy about the quality of their editorial work - they introduce problems instead of cleaning up the text - and they might take some additional time to do more proof-reading. Anyway, th

T5 : if component help

2008-01-11 Thread Ville Virtanen
Hi all, I need to test if a property in my page equals a value from static constant class. I have no clue if this can be done. I mean something like: I'm currently learning to do things after T4. (Hence the ognl in equals clause, which im not sure is even relevant to T5, is it still using ogn

T5 : if component help

2008-01-11 Thread Ville Virtanen
Hi all, I need to test if a property in my page equals a value from static constant class. I have no clue if this can be done. I mean something like: I'm currently learning to do things after T4. (Hence the ognl in equals clause, which im not sure is even relevant to T5, is it still using ogn