Re: T5: Looping list of objects
Oops, please ignore my last entry - i see this has already been covered in a subsequent thread. Apologies for the noise, lasitha. On 10/13/07, lasitha <[EMAIL PROTECTED]> wrote: > Just out of curiosity, any reason you're not using the select component ? > Cheers, lasitha. > > On 10/13/07, Jean-Philippe Steinmetz <[EMAIL PROTECTED]> wrote: > > Thanks, that fixed it. > > > > > -Original Message- > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > > On Behalf Of Josh Canfield > > > Sent: Friday, October 12, 2007 1:02 PM > > > To: Tapestry users > > > Subject: Re: T5: Looping list of objects > > > > > > I believe adding volatile="true" to your loop will cause the > > > loop to not serialize your object. > > > > > > http://tapestry.apache.org/tapestry5/tapestry-core/component-p > > > arameters.html#orgapachetapestrycorelibcomponentsloop > > > > > > Josh > > > > > > On 10/12/07, Jean-Philippe Steinmetz <[EMAIL PROTECTED]> wrote: > > > > > > > > Hi all, > > > > > > > > I have a page that has a loop to iterate over some objects > > > in a list > > > > and display them as I need. I don't want to use a grid component > > > > because it doesn't match the needs I need. I am not > > > creating a table, > > > > I am creating a selection box for a form. So my template > > > looks like this: > > > > > > > > School: > > > > > > > > > > > > > > > > ${currentSchool.name} - > > > > ${currentSchool.location} > > > > > > > > > > > > > > > > > > > > > > > > where my getSchools function returns a List of School > > > objects. These > > > > School objects I have used successfully in grid components > > > and other > > > > various parts of my application. When I try and run this page I get > > > > the following error: > > > > > > > > Error serializing component action for component > > > Classrooms/Modify:loop: > > > > School > > > > > > > > So I take it that I need to serialize the component but if > > > so why does > > > > the grid component work with the same list of objects? Is there > > > > another way I can accomplish this without serializing the class? > > > > > > > > Jean-Philippe Steinmetz > > > > > > > > > > > > > > > > > -- > > > -- > > > TheDailyTube.com. Sign up and get the best new videos on the > > > internet delivered fresh to your inbox. > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Looping list of objects
Just out of curiosity, any reason you're not using the select component ? Cheers, lasitha. On 10/13/07, Jean-Philippe Steinmetz <[EMAIL PROTECTED]> wrote: > Thanks, that fixed it. > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > On Behalf Of Josh Canfield > > Sent: Friday, October 12, 2007 1:02 PM > > To: Tapestry users > > Subject: Re: T5: Looping list of objects > > > > I believe adding volatile="true" to your loop will cause the > > loop to not serialize your object. > > > > http://tapestry.apache.org/tapestry5/tapestry-core/component-p > > arameters.html#orgapachetapestrycorelibcomponentsloop > > > > Josh > > > > On 10/12/07, Jean-Philippe Steinmetz <[EMAIL PROTECTED]> wrote: > > > > > > Hi all, > > > > > > I have a page that has a loop to iterate over some objects > > in a list > > > and display them as I need. I don't want to use a grid component > > > because it doesn't match the needs I need. I am not > > creating a table, > > > I am creating a selection box for a form. So my template > > looks like this: > > > > > > School: > > > > > > > > > > > > ${currentSchool.name} - > > > ${currentSchool.location} > > > > > > > > > > > > > > > > > > where my getSchools function returns a List of School > > objects. These > > > School objects I have used successfully in grid components > > and other > > > various parts of my application. When I try and run this page I get > > > the following error: > > > > > > Error serializing component action for component > > Classrooms/Modify:loop: > > > School > > > > > > So I take it that I need to serialize the component but if > > so why does > > > the grid component work with the same list of objects? Is there > > > another way I can accomplish this without serializing the class? > > > > > > Jean-Philippe Steinmetz > > > > > > > > > > > > -- > > -- > > TheDailyTube.com. Sign up and get the best new videos on the > > internet delivered fresh to your inbox. > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: T5: Looping list of objects
Thanks, that fixed it. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of Josh Canfield > Sent: Friday, October 12, 2007 1:02 PM > To: Tapestry users > Subject: Re: T5: Looping list of objects > > I believe adding volatile="true" to your loop will cause the > loop to not serialize your object. > > http://tapestry.apache.org/tapestry5/tapestry-core/component-p > arameters.html#orgapachetapestrycorelibcomponentsloop > > Josh > > On 10/12/07, Jean-Philippe Steinmetz <[EMAIL PROTECTED]> wrote: > > > > Hi all, > > > > I have a page that has a loop to iterate over some objects > in a list > > and display them as I need. I don't want to use a grid component > > because it doesn't match the needs I need. I am not > creating a table, > > I am creating a selection box for a form. So my template > looks like this: > > > > School: > > > > > > > > ${currentSchool.name} - > > ${currentSchool.location} > > > > > > > > > > > > where my getSchools function returns a List of School > objects. These > > School objects I have used successfully in grid components > and other > > various parts of my application. When I try and run this page I get > > the following error: > > > > Error serializing component action for component > Classrooms/Modify:loop: > > School > > > > So I take it that I need to serialize the component but if > so why does > > the grid component work with the same list of objects? Is there > > another way I can accomplish this without serializing the class? > > > > Jean-Philippe Steinmetz > > > > > > > -- > -- > TheDailyTube.com. Sign up and get the best new videos on the > internet delivered fresh to your inbox. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Looping list of objects
I believe adding volatile="true" to your loop will cause the loop to not serialize your object. http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html#orgapachetapestrycorelibcomponentsloop Josh On 10/12/07, Jean-Philippe Steinmetz <[EMAIL PROTECTED]> wrote: > > Hi all, > > I have a page that has a loop to iterate over some objects in a list and > display them as I need. I don't want to use a grid component because it > doesn't match the needs I need. I am not creating a table, I am creating a > selection box for a form. So my template looks like this: > > School: > > > > ${currentSchool.name} - > ${currentSchool.location} > > > > > > where my getSchools function returns a List of School objects. These > School > objects I have used successfully in grid components and other various > parts > of my application. When I try and run this page I get the following error: > > Error serializing component action for component Classrooms/Modify:loop: > School > > So I take it that I need to serialize the component but if so why does the > grid component work with the same list of objects? Is there another way I > can accomplish this without serializing the class? > > Jean-Philippe Steinmetz > > -- -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox.
T5: Looping list of objects
Hi all, I have a page that has a loop to iterate over some objects in a list and display them as I need. I don't want to use a grid component because it doesn't match the needs I need. I am not creating a table, I am creating a selection box for a form. So my template looks like this: School: ${currentSchool.name} - ${currentSchool.location} where my getSchools function returns a List of School objects. These School objects I have used successfully in grid components and other various parts of my application. When I try and run this page I get the following error: Error serializing component action for component Classrooms/Modify:loop: School So I take it that I need to serialize the component but if so why does the grid component work with the same list of objects? Is there another way I can accomplish this without serializing the class? Jean-Philippe Steinmetz