Re: Objects looped in For stored in page source?
Henri, Thanks for your reply. Actually I had some lazy binding session exceptions but they disappered when I applied the keyExpression attribute according to Jesse's tip! I've looked several times at Tapernate but each time I've desided it's too much work to get on track. And my small app is not worth it, not yet anyway. Malin On 7/26/06, Henri Dupre <[EMAIL PROTECTED]> wrote: On 7/25/06, Malin Ljungh <[EMAIL PROTECTED]> wrote: > > Hi all, > > I've been using Tapestry for weeks and today I for the first time did > a "View page source" > in my browser... and I was a little surprised. In one of my pages I'm > looping > a Set using a For component to display some entities in a table. The > entities are model > objects which I get from > database using Hibernate. Seems like all my objects are stored in the > client view state > using hidden inputs... is it what I see? and the are rather large > although my objects is > quite small. > So, my question is - should I be bothered? Yes!! This could cause you some evil session exceptions in hibernate. I would highly recommend you to use tapernate... Tapernate will take care of loading and unloading objects and reattach them. Henri.
Re: Objects looped in For stored in page source?
Thank you! That was really simple - and it works :) One golden star to you, Jesse. Malin On 7/26/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: Use the "keyProvider" parameter. It will do wonders for your client persisted form properties :) On 7/25/06, Malin Ljungh <[EMAIL PROTECTED]> wrote: > > Hi all, > > I've been using Tapestry for weeks and today I for the first time did > a "View page source" > in my browser... and I was a little surprised. In one of my pages I'm > looping > a Set using a For component to display some entities in a table. The > entities are model > objects which I get from > database using Hibernate. Seems like all my objects are stored in the > client view state > using hidden inputs... is it what I see? and the are rather large > although my objects is > quite small. > So, my question is - should I be bothered? > > Below is a copy of a part of my page source: > > name="For" > value="VZH4sIAJVVTYgURxR+0+NkZ3YXx111XdFAELIHCd0B8Qc8JOvm4JDWbBgv2T3VdJcztXZXtVU1szNClPWgh1wSUES8RPDiD3oIuYXkFDCEQC4hlxxE9BDBk4JHfVXdPdMLI2gfhp73Xn31va++V33vOVSUhE8UdddIj7gqIQGNBT9DBy7jPaaJZoK7sQhp5C4JrkmgX1/47+ffv02eO1BrQC1Ig41wBSawiGoa+jBBgkB0udbg+op6BtorQHsjaM9Ce4tp/VEfJoMO4W16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+AU6cBnvMU00E9xNREhjd1lwTQL96uqjX3+7nL5woN6EepAZm+EaTGIQ1TT0YZIEgehyrcH1FfUMtFeC9kbQnoX2lrL44z5MBR3CI7rKEqphl29Tu5rF3mmiqfVLim/GfxGugOPDdH5syVSlCWGxhrksP0ZEr6Ul4xEiTI9OVxoapSNa1DDYwUkGVOmnAOAANugDISO3w9pUcjzcTaXoD9wWlYzE7BJpx3TFWK7dOfHTy8be5w5M+dAIRJIKTjn2ZnWQYjUHfUTxhiieRqu31FZaYgOXi2gTa+rEV6YH5wouPixEFKGM+Tyj8iOqOyJcjonCImZLdVoTAsyPCS+hOSzUsC/LY8Ir13J8HaYY11SexxtD9Ln1MfCNlErFlMYDrMnA1pCkeg3J3D8/xj9ktQ77x7hXiCSJzZ/qp6l+Q7Hmiuq9qbjz+FML0784Dz5/6sDMGlRJmDCOwm7HIrhAt0m8nku8iW3cXepPExsXUbldybksa/mw2GJ2vJWW81t7h/awOUV+LcXGbgoZ5t5aVxlpDdWrYQZFsFQQRR3P2kYYom5OdO7xt9/9t3XjmAMTTaj2SNylfQm7RnHnugkK9vrdL9+f/uKfmw5ANhVdWegiC8t0cWffwx//+HPtdhE2gf0/MG52zhT/7eB8cuXo4lfv3jtg0wz5hv1B/qrEv2uMe3LUCioURk8/xermsmu+GLumf0qTJF1c+PvBROs+zcrjhAuF5e20gWbmXbNWOhtbE2c/0/srBmezhgfMfL8a/dU3wLbX72VG9fM3h6wROzsvBdYduvFGl0edk5G5JBdHHmksbi84EHFMAyu1leHM4KqJzvx77dazHzpIzYcKFmpvFdkdeW1+sSxGOMtDJ9t6Ev/+9aHDDkw2UVkk6NCwxS5RlHHIpB6smcXHtJ1yI+AKjoE5sY4SE5ucyu3r8uP2BuKadYiFFktjp9JCIiwnqeoIS7jeT1/hkzdq1kjDvFQ1HHubj0rJocyQVz81hf0PqHFtHZ8GAAA=" > /> > > > Malin > > -- Jesse Kuhnert Tacos/Tapestry, team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind.
Re: Objects looped in For stored in page source?
On 7/25/06, Malin Ljungh <[EMAIL PROTECTED]> wrote: Hi all, I've been using Tapestry for weeks and today I for the first time did a "View page source" in my browser... and I was a little surprised. In one of my pages I'm looping a Set using a For component to display some entities in a table. The entities are model objects which I get from database using Hibernate. Seems like all my objects are stored in the client view state using hidden inputs... is it what I see? and the are rather large although my objects is quite small. So, my question is - should I be bothered? Yes!! This could cause you some evil session exceptions in hibernate. I would highly recommend you to use tapernate... Tapernate will take care of loading and unloading objects and reattach them. Henri.
Re: Objects looped in For stored in page source?
Use the "keyProvider" parameter. It will do wonders for your client persisted form properties :) On 7/25/06, Malin Ljungh <[EMAIL PROTECTED]> wrote: Hi all, I've been using Tapestry for weeks and today I for the first time did a "View page source" in my browser... and I was a little surprised. In one of my pages I'm looping a Set using a For component to display some entities in a table. The entities are model objects which I get from database using Hibernate. Seems like all my objects are stored in the client view state using hidden inputs... is it what I see? and the are rather large although my objects is quite small. So, my question is - should I be bothered? Below is a copy of a part of my page source: Malin -- Jesse Kuhnert Tacos/Tapestry, team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind.
Objects looped in For stored in page source?
Hi all, I've been using Tapestry for weeks and today I for the first time did a "View page source" in my browser... and I was a little surprised. In one of my pages I'm looping a Set using a For component to display some entities in a table. The entities are model objects which I get from database using Hibernate. Seems like all my objects are stored in the client view state using hidden inputs... is it what I see? and the are rather large although my objects is quite small. So, my question is - should I be bothered? Below is a copy of a part of my page source: Malin