Thanks for these recommendations. The @Persist approach works fine, when
the form is submitted in 'add' mode, I can store the newly created
identifier temporarily for use on the next ajax call.
The form context parameter works as advertised, but I don't think solves my
problem as the context is s
On Wed, 01 Aug 2012 17:11:26 -0300, Michael Prescott
wrote:
(posted)
Okay, yes, I may just be running counter to the grain - ajax requests
aren't supposed to change the context. I suppose (since the zone is in
the form) I could have the zone contain a sort of 'custom context', so
that
w
g persisting the object.
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Simple-zone-form-conundrum-tp5714957p5714967.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---
your event is always null on a new record after the zone refreshes. You need
to somehow set the event obj after the zone update. Thiago might have a
better solution than using persisting the object.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Simple-zone-form
(posted)
Okay, yes, I may just be running counter to the grain - ajax requests
aren't supposed to change the context. I suppose (since the zone is in the
form) I could have the zone contain a sort of 'custom context', so that
when I move from adding to editing.
Michael
On 1 August 2012 15:59, T
xist and not having a url
> parameter
> when the record is new, but updating with ajax? If so, it sounds like your
> not setting your object after the zone saves and reloads the form.
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Simple-z
On Wed, 01 Aug 2012 16:41:59 -0300, Michael Prescott
wrote:
I suspect that, when the form updates a zone, the form has no chance to
realize that the page now has a context.
The page context is tied to the current URL. AJAX requests don't change
the current URL.
Only a full-page refresh
.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Simple-zone-form-conundrum-tp5714957p5714959.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr
I have an add/edit form - if the context is non-null, then I'm editing,
otherwise I'm adding. So far, so good.
As the user edits, they occasionally submit to the server to get the
server's impressions of what they've posted so far (it looks at what
they've submitted, works out some metrics). Thes