Re: WOIFrame Question
Hi Mike, we use JavaScript to do this. Put a function in the page containing the iframe that will set the height of the frame: script language=JavaScript function setFrameHeight(height) { document.getElementById('theframe').height = height; } /script and then call this function from the page that is loaded into the frame: script language=JavaScript try { parent.setFrameHeight(550); } catch(e) {} /script But JavaScript will only do this if the two pages come from the same server (same domain name) Am 25.07.2006 um 21:44 schrieb Chip Myers: Hi, I'm trying to create a WOIFrame which changes it's frame height dynamically, depending on the height of the page it displays. For example, if the inner page contains no data, I'd like the WOIFrame to have a height of 0 pixels. If the inner page contains a few entries, I'd like it to expand to say... 100 pixels. If the inner page contains a large amount of data, I'd like it to expand to a maximum length of 400 pixels, and also display a scrollbar. Are there any easy ways to do this? Thanks, Mike ___ 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/ jgrathwohl%40web.de This email sent to [EMAIL PROTECTED] ___ 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 archive@mail-archive.com
undo manager is in invalid state
Hi all,I'm getting the following error when trying to delete an object in a Direct To Java Client application:[2006-07-26 10:07:15 EDT] WorkerThread0 com.webobjects.appserver._private.WOComponentRequestHandler: Exception occurred while handling request:java.lang.IllegalStateException: undo: undo manager is in invalid state, undo was called with too many nested undo groups[2006-07-26 10:07:15 EDT] WorkerThread0 java.lang.IllegalStateException: undo: undo manager is in invalid state, undo was called with too many nested undo groups at com.webobjects.foundation.NSUndoManager.undo(NSUndoManager.java:567) at com.webobjects.eodistribution.EODistributionContext.responseToClientMessage(EODistributionContext.java:622) at com.webobjects.eodistribution.WOJavaClientComponent.handleClientRequest(WOJavaClientComponent.java:1105) at com.webobjects.eodistribution.WOJavaClientComponent.invokeAction(WOJavaClientComponent.java:343) at com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:104) at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101) at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:110) at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:945) at com.webobjects.appserver.WOSession.invokeAction(WOSession.java:1168) at com.webobjects.appserver.WOApplication.invokeAction(WOApplication.java:1375) at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:196) at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:287) at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:322) at com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:358) at com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:432) at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1306) at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:173) at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:254) at java.lang.Thread.run(Thread.java:613)I googled the error and the only reference I can find is by Pierre Brernard back in 2003 http://lists.apple.com/archives/webobjects-dev/2003/Apr/msg00270.html and there were no on-list replies to his request for help.The object I'm deleting has several relationships that are set to cascade and many of those relationships also have relationships set to cascade so I know this one delete is causing a LOT of work to be done in the background.Thanks in advance,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 archive@mail-archive.com
Newbie JavaScript Question
Hi, I'm trying to incorporate some _javascript_ into my webobjects file. Can anyone point me to a good tutorial for doing this?Thanks, Mike ___ 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 archive@mail-archive.com
Re: Newbie JavaScript Question
Hi Mike,There are a number of things you can do. You can include the script in the head section of the page where you want to call it. You can include it in a page template. You can include your script as a WebServer resource and bind it to WOJavaScript (you can find this on the palette in WOBuilder). http://developer.apple.com/documentation/WebObjects/Reference/DynamicElements/WOJavaScript/chapter_21_section_1.htmlI do the latter in my page templates so that I can call this particular script from any input form:headWEBOBJECT NAME=CalendarPopupJavaScript/WEBOBJECT/headCalendarPopupJavaScript: WOJavaScript { scriptSource = "calendar.js"; hideInComment = true;}One thing that you must look out for if you are deploying using XCode is that under the WebServer resources target, ".js" files end up in the Compile Sources folder. They must be manually moved to the Copy Bundle Resources folder.DavidOn 26 Jul 2006, at 9:45 AM, Chip Myers wrote:Hi, I'm trying to incorporate some _javascript_ into my webobjects file. Can anyone point me to a good tutorial for doing this? ___ 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 archive@mail-archive.com
Newbie : Where can i find the source code for the examples in George Ruzek Book ?
Hi all Has someone kept the example source code and other solution of the Web application Construction kit Book, by George Ruzek. Unfortunately the companion website is not available anymore, it seems (www.wowack.com). Thanx ___ 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 archive@mail-archive.com
Re: Re: WWDC WO Meet Up List
On 7/25/06, Ken Anderson [EMAIL PROTECTED] wrote: I would like to request that everyone wear their WWDC badges at The Thirsty Bear so that we can figure out who everyone is! Ken It will also be helpful for me to collect money :) So, we now have three dishes of food and 79 people. Still just $6/person because of the increased number of people showing up. Again, everyone is expected to also ring up $15 of drink to the bar separate of paying me. Albondigas -- roasted meatballs w/spicy sofrito tomato sauce Patatas Pimenton-- spiced, crispy red potatoes w/blue cheese aioli Gambas al Pil Pil -- shrimp sauteed w/garlic, white wine paprika On Jul 12, 2006, at 2:14 PM, Chuck Hill wrote: Hi, On Jul 11, 2006, at 6:13 AM, Pascal Robert wrote: Would be nice to add two fields on your WWDC Meet Up page : which company and which hotel they are going to I have done this and also added a contact field if anyone want to provide that info as well. http://www.global-village.net/chill.at.gvc 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/lists% 40anderhome.com This email sent to [EMAIL PROTECTED] ___ 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/jmlittle%40gmail.com This email sent to [EMAIL PROTECTED] ___ 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 archive@mail-archive.com
Re: Re: Web Services - A newbie
Hi Mike, Thanks a lot for the help. I really got a starting point. But I am having a strange problem, I followed to the point where a provider was asked to setup. I did what was there exactly but then I tried to access my server after sytarting to get the WSDL document it simply throws up a blank page. It is running fine but no auto generated WSDL document. I am sure missing something. Can you please help ? Thanks Roy On 7/25/06, Mike Schrag [EMAIL PROTECTED] wrote: http://en.wikibooks.org/w/index.php? title=Programming:WebObjects#Web_Services On Jul 25, 2006, at 2:17 PM, Roy wrote: Hi all, I am a newbie in the world of Web Services. I have been developing in WebObjects but I have not tried out its Web Services part. I have to do it now. If anybody can point me to a good starting point, maybe a document and some working examples it will be really great !! I was looking into the Apple documentation but my concepts still seems a bit hazy. Any help in this regard will be highly appreciated. Thanks and regards, Roy ___ 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 [EMAIL PROTECTED] ___ 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/wotechie%40gmail.com This email sent to [EMAIL PROTECTED] ___ 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 archive@mail-archive.com
Direct to Web Services Caching Problem
Hi all, Recently I created a Direct to Web Service application, and used WebServiceAssistant to add services and operations. There is absolutely no coding and it works great until the following problem occurred: Even though I added -WOCachingEnabled NO for the web service instance, it still somehow caches the old data. Only when the web service instance is restarted, it will re-fetch and get the latest information. I wonder where the data is cached and how to prevent such caching? Do I need to write my own code to handle it? Any settings or application properties to include? This is my first web service application. Please help me if you know how to solve it. Thanks a lot. Wen ___ 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 archive@mail-archive.com
Re: Direct to Web Services Caching Problem
On Jul 26, 2006, at 5:28 PM, Xia, Wen wrote: Hi all, Recently I created a Direct to Web Service application, and used WebServiceAssistant to add services and operations. There is absolutely no coding and it works great until the following problem occurred: Even though I added -WOCachingEnabled NO for the web service instance, it still somehow caches the old data. That setting is not for data caching. It is for WOComponent template caching. Only when the web service instance is restarted, it will re-fetch and get the latest information. I wonder where the data is cached and how to prevent such caching? Do I need to write my own code to handle it? Any settings or application properties to include? This is my first web service application. Please help me if you know how to solve it. Possibly more than you ever wanted to know: http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/Using_EOF/ Caching_and_Freshness Chuck -- Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro 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 archive@mail-archive.com
Re: WWDC WO Meet Up List
On Jul 26, 2006, at 2:19 PM, Joe Little wrote: On 7/25/06, Ken Anderson [EMAIL PROTECTED] wrote: I would like to request that everyone wear their WWDC badges at The Thirsty Bear so that we can figure out who everyone is! Ken It will also be helpful for me to collect money :) I have noted both on the page now. For anyone who has managed to miss it: http://www.global-village.net/chill.at.gvc So, we now have three dishes of food and 79 people. Still just $6/person because of the increased number of people showing up. Again, everyone is expected to also ring up $15 of drink to the bar separate of paying me. How will we ever manage? :-P Albondigas -- roasted meatballs w/spicy sofrito tomato sauce Patatas Pimenton-- spiced, crispy red potatoes w/blue cheese aioli Gambas al Pil Pil -- shrimp sauteed w/garlic, white wine paprika Mmmm Chuck On Jul 12, 2006, at 2:14 PM, Chuck Hill wrote: Hi, On Jul 11, 2006, at 6:13 AM, Pascal Robert wrote: Would be nice to add two fields on your WWDC Meet Up page : which company and which hotel they are going to I have done this and also added a contact field if anyone want to provide that info as well. http://www.global-village.net/chill.at.gvc 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/lists% 40anderhome.com This email sent to [EMAIL PROTECTED] ___ 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/jmlittle% 40gmail.com This email sent to [EMAIL PROTECTED] -- Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro 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 archive@mail-archive.com
Re: EOObjectNotAvailableException
EOF looks at it a different way, and I can understand their approach. If you had a foreign key to the other table in your table, and it was NULL, then it's ok if the relationship is not mandatory. In their eyes, since you happen to use the same primary key for both objects, it figures it MUST be there, because the key has a value.There are ways to use delegation (can't remember which delegate) to catch the fault firing, and if you don't find the object, return null instead of a blank one. I've done that before...KenOn Jul 25, 2006, at 11:20 AM, Watkins, Garry wrote: Really not the answer that I wanted. Personally, I think that it is a bug in EO, if the relationship is defined as NOT mandatory, and it encounters a EOObjectNotAvailableException it should return null. However, I want to continue to use EOGenericRecords since it is mainly a reporting type application. Does anyone know where the Fault is triggered inside the EO stack so that I might be able to trap the operation with AspectJ? This would also require that I have the EORelationship that triggered the fault. Thanks Garry From: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 25, 2006 11:08 AMTo: Watkins, GarryCc: webobjects-dev@lists.apple.comSubject: Re: EOObjectNotAvailableException Garry, EOF is not happy with such situations - if the key is not null, it expects the to-one to exist. There are a few workarounds - the simplest is to turn the relationship into a to-many and check the object count before returning null or the one object in the array. Ken On Jul 25, 2006, at 10:57 AM, Watkins, Garry wrote: I am getting EOObjectNotAvailableException when I have optional relationships that are linked by a primary key. I do not control the data entry that is associated with these records, so I cannot automatically create empty ones Is there a way for me to trap these exceptions and just get a null back. This is a run down of my scenario: I have Client, ClientExtensionAsbestos, ClientExtensionSilica entities. They all have a primary key of A_Client. Both of the Extension entities are optional depending on the clients case type. A client may have one or more extension records but they are all optional relationships. If I trigger the fault extensionSilica (or any other extension) and it does not exist, I want to receive null back. Any pointers would be appreciated. Thanks, Garry ConfidentialPrivilegedUnless otherwise indicated or obvious from its nature, the information contained in this communication is attorney-client privileged and confidential information/work product. This communication is intended for the use of the individual or entity named above. If the reader of this communication is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error or are not sure whether it is privileged, please immediately notify us by return e-mail and destroy any copies--electronic, paper or otherwise--which you may have of this communication. ___ 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/lists%40anderhome.comThis email sent to [EMAIL PROTECTED] Confidential PrivilegedUnless otherwise indicated or obvious from its nature, the information contained in this communication is attorney-client privileged and confidential information/work product. This communication is intended for the use of the individual or entity named above. If the reader of this communication is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error or are not sure whether it is privileged, please immediately notify us by return e-mail and destroy any copies--electronic, paper or otherwise--which you may have of this communication. ___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/lists%40anderhome.comThis email sent to [EMAIL PROTECTED] ___ 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 archive@mail-archive.com
Re: JDBCChannel method failed to update
Hi, Thanks to everyone who replied. I have removed locking from all but the primary key from the entity and this has remedied the problem. But I am concerned that this is not correct and may cause other problems. It is not possible for the this error to be handled by the user because it occurs within a web service operation that does not provide persistent transactions. The problem appears when the user is making a series of modifications to one entity and I think it is due to that each transaction/ modification is being handled by a different instance of the application whose object store has become dirty. So in addition to reducing the locking attributes I have ensured that the EOEditingContext refaults before each transaction. (I suspect only one would be necessary.) Cheers, Corin. On 25/07/2006, at 6:42 PM, shaun wrote: Hi, Corin Lawson wrote: Hi List, As volume has increased on our woapp so has the occurrence of this particular error, below. I am using WO 5.2.4 with MySQL 5.0. com.webobjects.eoaccess.EOGeneralAdaptorException: updateValuesInRowDescribedByQualifier -- com.webobjects.jdbcadaptor.JDBCChannel method failed to update row in database at com.webobjects.eoaccess.EODatabaseContext._exceptionWithDatabaseConte xtI nformationAdded(EODatabaseContext.java:4685) at com.webobjects.eoaccess.EODatabaseContext.performChanges (EODatabaseContext.java:6393) at com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditin gCo ntext(EOObjectStoreCoordinator.java:415) at com.webobjects.eocontrol.EOEditingContext.saveChanges (EOEditingContext.java:3226) We are currently looking into any network issues that could be causing communication problems between the two servers (the one with the woapp and the other with the database). Can anyone provide light to this exception? Optimistic locking failure perhaps. ie, One client trying to modify a row that has been deleted or modified by another client. The more clients accessing making modifications at the same time the more likely this is to occur. Check which attributes are used for locking on the entity that this occurs on to see if its likely being modified by more than one client. I assume you are able to pin-point the entity or the component at least. Catching this exception, then getting the user to handle the modification somehow is probably the solution you should consider rather than unchecking attributes used for locking. HTH. - shaun ___ 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 archive@mail-archive.com
Direct Action vs. Component Action...
Hi, The first part of David LeBer's articles on Direct Actions (http:// david.codeferous.com/?p=63) says the following about component actions: each visitor will receive a relatively heavyweight Session object, so they may not be appropriate if you expect a lot of visitors and/or you do not need to track their state. Direct Action are designed for these situtations. So if I have a direct action which (1) requires a session object, and (2) returns a WOComponent object, will it be as heavy weight as a component action? If not, what is it that makes component actions relatively heavyweight? If I have a site where multiple things can be accessed via direct actions, and if I want some of these things to be available only to registered users, would I need a session object for these direct actions? Thanks. deepak ___ 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 archive@mail-archive.com
Re: JDBCChannel method failed to update
Am 27.07.2006 um 04:31 schrieb Corin Lawson: I have removed locking from all but the primary key from the entity and this has remedied the problem. But I am concerned that this is not correct and may cause other problems. It is not possible for the this error to be handled by the user because it occurs within a web service operation that does not provide persistent transactions. The problem appears when the user is making a series of modifications to one entity and I think it is due to that each transaction/modification is being handled by a different instance of the application whose object store has become dirty. So in addition to reducing the locking attributes I have ensured that the EOEditingContext refaults before each transaction. (I suspect only one would be necessary.) There used to be something in Mysql where, when you had a single non- null timestamp column, it would auto-update it on UPDATE. And there is code in Project Wonder that handles this. (ERXTolerantSaver, ERXEOControlUtilities and ERXEC) 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 archive@mail-archive.com