Re: object based security (owner)

2014-03-18 Thread Kalle Korhonen
On Tue, Mar 18, 2014 at 10:02 AM, Dmitriy Vsekhvalnov < dvsekhval...@gmail.com> wrote: > Kalle, do you mean it works only for traversing object graph? (sorry i > probably have to check myself before asking stupid questions). > Yes. It checks that a security principal of the currently executing s

Re: object based security (owner)

2014-03-18 Thread Dmitriy Vsekhvalnov
Kalle, do you mean it works only for traversing object graph? (sorry i probably have to check myself before asking stupid questions). On Tue, Mar 18, 2014 at 8:31 PM, Kalle Korhonen wrote: > On Tue, Mar 18, 2014 at 7:43 AM, Dmitriy Vsekhvalnov < > dvsekhval...@gmail.com > > wrote: > > > is tapes

Re: How to handle form warnings?

2014-03-18 Thread Lance Java
> Works perfectly Great! > and is stateless Music to my ears :)

Re: object based security (owner)

2014-03-18 Thread Kalle Korhonen
On Tue, Mar 18, 2014 at 7:43 AM, Dmitriy Vsekhvalnov wrote: > is tapestry-security-jpa provides filtering data support? E.g. when i > execute .list() operation with query can it apply filter based on owner or > other rule? > like Hibernate filters? > No, this is meant strictly for securing data

Re: object based security (owner)

2014-03-18 Thread Kalle Korhonen
On Tue, Mar 18, 2014 at 6:08 AM, Ken in Nashua wrote: > Thanks Kalle, thats the answer I was seeking. > Which persistence Service wold in order to ORM o MySQL ? > Does that JPA construct do it itself somehow like javabeans or can I use > the existing hibernate persistence service that comes with

Re: How to handle form warnings?

2014-03-18 Thread George Christman
Yup, I'm using 5.4 in all my apps with the exception of one older one, so no problem there. Okay, for anybody else that may run into this situation, here is my demo code. This is a main form with two separate ajax warnings chained together with validation. The main form is injected as a block but

Re: object based security (owner)

2014-03-18 Thread Dmitriy Vsekhvalnov
is tapestry-security-jpa provides filtering data support? E.g. when i execute .list() operation with query can it apply filter based on owner or other rule? like Hibernate filters? On Tue, Mar 18, 2014 at 5:08 PM, Ken in Nashua wrote: > Thanks Kalle, thats the answer I was seeking. > > Which pe

RE: object based security (owner)

2014-03-18 Thread Ken in Nashua
Thanks Kalle, thats the answer I was seeking. Which persistence Service wold in order to ORM o MySQL ? Does that JPA construct do it itself somehow like javabeans or can I use the existing hibernate persistence service that comes with your suite ? Thanks for the solution, appreciate that. Ken

Re: Reg: Grid DataSources

2014-03-18 Thread Thiago H de Paula Figueiredo
On Tue, 18 Mar 2014 08:05:51 -0300, srikaanth wrote: I have to join two table with different column name in it. eg: table_A ( id, name,age) table_B ( id,sex,ph) my need is this i have to show in grid like (name,age,sex,ph) in a single grid or table . The join itself is a Hibernate thi

Re: Reg: Grid DataSources

2014-03-18 Thread srikaanth
I have to join two table with different column name in it. eg: table_A ( id, name,age) table_B ( id,sex,ph) my need is this i have to show in grid like (name,age,sex,ph) in a single grid or table . Am working on a tapestry project. Am using grid to show table using hibernate. I was able to

Re: Reg: Grid DataSources

2014-03-18 Thread Thiago H de Paula Figueiredo
On Tue, 18 Mar 2014 02:50:36 -0300, Andreas Ernst wrote: The easiest way is to create a entity class from a sql view. Or you can try this: http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjects Please do *not* use that (the code in that page). The approach is very bad and I expl

Re: Reg: Grid DataSources

2014-03-18 Thread Thiago H de Paula Figueiredo
On Tue, 18 Mar 2014 01:39:28 -0300, srikaanth wrote: Hi all, Hi! Am working on a tapestry project. Am using grid to show table using hibernate. I was able to show single table structure . But here i need to join two table and show it in single table . Am using tapestry 5.3. Is there

Re: Reg: Grid DataSources

2014-03-18 Thread srikaanth
Hi Lance, Thanks for the info i will work out as per your methods and let u know. This methods explain me a lot. Keep going your good work. Reg Srikaanth .k On Tuesday 18 March 2014 01:10 PM, Lance Java wrote: Another, possibly much simpler, approach is to wrap the Hiberna

Re: Reg: Grid DataSources

2014-03-18 Thread Lance Java
Another, possibly much simpler, approach is to wrap the HibernateGridDataSource in a ConverterGridDataSource The ConverterGridDataSource will take a GridDataSource and a Converter in it's constructor and it will delegate through to another GridDataSource, converting each row to a bean as it goes.

Re: Reg: Grid DataSources

2014-03-18 Thread Lance Java
In hibernate, the HQL query "from Entity1 join Entity2" will return List with Object[0] being Entity1 and Object[2] being Entity2. You could use a custom BeanModel and PropertyConduits to look up properties from the Object[] array. See the demo here which uses a custom BeanModel and PropertyCondu