acdhirr
unread,Jul 18, 2008, 4:18:55 PM7/18/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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>