Re: Tapestry 5.4-beta-2 GoogleClosureCompiler

2014-01-16 Thread Howard Lewis Ship
What are you looking for? Advanced minimization, unfortunately, doesn't make sense when you are minimizing multiple files (there can always be a mix of stacks, libraries, and modules). On Mon, Jan 13, 2014 at 12:29 PM, Kristian Marinkovic < kristian.marinko...@gmail.com> wrote: > Hi all, > > ho

Re: How to use grid with large data sets.

2014-01-16 Thread Lance Java
If there's a concept in lucene that allows you to bring back the total rowcount and a page of data in a single query then the GridDataSource interface can support that. On 16 January 2014 22:36, Lance Java wrote: > One query is for the rowcount, the other is for the results (for a single > page

Re: How to use grid with large data sets.

2014-01-16 Thread Lance Java
One query is for the rowcount, the other is for the results (for a single page). The only way to do it with one query is to add an extra column to the result set for the row count. This value will be exactly the same for every row in the result set. I personally don't see an issue with 2 queries..

Re: How to use grid with large data sets.

2014-01-16 Thread George Christman
I found the following documentation http://wiki.apache.org/tapestry/Tapestry5HibernateGridDatasource2 However I'm still a little confused, I'm seeing two queries needed to get this to work, one containing the filtered results to get the availableRow count and the second one to get the prepare fil

Re: How to use grid with large data sets.

2014-01-16 Thread George Christman
So I'm playing with the GridDateSource and was wondering how you are suppose to get the filtered result count for availableRows()? With hibernate search you get this count after the results have been filtered, but the way the methods are called in GridDataSource, the availableRows method is called

Re: How to use grid with large data sets.

2014-01-16 Thread George Christman
I guys, thanks for the help, I'm using hibernate-search with lucene. On Thu, Jan 16, 2014 at 12:10 PM, Ville Virtanen < ville.virta...@orientimport.fi> wrote: > Hi, > > here is one example: > > > http://jumpstart.doublenegative.com.au/jumpstart7/examples/tables/griddataso > urces > > Ville > > -

VS: How to use grid with large data sets.

2014-01-16 Thread Ville Virtanen
Hi, here is one example: http://jumpstart.doublenegative.com.au/jumpstart7/examples/tables/griddataso urces Ville -Alkuperäinen viesti- Lähettäjä: George Christman [mailto:gchrist...@cardaddy.com] Lähetetty: 16. tammikuuta 2014 18:34 Vastaanottaja: Tapestry users Aihe: How to use grid

Re: How to use grid with large data sets.

2014-01-16 Thread Thiago H de Paula Figueiredo
On Thu, 16 Jan 2014 14:34:17 -0200, George Christman wrote: Hello, I'm wondering how to use the grid component with large data sets. Implement a GridDataSource and pass it to the source parameter of Grid instead of a List. If you're using tapestry-hibernate, there's HibernateGridDataSou

Re: How to use grid with large data sets.

2014-01-16 Thread françois facon
Hello, did you try to set the datasource parameter http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/grid/GridDataSource.html have a look at this great sample http://jumpstart.doublenegative.com.au/jumpstart/examples/tables/griddatasources Also http://packtlib.packtpub.com/library/9781

How to use grid with large data sets.

2014-01-16 Thread George Christman
Hello, I'm wondering how to use the grid component with large data sets. Currently the grid is grabbing the entire data set rather than a sub set. How do I pass back the current page and row count as well as the sorts? Can this be done with the grid component, or would I need to builds something cu

Re: redirect from render phase

2014-01-16 Thread Andrey
But in addition our exception handler extracts redirect destination from our custom exception and performs redirect. 16.01.2014 17:08 пользователь "Thiago H de Paula Figueiredo" < thiag...@gmail.com> написал: > On Thu, 16 Jan 2014 10:41:55 -0200, Andrey wrote: > > Finally we've solved spam probl

Re: redirect from render phase

2014-01-16 Thread Thiago H de Paula Figueiredo
On Thu, 16 Jan 2014 10:41:55 -0200, Andrey wrote: Finally we've solved spam problem (but my collegues are not very happy with this entire approach): we use log4j matcher to skip error log message from RenderQueueImpl, and log it if needed in our exception handler. p.s. getters do not help, b

Re: redirect from render phase

2014-01-16 Thread Andrey
Finally we've solved spam problem (but my collegues are not very happy with this entire approach): we use log4j matcher to skip error log message from RenderQueueImpl, and log it if needed in our exception handler. p.s. getters do not help, because they will throw exceptions too when data unavaila

Re: Is Zone.getBody() obsolete?

2014-01-16 Thread Thiago H de Paula Figueiredo
On Thu, 16 Jan 2014 09:15:52 -0200, Geoff Callender wrote: Yes, but my question is whether there is any downside to using AjaxResponseRenderer#addRender(zone), instead of Zone.getBody(), for single-zone updates? I cannot check the code right now, but my guess is that both forms end up

RE: what happened to HibernateCoreMessages in T5.4 ?

2014-01-16 Thread nhhockeyplayer nashua
so do I just throw this out ? logger.info(HibernateCore.startupTiming(configurationComplete - startTime, factoryCreated - startTime)); logger.info(HibernateCore.entityCatalog(sessionFactory.getAllClassMetadata().keySet()));

Re: redirect from render phase

2014-01-16 Thread Geoff Callender
This may help: http://jumpstart.doublenegative.com.au/jumpstart/examples/infrastructure/handlingabadcontext/1 Geoff On 16/01/2014, at 6:49 PM, Andrey wrote: > Hello! > > We are in need of redirect from render phase. > Reasons are: we cannot fetch all required data in onActivate method

Re: Is Zone.getBody() obsolete?

2014-01-16 Thread Geoff Callender
Yes, but my question is whether there is any downside to using AjaxResponseRenderer#addRender(zone), instead of Zone.getBody(), for single-zone updates? On 14/01/2014, at 11:06 PM, Lance Java wrote: > Returning zone.getBody() from a component event is still perfectly valid. > On 14 Jan 2014 11:

Re: redirect from render phase

2014-01-16 Thread Thiago H de Paula Figueiredo
On Thu, 16 Jan 2014 05:49:09 -0200, Andrey wrote: Hello! Hi! We are in need of redirect from render phase. Reasons are: we cannot fetch all required data in onActivate method of page, because onActivate is called for page even for component events inside page. So we load data in setupRender

Re: Configuration.addPackage(...)

2014-01-16 Thread Thiago H de Paula Figueiredo
On Thu, 16 Jan 2014 03:21:53 -0200, nhhockeyplayer nashua wrote: I know this might be the wrong board. So why did you still post the message? You're just polluting the mailing list with off-topic stuff in this thread. But the hibernate support in tapestry is relevent. What you've pos