The few times I used macros I passed objects and accessed the object
properties inside the macro.
Try using the formal notation:
#urlencode(${article.linkurl})
#urlencode(Test ${article.linkurl})
2009/6/13 Jonathon Rossi j...@jonorossi.com
Macro's aren't really supported because there are
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
}
you need an NH aware data binder.
I think there is something out there somewhere.
Personally, I would have used a DTO as the action's parameter, and then map
it to a domain entity (NH powered).
On Sat, Jun 13, 2009 at 6:36 PM, Lucio luciolu...@gmail.com wrote:
I have an Add Product page in
The DTO approach sounds very nice, thanks for the tip.
On Jun 13, 3:19 pm, Ken Egozi egoz...@gmail.com wrote:
you need an NH aware data binder.
I think there is something out there somewhere.
Personally, I would have used a DTO as the action's parameter, and then map
it to a domain entity