ERRest, D2WContext, displayPropertyKeys and localizer issue
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