Frank, in Properties file: #ERRest ERXRest.writeTypeKey=false ERXRest.defaultFormat=ember er.rest.timestampFormat=yyyy-MM-dd’T'HH:mm:ssZ
in Ember Application: App.ApplicationAdapter = DS.RESTAdapter.extend({ namespace: applicationURL + 'ra' }); DS.RESTAdapter = DS.RESTAdapter.extend({ buildURL: function(record, suffix) { return this._super(record,suffix) + '.ember?wosid=' + sessionID; }, findHasMany: function(store, record, relationship, details) { return this._super(store, record, '/' + applicationURL + 'ra' + relationship + '.ember?wosid=' + sessionID, details); }, findBelongsTo: function(owner, link, relationship, resolver) { this._super(owner, link, '/' + applicationURL + 'ra' + relationship + '.ember?wosid=' + sessionID, resolver); } }); We are passing session id to REST. You may not need to do that. One more thing: In create filers you will need to map relationships: filter.include(Bidder.COUNTRY_ID); filter.addMap(new ERXKey<Long>("country"), Bidder.COUNTRY_ID); Michael Kondratov Aspire Auctions, Inc. 216-231-5515 > On Jun 23, 2014, at 3:08 PM, Frank Stock <frank.st...@telenet.be> wrote: > > Hello Michael, > > > Thank you for the information. I did update my files and I am able to get > data from the Movies application into my Ember app. But the moment I want to > update/create I always get the following error: > No 'Access-Control-Allow-Origin' header is present on the requested resource. > Can you tell me how I can handle that, or do you have a small ember-example. > I am testing with Ember-data. > > Thanks, > Frank Stock > Belgium > > > Op 20 jun. 2014, om 16:54 heeft Michael Kondratov > <mich...@aspireauctions.com> het volgende geschreven: > >> I can send you modified files or you may checkout our fork on github >> mkondratov/wonder . I really need to send the changes to the official >> branch. Tried few month ago with no success. >> >> Michael Kondratov >> Aspire Auctions, Inc. >> 216-231-5515 >> >>> On Jun 20, 2014, at 2:50 AM, Frank Stock <frank.st...@telenet.be> wrote: >>> >>> Hi Michael, >>> >>> I am testing EmberJS to work with WO. Can you tell me what you have >>> modified on ERRest? I am able to get data from WO into Ember (Movies >>> example) but then I am getting er.rest.routes.ERXRouteController - Request >>> failed: /cgi-bin/WebObjects/Movies.woa/ra/movies/114, 405 if I do un update. >>> Is it possible to give me an example to start with? >>> >>> Thanks, >>> Frank Stock >>> Belgium >>> >>> >>>> We've looked into it and went with EmberJS instead. It is a much better >>>> framework IMO. We ended up modifying ERRest a bit, need to submit a >>>> commit. Works beautifully with ember now. >>>> >>>> Michael Kondratov >>>> Aspire Auctions, Inc. >>>> 216-231-5515 >>>> >>>> On May 30, 2014, at 12:18 PM, Ricardo Parada <rpar...@mac.com> wrote: >>>> >>>>> Hi All, >>>>> >>>>> Has anybody explored using Angular JS with WebObjects? When I first >>>>> heard of angularjs I thought it was just another javascript library like >>>>> jquery, prototype, etc. for manipulating the DOM and doing ajax requests. >>>>> >>>>> Then I saw the videos and it seems to go beyond that into WebObjects >>>>> territory. They add attributes to the html elements to accomplish things >>>>> that we normally accomplish with WebObjects. For example, they add an >>>>> ng-repeat attribute to a <tr> html element if they want to do a >>>>> repetition. Or they add an ng-if attribute to any html element that is >>>>> to be rendered conditionally. So in other words, it steps into >>>>> WORepetition, WOConditional territory. Nonetheless, it captured my >>>>> attention as it looked like a very elegant approach. >>>>> >>>>> So my question: has anybody explored Angular JS with WebObjects? >>>>> >>>>> I am thinking that I would have to dig into how angular js processes all >>>>> the ng- attributes in the html tags and converts them to HTML. I talked >>>>> to somebody and thought that Angular JS seems to be in the WebObjects UI >>>>> rendering territory but could tap into WebObjects using REST. But I'm >>>>> thinking that it may be possible to have a WONGComponent that has >>>>> angularjs attributes in the html that bind to the java component or >>>>> something like that. >>>>> >>>>> Thanks >>>>> Ricardo >>>>> >>>>> _______________________________________________ >>>>> 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/michael%40aspireauctions.com >>>>> >>>>> This email sent to mich...@aspireauctions.com >>>> >> >
_______________________________________________ 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