Hi all,

just reading the docs about generic database events. Have 1 small
question: what is the use of giving the argument named "contactId" a
value of "Contact"?

This is the example code:

<message name="modelglue.GenericCommit">
 <argument name="object" value="Contact" />
 <argument name="contactId" value="Contact" />
 </message>

since the value of contactId is taken from the value of the viewState
key with te same name - e.g.when making this call
index.cfm?event=contact.commit&contactId=42&firstname=Fred

<cfdump var="#viewstate.getValue("contactId")#"
would result 42. Why would I then assign the value "Contact" to
viewstate key "contactId" in my eventHandler?

Marc

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to