AjaxFlexibleFileUpload in AjaxModalDialog
Hi All, I am using an AjaxFlexibleFileUpload in an AjaxModalDialog, the first time it works fine, de second time works, but the button is not displayed like the first time, and the 3rd time the loading is starting, but then it halts. Is there something I can do like a reset of the AFU after closing the AMD? It works fine without the AMD, but then the interfacing does not feel right. Thanks in advance, Frank Stock Belgium ___ 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
Documentation Group meeting
If you want to help on documentation (Wonder, WO, WOLips), we have a group meeting on GoToMeeting in one hour (11am EST, 8am PST) today. https://www3.gotomeeting.com/join/765846726 See you there! ___ 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, WO and servlet weirdness
Sounds like the postgres plugin is not on the classpath so it is using the generic JDBC adaptor instead. Ramsey On Nov 27, 2011, at 9:22 PM, Tarun Reddy wrote: I'm having an issue with deploying my app into a tomcat6 instance against Postgresql that doesn't seem to happen with MySQL. Basically, I'm getting different ERXMigration code with a servlet than when I start it from development mode. With dev mode, I'm getting a bunch of CREATE SEQUENCE... type lines, but don't get that when deployed via servlet. Also, it appears that constraints are getting deferred in development mode but not servlet deployment, so when deployed as a servlet, I get constraint violations when creating a child record before a parent record. But it works great locally. I'm kind of at a loss... (The database isn't the issue, even though I've installed postgres on my mac and a linux box. When running the dev environment over an ssh tunnel to the linux box, it all works great) ___ 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 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: Ajax UpdateContainer stop
Unfortunately no, I'm stuck with this layout... The problem is that I'm editing a bunch of records, and the records could be edited by another app which communicates via Direct Actions, so I need to continue refreshing a big part of the page to see if the other app changes something in my records. For example if the app changes a particular state of the record I have to disable the TextField, that's why it must be inside. Matteo On Fri, Nov 25, 2011 at 1:50 AM, Paul Hoadley pa...@logicsquad.net wrote: Hi Matteo, On 24/11/2011, at 10:11 PM, Matteo Centro wrote: Looking in the Prototype documentation i saw that there are Ajax.PeriodicalUpdater#stop and Ajax.PeriodicalUpdater#start The idea was calling stop in the onFocus of the textfield and start on the onBlur but I don't know how to call those methods, I'm really terrible in JavaScript. That might work, but first: can you just take the textfields out of the AjaxUpdateContainer? -- Paul. 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
D2W Can I access Object property values from the rule system?
I need a rule like the following (pseudo code): pageConfiguration='EditMyEntity' and {the MyEntityObject has a value of 'SOMETHING' in its KIND-attribute} = displayPropertyKeys = Background: I have dozens of ElectronicDocuments. Each has a to-one reference to a DocumentType (there are many many such types). All documents behave the same, and the user is free to change the document type. However for one type of document I need to have different displayPropertyKeys. Thanks a lot ---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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: D2W Can I access Object property values from the rule system?
You should be able to put it in your session (ERXThreadStorage for example) and access it from there: pageConfiguration='EditMyEntity' and session.selectedEntity.kind = 'blah' = displayPropertyKeys = On 2011-11-28, at 8:24 AM, Markus Ruggiero wrote: I need a rule like the following (pseudo code): pageConfiguration='EditMyEntity' and {the MyEntityObject has a value of 'SOMETHING' in its KIND-attribute} = displayPropertyKeys = Background: I have dozens of ElectronicDocuments. Each has a to-one reference to a DocumentType (there are many many such types). All documents behave the same, and the user is free to change the document type. However for one type of document I need to have different displayPropertyKeys. Thanks a lot ---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: 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: D2W Can I access Object property values from the rule system?
On Nov 28, 2011, at 9:24 AM, Markus Ruggiero wrote: I need a rule like the following (pseudo code): pageConfiguration='EditMyEntity' and {the MyEntityObject has a value of 'SOMETHING' in its KIND-attribute} = displayPropertyKeys = Background: I have dozens of ElectronicDocuments. Each has a to-one reference to a DocumentType (there are many many such types). All documents behave the same, and the user is free to change the document type. However for one type of document I need to have different displayPropertyKeys. Thanks a lot ---markus--- You should be able to do something like object.documentType.typeString == 'SOMETHING' Just make sure to terminate your object and session keypaths on an attribute and not an eo. I'm not aware of any special caching done for EOs in the rule system, so that would likely result in a big pile of wasted memory. Ramsey ___ 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
Does wonder have a standard User framework?
Just wondering... You know the usual.. login/password/email reminder/basic profile Cheers 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Does wonder have a standard User framework?
No. I think it's just because there's no one size fits all when it comes to user management. ERCoreBusinessLogic handles user preferences in a mostly user agnostic way. The only assumption it makes is that your user/actor has a single int PK. I have an auth framework available on github, but even there I don't tie anything to a specific user class. The user exists in the example project just to demonstrate usage of the auth framework. Ramsey On Nov 28, 2011, at 10:57 AM, James Cicenia wrote: Just wondering... You know the usual.. login/password/email reminder/basic profile Cheers 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: http://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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Does wonder have a standard User framework?
you might want to look into apache shiro -mike On Nov 28, 2011, at 12:57 PM, James Cicenia ja...@jimijon.com wrote: Just wondering... You know the usual.. login/password/email reminder/basic profile Cheers 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: http://lists.apple.com/mailman/options/webobjects-dev/mgargano%40me.com This email sent to mgarg...@me.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: Raw Rows boolean attribute problem
Never really understood the motivation for using string as a boolean. I would have used the intBoolean prototype :) Is that possible for you to try? On 29/11/2011, at 5:08 AM, Miguel Angel Torres Avila wrote: Hi list, We have a table named OrdenServicio in which we have a field named cxp_generado_cargos_corresponsal_paga defined as varchar(5) (Postgresql) We are using Prototypes and this is the configuration in EOModeler Captura de pantalla 2011-11-28 a la(s) 11.44.43.png Everything works great but now we need to use raw rows to show some reports. If we load information directly from the OrdenServicio table we have no problems. public static NSArray reporteOrdenesDeServicioConDistinctRawRows(EOEditingContext ec, NSArray filtros){ EOAndQualifier andQual = new EOAndQualifier(filtros); EOFetchSpecification fs = new EOFetchSpecification(ENTITY_NAME,andQual, new NSArray(new Object[]{ EOSortOrdering.sortOrderingWithKey(NUMERO_ORDEN_KEY, EOSortOrdering.CompareAscending) }), true, true, null); fs.setRefreshesRefetchedObjects(true); fs.setFetchesRawRows(true); fs.setRawRowKeyPaths(new NSArrayString(NUMERO_ORDEN_KEY, CLIENTE_RAZON_SOCIAL_KEY, FECHA_CREACION_KEY, ESTATUS_KEY, CARGOS_CORRESPONSAL_PAGA_KEY, CXP_GENERADO_CARGOS_CORRESPONSAL_PAGA_KEY, FEE_PAGADERO_A_CORRESPONSAL_KEY, CXP_GENERADO_FEE_PAGADERO_A_CORRESPONSAL_KEY, CARGOS_COBRADOS_INTERMODAL_NOMBRE_CORRESPONSAL_KEY, CXP_GENERADO_CARGOS_COBRADOS_INTERMODAL_NOM_CORR_KEY)); return ec.objectsWithFetchSpecification(fs); } But, we need to load that info accessing from another table, here are de relationships between tables: OrdenServicio -- OsServicioTipo -- OsServicio We need a OsServicio's list but want to show the content of the cxp_generado_cargos_corresponsal_paga field that is on the OrdenServicio table. Here is the code of the method: public static NSArray serviciosParaListaRawRows(EOEditingContext ec, EOQualifier qualifier, NSArrayEOSortOrdering sortOrderings) { EOFetchSpecification fs = new EOFetchSpecification(ENTITY_NAME, qualifier, sortOrderings); fs.setRefreshesRefetchedObjects(true); fs.setFetchesRawRows(true); fs.setRawRowKeyPaths( new NSArrayString(OS_TIPO_SERVICIO_KEY+.+OsTipoServicio.ORDEN_SERVICIO_KEY+.+OrdenServicio.NUMERO_ORDEN_KEY, OS_TIPO_SERVICIO_KEY+.+OsTipoServicio.SERVICIO_TIPO_KEY+.+ServicioTipo.NOMBRE_KEY, PROVEEDOR_KEY+.+ SocioNegocios.RAZON_SOCIAL_KEY, ENCARGADO_KEY+.+Usuario.USUARIO_KEY, MONEDA_SIGNO_KEY, TARIFA_KEY, MONEDA_NOMBRE_KEY, ESTATUS_KEY, PARTIDA_KEY, ESTATUS_COBRO_KEY, CXP_GENERADO_COSTO_KEY, OS_TIPO_SERVICIO_KEY+.+OsTipoServicio.PARTIDA_KEY, OS_TIPO_SERVICIO_KEY+.+OsTipoServicio.ORDEN_SERVICIO_KEY+.+OrdenServicio.CXP_GENERADO_CARGOS_CORRESPONSAL_PAGA_KEY )); return ec.objectsWithFetchSpecification(fs); } In red the line to access the field. When we run the app get the following error: ERROR [WorkerThread15] - Super Administrador del Sistema::sysAdmin + com.toracom.app.components.util.ServicePendingList::filter::java.lang.IllegalStateException: value type S of attribute osTipoServicio.ordenServicio.cxpGeneradoCargosCorresponsalPaga of entity OsServicio is invalid. at com.webobjects.jdbcadaptor.JDBCColumn._fetchCorrectObject(JDBCColumn.java:321) We have no problem accessing field on the OrdenServicio table because we are getting the Order Number (OS_TIPO_SERVICIO_KEY+.+OsTipoServicio.ORDEN_SERVICIO_KEY+.+OrdenServicio.NUMERO_ORDEN_KEY). So we think the problem is the Prototype booelan because it converts from varchar to boolean when it loads to the OrdenServicio Entity but in this case we are loading data from OsServicio and there is no rule that indicates how to transform that value. I think we'll have to create a view on the database and create an entity just for this report. Any hints will be appreciated, also if you think I am right to think what is happening. Best Regards. Miguel Angel Torres. ___ 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
Re: D2W Can I access Object property values from the rule system?
On 28.11.2011, at 18:05, David Holt wrote: You should be able to put it in your session (ERXThreadStorage for example) and access it from there: pageConfiguration='EditMyEntity' and session.selectedEntity.kind = 'blah' = displayPropertyKeys = Great - and then the silly question: How do I put it there? Please some hand holding :-( ---markus--- On 2011-11-28, at 8:24 AM, Markus Ruggiero wrote: I need a rule like the following (pseudo code): pageConfiguration='EditMyEntity' and {the MyEntityObject has a value of 'SOMETHING' in its KIND-attribute} = displayPropertyKeys = Background: I have dozens of ElectronicDocuments. Each has a to-one reference to a DocumentType (there are many many such types). All documents behave the same, and the user is free to change the document type. However for one type of document I need to have different displayPropertyKeys. Thanks a lot ---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: 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: Raw Rows boolean attribute problem
Thanks Lachlan for the rapid response, The project is on production now, so we think we should find a solution without changing the table definition. Thanks again for your help. El 28/11/2011, a las 12:29, Lachlan Deck escribió: Never really understood the motivation for using string as a boolean. I would have used the intBoolean prototype :) Is that possible for you to try? On 29/11/2011, at 5:08 AM, Miguel Angel Torres Avila wrote: Hi list, We have a table named OrdenServicio in which we have a field named cxp_generado_cargos_corresponsal_paga defined as varchar(5) (Postgresql) We are using Prototypes and this is the configuration in EOModeler Captura de pantalla 2011-11-28 a la(s) 11.44.43.png Everything works great but now we need to use raw rows to show some reports. If we load information directly from the OrdenServicio table we have no problems. public static NSArray reporteOrdenesDeServicioConDistinctRawRows(EOEditingContext ec, NSArray filtros){ EOAndQualifier andQual = new EOAndQualifier(filtros); EOFetchSpecification fs = new EOFetchSpecification(ENTITY_NAME,andQual, new NSArray(new Object[]{ EOSortOrdering.sortOrderingWithKey(NUMERO_ORDEN_KEY, EOSortOrdering.CompareAscending) }), true, true, null); fs.setRefreshesRefetchedObjects(true); fs.setFetchesRawRows(true); fs.setRawRowKeyPaths(new NSArrayString(NUMERO_ORDEN_KEY, CLIENTE_RAZON_SOCIAL_KEY, FECHA_CREACION_KEY, ESTATUS_KEY, CARGOS_CORRESPONSAL_PAGA_KEY, CXP_GENERADO_CARGOS_CORRESPONSAL_PAGA_KEY, FEE_PAGADERO_A_CORRESPONSAL_KEY, CXP_GENERADO_FEE_PAGADERO_A_CORRESPONSAL_KEY, CARGOS_COBRADOS_INTERMODAL_NOMBRE_CORRESPONSAL_KEY, CXP_GENERADO_CARGOS_COBRADOS_INTERMODAL_NOM_CORR_KEY)); return ec.objectsWithFetchSpecification(fs); } But, we need to load that info accessing from another table, here are de relationships between tables: OrdenServicio -- OsServicioTipo -- OsServicio We need a OsServicio's list but want to show the content of the cxp_generado_cargos_corresponsal_paga field that is on the OrdenServicio table. Here is the code of the method: public static NSArray serviciosParaListaRawRows(EOEditingContext ec, EOQualifier qualifier, NSArrayEOSortOrdering sortOrderings) { EOFetchSpecification fs = new EOFetchSpecification(ENTITY_NAME, qualifier, sortOrderings); fs.setRefreshesRefetchedObjects(true); fs.setFetchesRawRows(true); fs.setRawRowKeyPaths( new NSArrayString(OS_TIPO_SERVICIO_KEY+.+OsTipoServicio.ORDEN_SERVICIO_KEY+.+OrdenServicio.NUMERO_ORDEN_KEY, OS_TIPO_SERVICIO_KEY+.+OsTipoServicio.SERVICIO_TIPO_KEY+.+ServicioTipo.NOMBRE_KEY, PROVEEDOR_KEY+.+ SocioNegocios.RAZON_SOCIAL_KEY, ENCARGADO_KEY+.+Usuario.USUARIO_KEY, MONEDA_SIGNO_KEY, TARIFA_KEY, MONEDA_NOMBRE_KEY, ESTATUS_KEY, PARTIDA_KEY, ESTATUS_COBRO_KEY, CXP_GENERADO_COSTO_KEY, OS_TIPO_SERVICIO_KEY+.+OsTipoServicio.PARTIDA_KEY, OS_TIPO_SERVICIO_KEY+.+OsTipoServicio.ORDEN_SERVICIO_KEY+.+OrdenServicio.CXP_GENERADO_CARGOS_CORRESPONSAL_PAGA_KEY )); return ec.objectsWithFetchSpecification(fs); } In red the line to access the field. When we run the app get the following error: ERROR [WorkerThread15] - Super Administrador del Sistema::sysAdmin + com.toracom.app.components.util.ServicePendingList::filter::java.lang.IllegalStateException: value type S of attribute osTipoServicio.ordenServicio.cxpGeneradoCargosCorresponsalPaga of entity OsServicio is invalid. at com.webobjects.jdbcadaptor.JDBCColumn._fetchCorrectObject(JDBCColumn.java:321) We have no problem accessing field on the OrdenServicio table because we are getting the Order Number (OS_TIPO_SERVICIO_KEY+.+OsTipoServicio.ORDEN_SERVICIO_KEY+.+OrdenServicio.NUMERO_ORDEN_KEY). So we think the problem is the Prototype booelan because it converts from varchar to boolean when it loads to the OrdenServicio Entity but in this case we are loading data from OsServicio and there is no rule that indicates how to transform that value. I think we'll have to create a view on the database and create an entity just for this report. Any hints will be appreciated, also if you think I am right to think what is happening. Best Regards. Miguel Angel Torres.
Re: D2W Can I access Object property values from the rule system?
On 2011-11-28, at 10:30 AM, Markus Ruggiero wrote: On 28.11.2011, at 18:05, David Holt wrote: You should be able to put it in your session (ERXThreadStorage for example) and access it from there: pageConfiguration='EditMyEntity' and session.selectedEntity.kind = 'blah' = displayPropertyKeys = Great - and then the silly question: How do I put it there? Please some hand holding :-( These are methods I use in my Session class: protected Project _selectedProject; public Project selectedProject() { return _selectedProject; } public void setSelectedProject(Project selectedProject) { _selectedProject = selectedProject; ERXThreadStorage.takeValueForKey(selectedProject(), selectedProject); } public void awake() { super.awake(); // if we have a selected project, keep track of it if (selectedProject() != null) { ERXThreadStorage.takeValueForKey(selectedProject(), selectedProject); } } public void sleep() { ERXThreadStorage.takeValueForKey(null, selectedProject); super.sleep(); } Then when you want to select the Entity you would do something like this (here I have a custom select component in a ListProject configuration) and I return a page with the list of activities that are associated with the selected project. You'll have to figure out where it makes sense for your entity to be selected in your app. public WOComponent view() { Project selectedProject = (Project) object(); ((Session)session()).setSelectedProject(selectedProject); return (WOComponent) ((Session)session()).navController().listActivities(); } You will find additional examples in BugTracker and SimpleBlog. d ---markus--- On 2011-11-28, at 8:24 AM, Markus Ruggiero wrote: I need a rule like the following (pseudo code): pageConfiguration='EditMyEntity' and {the MyEntityObject has a value of 'SOMETHING' in its KIND-attribute} = displayPropertyKeys = Background: I have dozens of ElectronicDocuments. Each has a to-one reference to a DocumentType (there are many many such types). All documents behave the same, and the user is free to change the document type. However for one type of document I need to have different displayPropertyKeys. Thanks a lot ---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: 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: Raw Rows boolean attribute problem
On 29/11/2011, at 5:39 AM, Miguel Angel Torres Avila wrote: Thanks Lachlan for the rapid response, The project is on production now, so we think we should find a solution without changing the table definition. Sure. Perhaps you could add a calculated field to the model (rather than a table view) to transform the string to int / boolean. Lachlan Deck lachlan.d...@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
Re: Does wonder have a standard User framework?
Hmmm That looks interesting Thanks James On Nov 28, 2011, at 12:11 PM, Michael Gargano wrote: you might want to look into apache shiro -mike On Nov 28, 2011, at 12:57 PM, James Cicenia ja...@jimijon.com wrote: Just wondering... You know the usual.. login/password/email reminder/basic profile Cheers 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: http://lists.apple.com/mailman/options/webobjects-dev/mgargano%40me.com This email sent to mgarg...@me.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
ERXLongResponse and IE
Hi List, I have a ERXLongResponse page that waits for the generation of a PDF report and then returns it. It has been working well for years. Suddenly last week I started getting calls from some Internet Explorer users saying that the PDF source (%PDF-1.4...) shows up in the browser window when they try a download. One user said they were able to fix it in IE by going to: Tools/Internet Options/Security tab/Custom Level button/Downloads/ set Automatic prompting for file downloads to Enable If remove the ERXLongResponse and return the report file directly, it works fine. Has anyone else run into this issue? Any ideas? Thank you, Steve Peery ___ 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: ERXLongResponse and IE
The only thing it could be is a difference in the headers returned. You can log them out in dispatchRequest. On 2011-11-28, at 11:28 AM, Steve Peery wrote: Hi List, I have a ERXLongResponse page that waits for the generation of a PDF report and then returns it. It has been working well for years. Suddenly last week I started getting calls from some Internet Explorer users saying that the PDF source (%PDF-1.4...) shows up in the browser window when they try a download. One user said they were able to fix it in IE by going to: Tools/Internet Options/Security tab/Custom Level button/Downloads/ set Automatic prompting for file downloads to Enable If remove the ERXLongResponse and return the report file directly, it works fine. Has anyone else run into this issue? Any ideas? Thank you, Steve Peery ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects 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
What causes a ZERO in the ID ?
Hello - A random problem has started cropping up in our very old reliable application. I have a to-one relationship with nullify as its delete rule and on the to-many side I have a cascade delete rule. But, somehow, the id is getting set to ZERO which causes all kinds of havoc. Any thoughts? 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: D2W Can I access Object property values from the rule system?
On 28.11.2011, at 19:52, David Holt wrote: Then when you want to select the Entity you would do something like this (here I have a custom select component in a ListProject configuration) and I return a page with the list of activities that are associated with the selected project. You'll have to figure out where it makes sense for your entity to be selected in your app. public WOComponent view() { Project selectedProject = (Project) object(); ((Session)session()).setSelectedProject(selectedProject); return (WOComponent) ((Session)session()).navController().listActivities(); } David, Thanks a lot for your input. However my problem lies exactly here (your view() action). I have a plain auto generated ListPage and the user clicks on the edit-icon on one of the rows. Would I need a custom property level component for the edit icon so that I could put some code like yours into or is there an other (plain D2W) way to accomplish this? How do I intercept the action before the EditPage is created but after the user has clicked the selected row? Probably not seeing the forest for the trees anymore. When I am tired I tend to confuse simple things. ---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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: What causes a ZERO in the ID ?
What database platform? On Nov 28, 2011, at 3:37 PM, James Cicenia wrote: Hello - A random problem has started cropping up in our very old reliable application. I have a to-one relationship with nullify as its delete rule and on the to-many side I have a cascade delete rule. But, somehow, the id is getting set to ZERO which causes all kinds of havoc. Any thoughts? 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: http://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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: D2W Can I access Object property values from the rule system?
On 2011-11-28, at 1:39 PM, Markus Ruggiero wrote: On 28.11.2011, at 19:52, David Holt wrote: Then when you want to select the Entity you would do something like this (here I have a custom select component in a ListProject configuration) and I return a page with the list of activities that are associated with the selected project. You'll have to figure out where it makes sense for your entity to be selected in your app. public WOComponent view() { Project selectedProject = (Project) object(); ((Session)session()).setSelectedProject(selectedProject); return (WOComponent) ((Session)session()).navController().listActivities(); } David, Thanks a lot for your input. However my problem lies exactly here (your view() action). I have a plain auto generated ListPage and the user clicks on the edit-icon on one of the rows. Would I need a custom property level component for the edit icon so that I could put some code like yours into you could do this. The view() method above comes from a custom hyperlink in the list page. or is there an other (plain D2W) You're not using Wonder?? way to accomplish this? How do I intercept the action before the EditPage is created NextPageDelegate allows you to do some customization before returning the NextPage. Your list page calls this when your Edit button is pressed. I would do it here if you don't want a custom button. but after the user has clicked the selected row? Probably not seeing the forest for the trees anymore. When I am tired I tend to confuse simple things. In that case you may want to try Ramsey's suggestion before going any further with mine :-) d ---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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Postgresql, WO and servlet weirdness
Ramsey, you nailed it. I included the plugin on the sub frameworks but not the main project and hence they weren't included in the war. Thank you! Tarun On Mon, Nov 28, 2011 at 9:19 AM, Ramsey Gurley ramseygur...@gmail.comwrote: Sounds like the postgres plugin is not on the classpath so it is using the generic JDBC adaptor instead. Ramsey On Nov 27, 2011, at 9:22 PM, Tarun Reddy wrote: I'm having an issue with deploying my app into a tomcat6 instance against Postgresql that doesn't seem to happen with MySQL. Basically, I'm getting different ERXMigration code with a servlet than when I start it from development mode. With dev mode, I'm getting a bunch of CREATE SEQUENCE... type lines, but don't get that when deployed via servlet. Also, it appears that constraints are getting deferred in development mode but not servlet deployment, so when deployed as a servlet, I get constraint violations when creating a child record before a parent record. But it works great locally. I'm kind of at a loss... (The database isn't the issue, even though I've installed postgres on my mac and a linux box. When running the dev environment over an ssh tunnel to the linux box, it all works great) ___ 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
Re: What causes a ZERO in the ID ?
MySQL James On Nov 28, 2011, at 4:00 PM, Kieran Kelleher wrote: What database platform? On Nov 28, 2011, at 3:37 PM, James Cicenia wrote: Hello - A random problem has started cropping up in our very old reliable application. I have a to-one relationship with nullify as its delete rule and on the to-many side I have a cascade delete rule. But, somehow, the id is getting set to ZERO which causes all kinds of havoc. Any thoughts? 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: http://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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Problem loading Ajax frameworks
As I never did resolve this one, I thought I'd resurrect this thread.. The long and the short of it is, How I can get my App to generate Wonder Framework javascript (and other static resource) references that point here: /WebObjects/Frameworks/... (e.g. script src=/WebObjects/Frameworks/Ajax.framework/WebServerResources/prototype.js) instead of here: /WebObjects/myApp.woa/Frameworks... (e.g. script src=/WebObjects/netBrackets.woa/Frameworks/Ajax.framework/WebServerResources/prototype.js) So that the references match where the Wonder framework resources are installed when following these instructions: http://wiki.objectstyle.org/confluence/display/WO/Building+and+Installing+a+Framework+with+Ant I tried Chucks suggestion... You probably have the wrong setting in build.properties, try this: frameworksBaseURL=/WebObjects/Frameworks to no avail as the generated references are still looking under the project specific directory. any other ideas? Jeff On Nov 21, 2011, at 10:40 PM, Stavros Panidis wrote: Dear Jeremy, Many thanks, this problem solved. Actually in this server static pages are in /Library/Server/Web/Data/Sites/Mysite so I copied WebServerResources in WebObjects inside Mysite folder. Now it works. Best regards Stavros On 21 Νοε 2011, at 8:28 μ.μ., Jérémy DE ROYER [INGENCYS] wrote: Hello, Did you copy the folders WebServerResources of yours app/frameworks in the folder WebObjects of your WebServer (located in /Library/WebServer/Documents on Mac OS X Server) ? Jérémy Le 21 nov. 2011 à 19:24, Stavros Panidis a écrit : Hi, I have the following error in a deployed application (Lion server) GET http://www.mysite.com/WebObjects/myapp.woa/Frameworks/Ajax.framework/WebServerResources/prototype.js 404 (Not Found) GET http://www.mysite.com/WebObjects/myapp.woa/Frameworks/Ajax.framework/WebServerResources/wonder.js 404 (Not Found) GET http://www.mysite.com/WebObjects/myapp.woa/Frameworks/Ajax.framework/WebServerResources/effects.js 404 (Not Found) ReferenceError Can't find variable ASB ReferenceError Can't find variable ASB ReferenceError Can't find variable AUC The application works fine in other aspects. Also at the same deployment machine css files are not loaded in JAVA MONITOR when run as instance. Has to do with permissions? Any other help? Many thanks in advance Stavros ___ 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/jeremy.deroyer%40ingencys.net This email sent to jeremy.dero...@ingencys.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/jeffandmonica%40mac.com This email sent to jeffandmon...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
AjaxFileUpload UploadProgress binding
Hello List,Does anyone have an example of using an AjaxFileUpload where an actual file is uploaded?I have looked at the Ajax Example in Project Wonder, in particular FileUploadExample, and I used identical bindings in my test, but my upload is stuck after displaying the "Upload Starting... " message:AjaxFileUpload : AjaxFileUpload { allowCancel = true; uploadProgress = uploadProgress; finishedAction = uploadFinished;}where uploadProgress is just defined as:public AjaxUploadProgress _uploadProgress;If I use AjaxFlexibleFileUpload, the file is uploaded properly, but I would rather use the standard upload.Anyone has any hints?Thanks for your help,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: AjaxFileUpload UploadProgress binding
Hello, I am working on an HTML5 drag and drop multi file upload component. I can share or try to submit it to WOnder if there is interest. Michael Kondratov Aspire Auctions, Inc. On Nov 28, 2011, at 10:39 PM, Mai Nguyen wrote: Hello List, Does anyone have an example of using an AjaxFileUpload where an actual file is uploaded? I have looked at the Ajax Example in Project Wonder, in particular FileUploadExample, and I used identical bindings in my test, but my upload is stuck after displaying the Upload Starting... message: upload3.tiff AjaxFileUpload : AjaxFileUpload { allowCancel = true; uploadProgress = uploadProgress; finishedAction = uploadFinished; } where uploadProgress is just defined as: public AjaxUploadProgress _uploadProgress; If I use AjaxFlexibleFileUpload, the file is uploaded properly, but I would rather use the standard upload. Anyone has any hints? Thanks for your help, 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/michael%40aspireauctions.com This email sent to mich...@aspireauctions.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: AjaxFileUpload UploadProgress binding
Hi Michael, If you can share it on the list, we could send you some feedback. Moving forward, it would be nice to have such a component, but would it integrate well into an existing component? thanks, mai On Nov 28, 2011, at 7:41 PM, Michael Kondratov wrote: Hello, I am working on an HTML5 drag and drop multi file upload component. I can share or try to submit it to WOnder if there is interest. Michael Kondratov Aspire Auctions, Inc. On Nov 28, 2011, at 10:39 PM, Mai Nguyen wrote: Hello List, Does anyone have an example of using an AjaxFileUpload where an actual file is uploaded? I have looked at the Ajax Example in Project Wonder, in particular FileUploadExample, and I used identical bindings in my test, but my upload is stuck after displaying the Upload Starting... message: upload3.tiff AjaxFileUpload : AjaxFileUpload { allowCancel = true; uploadProgress = uploadProgress; finishedAction = uploadFinished; } where uploadProgress is just defined as: public AjaxUploadProgress _uploadProgress; If I use AjaxFlexibleFileUpload, the file is uploaded properly, but I would rather use the standard upload. Anyone has any hints? Thanks for your help, 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/michael%40aspireauctions.com This email sent to mich...@aspireauctions.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: AjaxFileUpload UploadProgress binding
I will post it to the list tomorrow. The component is loosely based on the current one. It is much more useful (I feel) due to ability to just drop files into a designed area instead of clicking etc… Michael On Nov 28, 2011, at 10:53 PM, Mai Nguyen wrote: Hi Michael, If you can share it on the list, we could send you some feedback. Moving forward, it would be nice to have such a component, but would it integrate well into an existing component? thanks, mai On Nov 28, 2011, at 7:41 PM, Michael Kondratov wrote: Hello, I am working on an HTML5 drag and drop multi file upload component. I can share or try to submit it to WOnder if there is interest. Michael Kondratov Aspire Auctions, Inc. On Nov 28, 2011, at 10:39 PM, Mai Nguyen wrote: Hello List, Does anyone have an example of using an AjaxFileUpload where an actual file is uploaded? I have looked at the Ajax Example in Project Wonder, in particular FileUploadExample, and I used identical bindings in my test, but my upload is stuck after displaying the Upload Starting... message: upload3.tiff AjaxFileUpload : AjaxFileUpload { allowCancel = true; uploadProgress = uploadProgress; finishedAction = uploadFinished; } where uploadProgress is just defined as: public AjaxUploadProgress _uploadProgress; If I use AjaxFlexibleFileUpload, the file is uploaded properly, but I would rather use the standard upload. Anyone has any hints? Thanks for your help, 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/michael%40aspireauctions.com This email sent to mich...@aspireauctions.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