Re: Sorting and Pagination in Many-to-Many relationship

2009-09-15 Thread Aristedes Maniatis
On 16/09/09 6:22 AM, Nishant Neeraj wrote: A question regarding caching. When we use SQLTemplate or Expression, does the objects gets cached? I mean, these are very frequent used piece of code as soon as user logs in we will show his list of Magazines... if the object is not cached, we may

Re: Sorting and Pagination in Many-to-Many relationship

2009-09-15 Thread Nishant Neeraj
Thanks mrg. This helps a bit my understanding. There are two things.  1. Subscription type is dynamic. Actually, we should be able to add subscription type without altering the code.  2. The requirement is like this, I need to display paginated tabular list of magazines subscribed by a user.

Re: Using Cayenne Servlet Filter can bring the web application down

2009-09-15 Thread Michael Gentry
I haven't gotten to looping over things in forms yet and was expecting that might be a stumbling point. I haven't tried incorporating your tapestry5-cayenne project into my application yet. I'm basically tackling one problem/task at a time, but it is nice to know I shouldn't hit a real roadblock

Re: Using Cayenne Servlet Filter can bring the web application down

2009-09-15 Thread Robert Zeigler
There are still potential pitfalls there in T5. If your objects are in forms, and looped through, by default, they will be serialized into the form and when "reconstituted", they will not be attached to a context. As of T5.1, loop, grid, etc. will use ValueEncoder to do this job (or Prima

Re: getThreadObjectContext with domain parameter - code -

2009-09-15 Thread Arnaud Garcia
;-) many thanks it works well now. Arnaud 2009/9/14 Andrey Razumovsky : > Now you're creating new HashMap every request, and, as in your first > example, old bindings get erased. Bind method should be rewritten as > > public static void bindThreadObjectContext(ObjectContext context, > String doma

Re: Using Cayenne Servlet Filter can bring the web application down

2009-09-15 Thread Michael Gentry
Nice. Did you have any integration issues? I'm just starting to use Cayenne with T5 and it has been surprisingly smooth thus far, but I still have lingering memories of the hoops I had to jump through with T4 (especially looping over data objects) serializing my objects. Thanks, mrg On Mon, S

Re: Using Cayenne Servlet Filter can bring the web application down

2009-09-15 Thread Aristedes Maniatis
Hi Borut, While your writing momentum is still gaining, please go ahead and add some pages and documentation to our Cayenne wiki: http://cwiki.apache.org/confluence/display/CAY/Index I'm planning to do some reorganisation of the wiki soon, but please create some pages with your notes and expe