Re: Eclipse 3.5 slow?
Am 06.07.2009 um 00:09 schrieb Lachlan Deck: On 03/07/2009, at 11:22 PM, Mike Schrag wrote: I find that if I highlight a number of files and F3 it's a disaster... the game's pretty much over :-/ No idea yet what the cause is. define game's pretty much over -- total app crash? deadlock? exception? Wait for 15 minutes whilst the beachball's at play and it may/may not open the selected files in that time. I find that the more files I open the slower 3.5 gets. I have to close lots of files to get back to normal operating speed. I went back to 3.4 due to the very noticeable slowdown, especially with a number of open files. For me, 3.4 definitely feels a lot more responsive. cheers, Fabian ___ 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
Maintain server state of a page + Javascript page navigation
Hi Group, Could you please advise me a solution to achieve below functionality: Scenario: - I have a page which gets all the data like text content [3000 lines or more], images info [about 500 or more] once when the user requests for this page. Once this data from the server has arrived, we will be displaying this whole data part by part by splitting this data into sub-pages through javascript. So, user actually sees the sub-page rather the whole page received from the server. There can be around 40 sub-pages or more. While navigating through each of these sub-pages user may perform a server action like edit some text and save, rotate an image and save, ... and all these actions do not refresh the whole page/ sub-page (like we see in ajax implementations) and just update a particular field. I assume that there might be some time-gap say 10 minutes or more between each of the server actions performed by the user. During these times as you know, we have to maintain the session of this user in the server (this can be achieved through lets say session timeout value), state of this page in the server, ... Problem: - How can I maintain the state of this page (generally whenever we do a submit WO app returns with a new context info, correct?), so all my actions are valid and there are issues of Broken pipe/ page not in the cache/ ... I thought of just pinging the server every few seconds for some dummy data like: how are you doing? or something like gmail does? However, I do not know how to exactly implement this behavior. Please advise. Thanks in advance, Shravan Kumar. M ___ 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: Maintain server state of a page + Javascript page navigation
On Jul 6, 2009, at 7:54 AM, shravan kumar wrote: Hi Group, Could you please advise me a solution to achieve below functionality: Scenario: - I have a page which gets all the data like text content [3000 lines or more], images info [about 500 or more] once when the user requests for this page. Once this data from the server has arrived, we will be displaying this whole data part by part by splitting this data into sub-pages through javascript. So, user actually sees the sub-page rather the whole page received from the server. There can be around 40 sub-pages or more. While navigating through each of these sub-pages user may perform a server action like edit some text and save, rotate an image and save, ... and all these actions do not refresh the whole page/ sub- page (like we see in ajax implementations) and just update a particular field. I assume that there might be some time-gap say 10 minutes or more between each of the server actions performed by the user. During these times as you know, we have to maintain the session of this user in the server (this can be achieved through lets say session timeout value), state of this page in the server, ... Problem: - How can I maintain the state of this page (generally whenever we do a submit WO app returns with a new context info, correct?), so all my actions are valid and there are issues of Broken pipe/ page not in the cache/ ... Unless I'm missing something, you can just extend the length of the Session timeout to be what you anticipate the longest a user will need to respond. 10 minutes I believe is the default, but you can make it anything. Editing Contexts (your user's pools of objects) are maintained as part of the user's Session and you control which editing context is used, or if a new one is created for each action. Maintaining state is one of WO's core functions, you just have to determine exactly what state and for how long you want to maintain it for your particular situation I thought of just pinging the server every few seconds for some dummy data like: how are you doing? or something like gmail does? However, I do not know how to exactly implement this behavior. You should not need to do this at all. WO will maintain state as long as the session hasn't timed out or you don't start using a different editing context. With all this said, it sounds like you are trying to implement a rich client in a web UI. Have you considered Java Client at all for this functionality? It would make managing the client-server interaction much easier since you will actually have EOs on the client that you can manipulate using normal Java instead of having to write Javascript to do it. 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
changing appereance of the AjaxModalContainer
Hello. Well Im using this Wonder component, but I wish to now if its possible to change the appearance of it, like colors and borders. is it possible to do this.? thx G ___ 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: changing appereance of the AjaxModalContainer
Ok sorry, I think I figure it out, I just needed to check the Developer console and see the id's of the elements so in my css I just overwrite them and its working marvelous. :P. sorry if Im offending the creator of this wonderful component, but I need to put it as the companies' style. dont worry I will give credit :P. each time loving more and more WO. G. On Mon, Jul 6, 2009 at 3:11 PM, Gustavo Pizano webobjectspic...@gmail.comwrote: Hello. Well Im using this Wonder component, but I wish to now if its possible to change the appearance of it, like colors and borders. is it possible to do this.? thx G ___ 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: changing appereance of the AjaxModalContainer
On Jul 6, 2009, at 9:27 AM, Gustavo Pizano wrote: Ok sorry, I think I figure it out, I just needed to check the Developer console and see the id's of the elements so in my css I just overwrite them and its working marvelous. :P. sorry if Im offending the creator of this wonderful component, but I need to put it as the companies' style. I think that is Chunk's baby, and you know how sensitive he is. Promise to buy him a beer next time you see him and I think he'll get over it. ;-) dont worry I will give credit :P. Better yet: document step-by-step how you made changes in the Wiki. Best yet: modify the component to allow for easy assigning of styles and submit a patch to Wonder! 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: Maintain server state of a page + Javascript page navigation
seems to me like you're swimming against the tide here ... i think you need to rethink this architecture. you're basically sending the users the entire site, which makes this more of a Sproutcore/Giandiua/etc workflow, and mixing component actions into this style of app is going to be very tricky. I would recommend switching to directactions. you could keep a session alive with a ping if you really need it to be sessionful, but trying to actually use WOForms in this thing is going to be an endless headache imo. On Jul 6, 2009, at 7:54 AM, shravan kumar wrote: Hi Group, Could you please advise me a solution to achieve below functionality: Scenario: - I have a page which gets all the data like text content [3000 lines or more], images info [about 500 or more] once when the user requests for this page. Once this data from the server has arrived, we will be displaying this whole data part by part by splitting this data into sub-pages through javascript. So, user actually sees the sub-page rather the whole page received from the server. There can be around 40 sub-pages or more. While navigating through each of these sub-pages user may perform a server action like edit some text and save, rotate an image and save, ... and all these actions do not refresh the whole page/ sub- page (like we see in ajax implementations) and just update a particular field. I assume that there might be some time-gap say 10 minutes or more between each of the server actions performed by the user. During these times as you know, we have to maintain the session of this user in the server (this can be achieved through lets say session timeout value), state of this page in the server, ... Problem: - How can I maintain the state of this page (generally whenever we do a submit WO app returns with a new context info, correct?), so all my actions are valid and there are issues of Broken pipe/ page not in the cache/ ... I thought of just pinging the server every few seconds for some dummy data like: how are you doing? or something like gmail does? However, I do not know how to exactly implement this behavior. Please advise. Thanks in advance, Shravan Kumar. M ___ 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: changing appereance of the AjaxModalContainer
On Jul 6, 2009, at 6:39 AM, David Avendasora wrote: On Jul 6, 2009, at 9:27 AM, Gustavo Pizano wrote: Ok sorry, I think I figure it out, I just needed to check the Developer console and see the id's of the elements so in my css I just overwrite them and its working marvelous. :P. sorry if Im offending the creator of this wonderful component, but I need to put it as the companies' style. I think that is Chuck's baby, and you know how sensitive he is. Promise to buy him a beer next time you see him and I think he'll get over it. ;-) So solly! AjaxModalDialog is my baby. AjaxModalContainer is WHY I made AjaxModalDialog. :-) Chuck with a second C dont worry I will give credit :P. Better yet: document step-by-step how you made changes in the Wiki. Best yet: modify the component to allow for easy assigning of styles and submit a patch to Wonder! Dave -- 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: Eclipse 3.5 slow?
There are some reports of performance issues on 3.5 ... Here is the data I've gathered so far: java editor 657 line file (with quite a few errors in it, just for good measure) holding down the arrow key to scroll through the document: eclipse 3.5.0 carbon 32bit leopard JDK 1.5 = 24s eclipse 3.5.0 cocoa 64bit leopard JDK 1.6 = 61s eclipse 3.5.0 cocoa 32bit leopard JDK 1.5 = 71s eclipse 3.4.2 carbon 32bit leopard JDK 1.5 = 21s this basically is showing that it's not 1.6 vs 1.5 (though that DOES give a decent bump to be on 1.6), but instead it's cocoa vs carbon making the big diff it appears that there is some degenerative redraw bug being hit here. maybe it's related to the package explorer scroll bug too? this is tracked in https://bugs.eclipse.org/bugs/show_bug.cgi?id=282229 and to some extent in https://bugs.eclipse.org/bugs/show_bug.cgi?id=268877 I haven't done testing of WOLips under 3.5 carbon, but I'm going to switch back to it and check it out, because it appears to be substantially faster than 3.5 cocoa in this particular build. I'm sure this will be resolved in 3.5.1 (iirc 3.4.0 was a bit of a disaster as well). ms On Jul 6, 2009, at 5:39 AM, Fabian Peters wrote: Am 06.07.2009 um 00:09 schrieb Lachlan Deck: On 03/07/2009, at 11:22 PM, Mike Schrag wrote: I find that if I highlight a number of files and F3 it's a disaster... the game's pretty much over :-/ No idea yet what the cause is. define game's pretty much over -- total app crash? deadlock? exception? Wait for 15 minutes whilst the beachball's at play and it may/may not open the selected files in that time. I find that the more files I open the slower 3.5 gets. I have to close lots of files to get back to normal operating speed. I went back to 3.4 due to the very noticeable slowdown, especially with a number of open files. For me, 3.4 definitely feels a lot more responsive. cheers, Fabian ___ 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
How to handle popup for a many-to-many
Hi folks, A while back (couple years now?), we had a discussion about implementing Product options in a shopping cart -- as opposed to subclassing to more specific product object types. I've finally got a moment to implement this in my project, but am having a slight difficulty in conceptualizing in how I want to do this in WO. As it stands, my model is as follows: Product has ProductOptions (color, size,etc.) each of which have ProductOptionItems (black, white, Small, Large, etc.). When a Product is selected in from the Catalog, the user is taken to a page to enter the quantity and configure options of a ProductSale. Each selected ProductOptionItem should be added to the ProductSale with a many-to-many. My concern is how to implement the interface to properly achieve this. Right now, the ProductSale configuration page has an iteration of each per- product option and a popup of the related option items. How could I arrange these pieces so that the selection of the popup item adds it to the respective many-to-many? As a side note, I'm a little concerned about the circularity of my data model, but that's not really WO related. any thoughts? thanks, Jaime Product - ProductOptions - ProductOptionItems | | | ProductOptionItemSale (Many-to-Many) | | ^--- ProductSale --^ WEBOBJECT NAME=ProductOptionRepetition tr td width=10% WEBOBJECT NAME=ProductOptionName/ : /td td WEBOBJECT NAME=ProductOptionItemPopup/br/ /td /tr /WEBOBJECT Jaime Magiera Sensory Research, Inc. http://www.sensoryresearch.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
Webobjects 5.4 tags in an email component do not work?
Always prodding forwards, I had a emailcomponent with some old fashioned tags: a HTML file containing webobjects name= ShowName and a WOD file containing ShowName : WOString { value = cartItem.performance.showInfo.showName; } So I replaced with a component that consisted of a HTML file containing wo:WOString value = [cartItem.performance.showInfo.showName]/ and an empty wod file. The result was that I got a nice mail message containing the complete HTML as such: wo:WOString value = [cartItem.performance.showInfo.showName]/ which meant that it did no display as it could not display the HTML message. Reverting to the old, fashioned way gave a nice display of the show I was supposed to be attending. Anybody any explanation what I am doing wrong? Radar? BTW: to send the message I am using public WOComponent pageForMail() { EmailComponent nextPage = (EmailComponent)pageWithName(EmailComponent); return nextPage; } public void sendTheMail() WOMailDelivery md = WOMailDelivery.sharedInstance(); md.composeComponentEmail(EmailFrom , (NSArray)mailTos, null,Confirmation of Reservation , pageForMail(), true ); } 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: Webobjects 5.4 tags in an email component do not work?
Hello Johan; I could be wrong, but does the new component template format require XHTML/XML markup? cheers. The result was that I got a nice mail message containing the complete HTML as such: wo:WOString value = [cartItem.performance.showInfo.showName]/ ___ 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: Webobjects 5.4 tags in an email component do not work?
On 6 jul 2009, at 22:27, Andrew Lindesay wrote: Hello Johan; I could be wrong, but does the new component template format require XHTML/XML markup? cheers. The result was that I got a nice mail message containing the complete HTML as such: wo:WOString value = [cartItem.performance.showInfo.showName]/ ___ Andrew Lindesay www.lindesay.co.nz I am not to sure either. To be on the safe side I added: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en head meta http-equiv=Content-Type content=text/html; charset=utf-8/ = But I noticed that in the file that I got from the mailer the mime type said: = Message-ID: 12880749.1.1246877561166.javamail.localad...@rolex.timerot.nl Subject: Bevestiging reservering Ostadetheater voor Actie Teddy op zondag 06 september 2009 om 21:45 uur MIME-Version: 1.0 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en head meta http-equiv=Content-Type content=text/html; charset=utf-8/ TITLEMail bevestiging/TITLE = Could it be that WOMailDelivery is not able to proces XHTML1.0? Should I use HTML 4.01? 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
MapQuest integration
Has anyone integrated the MapQuest API into a WO app? The Javascript API requires some server support to do geocoding; it comes with J2EE code for this and I'm wondering if anyone has ported it to work directly with WO? Thanks, 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