possible issue with WOLips and new Ubuntu version
Hey - If you are not on Ubuntu, no biggie. But if you are, you might want to hold off on upgrading to 14.04 LTS. I upgraded from 14.02 LTS to 14.04 LTS and my working install of eclipse 3.7 is now not usable for opening WOComponents. Also, I just tried eclipse 4.2 and got different, but still blocking, errors there also. I am not having any other problems with the install. Just letting people know. If I can prevent anyone from stubbing their toe on this also, it's good on ya. cheers - ray ___ 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
Re: D2W attachment location and delete
On Aug 15, 2014, at 1:15 PM, Ramsey Gurley wrote: > > On Aug 15, 2014, at 10:01 AM, Theodore Petrosky wrote: > >> Ok, I finally figured out how to add an attachment to a relation in D2W. >> However, is it expected behavior that when you delete an asset, it only >> deletes the ‘link’ to the asset, but not the asset itself. > > I’m assuming you have a ->> b -> erattachment > > If you have the a->>b relationship “owns destination” then the related eo > will be deleted when it is removed from the relationship. You can then have > that eo cascade delete the attachment eo. Yes, this is what I have. a ->> b -> erattachment Article >> pdfs > attachement In Article/pdfs basic property the Delete Rule = cascadeand on the advanced tab Owns Destination. No joy. The uploaded file remains after it is removed. For this project, I can see that having a bunch of orphans won’t kill me. Ted > >> >> Meaning I upload a pdf. later I delete it from the relation. the asset shows >> one less item in its list, however the pdf is still in the file/database. >> >> It is effectively orphaned. >> >> Also, when I click to edit the attachment, there is a ‘remove’ button >> associated with the file. If I click it, the app crashes with: >> >> Error: java.lang.IllegalArgumentException: This form is missing a >> 'enctype=multipart/form-data' attribute. It is required for WOFileUpload to >> work. >> Reason: This form is missing a 'enctype=multipart/form-data' attribute. >> It is required for WOFileUpload to work. >> >> >> Ted > > I have a custom assignment to handle most of my form encoding cases. > > https://github.com/nullterminated/ponder/blob/master/ERR2d2w/Sources/er/r2d2w/assignments/R2DDefaultAttachmentAssignment.java#L47 > > That probably won’t work if you have set up a nested inline edit page or > something though. > ___ 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
Re: D2W attachment location and delete
On Aug 15, 2014, at 10:01 AM, Theodore Petrosky wrote: > Ok, I finally figured out how to add an attachment to a relation in D2W. > However, is it expected behavior that when you delete an asset, it only > deletes the ‘link’ to the asset, but not the asset itself. I’m assuming you have a ->> b -> erattachment If you have the a->>b relationship “owns destination” then the related eo will be deleted when it is removed from the relationship. You can then have that eo cascade delete the attachment eo. > > Meaning I upload a pdf. later I delete it from the relation. the asset shows > one less item in its list, however the pdf is still in the file/database. > > It is effectively orphaned. > > Also, when I click to edit the attachment, there is a ‘remove’ button > associated with the file. If I click it, the app crashes with: > > Error:java.lang.IllegalArgumentException: This form is missing a > 'enctype=multipart/form-data' attribute. It is required for WOFileUpload to > work. > Reason: This form is missing a 'enctype=multipart/form-data' attribute. > It is required for WOFileUpload to work. > > > Ted I have a custom assignment to handle most of my form encoding cases. https://github.com/nullterminated/ponder/blob/master/ERR2d2w/Sources/er/r2d2w/assignments/R2DDefaultAttachmentAssignment.java#L47 That probably won’t work if you have set up a nested inline edit page or something though. ___ 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
Re: D2W attachment location and delete
ERAttachment doesn’t delete file objects. You’ll need to implement that yourself if orphans distress you :-) David On Aug 15, 2014, at 10:01 AM, Theodore Petrosky wrote: > Ok, I finally figured out how to add an attachment to a relation in D2W. > However, is it expected behavior that when you delete an asset, it only > deletes the ‘link’ to the asset, but not the asset itself. > > Meaning I upload a pdf. later I delete it from the relation. the asset shows > one less item in its list, however the pdf is still in the file/database. > > It is effectively orphaned. > > Also, when I click to edit the attachment, there is a ‘remove’ button > associated with the file. If I click it, the app crashes with: > > Error:java.lang.IllegalArgumentException: This form is missing a > 'enctype=multipart/form-data' attribute. It is required for WOFileUpload to > work. > Reason: This form is missing a 'enctype=multipart/form-data' attribute. > It is required for WOFileUpload to work. > > > Ted > ___ > 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/programmingosx%40mac.com > > This email sent to programming...@mac.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
Re: angular and rest questions
If you guys can put any of what you are doing up on a git repository, please do. I would like to see it. I am currently working on an AngularJS project. It does not have very much need for data, so there is no WO. But I am definitely going to try to be using this with WO in future work. I will be putting stuff up as I can clear work-specific stuff out of it. cheers - ray On Fri, 15 Aug 2014 02:16:51 +0300 Farrukh Ijaz wrote: > > On Aug 15, 2014, at 1:41 AM, Larry Mills-Gahl > wrote: > > > I’m not trying to build a single-page-app, but I am trying to take > > advantage of the browser side manipulation of elements to make the > > user interface more responsive without continually relying on > > server side. I’m generally a control freak so I tend to favor > > server-side rendering of elements, but considering the data is > > already on the client, I don’t think I’m losing anything to let the > > browser sort and filter the data. > > > > The simple test case I’m exploring is a list of reports that can be > > many hundreds at a time. Normally, I would render a page of raw > > rows on the server and ship it to the browser. If I use an ajax > > rest request to get the data, I can render the page (without data) > > on the server and ship it to the client, then the client makes an > > ajax request for the data. That pattern gives the browser a > > response more quickly and can provide feedback on the progress more > > easily than an interim step like the long response page. Once the > > json is loaded, the browser sorts and filters the list locally and > > does not need to go back to the server. > > So far so good. Assuming your JSON looks like: > > $scope.reports = [ > {oid: ‘1', reportTitle: ’Report 1’}, > {oid: ‘2', reportTitle: ‘Report 2’}, > ... > ]; > > > > > The next step is to select one of the reports and display the > > detail page (where I’m using EO’s so that all the WO MVC goodness > > can be used) > > Defined another action on your ERRestRouteController which will > return Edit or Detail component you want to show for your report > details. You can use something like: > > @Path(“/report/{report:Report}”) > public WOActionResults reportDetail(@PathParam Report report) { > // load your component, set appropriate binding and return... > } > > In your ng-repeat component, use ng-click e.g. > > >ng-click=“reportDetails($index)”>{{report.reportTitle}} > > The report details function will look like this. > > function reportDetails(i) { > var oid = items[i].oid; > window.location = ‘/report/‘ + oid; > } > > I hope this will solve your problem or at least guide you in the > right direction. > > Farrukh > > > > > I am no angular expert and I may be thinking about this > > incorrectly, but it seems that if I use the angular MVC pattern > > with a read-only model, I will not get too screwed up. Angular has > > directives that compete with some of the WOComponents (like the > > WORepetition). I’m using the angular repetition component rather > > than a WORepetition so that I can get the in-browser functions. I > > will miss the easy data references to specific rows, but that > > requires a server round trip so I just have to ask the server > > explicitly for the object in the row rather than just referencing > > the object bound to the “item” in the WORepetition. > > > > I’m not wed to angular and will take another look at Montage. I > > think Ember is a good framework, but Angular seemed to be more > > tolerant of mixed environments (where you can have an app context > > that is a page fragment and even multiple app contexts in the same > > page.) I’m not an Ember guy either, but the most success I’ve had > > with Ember is when you can give yourself over to it and do the > > entire app in Ember. I don’t have that luxury at the moment. It may > > be my limited (mis-)understanding of Angular and Ember so I am > > absolutely open for correction and suggestions. > > > > > > > > Larry Mills-Gahl > > elem...@gmail.com > > > > > > On Aug 14, 2014, at 4:36 AM, Philippe Rabier > > wrote: > > > >> Hi Laurence, > >> > >> It's just by curiosity: what do you try to achieve with angular? > >> Prepare some part of a page on the server side the send back to > >> angular (a mix of data + HTML + javascript)? > >> > >> 1 member of our team gave it a try but didn't like it very much. > >> And personally I don't know Angular. > >> > >> We are redeveloping our back office app with MontageJS and ERRest > >> for several months and we didn't have any problem. > >> > >> So I'm wondering if we missed something. We modified ERRest (and > >> still need to optimize it) but nothing related to MontageJS (we > >> added the capability to choose the set of attributes we need in > >> the request, to return an EPOCH time for NSTimestamp, …). > >> > >> So if you can give more informations that could interest other I > >> guess. > >> > >> Philippe > >> --
D2W attachment location and delete
Ok, I finally figured out how to add an attachment to a relation in D2W. However, is it expected behavior that when you delete an asset, it only deletes the ‘link’ to the asset, but not the asset itself. Meaning I upload a pdf. later I delete it from the relation. the asset shows one less item in its list, however the pdf is still in the file/database. It is effectively orphaned. Also, when I click to edit the attachment, there is a ‘remove’ button associated with the file. If I click it, the app crashes with: Error: java.lang.IllegalArgumentException: This form is missing a 'enctype=multipart/form-data' attribute. It is required for WOFileUpload to work. Reason: This form is missing a 'enctype=multipart/form-data' attribute. It is required for WOFileUpload to work. Ted ___ 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