Hi I'm running the code in a try/catch bolck and no exceptions are thrown On Thu, Nov 13, 2008 at 4:14 PM, Nathan Bubna <[EMAIL PROTECTED]> wrote: > On Thu, Nov 13, 2008 at 2:01 AM, Luca Paoli <[EMAIL PROTECTED]> wrote: >> Hi thankf for helping :) >> >> I'm using version 1.5 of velocity >> I did what you suggested and the output is >> >> [EMAIL PROTECTED], >> [EMAIL PROTECTED], >> [EMAIL PROTECTED], >> ... >> [EMAIL PROTECTED], >> [EMAIL PROTECTED], >> [EMAIL PROTECTED] >> >> 184 > > looks good so far... > >> so the array size is 184 that's correct it's what is in the database >> but for some reason velocity stops looping on the elements in the >> middle of row 160 (one row for element) > > > in the middle?! there must be some exception occurring. what do the > logs output? > >> Luca >> >> On Mon, Nov 10, 2008 at 5:24 PM, Nathan Bubna <[EMAIL PROTECTED]> wrote: >>> Oops. i just noticed that Claude beat me to this answer. :) So, what >>> version of Velocity are you using and what happens if you do: >>> >>> $bean.anagrafiche >>> $bean.anagrafiche.size() >>> >>> On Mon, Nov 10, 2008 at 8:21 AM, Nathan Bubna <[EMAIL PROTECTED]> wrote: >>>> There is the directive.foreach.maxloops property, but by default that >>>> is set to Integer.MAX_VALUE, which is much higher than 160. So, i >>>> doubt that's the problem. >>>> >>>> On Mon, Nov 10, 2008 at 1:18 AM, Luca Paoli <[EMAIL PROTECTED]> wrote: >>>>> Hi all, >>>>> I have a problem with the foreach statement >>>>> It stops evaluation after a certain amount of iterations in my case >>>>> almost 160 I've seen in the source code that it uses a variable >>>>> something like maxNumIterations so I'm wandering do I have to set >>>>> anything to have velocity keep looping? >>>>> Thanks for any help >>>>> >>>>> The template is very simple >>>>> #foreach ($anagrafica in $bean.anagrafiche) >>>>> >>>>> \t$anagrafica.getTipo()\t$anagrafica.getNome1()\t$anagrafica.getIndirizzo() >>>>> \t\n >>>>> #end >>>>> >>>>> --------------------------------------------------------------------- >>>>> 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]
