You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Inge Solvoll <in...@gmail.com> on 2009/06/05 13:36:25 UTC

T5: Huge t-formdata

Hi!

I'm using T5.0.18.

I have a form containing a loop with possibly hundreds or even thousands of
items. My problem is that when the numbers grow, the t-formdata string grows
to be about 500.000 characters.

The loop consists of objects that extend from a type I've contributed a type
coercer to and from string for. I've also specified a PrimaryKeyEncoder that
converts to string and from string for the looped items.

I've tried setting loop attributes volatile="true" and formState="none",
none of them caused any significant changes to the size of the t-formdata
string.

Any pointers on where to look to solve this problem?

Re: T5: Huge t-formdata

Posted by Ville Virtanen <vi...@cerion.fi>.
Hi,

Few suggestions: try 5.1, there are many optimizations in this release,
don't know if any of those are related to this though.

Also, does the size grow linearly with more objects in the row? How much by
per row? (Test with 100, 200, 300, 400, 500 etc.)

Include the tml and java, without those we're pretty much guessing what
might or might not go wrong.

Also t-formdata contains (i think) data about the state of the related form
components, so the complexity of the form might play role here also. So, if
possible simplify the contents of the loop by removing all unneccessary t5
components from inside it. Again, it would be easier to guess with some
source.

 - Ville


Inge Solvoll-2 wrote:
> 
> Hi!
> 
> I'm using T5.0.18.
> 
> I have a form containing a loop with possibly hundreds or even thousands
> of
> items. My problem is that when the numbers grow, the t-formdata string
> grows
> to be about 500.000 characters.
> 
> The loop consists of objects that extend from a type I've contributed a
> type
> coercer to and from string for. I've also specified a PrimaryKeyEncoder
> that
> converts to string and from string for the looped items.
> 
> I've tried setting loop attributes volatile="true" and formState="none",
> none of them caused any significant changes to the size of the t-formdata
> string.
> 
> Any pointers on where to look to solve this problem?
> 
> 

-- 
View this message in context: http://www.nabble.com/T5%3A-Huge-t-formdata-tp23886649p23922483.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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