Re: Why the Registry is not available as a service?

2013-10-24 Thread Martin Kersten
For everyone that stumbles over this conversation. Here is the code I use to access the registry outside of jetty. Basically its just about getting the ServletContext object. If you have two or more WebAppContext you need to inspect those, since I have only one I can go with the first one.

Re: Datatables warning when using

2013-10-24 Thread lidijaldo .
Will keep that in mind, thanks! Regards, Lidija On Thu, Oct 24, 2013 at 5:46 PM, Lance Java wrote: > Note that @Import can also be placed on render methods (eg setupRender) > instead of annotating at the class level. If used on a render method, the > import will only happen when the component i

How to do a Batch transaction with Tapestry-Hibernate

2013-10-24 Thread George Christman
I'm wondering how to do a batch transaction with Tapestry-Hibernate. Should I still be using @Inject Session session and @CommitAfter? or Should I be using Transaction tx? I'm flushing and clearing my session every 200 iterations, but it appears to progressively get slower and slower until I restar

Re: How to make login to database virtual mutually exclusive per user

2013-10-24 Thread Martin Kersten
Hi, Check out stackoverflow.com. Am 23.10.2013 22:30 schrieb "Ken in Nashua" : > Hi Folks, > > I have a database. > > And I want all users to login... > > But I want all my code to cater to each user, regardless of how many are > logged in SAME CODE BASE... UNLIMITED USERS... CONCURRENCY.

Re: Embedding a file on a page using StreamResponse from another component.

2013-10-24 Thread Steve
Hi, Thanks for the input, I really appreciate it. Unfortunately I do think the files need saving as local files, for now at least. The reason being that at the moment the project is really a prototype rather than a fully blown system, but we do want it to be secure whilst we work. The files may ne

Re: Embedding a file on a page using StreamResponse from another component.

2013-10-24 Thread mailingl...@j-b-s.de
Hi Steve! Why not simply use the session? If the user has to authenticate anyway? In case you want avoid a session you can create onetime tokens. Unfortunately checking token validity or detecting outdated tokens requires persistence somehow... Jens Von meinem iPhone gesendet > Am 24.10.2013

Re: Embedding a file on a page using StreamResponse from another component.

2013-10-24 Thread Lance Java
Can't you just check the user has permissions before serving the file? Throwing exception if they're not authorised. BTW using local files is usually a bad idea (portability, scalability, transactions etc). Have you considered storing in the db or a blobstore?

Re: Datatables warning when using

2013-10-24 Thread Lance Java
Note that @Import can also be placed on render methods (eg setupRender) instead of annotating at the class level. If used on a render method, the import will only happen when the component is actually rendered. This might be cleaner in this case.

Re: Embedding a file on a page using StreamResponse from another component.

2013-10-24 Thread Steve
On a side note, both of my options (using the User object and using a persisted field) will result in only being able to show one StreamResponse at a time (otherwise they would both show the same). I could extend this by having some kind of data structure (hashmap?) in the User object and passing a

Embedding a file on a page using StreamResponse from another component.

2013-10-24 Thread Steve
Hi, I think I am doing something very, very wrong. What I have currently works - but I get a feeling that it's not the best way of doing it. I'm hoping for a little bit of advice again (sorry to ask so many questions recently, and sorry this is a long one). This is the issue: I have some dynamic

Re: Datatables warning when using

2013-10-24 Thread lidijaldo .
I tried importJavaScriptLibrary and it is really done dynamically. I did what you proposed: @Inject @Path("context:js/jquery-ui-1.8.19.custom.min.js") protected Asset jqueryUi; @Inject @Path("context:js/TableTools.js") protected Asset tableTools; @Inject @Path("context:js/dataTables.editor.min.

Re: How to make login to database virtual mutually exclusive per user

2013-10-24 Thread Thiago H de Paula Figueiredo
On Wed, 23 Oct 2013 18:30:05 -0200, Ken in Nashua wrote: Hi Folks, Hi! I am worried about database collisions amongst the tables since they will all need all the tables... or rows for themselves. As Jens said, this seems to be completely unrelated to Tapestry. I guess you need to lea

Re: [T5.4] AjaxFormLoop - is it working?

2013-10-24 Thread Michał Gruca
Ok, I've started fresh project and all is good I'll be offline for better part of the day, but I'll send the code when possible. Sorry for raising alarm Regards, Michal Sent from my mobile 24 paź 2013 09:22 "Peter Hvass" napisał(a): > Hi! > > > It's been working fine for us in a number of pl

Re: [T5.4] AjaxFormLoop - is it working?

2013-10-24 Thread Peter Hvass
Hi! It's been working fine for us in a number of places on sites now running 5.4. Could you paste what you've got so far? A fresh set of eyes might be able to point out the issue immediately. Thanks, Peter - Original Message - From: "Michał Gruca" To: "Tapestry users" Sent: Thursd