• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Disabling D2W framework rules with an application rule
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disabling D2W framework rules with an application rule


  • Subject: Re: Disabling D2W framework rules with an application rule
  • From: David LeBer <email@hidden>
  • Date: Fri, 29 Oct 2010 13:57:48 -0400

On 2010-10-29, at 1:30 PM, David Holt wrote:

>
> On 2010-10-29, at 10:16 AM, Ramsey Gurley wrote:
>
>>
>> On Oct 29, 2010, at 1:01 PM, 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.
>>>
>>> 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";
>>>
>>> ;david
>>
>> Any reason ERDDelayedLocalizedAssignment won't work?

Nope, just didn't think about it. Much better, thanks

> How would you use this in a rule?
>
> David
>

100 : task = 'queryAll' => displayNameForPageConfiguration = "Pages.QueryAll" [er.directtoweb.ERDDelayedLocalizedAssignment]

And:

"Pages.QueryAll" = "Foo Bar";

;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




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Disabling D2W framework rules with an application rule
      • From: David Holt <email@hidden>
References: 
 >Disabling D2W framework rules with an application rule (From: David Holt <email@hidden>)
 >Re: Disabling D2W framework rules with an application rule (From: David LeBer <email@hidden>)
 >Re: Disabling D2W framework rules with an application rule (From: Ramsey Gurley <email@hidden>)
 >Re: Disabling D2W framework rules with an application rule (From: David Holt <email@hidden>)

  • Prev by Date: Re: Disabling D2W framework rules with an application rule
  • Next by Date: Re: Disabling D2W framework rules with an application rule
  • Previous by thread: Re: Disabling D2W framework rules with an application rule
  • Next by thread: Re: Disabling D2W framework rules with an application rule
  • Index(es):
    • Date
    • Thread