I agree. Anything that will allow a new developer to have a better out of the box experience would be great.
-- Paul Yu Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Thursday, May 3, 2012 at 1:36 PM, Chuck Hill wrote: > I am not a real D2W guy, but that seems like an obviously good idea to me. > > > Chuck > > > On 2012-05-03, at 10:33 AM, David Holt wrote: > > > Hi all, > > > > A few of us have been discussing creating an additional default rule set > > for Modern D2W applications based on a new optional key in the user info > > dictionary and the existing prototypeName for an attribute. > > > > We were thinking of using a new key such as d2wComponentType = mailto as a > > new key that sets the default component to be used for an attribute. We > > were thinking that if there was no key the fallback could be to using the > > prototypeName from entity modeler, and if neither of those is available to > > go with the current rules. > > > > Given that there are now so many little specialized components available in > > Wonder for all sorts of different things, we are hoping to avoid continuing > > to have to create a bunch of rules such as: > > > > 50 : propertyKey like '*Post' => componentName = "ERD2WEditLargeString" > > [com.webobjects.directtoweb.Assignment (http://web.Assignment)] because the > > current rules are not very specific (the default would just be EditString). > > > > Replacing them with more generic rules such as: > > > > 35 : (smartAttribute.userInfo.d2wComponentType = displaySmallIntNumber => > > componentName = "ERD2WDisplaySmallInteger" > > [com.webobjects.directtoweb.Assignment (http://web.Assignment)] > > 35 : (smartAttribute.userInfo.d2wComponentType = editSmallIntNumber => > > componentName = "ERMD2WEXTEditSmallInteger" > > [com.webobjects.directtoweb.Assignment (http://web.Assignment)] > > > > 25 : (smartTaskDisplay = 1 and smartAttribute.prototypeName = 'intNumber') > > => componentName = "ERMD2WEXTDisplay_intNumber" > > [com.webobjects.directtoweb.Assignment (http://web.Assignment)] > > 25 : (smartTaskEdit = 1 and smartAttribute.prototypeName = 'intNumber') => > > componentName = "ERMD2WEXTEdit_intNumber" > > [com.webobjects.directtoweb.Assignment (http://web.Assignment)] > > > > Given that Wonder was created by geniuses I can't imagine that this idea > > has been overlooked. What are the drawbacks to the approach that are we > > missing?? Or do you think it's a good idea? > > > > Thanks, > > David > > _______________________________________________ > > Do not post admin requests to the list. They will be ignored. > > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com > > (mailto:Webobjects-dev@lists.apple.com)) > > Help/Unsubscribe/Update your Subscription: > > https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net > > > > This email sent to ch...@global-village.net > > (mailto:ch...@global-village.net) > > -- > Chuck Hill Senior Consultant / VP Development > > Practical WebObjects - for developers who want to increase their overall > knowledge of WebObjects or who are trying to solve specific problems. > http://www.global-village.net/gvc/practical_webobjects > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > Wonder-disc mailing list > wonder-d...@lists.sourceforge.net (mailto:wonder-d...@lists.sourceforge.net) > https://lists.sourceforge.net/lists/listinfo/wonder-disc > > > > > Attachments: > - smime.p7s >
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com