• 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
ERRest, D2WContext, displayPropertyKeys and localizer issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ERRest, D2WContext, displayPropertyKeys and localizer issue


  • Subject: ERRest, D2WContext, displayPropertyKeys and localizer issue
  • From: Farrukh Ijaz <email@hidden>
  • Date: Thu, 7 Oct 2010 15:41:18 +0300

Hi,

I'm using ERRest framework and I've integrated the Rule System with the ERRest requests. I'm facing a situation and can't think about any possible solution out of the box.

In the rules file I've a rule as follows:

100 : (entity.name = 'CascadingMenuItem' and task = 'GET') => displayPropertyKeys = (menuTitle,"toParentMenu.menuTitle") [com.webobjects.directtoweb.Assignment],

The issue is the value of menuTitle and toParentMenuItem.menuTitle are localized keys. I want to get the localized value. So for that I've to modify the above rule as follows:

100 : (entity.name = 'MenuItem' and task = 'GET') => displayPropertyKeys = (localizedMenuTitle,"toParentMenuItem.localizedMenuTitle") [com.webobjects.directtoweb.Assignment],

The localizedMenuTitle takes "localizer" parameter and the above rule works okay with in WO Component. Where localizer is automatically passed to the method by the framework.

In ERRest, I don't understand how should I handle this.

Any ideas? or may be I've missed some documentation which could help with the problem with minimum effort?

Thanks in advance,

Farrukh
 _______________________________________________
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

  • Prev by Date: Re: TurnKey Installer Components
  • Next by Date: Re: TurnKey Installer Components
  • Previous by thread: Re: ERMBatchSizeControl problem with embedded listings
  • Next by thread: ERExcelLook returning Garbage
  • Index(es):
    • Date
    • Thread