state preserved after generic commit

0 views
Skip to first unread message

acdhirr

unread,
Jul 18, 2008, 4:18:55 PM7/18/08
to model-glue

Hi all,

When using generic commits I discovered something which I believe is
strange...

A form, in which an address record can be edited, is submitted
(address.commit). Then there's a redirect to listadresses (see code
below). Even though preserveState=false all formfields are kept in the
viewstate. So after each update, listadresses only shows the updated
record, since in my app it filters on addressID, which should be
cleared out of the viewstate.

Looks like there's no difference whether preserveState is set true or
false.

Any ideas?
Richard

(modelglue version 2.0.304, transfer orm 1.0)

<event-handler name="address.commit" access="public">
<broadcasts>
<message name="ModelGlue.genericCommit">
<argument name="recordName" value="AddressRecord" />
<argument name="criteria" value="ID" />
<argument name="object" value="Address" />
</message>
</broadcasts>
<views/>
<results>
<result do="listadresses" redirect="true" append=""
preserveState="false" />
</results>
</event-handler>
Reply all
Reply to author
Forward
0 new messages