I have an "Add Product" page in which there is a selection list of
categories, you should pick one. The SmartDispatcherController will
push inside my Product/New action the equivalent to this:

productFromSmartDispatcher = new Product {
  Category = new Category { Id = 1 },
  Name = "Product Name"
}

I have to reload by PK afterwards to avoid the "Object with same Id
already in session" error:

product.Category = s.Load<Category>(product.Category.Id)

Is there a cleaner way to do this or is it just the way the Dispatcher
works?

Thanks
Lucio

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to