I believe Lance's #2 is only true for 5.4 (since
https://issues.apache.org/jira/browse/TAP5-1808)

On Mon, Mar 17, 2014 at 2:45 PM, Lance Java <lance.j...@googlemail.com> wrote:
> 1. If you use a block you can use a delegate to render it in the 2
> scenarios.
>
> 2. Tapestry does not redirect after post for errors, it forwards instead.
> So anything you've done in your validate is available in your render.
>
>
> On 17 Mar 2014 18:35, "George Christman" <gchrist...@cardaddy.com> wrote:
>>
>> I see, so form 2 is essentially a replica of form 1 accept all the fields
>> are hidden? If that is the case, two final questions, 1 is there a simpler
>> way to setup all them fields? This is a time sheet with probably 50/75
>> fields. Lastly, when you return form 2, how do you return the object
>> without persisting or losing the values? Sorry lance, just trying to wrap
>> my head around a new approach and get out of the current rut.
>>
>>
>> On Mon, Mar 17, 2014 at 2:25 PM, Lance Java <lance.j...@googlemail.com
>>wrote:
>>
>> > No :)
>> >
>> > Form1 contains the fields. Warnings cause form1's submit to FAIL.
>> >
>> > Form2 is displayed when showing the errors/warnings from form1. Form2
> has a
>> > hidden section with ALL of the fields (and values) from form1. Form2's
>> > submit button is likely to be labelled "accept". Clicking the "accept"
>> > button posts form2. The validation of form2 ignores warnings.
>> >  On 17 Mar 2014 18:03, "George Christman" <gchrist...@cardaddy.com>
> wrote:
>> >
>> > > I agree, I try to avoid it as much as I can. I'm not sure I understand
>> > what
>> > > you are doing, are you saying when form 2 is displayed and the submit
>> > > action is clicked, you would then resubmit form 1 along with form 2?
>> > >
>> > >
>> > > On Mon, Mar 17, 2014 at 1:49 PM, Lance Java <lance.j...@googlemail.com
>> > > >wrote:
>> > >
>> > > > As always, I try to avoid persist. I was suggesting hidden (or
>> > disabled)
>> > > > fields in form2 so the values are passed in both submits (thus
>> > > eliminating
>> > > > the need for @Persist)
>> > > >
>> > > > Form2 is not displayed initially, it is displayed when showing the
>> > > warnings
>> > > >
>> > >
>> > >
>> > >
>> > > --
>> > > George Christman
>> > > www.CarDaddy.com
>> > > P.O. Box 735
>> > > Johnstown, New York
>> > >
>> >
>>
>>
>>
>> --
>> George Christman
>> www.CarDaddy.com
>> P.O. Box 735
>> Johnstown, New York

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

Reply via email to