Re: Getters without the "get" part
On Mar 30, 2009, at 9:27 PM, Sanford Selznick wrote: Hello, Eclipse offers "Generate Getters and Setters" from its "Source" menu. Is there any way to have this feature add getters without the "get" prefix? I don't see any way to change this in the Java->Code Style- >Code Templates preferences. There are other places in Eclipse that allow for no "get", but not this menu item specifically. Any ideas? No. This is more or less hardwired into Eclipse. I hate it, but I live with it. Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Getters without the "get" part
Hello, Eclipse offers "Generate Getters and Setters" from its "Source" menu. Is there any way to have this feature add getters without the "get" prefix? I don't see any way to change this in the Java->Code Style->Code Templates preferences. There are other places in Eclipse that allow for no "get", but not this menu item specifically. Any ideas? Thank you, Sanford ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: refreshing data...?
On Mar 30, 2009, at 7:18 PM, Theodore Petrosky wrote: I am a relative neophyte using webobjects. I am also just starting with wonder lots of fun. I have a database driven app that I sometimes update through my cocoa app. I would like to do my fetch and be sure I get fresh queries from the database? I am doing my queries like this: contactList = Contact.fetchNotDeleted(contactEO); it returns an array. my problem is that if I were to update the table from my cocoa app this array is not coming from the database but from cache. I want to set up to do a query from the database all the time. is there a simple solution? Consult the Wiki. http://wiki.objectstyle.org/confluence/display/WO/EOF-Using+EOF-Caching+and+Freshness Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
RE: refreshing data...?
1. ec = (EOEditingContext)(session().defaultEditingContext()); contactList = (NSArray)EOUtilities.objectsForEntityNamed(ec,"Contact"); 2. EOFetchSpecification fs = new EOFetchSpecification("Contact",qual,nameOrderingArray); fs.setRefreshesRefetchedObjects(true); contactList = session().defaultEditingContext().objectsWithFetchSpecification(fs); If qual and nameOrderingArray are null in option 2, I think they are same, kevin -Original Message- From: webobjects-dev-bounces+kevin.ren=anznational.co...@lists.apple.com [mailto:webobjects-dev-bounces+kevin.ren=anznational.co...@lists.apple.c om] On Behalf Of Theodore Petrosky Sent: Tuesday, 31 March 2009 3:18 p.m. To: webobjects-dev@lists.apple.com Subject: refreshing data...? I am a relative neophyte using webobjects. I am also just starting with wonder lots of fun. I have a database driven app that I sometimes update through my cocoa app. I would like to do my fetch and be sure I get fresh queries from the database? I am doing my queries like this: contactList = Contact.fetchNotDeleted(contactEO); it returns an array. my problem is that if I were to update the table from my cocoa app this array is not coming from the database but from cache. I want to set up to do a query from the database all the time. is there a simple solution? 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: http://lists.apple.com/mailman/options/webobjects-dev/kevin.ren%40anznat ional.co.nz This email sent to kevin@anznational.co.nz "This communication is confidential and may contain privileged and/or copyright material. If you are not the intended recipient you must not use, disclose, copy or retain it. If you have received it in error please immediately notify me by return email, delete the emails and destroy any hard copies. ANZ National Bank Limited does not guarantee the integrity of this communication, or that it is free from errors, viruses or interference." ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
refreshing data...?
I am a relative neophyte using webobjects. I am also just starting with wonder lots of fun. I have a database driven app that I sometimes update through my cocoa app. I would like to do my fetch and be sure I get fresh queries from the database? I am doing my queries like this: contactList = Contact.fetchNotDeleted(contactEO); it returns an array. my problem is that if I were to update the table from my cocoa app this array is not coming from the database but from cache. I want to set up to do a query from the database all the time. is there a simple solution? 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: How does concurrency control work in WO?
Hello, This is a very timely thread for me, and very interesting blog entry. In my app, I get hit several times a day with the perfect storm of having to deal with extremely high peak traffic from users(mostly, but not all, read only) at the exact time that I have to run a background thread that needs to rip through the database, reading and updating a huge amount of data. The changes made by the background task need to be made available to the users ASAP (that's why they are there, they want their data and they want it now!). After suffering through two of these peaks where the app response and the background thread both got slower and slower until they finally ground to a halt and required a reboot of the server, I decided to put the app in maintenance mode (relegating users to the main page) for the 20 or so minutes it takes the background thread to complete, and then let everyone in. Doing it this way, the background thread really rips through its calculations, and then the server has no problem serving the high peak traffic with the background thread out of the way. However I really don't like having to lock people out several times a day at peak traffic. I was wondering if there were some type of architecture that could be used where this kind of case could be handled more smoothly, or perhaps this is a sign of something I'm doing wrong at a lower level. Note that it seems like the real problems occur when I have two threads with two different OSC stacks (the background thread has its own) hitting the same database at the same time. Could it be something as simple as putting a delay in my background task? Note that it is doing a lot of in memory calculations, so it's not like it's constantly hitting the DB, although it does hit it pretty hard I think. Would fetching raw rows in the background task really make that much of a difference? It's still hitting (and locking) the database, right? Anyway, just wondering if there are others dealing with this type of situation and how they handle it? Thanks, Jeff On Mar 29, 2009, at 3:26 PM, Guido Neitzer wrote: On 29. Mar. 2009, at 13:08 , Ren, Kevin wrote: I think it's about EOF professing. But if you have both, that's great. First of all: What EXACTLY is your goal? There are several ways of dealing with concurrency: 1. Switch on concurrent request handling with the property: -DWOAllowsConcurrentRequestHandling=true Note that this was set through JavaMonitor with the -D property notation. Using concurrent request handling has several implications (see EOF part). 2. Use more instances. This might be the least painful way in regard of locking issues, but the most painful in regard of data freshness. 3. Define your bottlenecks better. 4. Use multiple EOF connections to the database (Wonder has ways of doing this automatically). As soon as you have concurrent request handling you need to deal with the following: - Data freshness - Caching - Locking - Valid data (Which write wins? Dealing with freshness again.) You get most of this for free if you use ProjectWonder, which I highly recommend. You need to use correct locking of your editing contexts (see ERXEC from Wonder or MultiECLockManager, search on Google for more information). If you just enable concurrent request handling, EOF will still stay single threaded for one instance as long as you don't use for example a new object store coordinator for long running transactions. Be aware that all this will bring you into dead locking and data freshness hell as long as you don't really know, what you're doing OR as long as you don't use the "make me and the gods of EOF happy features" from Wonder. cug ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/jeffandmonica%40mac.com This email sent to jeffandmon...@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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: modeling problem
Begin forwarded message: On Mar 30, 2009, at 3:51 PM, Chuck Hill wrote: On Mar 30, 2009, at 3:05 PM, TW wrote: On Mar 30, 2009, at 2:16 PM, Chuck Hill wrote: On Mar 30, 2009, at 1:58 PM, TW wrote: Thanks Chuck: On Mar 30, 2009, at 1:18 PM, Chuck Hill wrote: On Mar 29, 2009, at 4:48 PM, TW wrote: All: I have a model of our ldap directory with InetOrgPerson the base "user" entity. I've made InetOrgPerson abstract with it's table inetOrgPerson. I have the framework project containing that model in the build path of another that I'm using as a "generic user" framework. In that second framework I have another model with a "GenericUser" entity. That entity has "InetOrgPerson" as it's parent. I've added this second framework to my app build path. - in Entity Modeler if I set the table for "GenericUser" to "inetOrgPerson" (the same as it's parent), my app fetches 2 identical GenericUser EO's for each 1 matching record in LDAP That is because you have set up Single Table Inheritance BUT not added any restricting qualifier on either entity. Are you certain that InetOrgPerson is marked as abstract? Check it again... InetOrgPerson is definitely checked "Abstract" in my OD model. I have never tried this without a restricting qualifier on one of them. You could try adding a restricting qualifier of (1 = 0) on InetOrgPerson. I didn't think I needed a restricting qualifier if the parent was abstract. I do get errors requiring a restricting qualifier if InetOrgPerson is _not_ abstract. This sounds like a bug to me right now, please* bugreport.apple.com My goal was to have an entity/class (where InetOrgPerson is super) in a "middle" framework that can be used to wrap a relationship between ldap user and database employee (each modeled in their own frameworks). So, the way I have it set up there's really no difference between InetOrgPerson and GenericUser except that GenericUser has the relationship to and InetOrgPerson does not. I still wonder if GenericUser should have a relationship to both InetOrgPerson and DatabaseEmployee. With that approach, it sounds like GenericUser would have to have it's own data table separate from the other two? Doesn't it need to anyway for the relationship to DatabaseEmployee? Not really. Time for ascii sheep. This is what I have. LDAPModel ---to build path--> UserModel <--to build path DBModel = InetOrgPerson GenericUser <-> Employee (InetOrgPerson/parent) The only relationship (on the right) uses "employee_id." This approach makes the ldap side of things the starting point since that is the store that knows what type of user the person is. If ldap authentication is successful, I query for the matching GenericUser which is essentially an ldap person since GenericUser inherits from InetOrgPerson. Then, I can test for the related employee record. If there, foo, if not, bar - depends on the app. It sounds like your preferred approach would be to create another table for GenericUser making it a database entity instead of inheriting from InetOrgPerson. That could work too. The problem there is then I have two entities, InetOrgPerson and GenericUser that have to have similar attributes, including "usertype," "email," etc. And, when a new Employee is created, I'd have to force the creation of a GenericUser. I can see advantages each way and it's too bad I'm somewhat at the mercy of the greater campus. T I'm trying to abstract everything so that I can pick and choose what gets used on a per app basis. - if I change the table for "GenericUser to "GenericUser" it works as expected. However, there is no such "table" or object in my LDAP directory. And I'm concerned that with that setup attempts to write to the directory would fail. It should be OK like that. That is Vertical Inheritance which may have its own issues. Well, I'm willing to tackle those issues when I encounter them if this should work. Fetches are currently working if I leave it as is and I'm not currently using any WO apps to create GenericUser or InetOrgPerson EO's. Careful, that VI stuff can be dodgy. Chuck The first way seems that it should be the proper way to do it but I don't understand why I'm getting two EO's for each record. Can someone point me to what I'm being dumb about? I am not sure that the first way is correct. What if you then add data to GenericUser? It sort of feels like InetOrgPerson ought to be relationship from GenericUser, not the parent
Re: header, footer, body tags in conditionals and seperate components
On Mar 30, 2009, at 4:24 PM, David LeBer wrote: On 30-Mar-09, at 6:53 PM, Johan Henselmans wrote: I used to have a and tags wrapped in their own header and footer components with some conditionals to add a bgcolor : yellow would be a test site and white the real site. Tthat does not work in 5.4.x anymore: 5.4.x expects a complete tag in a component: should be ended with in one component, otherwise it throws an exception. I can not have one component with the tag, and another component with the body> tag. What alternatives would you recommend to do what I want to do? (make a difference between a test site and the real site by body back ground color). You want to create a wrapper component ie: My WrapperComponent Usage: // Content goes here Or conditionally include a CSS file. Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: header, footer, body tags in conditionals and seperate components
On 30-Mar-09, at 6:53 PM, Johan Henselmans wrote: I used to have a and tags wrapped in their own header and footer components with some conditionals to add a bgcolor : yellow would be a test site and white the real site. Tthat does not work in 5.4.x anymore: 5.4.x expects a complete tag in a component: should be ended with in one component, otherwise it throws an exception. I can not have one component with the tag, and another component with the tag. What alternatives would you recommend to do what I want to do? (make a difference between a test site and the real site by body back ground color). You want to create a wrapper component ie: My WrapperComponent Usage: // Content goes here ;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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
header, footer, body tags in conditionals and seperate components
I used to have a and tags wrapped in their own header and footer components with some conditionals to add a bgcolor : yellow would be a test site and white the real site. Tthat does not work in 5.4.x anymore: 5.4.x expects a complete tag in a component: should be ended with in one component, otherwise it throws an exception. I can not have one component with the tag, and another component with the tag. What alternatives would you recommend to do what I want to do? (make a difference between a test site and the real site by body back ground color). Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: modeling problem
On Mar 30, 2009, at 3:05 PM, TW wrote: On Mar 30, 2009, at 2:16 PM, Chuck Hill wrote: On Mar 30, 2009, at 1:58 PM, TW wrote: Thanks Chuck: On Mar 30, 2009, at 1:18 PM, Chuck Hill wrote: On Mar 29, 2009, at 4:48 PM, TW wrote: All: I have a model of our ldap directory with InetOrgPerson the base "user" entity. I've made InetOrgPerson abstract with it's table inetOrgPerson. I have the framework project containing that model in the build path of another that I'm using as a "generic user" framework. In that second framework I have another model with a "GenericUser" entity. That entity has "InetOrgPerson" as it's parent. I've added this second framework to my app build path. - in Entity Modeler if I set the table for "GenericUser" to "inetOrgPerson" (the same as it's parent), my app fetches 2 identical GenericUser EO's for each 1 matching record in LDAP That is because you have set up Single Table Inheritance BUT not added any restricting qualifier on either entity. Are you certain that InetOrgPerson is marked as abstract? Check it again... InetOrgPerson is definitely checked "Abstract" in my OD model. I have never tried this without a restricting qualifier on one of them. You could try adding a restricting qualifier of (1 = 0) on InetOrgPerson. I didn't think I needed a restricting qualifier if the parent was abstract. I do get errors requiring a restricting qualifier if InetOrgPerson is _not_ abstract. This sounds like a bug to me right now, please* bugreport.apple.com My goal was to have an entity/class (where InetOrgPerson is super) in a "middle" framework that can be used to wrap a relationship between ldap user and database employee (each modeled in their own frameworks). So, the way I have it set up there's really no difference between InetOrgPerson and GenericUser except that GenericUser has the relationship to and InetOrgPerson does not. I still wonder if GenericUser should have a relationship to both InetOrgPerson and DatabaseEmployee. With that approach, it sounds like GenericUser would have to have it's own data table separate from the other two? Doesn't it need to anyway for the relationship to DatabaseEmployee? T I'm trying to abstract everything so that I can pick and choose what gets used on a per app basis. - if I change the table for "GenericUser to "GenericUser" it works as expected. However, there is no such "table" or object in my LDAP directory. And I'm concerned that with that setup attempts to write to the directory would fail. It should be OK like that. That is Vertical Inheritance which may have its own issues. Well, I'm willing to tackle those issues when I encounter them if this should work. Fetches are currently working if I leave it as is and I'm not currently using any WO apps to create GenericUser or InetOrgPerson EO's. Careful, that VI stuff can be dodgy. Chuck The first way seems that it should be the proper way to do it but I don't understand why I'm getting two EO's for each record. Can someone point me to what I'm being dumb about? I am not sure that the first way is correct. What if you then add data to GenericUser? It sort of feels like InetOrgPerson ought to be relationship from GenericUser, not the parent. Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: modeling problem
On Mar 30, 2009, at 2:16 PM, Chuck Hill wrote: On Mar 30, 2009, at 1:58 PM, TW wrote: Thanks Chuck: On Mar 30, 2009, at 1:18 PM, Chuck Hill wrote: On Mar 29, 2009, at 4:48 PM, TW wrote: All: I have a model of our ldap directory with InetOrgPerson the base "user" entity. I've made InetOrgPerson abstract with it's table inetOrgPerson. I have the framework project containing that model in the build path of another that I'm using as a "generic user" framework. In that second framework I have another model with a "GenericUser" entity. That entity has "InetOrgPerson" as it's parent. I've added this second framework to my app build path. - in Entity Modeler if I set the table for "GenericUser" to "inetOrgPerson" (the same as it's parent), my app fetches 2 identical GenericUser EO's for each 1 matching record in LDAP That is because you have set up Single Table Inheritance BUT not added any restricting qualifier on either entity. Are you certain that InetOrgPerson is marked as abstract? Check it again... InetOrgPerson is definitely checked "Abstract" in my OD model. I have never tried this without a restricting qualifier on one of them. You could try adding a restricting qualifier of (1 = 0) on InetOrgPerson. I didn't think I needed a restricting qualifier if the parent was abstract. I do get errors requiring a restricting qualifier if InetOrgPerson is _not_ abstract. This sounds like a bug to me right now, please* bugreport.apple.com My goal was to have an entity/class (where InetOrgPerson is super) in a "middle" framework that can be used to wrap a relationship between ldap user and database employee (each modeled in their own frameworks). So, the way I have it set up there's really no difference between InetOrgPerson and GenericUser except that GenericUser has the relationship to and InetOrgPerson does not. I still wonder if GenericUser should have a relationship to both InetOrgPerson and DatabaseEmployee. With that approach, it sounds like GenericUser would have to have it's own data table separate from the other two? T I'm trying to abstract everything so that I can pick and choose what gets used on a per app basis. - if I change the table for "GenericUser to "GenericUser" it works as expected. However, there is no such "table" or object in my LDAP directory. And I'm concerned that with that setup attempts to write to the directory would fail. It should be OK like that. That is Vertical Inheritance which may have its own issues. Well, I'm willing to tackle those issues when I encounter them if this should work. Fetches are currently working if I leave it as is and I'm not currently using any WO apps to create GenericUser or InetOrgPerson EO's. Careful, that VI stuff can be dodgy. Chuck The first way seems that it should be the proper way to do it but I don't understand why I'm getting two EO's for each record. Can someone point me to what I'm being dumb about? I am not sure that the first way is correct. What if you then add data to GenericUser? It sort of feels like InetOrgPerson ought to be relationship from GenericUser, not the parent. Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Database Outage Detection
Hello; I have a project where the database goes down every so often. Obviously the right thing to do would be to stop that happening at all, but this is not under my control so I would like my WOA to be able to react to this in some constructive manner. The JDBContext throws an EOGeneralAdaptorException (runtime) when a database connectivity problem occurs, but there is no information about what model was involved or what sort of error occurred. I can get access to the SQLException involved, but I don't think this is going to help me. Anybody doing anything interesting in their systems to detect this? cheers. ___ Andrew Lindesay www.lindesay.co.nz ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: JavaClient session timeout?
On 30-Mar-09, at 1:38 PM, Stamenkovic Florijan wrote: On Mar 30, 2009, at 15:50, David Avendasora wrote: Flor, anyway you want to set it up is fine with me. :-) :-) :-) *any* way? How about 3.5 inch floppies shipped from Southern America to the US via Russia, by boat? :) Let's stick to .me for the time being, though I would like to Subversionise all my stuff... I just have better things to do. This sounds like the Google "classic" search I came across this morning ;-) http://techliberation.com/2009/03/29/is-this-where-privacy-regulation- is-taking-us/ F ___ 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: http://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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: modeling problem
On Mar 30, 2009, at 1:58 PM, TW wrote: Thanks Chuck: On Mar 30, 2009, at 1:18 PM, Chuck Hill wrote: On Mar 29, 2009, at 4:48 PM, TW wrote: All: I have a model of our ldap directory with InetOrgPerson the base "user" entity. I've made InetOrgPerson abstract with it's table inetOrgPerson. I have the framework project containing that model in the build path of another that I'm using as a "generic user" framework. In that second framework I have another model with a "GenericUser" entity. That entity has "InetOrgPerson" as it's parent. I've added this second framework to my app build path. - in Entity Modeler if I set the table for "GenericUser" to "inetOrgPerson" (the same as it's parent), my app fetches 2 identical GenericUser EO's for each 1 matching record in LDAP That is because you have set up Single Table Inheritance BUT not added any restricting qualifier on either entity. Are you certain that InetOrgPerson is marked as abstract? Check it again... InetOrgPerson is definitely checked "Abstract" in my OD model. I have never tried this without a restricting qualifier on one of them. You could try adding a restricting qualifier of (1 = 0) on InetOrgPerson. I didn't think I needed a restricting qualifier if the parent was abstract. I do get errors requiring a restricting qualifier if InetOrgPerson is _not_ abstract. This sounds like a bug to me right now, please* bugreport.apple.com My goal was to have an entity/class (where InetOrgPerson is super) in a "middle" framework that can be used to wrap a relationship between ldap user and database employee (each modeled in their own frameworks). So, the way I have it set up there's really no difference between InetOrgPerson and GenericUser except that GenericUser has the relationship to and InetOrgPerson does not. I still wonder if GenericUser should have a relationship to both InetOrgPerson and DatabaseEmployee. I'm trying to abstract everything so that I can pick and choose what gets used on a per app basis. - if I change the table for "GenericUser to "GenericUser" it works as expected. However, there is no such "table" or object in my LDAP directory. And I'm concerned that with that setup attempts to write to the directory would fail. It should be OK like that. That is Vertical Inheritance which may have its own issues. Well, I'm willing to tackle those issues when I encounter them if this should work. Fetches are currently working if I leave it as is and I'm not currently using any WO apps to create GenericUser or InetOrgPerson EO's. Careful, that VI stuff can be dodgy. Chuck The first way seems that it should be the proper way to do it but I don't understand why I'm getting two EO's for each record. Can someone point me to what I'm being dumb about? I am not sure that the first way is correct. What if you then add data to GenericUser? It sort of feels like InetOrgPerson ought to be relationship from GenericUser, not the parent. Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: WOWODC West
On Mar 30, 2009, at 3:45 AM, David Avendasora wrote: I know that Java Client didn't get a great response at WOWODC last year, which is disappointing, but we hardly scratched the surface. With only one session all Flor was able to do was discus some of the basics of JC and show off the JBND framework. D2JC wasn't even touched upon. There simply wasn't enough time to cover what would be needed to really have people understand JC and D2JC as well as things like AJAX and WOnder. I mean really, I think D2JC and JC with JBND are both probably far easier to learn than learning how to make HTML sort-of act like a rich client. Hmmm, maybe you should do a session on this? It would be truly interesting to see a Client-side bake off where JC and Web clients are put head-to-head by giving a set of basic requirements and see not only which technology can implement it more fully, with better usability, in an hour. We get Anjo on the D2W side. Anyway, Getting started with JC and intro to D2JC are really pretty basic and I now that WOWODC is being divided, I really think they would belong in WOWODC East. With that said, I would be willing to sit down with anyone interested at WOWODC West to go over the basics, as far as I understand them. Given how very few people have seen it or know how it works, it seems appropriate to West more than East. Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
[ANN] JBND 0.92
...is up. News: - derived property handling is *much* better, but it's API has been changed - individual Swing component connections can now be connected to multiple value bindings - ditched all int based flags in favor of enums ... F ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: modeling problem
Thanks Chuck: On Mar 30, 2009, at 1:18 PM, Chuck Hill wrote: On Mar 29, 2009, at 4:48 PM, TW wrote: All: I have a model of our ldap directory with InetOrgPerson the base "user" entity. I've made InetOrgPerson abstract with it's table inetOrgPerson. I have the framework project containing that model in the build path of another that I'm using as a "generic user" framework. In that second framework I have another model with a "GenericUser" entity. That entity has "InetOrgPerson" as it's parent. I've added this second framework to my app build path. - in Entity Modeler if I set the table for "GenericUser" to "inetOrgPerson" (the same as it's parent), my app fetches 2 identical GenericUser EO's for each 1 matching record in LDAP That is because you have set up Single Table Inheritance BUT not added any restricting qualifier on either entity. Are you certain that InetOrgPerson is marked as abstract? Check it again... InetOrgPerson is definitely checked "Abstract" in my OD model. I didn't think I needed a restricting qualifier if the parent was abstract. I do get errors requiring a restricting qualifier if InetOrgPerson is _not_ abstract. My goal was to have an entity/class (where InetOrgPerson is super) in a "middle" framework that can be used to wrap a relationship between ldap user and database employee (each modeled in their own frameworks). So, the way I have it set up there's really no difference between InetOrgPerson and GenericUser except that GenericUser has the relationship to and InetOrgPerson does not. I'm trying to abstract everything so that I can pick and choose what gets used on a per app basis. - if I change the table for "GenericUser to "GenericUser" it works as expected. However, there is no such "table" or object in my LDAP directory. And I'm concerned that with that setup attempts to write to the directory would fail. It should be OK like that. That is Vertical Inheritance which may have its own issues. Well, I'm willing to tackle those issues when I encounter them if this should work. Fetches are currently working if I leave it as is and I'm not currently using any WO apps to create GenericUser or InetOrgPerson EO's. The first way seems that it should be the proper way to do it but I don't understand why I'm getting two EO's for each record. Can someone point me to what I'm being dumb about? I am not sure that the first way is correct. What if you then add data to GenericUser? It sort of feels like InetOrgPerson ought to be relationship from GenericUser, not the parent. Chuck ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: JavaClient session timeout?
Le 09-03-30 à 16:48, David Avendasora a écrit : On Mar 30, 2009, at 4:38 PM, Stamenkovic Florijan wrote: On Mar 30, 2009, at 15:50, David Avendasora wrote: Flor, anyway you want to set it up is fine with me. :-) :-) :-) *any* way? How about 3.5 inch floppies shipped from Southern America to the US via Russia, by boat? :) Let's stick to .me for the time being, though I would like to Subversionise all my stuff... I just have better things to do. I just recently added all my projects to beanstalkapp.com. Works slick. Not sure how well it would work with floppies shipped via Russia though... You use a Rails environment to manage your projects? You are truly unique :-P ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: JavaClient session timeout?
On Mar 30, 2009, at 4:38 PM, Stamenkovic Florijan wrote: On Mar 30, 2009, at 15:50, David Avendasora wrote: Flor, anyway you want to set it up is fine with me. :-) :-) :-) *any* way? How about 3.5 inch floppies shipped from Southern America to the US via Russia, by boat? :) Let's stick to .me for the time being, though I would like to Subversionise all my stuff... I just have better things to do. I just recently added all my projects to beanstalkapp.com. Works slick. Not sure how well it would work with floppies shipped via Russia though... Dave ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
WebServerResources served through Tomcat
Hi all, I thought I had seen a similar discussion of this lately but I can't find it now. I'm deploying to Tomcat and since I have only a couple users and very few images/css/etc to serve, I'm just serving them right through Tomcat instead of having a separate Web Server setup to serve them. Pre-NewHotness I had made an addition to my build.xml file to drop the WebServerResources in my application's root which allowed me to have Tomcat serve the static HTML resources directly instead of having WO serve them. I guess this is pretty much the same as doing a split install where the WSRs are in a directory in the Apache root. I would call them using a URL like: Is this the only way to accomplish what I want? Is there a better way that won't require modifications to the build.xml file? I'd like to keep it as a stock build.xml file. Thanks! Dave ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: JavaClient session timeout?
On Mar 30, 2009, at 15:50, David Avendasora wrote: Flor, anyway you want to set it up is fine with me. :-) :-) :-) *any* way? How about 3.5 inch floppies shipped from Southern America to the US via Russia, by boat? :) Let's stick to .me for the time being, though I would like to Subversionise all my stuff... I just have better things to do. F ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: modeling problem
On Mar 29, 2009, at 4:48 PM, TW wrote: All: I have a model of our ldap directory with InetOrgPerson the base "user" entity. I've made InetOrgPerson abstract with it's table inetOrgPerson. I have the framework project containing that model in the build path of another that I'm using as a "generic user" framework. In that second framework I have another model with a "GenericUser" entity. That entity has "InetOrgPerson" as it's parent. I've added this second framework to my app build path. - in Entity Modeler if I set the table for "GenericUser" to "inetOrgPerson" (the same as it's parent), my app fetches 2 identical GenericUser EO's for each 1 matching record in LDAP That is because you have set up Single Table Inheritance BUT not added any restricting qualifier on either entity. Are you certain that InetOrgPerson is marked as abstract? Check it again... - if I change the table for "GenericUser to "GenericUser" it works as expected. However, there is no such "table" or object in my LDAP directory. And I'm concerned that with that setup attempts to write to the directory would fail. It should be OK like that. That is Vertical Inheritance which may have its own issues. The first way seems that it should be the proper way to do it but I don't understand why I'm getting two EO's for each record. Can someone point me to what I'm being dumb about? I am not sure that the first way is correct. What if you then add data to GenericUser? It sort of feels like InetOrgPerson ought to be relationship from GenericUser, not the parent. Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Undo manager and AJAX
Greetings Fredik, It is not entirely impossible. There are few papers on this subject under the heading Delta-Grid by Susan Urban. The general idea is that the "undo" manager has take in consideration all applications (processes) that write to it. On writing, a change record derived from the database's log stream is used to establish a set transaction list that constitutes the undo stack. The trouble for most WO apps is that such an undo inherently means changing state for other connected clients that have data check out from clean to dirty, which they will only discover on submission. I hope that helps a little bit. Later, Dan Beatty Ph.D. Student Texas Tech University On Mar 30, 2009, at 10:03 AM, Fredrik Lindgren wrote: OK! Seems like I should keep away then! Regards /Fredrik 30 mar 2009 kl. 16.54 skrev Anjo Krank: Am 30.03.2009 um 16:27 schrieb Mike Schrag: That said, I'm not sure undo conceptually really works out in EOF, anyway You sure about that? Or is it just unreliable? It _works_ -- that was maybe a bit too bold .. However, when you stop using session.default, and start using lots of peers that are very transient, I believe that ends up not really working out practically. Doesn't each EC have its own undo manager on it, so you would only be able to undo the transactions from a single EC and it wouldn't be aware of its peers' transactions? From what I understood, this was mainly for undoing changes from an ECs POV, so deletes would get re-inserted etc. As far as this makes sense... e.g. your didInsert() code would get called again wreaking whatever havoc you'd expect after such a move. Cheers, Anjo ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/frelin%40timeoff.se This email sent to fre...@timeoff.se ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/danielbeatty%40mac.com This email sent to danielbea...@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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: JavaClient session timeout?
On Mar 30, 2009, at 3:39 PM, Chuck Hill wrote: OK, you can download WOJCKit here: http://web.mac.com/flor385/eSwamp/software/files/WOJCKit.zip Whaaat? No SVN accesss? Pfff. :-P Be careful or he will setup a Maven repository for you! Ahhhg Good point. Flor, anyway you want to set it up is fine with me. :-) :-) :-) Dave ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: JavaClient session timeout?
On Mar 30, 2009, at 12:31 PM, David Avendasora wrote: On Mar 30, 2009, at 2:31 PM, Stamenkovic Florijan wrote: OK, you can download WOJCKit here: http://web.mac.com/flor385/eSwamp/software/files/WOJCKit.zip Whaaat? No SVN accesss? Pfff. :-P Be careful or he will setup a Maven repository for you! It's a WOLips project. Eclipse 3.4.1, appropriate stable WOLips (update say a month ago or something). Note: this project contains both server and client side classes. Both are well documented in code, be sure to read that, as there is no other documentation for the project at the moment. Also, there is client / server separation, package based. What I do is add source filters in my server / client projects to ensure I don't accidentally use any inappropriate classes. I suggest you do the same. And finally, for the ping functionality, look into: org.wojc.client.RemoteMethodInvoker#startPing(int, boolean) I tried it out, it seems to work just fine. I did not try the stopPing(...) functionality yet, but it's quite conservative, so I believe it will just work. Let me know how it goes, Thanks Flor! ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: JavaClient session timeout?
On Mar 30, 2009, at 2:31 PM, Stamenkovic Florijan wrote: OK, you can download WOJCKit here: http://web.mac.com/flor385/eSwamp/software/files/WOJCKit.zip Whaaat? No SVN accesss? Pfff. :-P It's a WOLips project. Eclipse 3.4.1, appropriate stable WOLips (update say a month ago or something). Note: this project contains both server and client side classes. Both are well documented in code, be sure to read that, as there is no other documentation for the project at the moment. Also, there is client / server separation, package based. What I do is add source filters in my server / client projects to ensure I don't accidentally use any inappropriate classes. I suggest you do the same. And finally, for the ping functionality, look into: org.wojc.client.RemoteMethodInvoker#startPing(int, boolean) I tried it out, it seems to work just fine. I did not try the stopPing(...) functionality yet, but it's quite conservative, so I believe it will just work. Let me know how it goes, Thanks Flor! ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: JavaClient session timeout?
OK, you can download WOJCKit here: http://web.mac.com/flor385/eSwamp/software/files/WOJCKit.zip It's a WOLips project. Eclipse 3.4.1, appropriate stable WOLips (update say a month ago or something). Note: this project contains both server and client side classes. Both are well documented in code, be sure to read that, as there is no other documentation for the project at the moment. Also, there is client / server separation, package based. What I do is add source filters in my server / client projects to ensure I don't accidentally use any inappropriate classes. I suggest you do the same. And finally, for the ping functionality, look into: org.wojc.client.RemoteMethodInvoker#startPing(int, boolean) I tried it out, it seems to work just fine. I did not try the stopPing(...) functionality yet, but it's quite conservative, so I believe it will just work. Let me know how it goes, F On Mar 30, 2009, at 11:52, John Ours wrote: Certainly, I'm going to need to go down this road very soon myself. Let me know, ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: OT: Thumbnail image of webpage
Hi Hugi, the webkit2png site mentions some alternatives for linux: "If you use linux you may be more interested in khtml2png, Matt Biddulph's Mozilla screenshot script or Roland Tapken's QT Webkit script.") the actual links are on the page: http://www.paulhammond.org/webkit2png Timo Am 30.03.2009 um 19:32 schrieb Hugi Thordarson: Ack, dammit - you lucky bastard! I'm going to my admins now to demand a Mac OS X Server ;-). - hugi On 30.3.2009, at 17:28, Kieran Kelleher wrote: Thanks Timo, webkit2png python script produces perfect output . and has exactly the output (and output configurability) I want. nice, thanks! ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: OT: Thumbnail image of webpage
Ack, dammit - you lucky bastard! I'm going to my admins now to demand a Mac OS X Server ;-). - hugi On 30.3.2009, at 17:28, Kieran Kelleher wrote: Thanks Timo, webkit2png python script produces perfect output . and has exactly the output (and output configurability) I want. nice, thanks! -Kieran On Mar 30, 2009, at 12:18 PM, Timo Hoepfner wrote: For thumbnails you could try http://www.paulhammond.org/webkit2png/ Another utility I recently came across is wkpdf (http://wkpdf.plesslweb.ch ). Seems to work fine, but complains about not beeing able to access the window server when running w/o console. The author started porting it to ruby recently: http://github.com/plessl/wkpdf/tree/master I started to make a wrapper for wkpdf to make PDFs from WO- generated pages a while ago, but got side-tracked... I always wanted to have a simple and fool-proof solution to get a pdf from an arbitrary WO page for archival purposes or for sending it via e- mail without having to put half a MB of css in the mail... Timo Am 30.03.2009 um 17:31 schrieb Kieran Kelleher: Anyone have any suggestions for free utility to make thumbnail (or plain image that I can thumbnail) of a HTML page in java? -Kieran ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/th-dev%40onlinehome.de This email sent to th-...@onlinehome.de ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/hugi%40karlmenn.is This email sent to h...@karlmenn.is ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: OT: Thumbnail image of webpage
Ah, interesting, thanks! PD4ML is completely closed, so that won't work for you. We're trying to move to completely OSS up here as well, and I've been meaning to check out "The Flying Saucer project" for a while. I've heard good things about that one: https://xhtmlrenderer.dev.java.net/ But JPedal dies have a GPL-ed version, which works wery well: http://www.jpedal.org/gpl.php Unfortunately I can't use the Core Image-based stuff from ERAttachment, since I'm deploying on Linux, otherwise that would be the obvious choice. Cheers, - hugi // Hugi Thordarson // http://hugi.karlmenn.is/ On 30.3.2009, at 16:57, Kieran Kelleher wrote: Thanks Hugi, good suggestions, however it must be free or FOSS. JPedal is interesting . FWIW, I have used ghostscript ('gs' command line tool) to rasterize PDF to images: gs -sDEVICE=png16m -o MyFile-Page-%d-png16m.png MyFile.pdf that command outputs each page (&d is page number) as a png. Google has helped me to find "wkpdf" tool at link below . which reminds me to clarify that OS-X-only HTML to PDF (or image) tool, even on commandline is workable too since deployment is XServes http://wkpdf.plesslweb.ch/ Anyone else know of any other java or commandline tools like wkpdf? -Kieran On Mar 30, 2009, at 11:51 AM, Hugi Thordarson wrote: I do this by rendering the HTML into a PDF, and then rasterizing the PDF to an image. I've tried using several implementations, but currently I use PD4ML for the HTML rendering, and JPedal for rasterizing the PDF. ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: OT: Thumbnail image of webpage
Thanks Timo, webkit2png python script produces perfect output . and has exactly the output (and output configurability) I want. nice, thanks! -Kieran On Mar 30, 2009, at 12:18 PM, Timo Hoepfner wrote: For thumbnails you could try http://www.paulhammond.org/webkit2png/ Another utility I recently came across is wkpdf (http://wkpdf.plesslweb.ch ). Seems to work fine, but complains about not beeing able to access the window server when running w/o console. The author started porting it to ruby recently: http://github.com/plessl/wkpdf/tree/master I started to make a wrapper for wkpdf to make PDFs from WO-generated pages a while ago, but got side-tracked... I always wanted to have a simple and fool-proof solution to get a pdf from an arbitrary WO page for archival purposes or for sending it via e-mail without having to put half a MB of css in the mail... Timo Am 30.03.2009 um 17:31 schrieb Kieran Kelleher: Anyone have any suggestions for free utility to make thumbnail (or plain image that I can thumbnail) of a HTML page in java? -Kieran ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/th-dev%40onlinehome.de This email sent to th-...@onlinehome.de ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: JavaClient session timeout?
On Mar 30, 2009, at 13:18, David Avendasora wrote: This is the approach I was thinking of. Have the client keep track of how long since the last server communication (I have no idea how to do that...) and set a timer based on the session timeout value. It's only job would be to give the user a few minutes warning to finish what they were working on, extend the session (if possible, a ping as you describe below would be perfect) or quit. Hm, might be easier then I thought, using: http://developer.apple.com/documentation/MacOSXServer/Reference/WO54_Reference/com/webobjects/eodistribution/EODistributionContext.Delegate.html Most definitively something worth looking into at some point. Also, this strategy is not exclusive of the constant-ping strategy, so I might provide both in WOJCKit at some point. Will put it on my to-do list. Another approach I considered at some point is to have the client "ping" the session at small intervals. Now, this should be fairly easy to do, and should ensure that the session never expires. There are some potential problems with this: - multithreading: the "ping" of course will get scheduled on another thread, which EOF might not like. One could schedule it to happen on the EDT, but that might result in an occasional glitch in the GUI. Or, maybe if using a stateless RMI method for the purpose of the ping, this would not be a problem - session accumulation on the server: not sure what the implications of this could be. The biggest draw-back I see here is the longer the session hangs around, the more stale the data is getting. In short, you are making things easier for the user, at the expense of a lot of time and care making sure that your client-side application has fresh data. It could be worth it, but maybe not. Yeah, data freshness is a major pain in the ass. Honestly, unless it is really, and I mean *really* important to the client to constantly have super-fresh data, I am happy to live with it getting a few hours stale. F ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: OT: Thumbnail image of webpage
Thanks Mike, that is good to know .. definitely a better option than installing ghostscript. On Mar 30, 2009, at 1:08 PM, Mike Schrag wrote: The CoreImage-based thumbnailer in ERAttachment can rasterize PDF's also, btw. ms On Mar 30, 2009, at 12:57 PM, Kieran Kelleher wrote: Thanks Hugi, good suggestions, however it must be free or FOSS. JPedal is interesting . FWIW, I have used ghostscript ('gs' command line tool) to rasterize PDF to images: gs -sDEVICE=png16m -o MyFile-Page-%d-png16m.png MyFile.pdf that command outputs each page (&d is page number) as a png. Google has helped me to find "wkpdf" tool at link below . which reminds me to clarify that OS-X-only HTML to PDF (or image) tool, even on commandline is workable too since deployment is XServes http://wkpdf.plesslweb.ch/ Anyone else know of any other java or commandline tools like wkpdf? -Kieran On Mar 30, 2009, at 11:51 AM, Hugi Thordarson wrote: I do this by rendering the HTML into a PDF, and then rasterizing the PDF to an image. I've tried using several implementations, but currently I use PD4ML for the HTML rendering, and JPedal for rasterizing the PDF. ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com This email sent to msch...@mdimension.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: JavaClient session timeout?
On Mar 30, 2009, at 11:16 AM, Stamenkovic Florijan wrote: On Mar 30, 2009, at 10:24, David Avendasora wrote: Yes, there is. By default I believe it is 30 minutes, or maybe 20. I'm not entirely sure. It is the same session timeout that a web client session has by default It's the same session mechanism, controlled with the same server side properties etc... In D2JC I get a nice, "Your Session has Timedout on the server. The application will quit now." dialog box the next time the client tries connecting to the server. Yeah, you also get that in non-direct development. Though I believe there are ways one can do something JC does not expect, and end up with an exception instead of this message. Have not experimented much with it though. Hmm. I haven't ever gotten anything with D2JC except that dialog. I also get it if the server has become unreachable. Note, that depending on how much data is cached on the client, you could be working for quite a while on the client without ever talking to the server because if it doesn't have an explicit reason to talk to the server, it doesn't. The default is plenty of time if someone is actively using the client application, but being a desktop application most users will expect to be able to leave it running for hours at a time without actually using it. You need to balance this expectation with data-freshness and such and come up with an appropriate timeout for you particular situation. Also, users simply need to know that the data they are accessing is not stored locally. Session timeouts are one of the aspects of this. But, I agree, ideally we want to make it as convenient for the user as possible. With that said, I think it would be much better to have a more pro- active approach to session timeouts. Some type of notification to the user that their session is going to timeout if they have unsaved changes, and an option to automatically reconnect without a relaunch would be very helpful too. I have not implemented these things, but I don't really see a reason why they couldn't be. Flor probably has some ideas on how to do this as he more directly manages the client-server connection since he doesn't use WebStart. The problem is that the server can't just "inform" the client of anything, as client-server communication is request-response based. It *might* be possible for the client to time the period elapsed since the last request, and notify the user based on that. However, this might be tricky. Or it might not... I am not sure, never tried that. This is the approach I was thinking of. Have the client keep track of how long since the last server communication (I have no idea how to do that...) and set a timer based on the session timeout value. It's only job would be to give the user a few minutes warning to finish what they were working on, extend the session (if possible, a ping as you describe below would be perfect) or quit. Right now this isn't a huge issue as most users are used to the concept of a Web session timing out without warning so they seem to be able to grasp that a desktop application can do the same. Some websites warn you they are about to timeout, but not all. Another approach I considered at some point is to have the client "ping" the session at small intervals. Now, this should be fairly easy to do, and should ensure that the session never expires. There are some potential problems with this: - multithreading: the "ping" of course will get scheduled on another thread, which EOF might not like. One could schedule it to happen on the EDT, but that might result in an occasional glitch in the GUI. Or, maybe if using a stateless RMI method for the purpose of the ping, this would not be a problem - session accumulation on the server: not sure what the implications of this could be. The biggest draw-back I see here is the longer the session hangs around, the more stale the data is getting. In short, you are making things easier for the user, at the expense of a lot of time and care making sure that your client-side application has fresh data. It could be worth it, but maybe not. In short, I think it all depends on your needs. I agree 100%. There should be some properties-based setting that will still set the maximum session life. I'd be happy to implement the "ping" system, and put it into WOJCKit, if somebody else has the time to test it. I am wy too busy at the moment to deal with that. Anyone interested? I'd be happy to test it if there's some way to use it with D2JC, otherwise, I'll test when I start my JBND project. Should be soon! Dave ___ 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: http://lists.apple.com/mailman/option
Re: OT: Thumbnail image of webpage
The CoreImage-based thumbnailer in ERAttachment can rasterize PDF's also, btw. ms On Mar 30, 2009, at 12:57 PM, Kieran Kelleher wrote: Thanks Hugi, good suggestions, however it must be free or FOSS. JPedal is interesting . FWIW, I have used ghostscript ('gs' command line tool) to rasterize PDF to images: gs -sDEVICE=png16m -o MyFile-Page-%d-png16m.png MyFile.pdf that command outputs each page (&d is page number) as a png. Google has helped me to find "wkpdf" tool at link below . which reminds me to clarify that OS-X-only HTML to PDF (or image) tool, even on commandline is workable too since deployment is XServes http://wkpdf.plesslweb.ch/ Anyone else know of any other java or commandline tools like wkpdf? -Kieran On Mar 30, 2009, at 11:51 AM, Hugi Thordarson wrote: I do this by rendering the HTML into a PDF, and then rasterizing the PDF to an image. I've tried using several implementations, but currently I use PD4ML for the HTML rendering, and JPedal for rasterizing the PDF. ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com This email sent to msch...@mdimension.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Localizable.strings encoding problem
On 30-Mar-09, at 11:42 AM, David LeBer wrote: We're seeing a weird encoding problem with a legacy app (many iterations of dev/build environments). All of the standard Wonder encoding flags are set in the Properties and everything works fine when launched from within Eclipse. But when installed and launched via command-line it looks like the Localizable.strings files are being read as MacRoman encoding instead of UTF-8. This only effects text coming from the Localizable.strings files. Content directly in the components displays correctly. Any ideas how I might go about tracking this down? Localizable.strings encoding needs to be UTF-16... I knew that. :-( ;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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: OT: Thumbnail image of webpage
Thanks Hugi, good suggestions, however it must be free or FOSS. JPedal is interesting . FWIW, I have used ghostscript ('gs' command line tool) to rasterize PDF to images: gs -sDEVICE=png16m -o MyFile-Page-%d-png16m.png MyFile.pdf that command outputs each page (&d is page number) as a png. Google has helped me to find "wkpdf" tool at link below . which reminds me to clarify that OS-X-only HTML to PDF (or image) tool, even on commandline is workable too since deployment is XServes http://wkpdf.plesslweb.ch/ Anyone else know of any other java or commandline tools like wkpdf? -Kieran On Mar 30, 2009, at 11:51 AM, Hugi Thordarson wrote: I do this by rendering the HTML into a PDF, and then rasterizing the PDF to an image. I've tried using several implementations, but currently I use PD4ML for the HTML rendering, and JPedal for rasterizing the PDF. ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: OT: Thumbnail image of webpage
For thumbnails you could try http://www.paulhammond.org/webkit2png/ Another utility I recently came across is wkpdf (http:// wkpdf.plesslweb.ch). Seems to work fine, but complains about not beeing able to access the window server when running w/o console. The author started porting it to ruby recently: http://github.com/ plessl/wkpdf/tree/master I started to make a wrapper for wkpdf to make PDFs from WO-generated pages a while ago, but got side-tracked... I always wanted to have a simple and fool-proof solution to get a pdf from an arbitrary WO page for archival purposes or for sending it via e-mail without having to put half a MB of css in the mail... Timo Am 30.03.2009 um 17:31 schrieb Kieran Kelleher: Anyone have any suggestions for free utility to make thumbnail (or plain image that I can thumbnail) of a HTML page in java? -Kieran ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/th-dev% 40onlinehome.de This email sent to th-...@onlinehome.de ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: OT: Thumbnail image of webpage
I do this by rendering the HTML into a PDF, and then rasterizing the PDF to an image. I've tried using several implementations, but currently I use PD4ML for the HTML rendering, and JPedal for rasterizing the PDF. -- Step 1 - /** * Uses PD4ML to generate a PDF-file from HTML. * * @param htmlString The HTML to work from. * @param isLandscape * @return Rendered PDF-data. */ public static NSData convertHTMLToPdf( String htmlString, boolean isLandscape ) { java.awt.Dimension format = PD4Constants.A4; boolean landscapeValue = isLandscape; int topValue = 10; int leftValue = 10; int rightValue = 10; int bottomValue = 10; String unitsValue = "mm"; // boolean patchValue = true; boolean splitValue = true; String proxyHost = ""; int proxyPort = 0; int userSpaceWidth = 780; ByteArrayOutputStream bos = new ByteArrayOutputStream(); try { if( proxyHost != null && proxyHost.length() != 0 && proxyPort != 0 ) { System.getProperties().setProperty( "proxySet", "true" ); System.getProperties().setProperty( "proxyHost", proxyHost ); System.getProperties().setProperty( "proxyPort", "" + proxyPort ); } PD4ML pd4ml = new PD4ML(); if( landscapeValue ) { format = pd4ml.changePageOrientation( format ); } pd4ml.setPageSize( format ); if( unitsValue.equals( "mm" ) ) { pd4ml.setPageInsetsMM( new java.awt.Insets( topValue, leftValue, bottomValue, rightValue ) ); } else { pd4ml.setPageInsets( new java.awt.Insets( topValue, leftValue, bottomValue, rightValue ) ); } pd4ml.setHtmlWidth( userSpaceWidth ); pd4ml.enableImgSplit( splitValue ); pd4ml.render( new StringReader( htmlString ), bos ); } catch( Exception e ) { logger.error( "Could not convert HTML to PDF", e ); } return new NSData( bos.toByteArray() ); } -- Step 2 - /** * Rasterizes PDF-data into JPEG-data, returning null if the conversion is not successful. */ public static NSData convertPDFToJPEGData( NSData data ) { try { PdfDecoder decoder = new PdfDecoder(); decoder.setExtractionMode( 0, 72, 2.0f ); decoder.openPdfArray( data.bytes() ); decoder.decodePage( 1 ); BufferedImage image = decoder.getPageAsImage( 1 ); return USImageUtilities.encodeImageToJPEGDataWithQuality( image, 1 ); } catch( Exception e ) { logger.error( "An esception occurred during rasterizing of PDF data to JPEG", e ); return null; } } --- Cheers, - hugi On 30.3.2009, at 15:31, Kieran Kelleher wrote: Anyone have any suggestions for free utility to make thumbnail (or plain image that I can thumbnail) of a HTML page in java? -Kieran ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/hugi%40karlmenn.is This email sent to h...@karlmenn.is ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: JavaClient session timeout?
On Mar 30, 2009, at 11:16 AM, Stamenkovic Florijan wrote: I'd be happy to implement the "ping" system, and put it into WOJCKit, if somebody else has the time to test it. I am wy too busy at the moment to deal with that. Anyone interested? Certainly, I'm going to need to go down this road very soon myself. Let me know, John ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Localizable.strings encoding problem
We're seeing a weird encoding problem with a legacy app (many iterations of dev/build environments). All of the standard Wonder encoding flags are set in the Properties and everything works fine when launched from within Eclipse. But when installed and launched via command-line it looks like the Localizable.strings files are being read as MacRoman encoding instead of UTF-8. This only effects text coming from the Localizable.strings files. Content directly in the components displays correctly. Any ideas how I might go about tracking this down? ;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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
OT: Thumbnail image of webpage
Anyone have any suggestions for free utility to make thumbnail (or plain image that I can thumbnail) of a HTML page in java? -Kieran ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: JavaClient session timeout?
On Mar 30, 2009, at 10:24, David Avendasora wrote: Yes, there is. By default I believe it is 30 minutes, or maybe 20. I'm not entirely sure. It is the same session timeout that a web client session has by default It's the same session mechanism, controlled with the same server side properties etc... In D2JC I get a nice, "Your Session has Timedout on the server. The application will quit now." dialog box the next time the client tries connecting to the server. Yeah, you also get that in non-direct development. Though I believe there are ways one can do something JC does not expect, and end up with an exception instead of this message. Have not experimented much with it though. Note, that depending on how much data is cached on the client, you could be working for quite a while on the client without ever talking to the server because if it doesn't have an explicit reason to talk to the server, it doesn't. The default is plenty of time if someone is actively using the client application, but being a desktop application most users will expect to be able to leave it running for hours at a time without actually using it. You need to balance this expectation with data-freshness and such and come up with an appropriate timeout for you particular situation. Also, users simply need to know that the data they are accessing is not stored locally. Session timeouts are one of the aspects of this. But, I agree, ideally we want to make it as convenient for the user as possible. With that said, I think it would be much better to have a more pro- active approach to session timeouts. Some type of notification to the user that their session is going to timeout if they have unsaved changes, and an option to automatically reconnect without a relaunch would be very helpful too. I have not implemented these things, but I don't really see a reason why they couldn't be. Flor probably has some ideas on how to do this as he more directly manages the client-server connection since he doesn't use WebStart. The problem is that the server can't just "inform" the client of anything, as client-server communication is request-response based. It *might* be possible for the client to time the period elapsed since the last request, and notify the user based on that. However, this might be tricky. Or it might not... I am not sure, never tried that. Another approach I considered at some point is to have the client "ping" the session at small intervals. Now, this should be fairly easy to do, and should ensure that the session never expires. There are some potential problems with this: - multithreading: the "ping" of course will get scheduled on another thread, which EOF might not like. One could schedule it to happen on the EDT, but that might result in an occasional glitch in the GUI. Or, maybe if using a stateless RMI method for the purpose of the ping, this would not be a problem - session accumulation on the server: not sure what the implications of this could be. In short, I think it all depends on your needs. I'd be happy to implement the "ping" system, and put it into WOJCKit, if somebody else has the time to test it. I am wy too busy at the moment to deal with that. Anyone interested? F ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Undo manager and AJAX
OK! Seems like I should keep away then! Regards /Fredrik 30 mar 2009 kl. 16.54 skrev Anjo Krank: Am 30.03.2009 um 16:27 schrieb Mike Schrag: That said, I'm not sure undo conceptually really works out in EOF, anyway You sure about that? Or is it just unreliable? It _works_ -- that was maybe a bit too bold .. However, when you stop using session.default, and start using lots of peers that are very transient, I believe that ends up not really working out practically. Doesn't each EC have its own undo manager on it, so you would only be able to undo the transactions from a single EC and it wouldn't be aware of its peers' transactions? From what I understood, this was mainly for undoing changes from an ECs POV, so deletes would get re-inserted etc. As far as this makes sense... e.g. your didInsert() code would get called again wreaking whatever havoc you'd expect after such a move. Cheers, Anjo ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/frelin%40timeoff.se This email sent to fre...@timeoff.se ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: WOWODC West
Another idea for the stack: At WOWODC it was emphasized to create an MVC app. I understand Model and View really well in the WebObjects world - but I'm pretty shady on the Controller. Maybe we can see some sample Controllers and how they work..? -Dan On 30-Mar-09, at 4:45 AM, David Avendasora wrote: On Mar 27, 2009, at 6:45 PM, Chuck Hill wrote: On Mar 27, 2009, at 3:39 PM, Pascal Robert wrote: Le 09-03-27 à 18:33, Chuck Hill a écrit : • Java client: it's current status and it's future Only used by wild eyed lunatics in cookie factories. Hey! I resemble that! That was just a poke at David A, a wild eyed lunatic that works in a cookie factory and uses JC. ;-) Not only JC, but D2JC and he deploy on Windows in Tomcat! It's a good thing that he works for a cookie factory :-P When I was young, my mother always said that sugar would rot my brain (the beer came later). David is living proof of the truth of this! Tomcat on Windows, eh? Wow, I had no idea it had gotten so bad. It is a wonder he does not add Maven in there. So this is what happens when I take a Friday afternoon off?! For your information, I learned WebObjects and Java together while deploying my D2JC app on Windows in Tomcat. At the time it all seemed so perfectly reasonable, it was just another option to check in Xcode. And you know, what? It has worked great for almost 5 years! Transitioning to WOLips though was more difficult with this setup. It forced me to understand the structure of a WO application when I was happily oblivious before. I did give up Vertical Inheritance along the way and I've never even considered Maven, so I'm not completely crazy! (cough, Lachlan, cough) :-) I know that Java Client didn't get a great response at WOWODC last year, which is disappointing, but we hardly scratched the surface. With only one session all Flor was able to do was discus some of the basics of JC and show off the JBND framework. D2JC wasn't even touched upon. There simply wasn't enough time to cover what would be needed to really have people understand JC and D2JC as well as things like AJAX and WOnder. I mean really, I think D2JC and JC with JBND are both probably far easier to learn than learning how to make HTML sort-of act like a rich client. It would be truly interesting to see a Client-side bake off where JC and Web clients are put head-to-head by giving a set of basic requirements and see not only which technology can implement it more fully, with better usability, in an hour. Anyway, Getting started with JC and intro to D2JC are really pretty basic and I now that WOWODC is being divided, I really think they would belong in WOWODC East. With that said, I would be willing to sit down with anyone interested at WOWODC West to go over the basics, as far as I understand them. Dave ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/dan%40stratahealth.com This email sent to d...@stratahealth.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Undo manager and AJAX
Am 30.03.2009 um 16:27 schrieb Mike Schrag: That said, I'm not sure undo conceptually really works out in EOF, anyway You sure about that? Or is it just unreliable? It _works_ -- that was maybe a bit too bold .. However, when you stop using session.default, and start using lots of peers that are very transient, I believe that ends up not really working out practically. Doesn't each EC have its own undo manager on it, so you would only be able to undo the transactions from a single EC and it wouldn't be aware of its peers' transactions? From what I understood, this was mainly for undoing changes from an ECs POV, so deletes would get re-inserted etc. As far as this makes sense... e.g. your didInsert() code would get called again wreaking whatever havoc you'd expect after such a move. Cheers, Anjo ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Undo manager and AJAX
That said, I'm not sure undo conceptually really works out in EOF, anyway You sure about that? Or is it just unreliable? It _works_ -- that was maybe a bit too bold .. However, when you stop using session.default, and start using lots of peers that are very transient, I believe that ends up not really working out practically. Doesn't each EC have its own undo manager on it, so you would only be able to undo the transactions from a single EC and it wouldn't be aware of its peers' transactions? ms ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: JavaClient session timeout?
On Mar 30, 2009, at 10:06 AM, John Huss wrote: Is there a session timeout in JavaClient? I would think there has to be. What happens when the session times out? Is there built-in notification or do you have to handle it manually? Yes, there is. By default I believe it is 30 minutes, or maybe 20. I'm not entirely sure. It is the same session timeout that a web client session has by default In D2JC I get a nice, "Your Session has Timedout on the server. The application will quit now." dialog box the next time the client tries connecting to the server. Note, that depending on how much data is cached on the client, you could be working for quite a while on the client without ever talking to the server because if it doesn't have an explicit reason to talk to the server, it doesn't. The default is plenty of time if someone is actively using the client application, but being a desktop application most users will expect to be able to leave it running for hours at a time without actually using it. You need to balance this expectation with data-freshness and such and come up with an appropriate timeout for you particular situation. With that said, I think it would be much better to have a more pro- active approach to session timeouts. Some type of notification to the user that their session is going to timeout if they have unsaved changes, and an option to automatically reconnect without a relaunch would be very helpful too. I have not implemented these things, but I don't really see a reason why they couldn't be. Flor probably has some ideas on how to do this as he more directly manages the client-server connection since he doesn't use WebStart. Dave John ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com This email sent to webobje...@avendasora.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Undo manager and AJAX
That said, I'm not sure undo conceptually really works out in EOF, anyway You sure about that? Or is it just unreliable? Cheers, Anjo Am 30.03.2009 um 16:08 schrieb Mike Schrag: If I do not save changes, an undo will undo everything (like a revert). I want to be able to undo each (ajax)request. I seem to recall that undo doesn't actually work in Wonder at all ... At least it didn't when I started using Wonder in 2004, and I don't remember anyone working on it. That said, I'm not sure undo conceptually really works out in EOF, anyway, so it's not a huge loss (once you start talking about lots of peer ec's, which is how most people do things now, it all gets weird) ms ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/anjo%40krank.net This email sent to a...@krank.net ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: JavaClient session timeout?
On Mar 30, 2009, at 10:06, John Huss wrote: Is there a session timeout in JavaClient? I would think there has to be. Yep, there is. What happens when the session times out? The next request from a client coming to the session gets refused, the client app is informed of why, and the client application displays a Swing modal window to the user telling the user that the session timed out, and when the user hits OK, the app quits. Is there built-in notification or do you have to handle it manually? Well, there is the above mentioned handling. I am not sure if there is a way to override it with some manual handling. I'd be interested in this though, so I might take a look. However, I have other priorities at the moment. Please let me know if you get into it and find something! I will do the same... I think a good place to start looking would be EOClientApplicationSupport. Best, F ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Undo manager and AJAX
If I do not save changes, an undo will undo everything (like a revert). I want to be able to undo each (ajax)request. I seem to recall that undo doesn't actually work in Wonder at all ... At least it didn't when I started using Wonder in 2004, and I don't remember anyone working on it. That said, I'm not sure undo conceptually really works out in EOF, anyway, so it's not a huge loss (once you start talking about lots of peer ec's, which is how most people do things now, it all gets weird) ms ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
JavaClient session timeout?
Is there a session timeout in JavaClient? I would think there has to be. What happens when the session times out? Is there built-in notification or do you have to handle it manually? John ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: doubleValue and migrations
Upgraded to latest stable (5708) still gets: FIX // Unable to create a migration for limit (Java Class Name: Double) I don't think this fix is in stable. Pretty sure it's in nightly. ms ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: WOWODC West
On Mar 27, 2009, at 6:45 PM, Chuck Hill wrote: On Mar 27, 2009, at 3:39 PM, Pascal Robert wrote: Le 09-03-27 à 18:33, Chuck Hill a écrit : • Java client: it's current status and it's future Only used by wild eyed lunatics in cookie factories. Hey! I resemble that! That was just a poke at David A, a wild eyed lunatic that works in a cookie factory and uses JC. ;-) Not only JC, but D2JC and he deploy on Windows in Tomcat! It's a good thing that he works for a cookie factory :-P When I was young, my mother always said that sugar would rot my brain (the beer came later). David is living proof of the truth of this! Tomcat on Windows, eh? Wow, I had no idea it had gotten so bad. It is a wonder he does not add Maven in there. So this is what happens when I take a Friday afternoon off?! For your information, I learned WebObjects and Java together while deploying my D2JC app on Windows in Tomcat. At the time it all seemed so perfectly reasonable, it was just another option to check in Xcode. And you know, what? It has worked great for almost 5 years! Transitioning to WOLips though was more difficult with this setup. It forced me to understand the structure of a WO application when I was happily oblivious before. I did give up Vertical Inheritance along the way and I've never even considered Maven, so I'm not completely crazy! (cough, Lachlan, cough) :-) I know that Java Client didn't get a great response at WOWODC last year, which is disappointing, but we hardly scratched the surface. With only one session all Flor was able to do was discus some of the basics of JC and show off the JBND framework. D2JC wasn't even touched upon. There simply wasn't enough time to cover what would be needed to really have people understand JC and D2JC as well as things like AJAX and WOnder. I mean really, I think D2JC and JC with JBND are both probably far easier to learn than learning how to make HTML sort-of act like a rich client. It would be truly interesting to see a Client-side bake off where JC and Web clients are put head-to-head by giving a set of basic requirements and see not only which technology can implement it more fully, with better usability, in an hour. Anyway, Getting started with JC and intro to D2JC are really pretty basic and I now that WOWODC is being divided, I really think they would belong in WOWODC East. With that said, I would be willing to sit down with anyone interested at WOWODC West to go over the basics, as far as I understand them. Dave ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com