Hi,
I have a Transport object that I use to populate a form. A tranport
has 2 Location objects and I can't get the binding to work when using
<code>
$Form.InputField("transport.ShippingDate")
$Form.InputField("transport.Origin.city")
</code>
The above code only get the date populated.
I am therefore wondering if this should work and in this case if
someone could point me to an example or the place in the doc.
as a workaround I am using
$Form.InputField("origin.city") with origin being populated with
transport.Origin in the controller (ex Edit action).I must then
reaggragate the tranportCandidate in the controller (ex Update
action).
extra question on the same theme. I am actually using a UITransport :
ITransport object and ITranport is defined with
Interface ITransport {
DateTime ShippingDate;
ILocation Origin {get; set;}
ILocation Destination {get; set;}
}
Is it possible to use Castle validation and how can I hint the view
that transport.origin is of type UILocation in that case?
Will it be possible to make the binding to work in this case? Would it
require to do something special in my UITransport default constructor
(like initialize the origine field with a new UILocation).
Thanks for any help
Dom
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" 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/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---