There is still a problem using children of a model. If you call customer.address.street, it expects that the customer contains an empty address object, while in most applications, this contains null on a newly created object. Patrick mentioned that he is researching how to use the OGNL NullHandler (http://www.ognl.org/2.6.0/Documentation/html/nullHandler.html) to solve this problem, but I haven't heard back from him.
Cheers, Mathias -----Original Message----- From: Matt Ho [mailto:[EMAIL PROTECTED] Sent: dinsdag 8 juli 2003 18:29 To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] Model Driven Actions I've updated the wiki to include docs on ModelDriven and the ModelDrivenInterceptor. http://wiki.opensymphony.com/space/Xwork+Interceptors M Jason Carreira wrote: > The idea is to separate the setting of the model into the valuestack > into an optional interceptor. In this way, you can customize the order > of interceptors so that you can (and this is the example Matt had that > led to us talking this through) set your static params (the params > from your xwork.xml) then the action can use these params to decide > which model type to build when getModel is called to get the model to > put into the ValueStack when the ModelDrivenInterceptor is applied. > > If you have a model with children, you need to use sub-property field > names, for instance "customer.address.street". > > Now that the wiki is back up, we need to go back and document this. > > Jason > > >>-----Original Message----- >>From: BOGAERT Mathias [mailto:[EMAIL PROTECTED] >>Sent: Tuesday, July 08, 2003 10:15 AM >>To: Opensymphony-Webwork ([EMAIL PROTECTED]) >>Subject: [OS-webwork] Model Driven Actions >> >> >>Hi guys, >> >>I've seen the ModelDrivenInterceptor. Can someone explain >>it's intented usage? How do I do the CRUD thing using Model >>Driven Actions? What is your approach to a model which has >>children (eg. Customer Obj - Address Obj - Street String)? >> >>Thanks, >>Mathias >> >> >>------------------------------------------------------- >>This SF.Net email sponsored by: Free pre-built ASP.NET sites >>including Data Reports, E-commerce, Portals, and Forums are >>available now. Download today and enter to win an XBOX or >>Visual Studio .NET. >>http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_06 > > 1203_01/01 > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/ > 01 > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork