[Q] Form posting sitemap pattern...

2002-09-04 Thread Per Kreipke
I can't quite figure out what the right way is to use actions to handle posting when there is an originating page, the form itself, a validator and an action. Scenario: - The user has a page which displays a collection of items of some sort (books). + page: books.xyz - clicking 'new' on the

Re: [Q] Form posting sitemap pattern...

2002-09-04 Thread Lajos Moczar
Hi Per - If you were using the formval logicsheet and the FormValidatorAction, you'd have something like this: map:match pattern=newbook map:act type=form-validator map:parameter name=descriptor value=context://newbook-def.xml/ map:parameter name=validate-set value=add/

Re: [Q] Form posting sitemap pattern...

2002-09-04 Thread Christian Haul
On 04.Sep.2002 -- 02:57 PM, Lajos Moczar wrote: The main gotcha here is the formval logicsheet is a bit clumsy to use, as you have to make sure you not only display validation errors to the user, but repopulate valid fields with the data the user already entered. Lajos, in 2.0.4 (i.e. CVS

RE: [Q] Form posting sitemap pattern...

2002-09-04 Thread Per Kreipke
Lajos, Wow. Very concise, thanks. So, the tricks I missed were: - nesting the validate action and the insert action, I had put them together in an action-set instead. I actually knew better but that was dumb. - [here's the kicker] the validator action gets called both when posting _and_ when