Re: loop inside a form

2014-07-22 Thread squallmat .
Ok, I was doing "recordError" on the wrong form. What a stupid error :p 2014-07-22 13:14 GMT+02:00 Geoff Callender < geoff.callender.jumpst...@gmail.com>: > It's hard to answer without knowing a few things... > > Is each Errors contained by its Form? > > Do the Errors use globalOnly="true"? > >

Re: loop inside a form

2014-07-22 Thread Geoff Callender
It's hard to answer without knowing a few things... Is each Errors contained by its Form? Do the Errors use globalOnly="true"? Are the error messages being generated by server-side code? And are they being recorded on the right form (eg. form1.recordError()? Are you giving each Errors an i

Re: loop inside a form

2014-07-22 Thread squallmat .
problem solved, i missed t:formstate="ITERATION" But another little problem, In my page I have two t:Form with each one having his t:errors, still, what could be the form submitted the error displaying always happen on the same one, the second one in my page. Why ? 2014-07-22 12:33 GMT+02:00 Ge

Re: loop inside a form

2014-07-22 Thread Geoff Callender
These may help: T5.4: http://jumpstart.doublenegative.com.au/jumpstart7/examples/tables/editableloop1 T5.3: http://jumpstart.doublenegative.com.au/jumpstart/examples/tables/editableloop1 Geoff On 22 Jul 2014, at 7:14 pm, squallmat . wrote: > Hello, > > as said in title I hav

loop inside a form

2014-07-22 Thread squallmat .
Hello, as said in title I have a loop on a list of objects (with his encoder) : ${message:typeName} ${message:remarks} ${message:delete} I initialize the list of objects in onActivate() : // initialize list of types if null if (typeClientDtoList == null) { typeClient

Re: Using loop inside a form without ValueEncoder

2011-12-20 Thread Thiago H. de Paula Figueiredo
On Mon, 19 Dec 2011 23:57:33 -0200, Nefron wrote: From Tapestry loop documentation: "With no extra configuration, each value object will be serialized into the form (if you view the rendered markup, you'll see a hidden form field containing serialized data needed by Tapestry to process th

Re: Using loop inside a form without ValueEncoder

2011-12-19 Thread Nefron
or when there is a provided default ValueEncoder. Its not that this has some great practical usage, I'm mostly just curious whether something like this is possible. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Using-loop-inside-a-form-without-ValueEncoder-tp5084357

Re: Using loop inside a form without ValueEncoder

2011-12-19 Thread Thiago H. de Paula Figueiredo
On Sun, 18 Dec 2011 17:37:40 -0200, Nefron wrote: Hey, Hi! I'm trying to use loop inside a form with a transient entity. I'm using the Hibernate module, and it provides ValueEncoders for all entities. This is usually very useful, but in this case I want to fall back to t

Using loop inside a form without ValueEncoder

2011-12-18 Thread Nefron
Hey, I'm trying to use loop inside a form with a transient entity. I'm using the Hibernate module, and it provides ValueEncoders for all entities. This is usually very useful, but in this case I want to fall back to the default loop behavior without the encoder, which is stor

Re: Loop inside a form

2007-03-22 Thread Sam Gendler
when a form rewinds, the loop executes over the set of objects, in the same order in which they were originally iterated, so the fields naturally populate the correct object as the form rewinds. For this reason, it is important that the collection you are iterating over does, indeed, remain in th

Loop inside a form

2007-03-22 Thread Bogdan Calmac
Hi all, I'm trying to understand how the Loop component works inside a form and I couldn't find too much info in the docs. My main curiosity is how do the right objects get updated when the form is submitted. I would guess it has something to do with the PrimaryKeyEncoder, but how does tapestry k