Re: Limit to the number of instances under JavaMonitor
Am 04.02.2012 um 18:48 schrieb David Holt: Does anyone know if there is a limit to the number of instances you can run under JavaMonitor? Is it a fixed limit, or a configuration? I seem to have hit it. There is a limit in the WebObjects adaptor but that only hits the web server. My new instance dies silently. No log, just a new Death. I can start the application from the command line. After trying everything I could think of, I stopped an instance of another application, and tried again. This time it works. Did you try to start it with the exact parameters from monitor? (after removing the projectPath()-thingie) Hitting any OS or connection limits? The number of instances is 52. We currently run more than 500 instances for 21 apps on six machines, with one monitor. The biggest apps use 48 instances. When we bounce we double the instance count for a short time. No problems. atze ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
ERTaggable Error?
Hello- I am trying get my tagged objects: return PortfolioProject.taggableEntity().fetchTaggedWith(session().defaultEditingContext(), args); args is an array of strings Feb 05 21:41:40 PI[52753] WARN NSLog - com.webobjects.appserver._private.WOComponentRequestHandler: Exception occurred while handling request: Out of sort memory; increase server sort buffer sizeat com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1075) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3566) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3498) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2113) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2568) at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2113) at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1364) at com.webobjects.jdbcadaptor.JDBCChannel._bindInputVariablesWithBindingsAndExecute(JDBCChannel.java:265) at com.webobjects.jdbcadaptor.JDBCChannel._evaluateExpression(JDBCChannel.java:337) at com.webobjects.jdbcadaptor.JDBCChannel.evaluateExpression(JDBCChannel.java:296) at er.extensions.eof.ERXEOAccessUtilities._rawRowsForSQLExpression(ERXEOAccessUtilities.java:377) at er.extensions.eof.ERXEOAccessUtilities.rawRowsForSQLExpression(ERXEOAccessUtilities.java:345) at er.taggable.ERTaggableEntity.fetchTaggedWith(ERTaggableEntity.java:714) at er.taggable.ERTaggableEntity.fetchTaggedWith(ERTaggableEntity.java:678) at er.taggable.ERTaggableEntity.fetchTaggedWith(ERTaggableEntity.java:664) at er.taggable.ERTaggableEntity.fetchTaggedWith(ERTaggableEntity.java:651) at com.tos.reports.TOSD2WQueryPage.taggedProjects(TOSD2WQueryPage.java:132) I am using mysql. Thanks James 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: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: ERTaggable Error?
Hi James, You can check your current value by doing: (root@localhost@macpro) (none) show variables like 'sort_buffer_size'; +--+--+ | Variable_name| Value| +--+--+ | sort_buffer_size | 67108864 | +--+--+ 1 row in set (0.00 sec) You can set higher value in /etc/my.cnf by adding (or replacing current value) with 32M (32 megabytes) or 64M. snip # Sort buffer is used to perform sorts for some ORDER BY and GROUP BY # queries. If sorted data does not fit into the sort buffer, a disk # based merge sort is used instead - See the Sort_merge_passes # status variable. Allocated per thread if sort is needed. sort_buffer_size = 32M /snip If /etc/my.cnf config is something you are not sure about, I recommend you checkout the project: https://github.com/kierankelleher/gic-mysql-tools pick a config that most closely matches your server, and then tweak as needed. Also, please read the README thoroughly for instructions. Regards, Kieran On Feb 6, 2012, at 8:29 AM, James Cicenia wrote: Hello- I am trying get my tagged objects: return PortfolioProject.taggableEntity().fetchTaggedWith(session().defaultEditingContext(), args); args is an array of strings Feb 05 21:41:40 PI[52753] WARN NSLog - com.webobjects.appserver._private.WOComponentRequestHandler: Exception occurred while handling request: Out of sort memory; increase server sort buffer sizeat com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1075) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3566) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3498) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2113) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2568) at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2113) at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1364) at com.webobjects.jdbcadaptor.JDBCChannel._bindInputVariablesWithBindingsAndExecute(JDBCChannel.java:265) at com.webobjects.jdbcadaptor.JDBCChannel._evaluateExpression(JDBCChannel.java:337) at com.webobjects.jdbcadaptor.JDBCChannel.evaluateExpression(JDBCChannel.java:296) at er.extensions.eof.ERXEOAccessUtilities._rawRowsForSQLExpression(ERXEOAccessUtilities.java:377) at er.extensions.eof.ERXEOAccessUtilities.rawRowsForSQLExpression(ERXEOAccessUtilities.java:345) at er.taggable.ERTaggableEntity.fetchTaggedWith(ERTaggableEntity.java:714) at er.taggable.ERTaggableEntity.fetchTaggedWith(ERTaggableEntity.java:678) at er.taggable.ERTaggableEntity.fetchTaggedWith(ERTaggableEntity.java:664) at er.taggable.ERTaggableEntity.fetchTaggedWith(ERTaggableEntity.java:651) at com.tos.reports.TOSD2WQueryPage.taggedProjects(TOSD2WQueryPage.java:132) I am using mysql. Thanks James ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com This email sent to kelleh...@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: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: ERTaggable Error?
Thanks that worked... I raised it to 2M which is what my deployment servers use. Mine was set at 32K on my dev box. Though. I never, ever, had to do this before. I will monitor this closely, but so far so great. Thanks James On Feb 6, 2012, at 7:44 AM, Kieran Kelleher wrote: Hi James, You can check your current value by doing: (root@localhost@macpro) (none) show variables like 'sort_buffer_size'; +--+--+ | Variable_name| Value| +--+--+ | sort_buffer_size | 67108864 | +--+--+ 1 row in set (0.00 sec) You can set higher value in /etc/my.cnf by adding (or replacing current value) with 32M (32 megabytes) or 64M. snip # Sort buffer is used to perform sorts for some ORDER BY and GROUP BY # queries. If sorted data does not fit into the sort buffer, a disk # based merge sort is used instead - See the Sort_merge_passes # status variable. Allocated per thread if sort is needed. sort_buffer_size = 32M /snip If /etc/my.cnf config is something you are not sure about, I recommend you checkout the project: https://github.com/kierankelleher/gic-mysql-tools pick a config that most closely matches your server, and then tweak as needed. Also, please read the README thoroughly for instructions. Regards, Kieran On Feb 6, 2012, at 8:29 AM, James Cicenia wrote: Hello- I am trying get my tagged objects: return PortfolioProject.taggableEntity().fetchTaggedWith(session().defaultEditingContext(), args); args is an array of strings Feb 05 21:41:40 PI[52753] WARN NSLog - com.webobjects.appserver._private.WOComponentRequestHandler: Exception occurred while handling request: Out of sort memory; increase server sort buffer sizeat com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1075) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3566) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3498) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2113) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2568) at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2113) at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1364) at com.webobjects.jdbcadaptor.JDBCChannel._bindInputVariablesWithBindingsAndExecute(JDBCChannel.java:265) at com.webobjects.jdbcadaptor.JDBCChannel._evaluateExpression(JDBCChannel.java:337) at com.webobjects.jdbcadaptor.JDBCChannel.evaluateExpression(JDBCChannel.java:296) at er.extensions.eof.ERXEOAccessUtilities._rawRowsForSQLExpression(ERXEOAccessUtilities.java:377) at er.extensions.eof.ERXEOAccessUtilities.rawRowsForSQLExpression(ERXEOAccessUtilities.java:345) at er.taggable.ERTaggableEntity.fetchTaggedWith(ERTaggableEntity.java:714) at er.taggable.ERTaggableEntity.fetchTaggedWith(ERTaggableEntity.java:678) at er.taggable.ERTaggableEntity.fetchTaggedWith(ERTaggableEntity.java:664) at er.taggable.ERTaggableEntity.fetchTaggedWith(ERTaggableEntity.java:651) at com.tos.reports.TOSD2WQueryPage.taggedProjects(TOSD2WQueryPage.java:132) I am using mysql. Thanks James ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com This email sent to kelleh...@gmail.com 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: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AutoLaunch on Windows
I have a WOOpenURL.exe that I wrote - a one line delphi program. I could get it to you tomorrow. But if you can control the name of the script / app then you could use a batch file instead. On Sun, Feb 5, 2012 at 3:49 PM, Pascal Robert prob...@macti.ca wrote: Ah, so I guess having a script to open the URL and overwriting that class should do the work. Anyone have such a script? Hi Pascal, under 5.2 there was NEXTROOT/Library/WebObjects/Executables/WOOpenURL.exe In 5.4 it is hard coded to /usr/bin/open public class _WOLaunchServices { private static final String openExecutable = /usr/bin/open; ... That's the best way for Develop on Apple, Deploy everywhere :-P . Stefan Am 05.02.12 14:30, schrieb Pascal Robert: Hi guys, I'm working on instructions on how to install everything on Windows, and I got the famous AutoLaunch will not work message. So I followed those instructions: http://wiki.wocommunity.org/display/WO/Development-Development+on+Windows But like Ron said in the comments, it tries to launch /usr/bin/open. Now, since this is the first time I setup a Windows machine for WO development (I don't plan to actually use beside update wiki content and testing WOLips on Windows), I don't know how it worked when WO was supported on Windows. How AutoLaunch was working in good old days? Does something similar to open was shipping with WO 5.2? ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/stefan.klein%40buero-sde.de This email sent to stefan.kl...@buero-sde.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: https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca This email sent to prob...@macti.ca ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com This email sent to johnth...@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: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
I have to say… ERMD2W is f'ing amazing
Ok - Because of all the power I am finally starting to understand it is a zen thing. One first has to be completely won with all of wo before the power of d2w is revealed. Anyway, I am so close to having the most amazing query and list system. Basically any list can be created with its own query and list settings! This give a user the ability to create any kind of list interface. To Screen To Report To PDF To EXCEL Save Edit Run !! No more custom reports, no more I wish that list had that column or special filter. Now it's, you want it, just configure it and save! This is totally changing my legacy product to be both simpler and much more powerful! Thank you all for your patience... especially when I muck up my environment. And of course everyone's help. James 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: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: DB Soft Migration
there was a demo app where you copy data from eomodel-a to eomodel-b and it takes quite a bit of time to churn, but I used that some years ago in such a case. On Feb 6, 2012, at 3:03 AM, Ron X wrote: Did anybody do this or maybe know how to do this?: I wanna to move from MySQL (not a fork like Percona) to PostgreSQL. But i can't stop the server. So i think that probably exists possibility to set up the WO or EM to write data to PostgreSQL, but read data from both of MySQL and PostgreSQL? And than i will copy all data without locking from MySQL (in a hot) to PostgreSQL. Thank you. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com This email sent to jtay...@oeinc.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: ERRest Client
Thanks Ted. I added a note in the road map about it. I read in the surveys the following Adding a REST client in ERRest We need a REST client in ERRest so that we can easily call REST APIs from other sources, and convert the results to EOs if required. A sort of client exists in the RestRoute example, and other code based on Jakarta httpclient was posted on the mailing list. We could take a look at Jersey and JBoss' RestEasy too. I have a simple httpclient framework that I've been using in a couple of projects that does all the grunt work and works for me. ATLHttpClientUtilities.java ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca This email sent to prob...@macti.ca ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: I have to say… ERMD2W is f'ing amazing
ah yes, the D2W-OMG exploding brain syndrome. On Feb 6, 2012, at 11:06 AM, James Cicenia wrote: Ok - Because of all the power I am finally starting to understand it is a zen thing. One first has to be completely won with all of wo before the power of d2w is revealed. Anyway, I am so close to having the most amazing query and list system. Basically any list can be created with its own query and list settings! This give a user the ability to create any kind of list interface. To Screen To Report To PDF To EXCEL Save Edit Run !! No more custom reports, no more I wish that list had that column or special filter. Now it's, you want it, just configure it and save! This is totally changing my legacy product to be both simpler and much more powerful! Thank you all for your patience... especially when I muck up my environment. And of course everyone's help. James ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com This email sent to jtay...@oeinc.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Problems with Jenkins on OS X
I got Jenkins on Linux to run just fine, but I have a strange problem with an installation on OS X. The jobs are configured correctly, and the path for wo.local.frameworks is valid. But when I start a build, I'm always getting : The framework name 'ERExtensions' does not exist. But it does exists in the path specified to wo.local.frameworks. I am going to print the properties in build.xml to see if something is strange, but I was wondering if someone had a similar problem on OS X. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: I have to say… ERMD2W is f'ing amazing
Yes I should do that. I need to document this. I can't make that time of year for the WOWODC. However, I was thinking I could make an example project and do a screen capture of it all. I am pushing the boundry one more inch by trying to group my query page components. Either way, I will figure out some screen cast. James On Feb 6, 2012, at 10:12 AM, Paul Yu wrote: So this sounds like a good WOWODC presentation. Give BACK! -- Paul Yu Sent with Sparrow On Monday, February 6, 2012 at 11:06 AM, James Cicenia wrote: Ok - Because of all the power I am finally starting to understand it is a zen thing. One first has to be completely won with all of wo before the power of d2w is revealed. Anyway, I am so close to having the most amazing query and list system. Basically any list can be created with its own query and list settings! This give a user the ability to create any kind of list interface. To Screen To Report To PDF To EXCEL Save Edit Run !! No more custom reports, no more I wish that list had that column or special filter. Now it's, you want it, just configure it and save! This is totally changing my legacy product to be both simpler and much more powerful! Thank you all for your patience... especially when I muck up my environment. And of course everyone's help. James ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com This email sent to p...@mac.com Attachments: - smime.p7s 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: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Problems with Jenkins on OS X
Code 18. I removed -propertyfile from the Ant task when I fixed the name of the properties file in the sample config. I got Jenkins on Linux to run just fine, but I have a strange problem with an installation on OS X. The jobs are configured correctly, and the path for wo.local.frameworks is valid. But when I start a build, I'm always getting : The framework name 'ERExtensions' does not exist. But it does exists in the path specified to wo.local.frameworks. I am going to print the properties in build.xml to see if something is strange, but I was wondering if someone had a similar problem on OS X. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca This email sent to prob...@macti.ca ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
d2w queryall page
I have a boolean in my EO 'isComplete'. If the job is completed, the person in charge marks it complete and it doesn't show up in the list of working jobs. But how can I set up the query all page to account for that. I want a line that says working, closed, all I was thinking that I needed the customcomponent and view again Ramsey's Custom and Embeded .mov. Is there a better 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: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: D2W Edit Page not Saving
Sorry to take so long to reply, just getting back from vacation... If it's passing null in takeValuesFromRequest, then I would set a breakpoint in dispatchRequest to see if the values are coming in correctly from the client side first. Ramsey On Jan 25, 2012, at 10:15 PM, Jeffrey Schmitz wrote: Looks like at that point the values are all null. Below is a partial stack trace if that helps. Could it be an editing context mix up? I tried using both a page specific editing context and the default context in Session to fetch my entity into. The D2W page comes up pre-populated with the correct values, but hitting the save button causes the error. ERMODInspectPage(ERD2WPage).validationFailedWithException(Throwable, Object, String) line: 429 ERMDInspectPageRepetition(ERDCustomComponent).validationFailedWithException(Throwable, Object, String) line: 110 ERD2WEditNumber.validationFailedWithException(Throwable, Object, String) line: 80 WOHelperFunctionKeyValueAssociation(WOKeyValueAssociation).setValue(Object, WOComponent) line: 91 WOHelperFunctionKeyValueAssociation.setValue(Object, WOComponent) line: 21 ERXWOTextField.takeValuesFromRequest(WORequest, WOContext) line: 166 ERD2WEditNumber(WOComponent).takeValuesFromRequest(WORequest, WOContext) line: 1051 WOComponentReference.takeValuesFromRequest(WORequest, WOContext) line: 119 ERXSwitchComponent.takeValuesFromRequest(WORequest, WOContext) line: 104 WOComponentContent.takeValuesFromRequest(WORequest, WOContext) line: 26 D2WEmptyWrapper(WOComponent).takeValuesFromRequest(WORequest, WOContext) line: 1051 On Jan 25, 2012, at 10:24 AM, Ramsey Gurley wrote: Not sure what to tell you, because I don't remember ever encountering such an issue. Is it throwing the validation errors on saveChanges or on takeValues? You can find out if you stick a breakpoint into validationFailedWithException on ERD2WPage. Ramsey On Jan 24, 2012, at 5:47 AM, Jeff Schmitz wrote: Hope this isn't a double post, but my original posting seems to be in limbo somewhere... Hello board, After watching several of the excellent D2W webcasts, including Dave L's two part intro, as well as reading much of the wiki D2W docs, I thought it time to get my hands dirty with D2W. I am trying to add an ERModernLook D2W Edit page for an ApplicationState entity object, to an already created Wonder project. By using the below process I've gotten pretty close, but whenever I try to save edits from the page, it returns with errors telling me I need to enter values for most of the fields, even though values are entered in the fields. I'm sure there's some step I overlooked, but can't seem to figure it out. Any ideas? Steps to add an ERModernLook page in and already existing non-D2W Wonder App: 1. Make sure you have the following libraries imported into your project: Ajax Framework ERCoolComponents ERDirectToWeb ERModernDefaultSkin ERModernDirectToWeb ERModernLook JavaDirectToWeb JavaDTWGeneration WOLips If you don't do all the above, when you try to bring up your D2W page you'll get unable to find component errors for components such as the WOToolBar, CCAjax..., etc. 2. Add code something like this to the page from which you will access the D2W page, using your own entity instead of ApplicationState of course: public WOActionResults goToAppState() { EOQualifier appStateFetch = ApplicationState.POOL_TYPE.eq(0); appState = ApplicationState.fetchRequiredApplicationState(this.compEC, appStateFetch); EditPageInterface epi = (EditPageInterface)D2W.factory().editPageForEntityNamed(ApplicationState.ENTITY_NAME, Session()); epi.setObject(appState); epi.setNextPage(this.context().page()); return (WOActionResults)epi; } and add a corresponding link to the same page to invoke the above code: wo:WOHyperlink action=goToAppStateSet Application State/wo:WOHyperlink 3. Create a new Wonder D2W Application and from it copy the PageWrapper and MenuHeader components into your application. 4. Add the following properties to your project's Properties file er.component.clickToOpen=true wolips.password=wo AppState Edit.jpeg ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com This email sent to rgur...@smarthealth.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/jeff%40netbrackets.com This email sent to
Re: ERD2W ListExcel* with child records question
Not sure if it works with the excel generator, but it sounds like you need a grouping list repetition. Ramsey On Jan 26, 2012, at 1:17 PM, Markus Ruggiero wrote: Question about Excel Listings and how to get the data into them Model: StatementGroup -one-2-many- Statements Customer wants on pageConfiguration = ListStatementGroup an Excel link to download a group listing. That is easy, I have this kind of thing working all over my app. But now the customer wants the Statements listed under the StatementGroup. So what the customer actually wants is not ListExcelStatementGroup but ListExcelStatement for all the selected groups. Any good ideas? I currently use the following code for all my Excel download links (bound to a belowDisplayPropertyKey on several of the List* pageConfigurations) public WOActionResults downloadExcel() { ERD2WListPage parentListPage = parentListPage(); if (parentListPage != null) { EODataSource dataSource = parentListPage.displayGroup().dataSource(); D2WContext d2wContext = parentListPage.d2wContext(); String entityName = (String)d2wContext.valueForKeyPath( entity.name ); d2wContext.takeValueForKey(d2wContext.valueForKey(entity.name) + .xls, excelFileName); ListPageInterface lpi = (ListPageInterface)D2W.factory().pageForConfigurationNamed( ListExcel + entityName, session() ); lpi.setDataSource( dataSource ); lpi.setNextPage( this.context().page() ); return (WOActionResults)lpi; } return null; } I think I need to create a new dataSource for the Statements and qualify it with the dataSource from the parentListPage. How would I do this? Do I have to do this manually or is there some simple way calling the right methods? Or is there an altogether different and better way? Thanks for any help ---markus--- ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com This email sent to rgur...@smarthealth.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Is it possible to render groups in a D2WQueryPage?
I think that should be possible using section keys. The ERD2WPage javadocs explain the format. http://webobjects.mdimension.com/hudson/job/Wonder/javadoc/er/directtoweb/pages/ERD2WPage.html Ramsey On Feb 3, 2012, at 7:38 AM, James Cicenia wrote: Hello - I have on some of my query pages about 30 or so queryable attributes. Some are even custom query components. The question I have is what is the best way to group the query attributes so that I can create a better interface? It would be nice to have maybe an ajax accordian interface to show the query attribues under that group, e.g.: General Query Metric Query Date Query Or, do I have to create each QueryPage from scratch? Thanks James ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com This email sent to rgur...@smarthealth.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: hmmm, am I blind or ? Is there just a plain old D2WQueryString with popup ?
ERD2WQueryStringWithChoices maybe? On Feb 4, 2012, at 1:14 PM, James Cicenia wrote: I can't seem to find such an obvious query component. Any hints? James ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com This email sent to rgur...@smarthealth.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: DB Soft Migration
On Feb 6, 2012, at 9:09 AM, Jesse Tayler wrote: there was a demo app where you copy data from eomodel-a to eomodel-b and it takes quite a bit of time to churn, but I used that some years ago in such a case. There's also ERXJDBCUtilities._copyDatabaseDefinedByEOModelAndConnectionDictionaryToDatabaseWithConnectionDictionary, but I cannot attest to how well it works. On Feb 6, 2012, at 3:03 AM, Ron X wrote: Did anybody do this or maybe know how to do this?: I wanna to move from MySQL (not a fork like Percona) to PostgreSQL. But i can't stop the server. You mean replicate from MySQL to Postgresql on a live server that's still running inserts and updates? I've never heard of anything that does that. So i think that probably exists possibility to set up the WO or EM to write data to PostgreSQL, but read data from both of MySQL and PostgreSQL? And than i will copy all data without locking from MySQL (in a hot) to PostgreSQL. Thank you. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com This email sent to jtay...@oeinc.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com This email sent to rgur...@smarthealth.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: DB Soft Migration
May be what you can do is setup a mysql - mysql replication first, then work the EOF copy thing from the replicated database? The really tough thing that you are trying to do is to create a replication without a baseline snapshot… At some point you will have to take an outage on the production side, otherwise how are you going to switch over to the Postgres DB version of the app? -- Paul Yu Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Monday, February 6, 2012 at 4:33 PM, Ramsey Gurley wrote: On Feb 6, 2012, at 9:09 AM, Jesse Tayler wrote: there was a demo app where you copy data from eomodel-a to eomodel-b and it takes quite a bit of time to churn, but I used that some years ago in such a case. There's also ERXJDBCUtilities._copyDatabaseDefinedByEOModelAndConnectionDictionaryToDatabaseWithConnectionDictionary, but I cannot attest to how well it works. On Feb 6, 2012, at 3:03 AM, Ron X wrote: Did anybody do this or maybe know how to do this?: I wanna to move from MySQL (not a fork like Percona) to PostgreSQL. But i can't stop the server. You mean replicate from MySQL to Postgresql on a live server that's still running inserts and updates? I've never heard of anything that does that. So i think that probably exists possibility to set up the WO or EM to write data to PostgreSQL, but read data from both of MySQL and PostgreSQL? And than i will copy all data without locking from MySQL (in a hot) to PostgreSQL. Thank you. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com (mailto:Webobjects-dev@lists.apple.com)) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com This email sent to jtay...@oeinc.com (mailto:jtay...@oeinc.com) ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com (mailto:Webobjects-dev@lists.apple.com)) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com This email sent to rgur...@smarthealth.com (mailto:rgur...@smarthealth.com) ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com (mailto:Webobjects-dev@lists.apple.com)) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com This email sent to p...@mac.com (mailto: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: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
rule dependent on boolean
I am trying different iterations of this and can not get it to work. I want one displayPropertyKeys if the boolean is true and different if false. (pageConfiguration = 'ListAdRelease' and user.security.seesShortList = 'true') then use these propertyKeys (pageConfiguration = 'ListAdRelease' and user.security.seesShortList = 'false') then use these keys Obviously, this doesn't work. Where am i going wrong? Ted ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com