You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Cheng Zhang <ch...@gmail.com> on 2015/01/20 22:27:15 UTC

Two fundamental questions.

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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Two fundamental questions.

Posted by zc...@gmail.com.
Thank you Geoff, I just noticed jumpstart before, never know there are two
version of jumpstart. Many thanks.


On Wed, Jan 21, 2015 at 6:40 AM, Geoff Callender <
geoff.callender.jumpstart@gmail.com> wrote:

> For several approaches to CRUD:
>
>         T5.4: http://jumpstart.doublenegative.com.au/jumpstart7
>         T5.3: http://jumpstart.doublenegative.com.au/jumpstart
>
> HTH,
>
> Geoff
>
> On 21 Jan 2015, at 8:27 am, Cheng Zhang <ch...@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-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Two fundamental questions.

Posted by Kalle Korhonen <ka...@gmail.com>.
Always worth mentioning tapestry-model (
http://tynamo.org/tapestry-model+guide) when talking about CRUD. The more
you generalize your T5 CRUD implementation, the more it will start looking
like tapestry-model.

Kalle

On Wed, Jan 21, 2015 at 5:40 AM, Geoff Callender <
geoff.callender.jumpstart@gmail.com> wrote:

> For several approaches to CRUD:
>
>         T5.4: http://jumpstart.doublenegative.com.au/jumpstart7
>         T5.3: http://jumpstart.doublenegative.com.au/jumpstart
>
> HTH,
>
> Geoff
>
> On 21 Jan 2015, at 8:27 am, Cheng Zhang <ch...@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-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Two fundamental questions.

Posted by Geoff Callender <ge...@gmail.com>.
For several approaches to CRUD:

	T5.4: http://jumpstart.doublenegative.com.au/jumpstart7
	T5.3: http://jumpstart.doublenegative.com.au/jumpstart

HTH,

Geoff

On 21 Jan 2015, at 8:27 am, Cheng Zhang <ch...@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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Two fundamental questions.

Posted by Bob Harner <bo...@gmail.com>.
Cheng, in case you haven't seen it, here's the write-up Robert Z.
provided 3 years ago listing all the cool functionality in the
Tapestry5-cayenne module:

http://mail-archives.apache.org/mod_mbox/tapestry-users/201112.mbox/%3CF6C2BE07-FFAD-4488-AE2F-2112A0E7BA48@roxanemy.com%3E

On Wed, Jan 21, 2015 at 6:14 PM, Robert Zeigler
<ro...@roxanemy.com> wrote:
> I haven't tried tapestry-cayenne with 5.4. I've been heavily involved in a lot of other projects that don't involve tapestry or even java. That said, my recollection is that the Library works with 5.3, at least. At some point, I will migrate the code over to github, but that isn't likely to happen in the next month or so.  Still, the library had a lot of niceties for quickly building cayenne-baked CRUD apps. I would be interested to hear whether it works as is with 5.4.
>
> Robert
>
> GATAATGCTATTTCTTTAATTTTCGAA
>
>> On Jan 21, 2015, at 2:42 PM, zcsrssrs@gmail.com wrote:
>>
>> Thank you Michael for your detailed comments. I will look into these once I
>> am done with basic crud.
>>
>> On Wed, Jan 21, 2015 at 6:11 AM, Michael Gentry <mg...@masslight.net>
>> wrote:
>>
>>> 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 <ch...@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-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Two fundamental questions.

Posted by Robert Zeigler <ro...@roxanemy.com>.
Thanks. Translating would make it easier to read… but also ruin the fun. :)

Robert

> On Jan 22, 2015, at 1/222:03 AM , Poder, Jacob <ja...@thermofisher.com> wrote:
> 
> Hi Robert,
> 
> Sorry for the off-topic but I couldn't help notice your signature... easier to read when translated to amino acids in reading frame 1 though :-)
> Good one...
> 
> Jacob Poder
> 
> -----Original Message-----
> From: Robert Zeigler [mailto:robert.zeigler@roxanemy.com] 
> Sent: 22. januar 2015 00:14
> To: Tapestry users
> Subject: Re: Two fundamental questions.
> 
> I haven't tried tapestry-cayenne with 5.4. I've been heavily involved in a lot of other projects that don't involve tapestry or even java. That said, my recollection is that the Library works with 5.3, at least. At some point, I will migrate the code over to github, but that isn't likely to happen in the next month or so.  Still, the library had a lot of niceties for quickly building cayenne-baked CRUD apps. I would be interested to hear whether it works as is with 5.4. 
> 
> Robert
> 
> GATAATGCTATTTCTTTAATTTTCGAA
> 
>> On Jan 21, 2015, at 2:42 PM, zcsrssrs@gmail.com wrote:
>> 
>> Thank you Michael for your detailed comments. I will look into these 
>> once I am done with basic crud.
>> 
>> On Wed, Jan 21, 2015 at 6:11 AM, Michael Gentry 
>> <mg...@masslight.net>
>> wrote:
>> 
>>> 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 
>>> <ch...@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-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


RE: Two fundamental questions.

Posted by "Poder, Jacob" <ja...@thermofisher.com>.
Hi Robert,

Sorry for the off-topic but I couldn't help notice your signature... easier to read when translated to amino acids in reading frame 1 though :-)
Good one...

Jacob Poder

-----Original Message-----
From: Robert Zeigler [mailto:robert.zeigler@roxanemy.com] 
Sent: 22. januar 2015 00:14
To: Tapestry users
Subject: Re: Two fundamental questions.

I haven't tried tapestry-cayenne with 5.4. I've been heavily involved in a lot of other projects that don't involve tapestry or even java. That said, my recollection is that the Library works with 5.3, at least. At some point, I will migrate the code over to github, but that isn't likely to happen in the next month or so.  Still, the library had a lot of niceties for quickly building cayenne-baked CRUD apps. I would be interested to hear whether it works as is with 5.4. 

Robert

GATAATGCTATTTCTTTAATTTTCGAA

> On Jan 21, 2015, at 2:42 PM, zcsrssrs@gmail.com wrote:
> 
> Thank you Michael for your detailed comments. I will look into these 
> once I am done with basic crud.
> 
> On Wed, Jan 21, 2015 at 6:11 AM, Michael Gentry 
> <mg...@masslight.net>
> wrote:
> 
>> 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 
>> <ch...@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-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Two fundamental questions.

Posted by Robert Zeigler <ro...@roxanemy.com>.
I haven't tried tapestry-cayenne with 5.4. I've been heavily involved in a lot of other projects that don't involve tapestry or even java. That said, my recollection is that the Library works with 5.3, at least. At some point, I will migrate the code over to github, but that isn't likely to happen in the next month or so.  Still, the library had a lot of niceties for quickly building cayenne-baked CRUD apps. I would be interested to hear whether it works as is with 5.4. 

Robert

GATAATGCTATTTCTTTAATTTTCGAA

> On Jan 21, 2015, at 2:42 PM, zcsrssrs@gmail.com wrote:
> 
> Thank you Michael for your detailed comments. I will look into these once I
> am done with basic crud.
> 
> On Wed, Jan 21, 2015 at 6:11 AM, Michael Gentry <mg...@masslight.net>
> wrote:
> 
>> 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 <ch...@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-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Two fundamental questions.

Posted by zc...@gmail.com.
Thank you Michael for your detailed comments. I will look into these once I
am done with basic crud.

On Wed, Jan 21, 2015 at 6:11 AM, Michael Gentry <mg...@masslight.net>
wrote:

> 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 <ch...@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-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>

Re: Two fundamental questions.

Posted by Michael Gentry <mg...@masslight.net>.
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 <ch...@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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Two fundamental questions.

Posted by Cheng Zhang <ch...@gmail.com>.
Hi Thiago,

I just wanted to practice, so there is no specific scenario with my
requirement. Let me try to use the components you mentioned. Many
thanks.

Charles

On Tue, Jan 20, 2015 at 2:44 PM, Thiago H de Paula Figueiredo
<th...@gmail.com> wrote:
> On Tue, 20 Jan 2015 19:27:15 -0200, Cheng Zhang
> <ch...@gmail.com> wrote:
>
>> Hi all,
>
>
> Hi!
>
>> I am new to Tapestry. I have two questions.
>
>
> Welcome!
>
>> 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/
>
>
> Never used it myself, but I believe tapestry5-cayenne should still work even
> with the latest Tapestry 5.4 beta.
>
>> 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).
>
>
> I'm sorry, but the question is too vague. The best option for something will
> always depend on the specific scenario.
> I usually build CRUDs using two pages: one for edition and creation (C and
> U), probably using BeanEditForm or Form and BeanEditor, plus another for the
> R and D parts using Grid.
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Two fundamental questions.

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Tue, 20 Jan 2015 19:27:15 -0200, Cheng Zhang  
<ch...@gmail.com> wrote:

> Hi all,

Hi!

> I am new to Tapestry. I have two questions.

Welcome!

> 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/

Never used it myself, but I believe tapestry5-cayenne should still work  
even with the latest Tapestry 5.4 beta.

> 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).

I'm sorry, but the question is too vague. The best option for something  
will always depend on the specific scenario.
I usually build CRUDs using two pages: one for edition and creation (C and  
U), probably using BeanEditForm or Form and BeanEditor, plus another for  
the R and D parts using Grid.

-- 
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org