On 2010-10-29, at 10:01 AM, David LeBer wrote: > On 2010-10-29, at 12:20 PM, David Holt wrote: > >> Hi all, >> >> Is it possible to disable a rule found in a framework such as >> >> 20 : task = 'queryAll' => displayNameForPageConfiguration = "Search All" >> [com.webobjects.directtoweb.Assignment] >> >> with another rule? >> >> In this case I don't want to override it in my app >> >> 21 : task = 'queryAll' => displayNameForPageConfiguration = "Search >> Everything" [com.webobjects.directtoweb.Assignment] >> >> I want to disable it so that the name is picked up from Localizable.strings >> instead. > > > Erm, not that I know of.
This is a specific example of a more general issue I've come across before. > > And localization his handled in the default name assignment object so I'm not > handling it in the Header display component. > > I whipped up a patch (attached) if that works I can commit it. > > The patch allows you to add a rule like: > > 100 : task = 'queryAll' => localizePageHeader = "true" > [com.webobjects.directtoweb.BooleanAssignment] > > And then add this to your localizable strings file: > > "Search All" = "Foo Bar"; This works, but is inconsistent with the other "Pages.pageConfigurationName" = "Blah Blah" localizations. But who uses the QueryAll page anyway ;-) d > > ;david > > -- > David LeBer > Codeferous Software > 'co-def-er-ous' adj. Literally 'code-bearing' > site: http://codeferous.com > blog: http://davidleber.net > profile: http://www.linkedin.com/in/davidleber > twitter: http://twitter.com/rebeld > -- > Toronto Area Cocoa / WebObjects developers group: > http://tacow.org > > > <ERMD2WSimpleHeader.java.patch> > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com > > This email sent to [email protected] _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
