Hi Charles, We generally don't use any kind of special integration with our Tapestry+Cayenne applications here. A couple general scenarios are:
1. Your application is session-heavy (ours are). In this case you store your Cayenne objects in your session objects (page/component-based or global) and reference them from your Tapestry pages/classes/components. This can be a single Cayenne object or a List of Cayenne objects. For Lists, you use the index when the user clicks on one to select it: myListOfCayenneObjects.get(index). Typically, myListOfCayenneObjects would come from a dataContext.performQuery(). 2. Your application is session-light and you use the Cayenne ID (in the URL) to restore your Cayenne objects between requests. If security is a concern, you need to build in some additional access controls or perhaps encrypt the Cayenne ID when you generate links and decrypt on your next request. This can work well with onActivate/onPassivate, for example. If you have more Cayenne-specific questions, you can ask on the Cayenne User list, too (we are Tapestry-friendly there). mrg On Tue, Jan 20, 2015 at 4:27 PM, Cheng Zhang <charlesdenverj...@gmail.com> wrote: > Hi all, > > I am new to Tapestry. I have two questions. > > 1. What is the best solution for Tapestry-Cayenne integration? > I found the only project is as below but it looks like no longer > developed for over 4 years. And there are no many supporting > documents. > https://code.google.com/p/tapestry5-cayenne/ > > 2. I'd like to implement basic CRUD function with a group of data, eg > show a list of Person(name, phone, address), update person > information, add new person, delete a person from the list. > I found there are several components might be used, like Editable > Grid, Beaneditform, Editable loop. What is the best/widely used way to > do CRUD? (just the java part, do not need to persist to DB). > > Many thanks. > > Charles > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >