Re: Using row param in grid
Bob, I don't know. I think I saw an example somewhere and copied from there ... Christoph Heck, Bob wrote: > Thanks Christoph, that worked. Could you please inform me where in the > world the documentation is to add the Cell to the end of the property > name? > > Bob > > -Original Message- > From: Christoph Jaeger [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 17, 2007 15:24 > To: Tapestry users > Subject: Re: Using row param in grid > > Hi Bob, > > you have to use instead of name="name">. > > Christoph > > Heck, Bob wrote: >> Yes, Thing has a property of name. Not using a custom model. Tapestry > >> sees the Thing and knows it has 'Name' and 'Size' columns, because it >> constructs the grid with those column headers and puts the correct >> values in each column. I just want to tell it to put a link in the >> 'Name' column. That is all. Seems ever so simple. But, although it >> knows that Thing has a name property, it is ignoring the > name="name"> tag. I have even tried taking out the pagelink tag and >> putting in alternative text. The tag is >> completely ignored still. >> >> >> >> -Original Message- >> From: Jonathan Barker [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, October 17, 2007 14:53 >> To: 'Tapestry users' >> Subject: RE: Using row param in grid >> >> >> I assume you have a column for the "name" property of Thing. Then you > >> want your parameter to be for >> >> >>> -Original Message- >>> From: Heck, Bob [mailto:[EMAIL PROTECTED] >>> Sent: Wednesday, October 17, 2007 3:22 PM >>> To: Tapestry users >>> Subject: RE: Using row param in grid >>> >>> Ok, thanks for that. Added property to page to store Thing. No more > >>> error, but, now it seems as if the page is being rendered without >>> regard to the tag. It is completely ignored and the >>> grid is rendered as if the parameter tag is not even there, in other >>> words, no link is created. View source, just standard table and >>> text, >>> no link tag. >>> >>> Thanks for your help in advance. >>> >>> >>> >>> -Original Message- >>> From: Davor Hrg [mailto:[EMAIL PROTECTED] >>> Sent: Wednesday, October 17, 2007 13:53 >>> To: Tapestry users >>> Subject: Re: Using row param in grid >>> >>> you must create a property to store current row (for example "thing") > >>> getThing and setThing .. >>> >>> and change your template: >>> >>> >>> >>>>> context="Thing.name">${thing.name} >>> >>> >>> >>> >>> the concept here is that you give list of objects to grid with >>> source= >>> from which grid reads data for the loop. >>> but the row= tells the grid where you want to store the current >>> value >>> which is where grid writes data. >>> >>> I'm not explaining this very well, but "binding" is a basic tapestry >>> concept. >>> >>> Davor Hrg >>> >>> >>> On 10/17/07, Heck, Bob <[EMAIL PROTECTED]> wrote: >>>> I have a .page that returns a List - that works. >>>> >>>> >>>> >>>> When I try this: >>>> >>>> >>>> >>>> >>> context="Thing.name">${Thing.name} >>>> >>>> >>>> >>>> I get this: >>>> >>>> --- >>>> org.apache.tapestry.ioc.internal.util.TapestryException >>>> >>>> Could not convert 'Thing.name' into a component parameter binding: >>>> Class eds.sla.spring.web.tapestry.pages.DocManagement does not >>>> contain a property named 'Thing' (within property expression >>>> 'Thing.name'). >>>> Available properties: class, componentResources, thingList. >>>> --- >>>> >>>> thingList is a List and is populated. >>>> >>>> the getThingList() on the page works and returns the List. >>>> So, >>>> why can't tapestry see Thing? Thing is the row, it is the type of >>>> object that is returned in the List. >>>> >>>> >>>> >>>> >>>> >>> - >>> 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] >> >> >> - >> 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] > > > - > 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: Using row param in grid
Thanks Christoph, that worked. Could you please inform me where in the world the documentation is to add the Cell to the end of the property name? Bob -Original Message- From: Christoph Jaeger [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 15:24 To: Tapestry users Subject: Re: Using row param in grid Hi Bob, you have to use instead of . Christoph Heck, Bob wrote: > Yes, Thing has a property of name. Not using a custom model. Tapestry > sees the Thing and knows it has 'Name' and 'Size' columns, because it > constructs the grid with those column headers and puts the correct > values in each column. I just want to tell it to put a link in the > 'Name' column. That is all. Seems ever so simple. But, although it > knows that Thing has a name property, it is ignoring the name="name"> tag. I have even tried taking out the pagelink tag and > putting in alternative text. The tag is > completely ignored still. > > > > -Original Message- > From: Jonathan Barker [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 17, 2007 14:53 > To: 'Tapestry users' > Subject: RE: Using row param in grid > > > I assume you have a column for the "name" property of Thing. Then you > want your parameter to be for > > >> -Original Message- >> From: Heck, Bob [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, October 17, 2007 3:22 PM >> To: Tapestry users >> Subject: RE: Using row param in grid >> >> Ok, thanks for that. Added property to page to store Thing. No more >> error, but, now it seems as if the page is being rendered without >> regard to the tag. It is completely ignored and the >> grid is rendered as if the parameter tag is not even there, in other >> words, no link is created. View source, just standard table and >> text, > >> no link tag. >> >> Thanks for your help in advance. >> >> >> >> -Original Message- >> From: Davor Hrg [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, October 17, 2007 13:53 >> To: Tapestry users >> Subject: Re: Using row param in grid >> >> you must create a property to store current row (for example "thing") >> getThing and setThing .. >> >> and change your template: >> >> >> >>> context="Thing.name">${thing.name} >> >> >> >> >> the concept here is that you give list of objects to grid with >> source= > >> from which grid reads data for the loop. >> but the row= tells the grid where you want to store the current >> value > >> which is where grid writes data. >> >> I'm not explaining this very well, but "binding" is a basic tapestry >> concept. >> >> Davor Hrg >> >> >> On 10/17/07, Heck, Bob <[EMAIL PROTECTED]> wrote: >>> I have a .page that returns a List - that works. >>> >>> >>> >>> When I try this: >>> >>> >>> >>> >> context="Thing.name">${Thing.name} >>> >>> >>> >>> I get this: >>> >>> --- >>> org.apache.tapestry.ioc.internal.util.TapestryException >>> >>> Could not convert 'Thing.name' into a component parameter binding: >>> Class eds.sla.spring.web.tapestry.pages.DocManagement does not >>> contain a property named 'Thing' (within property expression >>> 'Thing.name'). >>> Available properties: class, componentResources, thingList. >>> --- >>> >>> thingList is a List and is populated. >>> >>> the getThingList() on the page works and returns the List. >>> So, >>> why can't tapestry see Thing? Thing is the row, it is the type of >>> object that is returned in the List. >>> >>> >>> >>> >>> >> - >> 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] > > > - > 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using row param in grid
Hi Bob, you have to use instead of . Christoph Heck, Bob wrote: > Yes, Thing has a property of name. Not using a custom model. Tapestry > sees the Thing and knows it has 'Name' and 'Size' columns, because it > constructs the grid with those column headers and puts the correct > values in each column. I just want to tell it to put a link in the > 'Name' column. That is all. Seems ever so simple. But, although it > knows that Thing has a name property, it is ignoring the name="name"> tag. I have even tried taking out the pagelink tag and > putting in alternative text. The tag is > completely ignored still. > > > > -Original Message- > From: Jonathan Barker [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 17, 2007 14:53 > To: 'Tapestry users' > Subject: RE: Using row param in grid > > > I assume you have a column for the "name" property of Thing. Then you > want your parameter to be for > > >> -Original Message- >> From: Heck, Bob [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, October 17, 2007 3:22 PM >> To: Tapestry users >> Subject: RE: Using row param in grid >> >> Ok, thanks for that. Added property to page to store Thing. No more >> error, but, now it seems as if the page is being rendered without >> regard to the tag. It is completely ignored and the >> grid is rendered as if the parameter tag is not even there, in other >> words, no link is created. View source, just standard table and text, > >> no link tag. >> >> Thanks for your help in advance. >> >> >> >> -Original Message- >> From: Davor Hrg [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, October 17, 2007 13:53 >> To: Tapestry users >> Subject: Re: Using row param in grid >> >> you must create a property to store current row (for example "thing") >> getThing and setThing .. >> >> and change your template: >> >> >> >>> context="Thing.name">${thing.name} >> >> >> >> >> the concept here is that you give list of objects to grid with source= > >> from which grid reads data for the loop. >> but the row= tells the grid where you want to store the current value > >> which is where grid writes data. >> >> I'm not explaining this very well, but "binding" is a basic tapestry >> concept. >> >> Davor Hrg >> >> >> On 10/17/07, Heck, Bob <[EMAIL PROTECTED]> wrote: >>> I have a .page that returns a List - that works. >>> >>> >>> >>> When I try this: >>> >>> >>> >>> >> context="Thing.name">${Thing.name} >>> >>> >>> >>> I get this: >>> >>> --- >>> org.apache.tapestry.ioc.internal.util.TapestryException >>> >>> Could not convert 'Thing.name' into a component parameter binding: >>> Class eds.sla.spring.web.tapestry.pages.DocManagement does not >>> contain >>> a property named 'Thing' (within property expression 'Thing.name'). >>> Available properties: class, componentResources, thingList. >>> --- >>> >>> thingList is a List and is populated. >>> >>> the getThingList() on the page works and returns the List. >>> So, >>> why can't tapestry see Thing? Thing is the row, it is the type of >>> object that is returned in the List. >>> >>> >>> >>> >>> >> - >> 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] > > > - > 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: Using row param in grid
Yes, Thing has a property of name. Not using a custom model. Tapestry sees the Thing and knows it has 'Name' and 'Size' columns, because it constructs the grid with those column headers and puts the correct values in each column. I just want to tell it to put a link in the 'Name' column. That is all. Seems ever so simple. But, although it knows that Thing has a name property, it is ignoring the tag. I have even tried taking out the pagelink tag and putting in alternative text. The tag is completely ignored still. -Original Message- From: Jonathan Barker [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 14:53 To: 'Tapestry users' Subject: RE: Using row param in grid I assume you have a column for the "name" property of Thing. Then you want your parameter to be for > -Original Message- > From: Heck, Bob [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 17, 2007 3:22 PM > To: Tapestry users > Subject: RE: Using row param in grid > > Ok, thanks for that. Added property to page to store Thing. No more > error, but, now it seems as if the page is being rendered without > regard to the tag. It is completely ignored and the > grid is rendered as if the parameter tag is not even there, in other > words, no link is created. View source, just standard table and text, > no link tag. > > Thanks for your help in advance. > > > > -Original Message- > From: Davor Hrg [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 17, 2007 13:53 > To: Tapestry users > Subject: Re: Using row param in grid > > you must create a property to store current row (for example "thing") > getThing and setThing .. > > and change your template: > > > > context="Thing.name">${thing.name} > > > > > the concept here is that you give list of objects to grid with source= > from which grid reads data for the loop. > but the row= tells the grid where you want to store the current value > which is where grid writes data. > > I'm not explaining this very well, but "binding" is a basic tapestry > concept. > > Davor Hrg > > > On 10/17/07, Heck, Bob <[EMAIL PROTECTED]> wrote: > > > > I have a .page that returns a List - that works. > > > > > > > > When I try this: > > > > > > > > > context="Thing.name">${Thing.name} > > > > > > > > I get this: > > > > --- > > org.apache.tapestry.ioc.internal.util.TapestryException > > > > Could not convert 'Thing.name' into a component parameter binding: > > Class eds.sla.spring.web.tapestry.pages.DocManagement does not > > contain > > > a property named 'Thing' (within property expression 'Thing.name'). > > Available properties: class, componentResources, thingList. > > --- > > > > thingList is a List and is populated. > > > > the getThingList() on the page works and returns the List. > > So, > > > why can't tapestry see Thing? Thing is the row, it is the type of > > object that is returned in the List. > > > > > > > > > > > > - > 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using row param in grid
I assume you have a column for the "name" property of Thing. Then you want your parameter to be for > -Original Message- > From: Heck, Bob [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 17, 2007 3:22 PM > To: Tapestry users > Subject: RE: Using row param in grid > > Ok, thanks for that. Added property to page to store Thing. No more > error, but, now it seems as if the page is being rendered without regard > to the tag. It is completely ignored and the grid is > rendered as if the parameter tag is not even there, in other words, no > link is created. View source, just standard table and text, no link > tag. > > Thanks for your help in advance. > > > > -Original Message- > From: Davor Hrg [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 17, 2007 13:53 > To: Tapestry users > Subject: Re: Using row param in grid > > you must create a property to store current row (for example "thing") > getThing and setThing .. > > and change your template: > > > > context="Thing.name">${thing.name} > > > > > the concept here is that you give list of objects to grid with source= > from which grid reads data for the loop. > but the row= tells the grid where you want to store the current value > which is where grid writes data. > > I'm not explaining this very well, but "binding" is a basic tapestry > concept. > > Davor Hrg > > > On 10/17/07, Heck, Bob <[EMAIL PROTECTED]> wrote: > > > > I have a .page that returns a List - that works. > > > > > > > > When I try this: > > > > > > > > > context="Thing.name">${Thing.name} > > > > > > > > I get this: > > > > --- > > org.apache.tapestry.ioc.internal.util.TapestryException > > > > Could not convert 'Thing.name' into a component parameter binding: > > Class eds.sla.spring.web.tapestry.pages.DocManagement does not contain > > > a property named 'Thing' (within property expression 'Thing.name'). > > Available properties: class, componentResources, thingList. > > --- > > > > thingList is a List and is populated. > > > > the getThingList() on the page works and returns the List. So, > > > why can't tapestry see Thing? Thing is the row, it is the type of > > object that is returned in the List. > > > > > > > > > > > > - > 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: Using row param in grid
Ok, thanks for that. Added property to page to store Thing. No more error, but, now it seems as if the page is being rendered without regard to the tag. It is completely ignored and the grid is rendered as if the parameter tag is not even there, in other words, no link is created. View source, just standard table and text, no link tag. Thanks for your help in advance. -Original Message- From: Davor Hrg [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 13:53 To: Tapestry users Subject: Re: Using row param in grid you must create a property to store current row (for example "thing") getThing and setThing .. and change your template: ${thing.name} the concept here is that you give list of objects to grid with source= from which grid reads data for the loop. but the row= tells the grid where you want to store the current value which is where grid writes data. I'm not explaining this very well, but "binding" is a basic tapestry concept. Davor Hrg On 10/17/07, Heck, Bob <[EMAIL PROTECTED]> wrote: > > I have a .page that returns a List - that works. > > > > When I try this: > > > > context="Thing.name">${Thing.name} > > > > I get this: > > --- > org.apache.tapestry.ioc.internal.util.TapestryException > > Could not convert 'Thing.name' into a component parameter binding: > Class eds.sla.spring.web.tapestry.pages.DocManagement does not contain > a property named 'Thing' (within property expression 'Thing.name'). > Available properties: class, componentResources, thingList. > --- > > thingList is a List and is populated. > > the getThingList() on the page works and returns the List. So, > why can't tapestry see Thing? Thing is the row, it is the type of > object that is returned in the List. > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using row param in grid
you must create a property to store current row (for example "thing") getThing and setThing .. and change your template: ${thing.name} the concept here is that you give list of objects to grid with source= from which grid reads data for the loop. but the row= tells the grid where you want to store the current value which is where grid writes data. I'm not explaining this very well, but "binding" is a basic tapestry concept. Davor Hrg On 10/17/07, Heck, Bob <[EMAIL PROTECTED]> wrote: > > I have a .page that returns a List - that works. > > > > When I try this: > > > > context="Thing.name">${Thing.name} > > > > I get this: > > --- > org.apache.tapestry.ioc.internal.util.TapestryException > > Could not convert 'Thing.name' into a component parameter binding: Class > eds.sla.spring.web.tapestry.pages.DocManagement does not contain a > property named 'Thing' (within property expression 'Thing.name'). > Available properties: class, componentResources, thingList. > --- > > thingList is a List and is populated. > > the getThingList() on the page works and returns the List. So, > why can't tapestry see Thing? Thing is the row, it is the type of > object that is returned in the List. > > > > >