Community Surveys and WOWODC news
Hello everyone, To prepare for WOWODC and other stuff for this year, I'm preparing the surveys. Before they go live, I would like feedback about the questions and choices so that we don't forget anything. You can find a copy of the draft in the wiki: http://wiki.objectstyle.org/confluence/display/WOCOM/2011+Surveys If you want to add/change a question or a choice, this is the time to do it. About WOWODC 2011, we added a couple of sessions and the list was modified 4 days ago, have a look: http://www.wocommunity.org/wowodc11/topics.html See you in July! It will be fun! -- Pascal Robert prob...@macti.ca AIM/iChat : MacTICanada LinkedIn : http://www.linkedin.com/in/macti Twitter : pascal_robert ___ 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
WOHyperlink problem..
Dear List, i have a div which contains hyperlinks, onclick i am loading a page in frame, bindings are action=hyperlinkAction; for the first time i click on it hyperlink its working fine, but when i click on other tabs and come back to the first tab its not calling the action method. the seession elements have the old values not the present link values. Any suggestion is appreciated. -- ThanksRegards, *Pavan Jayam * ___ 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: WOHyperlink problem..
On Mar 28, 2011, at 3:50 PM, pavan.jayam wrote: Dear List, i have a div which contains hyperlinks, onclick i am loading a page in frame, bindings are action=hyperlinkAction; for the first time i click on it hyperlink its working fine, but when i click on other tabs and come back to the first tab its not calling the action method. the seession elements have the old values not the present link values. Any suggestion is appreciated. -- ThanksRegards, *Pavan Jayam * Maybe use directActions instead? HG ___ 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: PostgreSQL float8
Hi Ramsey and Ted, It seems like that is the issue. WONDER-693http://issues.objectstyle.org/jira/browse/WONDER-693 and WOL-1206http://issues.objectstyle.org/jira/browse/WOL-1206 Thanks guys. -Mike On Mar 27, 2011, at 12:42 PM, Ramsey Gurley wrote: Hi Ted, I've closed one like that already as it belongs on WOProject JIRA. Don't be offended if I close 517 for the same reasons... http://issues.objectstyle.org/jira/browse/WONDER-438 The problem appears to be in the migration generation template. It should be filed on JIRA for WOLips instead. I see http://issues.objectstyle.org/jira/browse/WOL-1029 which looks related. Maybe vote on that? Michael, I was not aware that the double migration itself did not work for Postgresql. File a jira for that issue on Wonder and I will take a look once I figure out git (^_^) I suspect all you need to do is add Type.FLOAT and Type.DOUBLE into that tremendous 'if' statement in PostgresqlSQLHelper.externalTypeForJDBCType(). Ramsey On Mar 27, 2011, at 7:59 AM, Theodore Petrosky wrote: I opened a Jira in April 2010 on this issue (Jira #517). Maybe adding a vote to it would help move it along. Ted Date: Fri, 25 Mar 2011 14:50:54 -0700 From: Michael Gargano mgarg...@escholar.com Subject: PostgreSQL float8 To: webobjects-dev@lists.apple.com List List webobjects-dev@lists.apple.com Message-ID: 37f75e6d-d849-4a90-bb9c-3bc16541a...@escholar.com Content-Type: text/plain; charset=us-ascii Hi all, I'm using an attribute in my model with a prototype of doubleNumber, this is set to use a DB type of float8. When I generate the migration it uses .newDoubleColumn with broken precision and scale numbers (since the prototype doesn't have these fields). Trying to use newDoubleColumn or even newColumn with Types.DOUBLE or Types.FLOAT does not seem to work. A column gets created, but when my update script runs and tries to insert data into that table it complains about the numerical values I'm trying to insert claiming the field type is 'money'. I saw an earlier e-mail to the list about this, but no resolution, but someone must be using doubles and postgres somewhere. 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/ramseygurley%40gmail.com This email sent to ramseygur...@gmail.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
ERAttachmentViewer and iPad Safari
Greetings Anyone has any success with getting ERAttachmentViewer to play back QuickTime content in iPad Safari? Paul ___ 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
changed objects
OK I thought I did this before but I can not think of how I did it. I have an EC made with: theEC = ERXEC.newEditingContext(); I then get a list and use a displayGroup to display it in a table. I want to make a few edits, then ask the EC for the changed objects. NSLog.out.appendln(checkAltered ==+ theEC.updatedObjects()); updatedOjbects returns all the objects in the array. I just want the ones that were altered. Is there a way? 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: changed objects
Le 2011-03-28 à 14:16, Theodore Petrosky a écrit : OK I thought I did this before but I can not think of how I did it. I have an EC made with: theEC = ERXEC.newEditingContext(); I then get a list and use a displayGroup to display it in a table. I want to make a few edits, then ask the EC for the changed objects. NSLog.out.appendln(checkAltered ==+ theEC.updatedObjects()); updatedOjbects returns all the objects in the array. I just want the ones that were altered. Is there a way? updateObjects should return only what changed, if you get everything, something in your code is touching each EOs. -- Pascal Robert prob...@macti.ca AIM/iChat : MacTICanada LinkedIn : http://www.linkedin.com/in/macti Twitter : pascal_robert ___ 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: changed objects
If all the objects are in that list, then all have been changed. You might have a floating point value that is getting altered due to a formatter (e.g. the scale is different). Chuck On Mar 28, 2011, at 11:16 AM, Theodore Petrosky wrote: OK I thought I did this before but I can not think of how I did it. I have an EC made with: theEC = ERXEC.newEditingContext(); I then get a list and use a displayGroup to display it in a table. I want to make a few edits, then ask the EC for the changed objects. NSLog.out.appendln(checkAltered ==+ theEC.updatedObjects()); updatedOjbects returns all the objects in the array. I just want the ones that were altered. Is there a way? Ted -- 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 smime.p7s Description: S/MIME cryptographic signature ___ 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
Another dumb ERRest question
I am again working on my ERRest based push notification server, and am having an issue with the framework. I am using a version of Wonder from last week (the 5.4 branch), in eclipse 3.6 using a MySQL database on the development machine. I looked at the example app, and copied the key functions from it (after wasting time trying to over-think it for a while going back to the easy method). I can add a new object, it stores it in the database, but if I then attempt to delete it using the code: @Override public WOActionResults destroyAction() throws Throwable { NotificationType type = notificationType(); type.delete(); editingContext().saveChanges(); return response(type, showFilter()); } The type gets the delete message, saveChanges deletes the row in the database (the EO_PK_TABLE still shows it's pk as the current pk, which I gather is normal) but then the returned method response(type, showFilter()); crashes with an NPE deep in the guts of ERRest: requestNode._fillInWithObjectAndFilter(obj, classDescription, keyFilter, delegate, new HashSetObject()); This is called in ERXRestRequestNode.java. It appears (though I'm not completely sure) that the method is asking for the old object it just deleted, and there isn't one, because it just deleted it. However, I copied this code directly from the example, so something somewhere is going wrong that doesn't go wrong in the example app. So, I can avoid all this by just returning null, as the user will not actually need to get a response, but I thought I'd ask the question, what should I be doing here, and what might be going wrong? Andrew ___ 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
AjaxExpansion inside a WORepetition?
Hi List, I am new to the Wonder Ajax frameworks, and have some trouble using AjaxExpansion inside a WO Repetition. The Expanded state is global and not specific to a row in a repetition. If I use the example ToggleDetails in AjaxExample2, it works for one single AjaxExpansion area (one row only). However, if I use a WO Repetition of AjaxExpansion areas, the Expanded state is not behaving properly. Only the first cell is expanded, even when I click on the other cells. It seems like the expanded flag is behaving globally for the first table cell only. Is it correct to use AjaxExpansion in a WORepetition to update a row table cell, or should I something else? (an example would be appreciated) Thanks for any hints, -mai ___ 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: AjaxExpansion inside a WORepetition?
Hi Mai, On Mar 28, 2011, at 12:45 PM, Mai Nguyen wrote: Hi List, I am new to the Wonder Ajax frameworks, and have some trouble using AjaxExpansion inside a WO Repetition. The Expanded state is global and not specific to a row in a repetition. If I use the example ToggleDetails in AjaxExample2, it works for one single AjaxExpansion area (one row only). However, if I use a WO Repetition of AjaxExpansion areas, the Expanded state is not behaving properly. Only the first cell is expanded, even when I click on the other cells. It seems like the expanded flag is behaving globally for the first table cell only. Are you binding it to something that is unique for every row? Is it correct to use AjaxExpansion in a WORepetition to update a row table cell, or should I something else? (an example would be appreciated) Thanks for any hints, Are you just updating the contents of one cell? Adding or removing rows/cells in tables with Ajax does not work well. 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 smime.p7s Description: S/MIME cryptographic signature ___ 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: AjaxExpansion inside a WORepetition?
Hi Chuck, Are you binding it to something that is unique for every row? The binding expanded is tied to a global boolean variable like the ToggleDetails example. I have not found a good way to set it per row though, so this may be the issue since this boolean is used for all rows. I am only updating the contents of a table cell, not adding or removing table cells. The expanded state shows more information vs. the closed state. thanks, mai On Mar 28, 2011, at 12:54 PM, Chuck Hill wrote: Hi Mai, On Mar 28, 2011, at 12:45 PM, Mai Nguyen wrote: Hi List, I am new to the Wonder Ajax frameworks, and have some trouble using AjaxExpansion inside a WO Repetition. The Expanded state is global and not specific to a row in a repetition. If I use the example ToggleDetails in AjaxExample2, it works for one single AjaxExpansion area (one row only). However, if I use a WO Repetition of AjaxExpansion areas, the Expanded state is not behaving properly. Only the first cell is expanded, even when I click on the other cells. It seems like the expanded flag is behaving globally for the first table cell only. Are you binding it to something that is unique for every row? Is it correct to use AjaxExpansion in a WORepetition to update a row table cell, or should I something else? (an example would be appreciated) Thanks for any hints, Are you just updating the contents of one cell? Adding or removing rows/cells in tables with Ajax does not work well. 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/huemai%40mac.com This email sent to hue...@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: changed objects
Or, I believe, an MS SQL Server DB with Date columns as locking attributes... Dave On Mar 28, 2011, at 2:26 PM, Chuck Hill wrote: If all the objects are in that list, then all have been changed. You might have a floating point value that is getting altered due to a formatter (e.g. the scale is different). Chuck On Mar 28, 2011, at 11:16 AM, Theodore Petrosky wrote: OK I thought I did this before but I can not think of how I did it. I have an EC made with: theEC = ERXEC.newEditingContext(); I then get a list and use a displayGroup to display it in a table. I want to make a few edits, then ask the EC for the changed objects. NSLog.out.appendln(checkAltered ==+ theEC.updatedObjects()); updatedOjbects returns all the objects in the array. I just want the ones that were altered. Is there a way? Ted -- 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/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: AjaxExpansion inside a WORepetition?
On Mar 28, 2011, at 1:18 PM, Mai Nguyen wrote: Hi Chuck, Are you binding it to something that is unique for every row? The binding expanded is tied to a global boolean variable like the ToggleDetails example. I have not found a good way to set it per row though, so this may be the issue since this boolean is used for all rows. You have to be careful of the id too in repetitions, each one needs to be unique. That is probably one of the problems. One way is to bind the index of the repetition to something and then use OGNL in the binding (assuming you are using WOOGNL in your project): MyExpansion: AjaxExpansion { id = ~MyExpansion_ + theIndex; ... } I am only updating the contents of a table cell, not adding or removing table cells. The expanded state shows more information vs. the closed state. I _think_ that should be OK. On Mar 28, 2011, at 12:54 PM, Chuck Hill wrote: Hi Mai, On Mar 28, 2011, at 12:45 PM, Mai Nguyen wrote: Hi List, I am new to the Wonder Ajax frameworks, and have some trouble using AjaxExpansion inside a WO Repetition. The Expanded state is global and not specific to a row in a repetition. If I use the example ToggleDetails in AjaxExample2, it works for one single AjaxExpansion area (one row only). However, if I use a WO Repetition of AjaxExpansion areas, the Expanded state is not behaving properly. Only the first cell is expanded, even when I click on the other cells. It seems like the expanded flag is behaving globally for the first table cell only. Are you binding it to something that is unique for every row? Is it correct to use AjaxExpansion in a WORepetition to update a row table cell, or should I something else? (an example would be appreciated) Thanks for any hints, Are you just updating the contents of one cell? Adding or removing rows/cells in tables with Ajax does not work well. 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/huemai%40mac.com This email sent to hue...@mac.com -- 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 smime.p7s Description: S/MIME cryptographic signature ___ 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: Weird NullPointerException
Thanks Chuck, you made my day. Cheers ---markus--- On 25.03.2011, at 18:47, Chuck Hill wrote: Hi Markus, On Mar 25, 2011, at 3:41 AM, Markus Ruggiero wrote: I have an EO that has business logic for creating an PDF file. There is a WOComponent that generates an XML which is then fed to ApacheFOP. Following code is in the EO: GeneratedDocument.java public void generatePDF(WOComponent sender) { if (sender == null) { return; } String generatorName = xmlGeneratorClassName(); if (generatorName != null) { XmlGeneratorComponent xmlGenerator = (XmlGeneratorComponent)sender.pageWithName(generatorName); That might be a problem there. Try this instead: XmlGeneratorComponent xmlGenerator = (XmlGeneratorComponent)WOApplication.application().pageWithName(generatorName, new WOContent(sender.context().request())); It is usually safer to create a new context for things like this. Chuck PDFGenerator pdfGenerator = PDFGenerator.sharedInstance(); pdfGenerator.generatePdfFile( this, xmlGenerator ); } else { log.error( *** No xmlGeneratorClassName available ); } } Depending on the context I call this I get a NullPointerException or not. This is the NPE, context info follows below: Mar 25 11:13:49 ec_admin[13000] WARN NSLog - com.webobjects.appserver._private.WOComponentRequestHandler: Exception occurred while handling request: java.lang.NullPointerException [2011-3-25 11:13:49 CET] WorkerThread14 java.lang.NullPointerException at com.webobjects.appserver._private.WOComponentReference._popComponentFromContext(WOComponentReference.java:108) at com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:128) at er.extensions.components._private.ERXSwitchComponent.invokeAction(ERXSwitchComponent.java:117) at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105) at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115) at er.extensions.components._private.ERXWORepetition.invokeAction(ERXWORepetition.java:496) at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105) at er.extensions.components.conditionals.ERXWOConditional.invokeChildrenAction(ERXWOConditional.java:113) at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115) at er.extensions.components.conditionals.ERXWOConditional.invokeAction(ERXWOConditional.java:104) at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079) at com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:127) at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105) at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115) at com.webobjects.appserver._private.WOComponentContent.invokeAction(WOComponentContent.java:38) at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105) at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115) at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079) at com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:127) at er.extensions.components._private.ERXSwitchComponent.invokeAction(ERXSwitchComponent.java:117) at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105) at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115) at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079) at er.directtoweb.pages.ERD2WPage.invokeAction(ERD2WPage.java:619) at er.directtoweb.pages.ERD2WListPage.invokeAction(ERD2WListPage.java:479) at com.webobjects.appserver.WOSession.invokeAction(WOSession.java:1357) at com.webobjects.appserver.WOApplication.invokeAction(WOApplication.java:1745) at er.extensions.appserver.ajax.ERXAjaxApplication.invokeAction(ERXAjaxApplication.java:93) at er.extensions.appserver.ERXApplication.invokeAction(ERXApplication.java:1863) at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:206) at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:298) at
Re: AjaxExpansion inside a WORepetition?
Hi Chuck, You are correct. You have to be careful of the id too in repetitions, each one needs to be unique. This was the problem. After having a unique ID per row, I can flip open one row at a time. One cannot flip all rows open, but this is probably the way the UI is intended. Thanks very much for this useful tip, -mai On Mar 28, 2011, at 1:42 PM, Chuck Hill wrote: On Mar 28, 2011, at 1:18 PM, Mai Nguyen wrote: Hi Chuck, Are you binding it to something that is unique for every row? The binding expanded is tied to a global boolean variable like the ToggleDetails example. I have not found a good way to set it per row though, so this may be the issue since this boolean is used for all rows. You have to be careful of the id too in repetitions, each one needs to be unique. That is probably one of the problems. One way is to bind the index of the repetition to something and then use OGNL in the binding (assuming you are using WOOGNL in your project): MyExpansion: AjaxExpansion { id = ~MyExpansion_ + theIndex; ... } I am only updating the contents of a table cell, not adding or removing table cells. The expanded state shows more information vs. the closed state. I _think_ that should be OK. On Mar 28, 2011, at 12:54 PM, Chuck Hill wrote: Hi Mai, On Mar 28, 2011, at 12:45 PM, Mai Nguyen wrote: Hi List, I am new to the Wonder Ajax frameworks, and have some trouble using AjaxExpansion inside a WO Repetition. The Expanded state is global and not specific to a row in a repetition. If I use the example ToggleDetails in AjaxExample2, it works for one single AjaxExpansion area (one row only). However, if I use a WO Repetition of AjaxExpansion areas, the Expanded state is not behaving properly. Only the first cell is expanded, even when I click on the other cells. It seems like the expanded flag is behaving globally for the first table cell only. Are you binding it to something that is unique for every row? Is it correct to use AjaxExpansion in a WORepetition to update a row table cell, or should I something else? (an example would be appreciated) Thanks for any hints, Are you just updating the contents of one cell? Adding or removing rows/cells in tables with Ajax does not work well. 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/huemai%40mac.com This email sent to hue...@mac.com -- 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: AjaxExpansion inside a WORepetition?
On Mar 28, 2011, at 3:39 PM, Mai Nguyen wrote: Hi Chuck, You are correct. You have to be careful of the id too in repetitions, each one needs to be unique. This was the problem. After having a unique ID per row, I can flip open one row at a time. One cannot flip all rows open, but this is probably the way the UI is intended. Yes, I think so. You would need to write some JavaScript to do this. Or have a global override, and put an AUC around the whole table. Thanks very much for this useful tip, You are welcome. :-) Chuck On Mar 28, 2011, at 1:42 PM, Chuck Hill wrote: On Mar 28, 2011, at 1:18 PM, Mai Nguyen wrote: Hi Chuck, Are you binding it to something that is unique for every row? The binding expanded is tied to a global boolean variable like the ToggleDetails example. I have not found a good way to set it per row though, so this may be the issue since this boolean is used for all rows. You have to be careful of the id too in repetitions, each one needs to be unique. That is probably one of the problems. One way is to bind the index of the repetition to something and then use OGNL in the binding (assuming you are using WOOGNL in your project): MyExpansion: AjaxExpansion { id = ~MyExpansion_ + theIndex; ... } I am only updating the contents of a table cell, not adding or removing table cells. The expanded state shows more information vs. the closed state. I _think_ that should be OK. On Mar 28, 2011, at 12:54 PM, Chuck Hill wrote: Hi Mai, On Mar 28, 2011, at 12:45 PM, Mai Nguyen wrote: Hi List, I am new to the Wonder Ajax frameworks, and have some trouble using AjaxExpansion inside a WO Repetition. The Expanded state is global and not specific to a row in a repetition. If I use the example ToggleDetails in AjaxExample2, it works for one single AjaxExpansion area (one row only). However, if I use a WO Repetition of AjaxExpansion areas, the Expanded state is not behaving properly. Only the first cell is expanded, even when I click on the other cells. It seems like the expanded flag is behaving globally for the first table cell only. Are you binding it to something that is unique for every row? Is it correct to use AjaxExpansion in a WORepetition to update a row table cell, or should I something else? (an example would be appreciated) Thanks for any hints, Are you just updating the contents of one cell? Adding or removing rows/cells in tables with Ajax does not work well. 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/huemai%40mac.com This email sent to hue...@mac.com -- 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 smime.p7s Description: S/MIME cryptographic signature ___ 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
Scheduled Actions
How would I handle scheduled actions with WebObjects. Cron or some other approach? I'd like to have my application run a daily process to check a remote client's membership status and update my application's membership status. Thanks, Ken ___ 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: Scheduled Actions
You should be able to build a headless application and have cron call that app to do what you need. Sent from my iPad On Mar 28, 2011, at 10:32 PM, Ken - Watermark Studios k...@watermarkstudios.com wrote: How would I handle scheduled actions with WebObjects. Cron or some other approach? I'd like to have my application run a daily process to check a remote client's membership status and update my application's membership status. Thanks, Ken ___ 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/pyu%40mac.com This email sent to p...@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: Scheduled Actions
see this thread: http://lists.apple.com/archives/webobjects-dev/2010/Jan/msg00068.html David On 2011-03-28, at 7:36 PM, Paul D Yu wrote: You should be able to build a headless application and have cron call that app to do what you need. Sent from my iPad On Mar 28, 2011, at 10:32 PM, Ken - Watermark Studios k...@watermarkstudios.com wrote: How would I handle scheduled actions with WebObjects. Cron or some other approach? I'd like to have my application run a daily process to check a remote client's membership status and update my application's membership status. Thanks, Ken ___ 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/pyu%40mac.com This email sent to p...@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/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: Scheduled Actions
How would I handle scheduled actions with WebObjects. Cron or some other approach? I'd like to have my application run a daily process to check a remote client's membership status and update my application's membership status. Thanks, Ken You could write a simple script which invokes curl, calling a DA in your application, and schedule the script as a cron job. You may want to include a level of security/authentication in the call. -- Matt. http://logicsquad.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: Scheduled Actions
I have used the cron/script approach for a long time and it works quite well. I am starting to transition my apps to use quartz. There's a chance my apps could have multiple deployments and I felt it was necessary to de-couple the app from any outside scripting and schedulers that would also have to be mimic'ed and re-deployed. Tim Worman UCLA GSEIS On Mar 28, 2011, at 8:10 PM, Matthew Ness wrote: How would I handle scheduled actions with WebObjects. Cron or some other approach? I'd like to have my application run a daily process to check a remote client's membership status and update my application's membership status. Thanks, Ken You could write a simple script which invokes curl, calling a DA in your application, and schedule the script as a cron job. You may want to include a level of security/authentication in the call. -- Matt. http://logicsquad.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/lists%40thetimmy.com This email sent to li...@thetimmy.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