Re: Multiple File upload read

2010-02-23 Thread Timo Hoepfner
Hi Fabian, take a look at WORequest#isMultipartFormData, WORequest#multipartIterator, WOMultipartIterator and WOMultipartIterator.WOFormData For inspiration, you colud take a look into AjaxFileUploadRequestHandler in Wonder's Ajax framework. Timo Am 23.02.2010 um 18:59 schrieb Fabián M

Re: "failed to provide new primary keys for entity"

2010-02-23 Thread Johnny Miller
On Feb 23, 2010, at 8:32 PM, Chuck Hill wrote: > > On Feb 23, 2010, at 9:05 PM, Johnny Miller wrote: > >> >> On Feb 23, 2010, at 5:47 PM, Chuck Hill wrote: >> >>> >>> On Feb 23, 2010, at 7:38 PM, Johnny Miller wrote: >>> Hi Kieran, Yeah, I haven't changed anything except to

Re: "failed to provide new primary keys for entity"

2010-02-23 Thread Chuck Hill
On Feb 23, 2010, at 9:05 PM, Johnny Miller wrote: On Feb 23, 2010, at 5:47 PM, Chuck Hill wrote: On Feb 23, 2010, at 7:38 PM, Johnny Miller wrote: Hi Kieran, Yeah, I haven't changed anything except to add an attribute to the intermediary table and I also exposed the two to-one relation

Re: "failed to provide new primary keys for entity"

2010-02-23 Thread Johnny Miller
On Feb 23, 2010, at 5:47 PM, Chuck Hill wrote: > > On Feb 23, 2010, at 7:38 PM, Johnny Miller wrote: > >> Hi Kieran, >> >> Yeah, I haven't changed anything except to add an attribute to the >> intermediary table and I also exposed the two to-one relationships in the >> intermediary table as

Re: Full URL on dev

2010-02-23 Thread Mike Schrag
I assume he means via API? context()._generateCompleteURLs(); String url = context().urlWithRequestHandlerKey(..) context()._generateRelativeURLs(); ms On Feb 23, 2010, at 10:08 PM, Kieran Kelleher wrote: > Open the launch config in Eclipse. Go to the WO tab and change the WOPort > launch prop

Re: "failed to provide new primary keys for entity"

2010-02-23 Thread Chuck Hill
On Feb 23, 2010, at 7:38 PM, Johnny Miller wrote: Hi Kieran, Yeah, I haven't changed anything except to add an attribute to the intermediary table and I also exposed the two to-one relationships in the intermediary table as class properties. Are the attributes these based on still not ex

Re: "failed to provide new primary keys for entity"

2010-02-23 Thread Johnny Miller
Hi Kieran, Yeah, I haven't changed anything except to add an attribute to the intermediary table and I also exposed the two to-one relationships in the intermediary table as class properties. I just deleted everything and recreated it again and I'm still getting the same error. I don't see an

Re: "failed to provide new primary keys for entity"

2010-02-23 Thread Kieran Kelleher
On Feb 23, 2010, at 3:55 PM, Johnny Miller wrote: > Actually, there is no "primary" key. There are just the two > "multi-occurence" keys for the two foreign keys that are propagated by the > relationships. Is the join table setup **exactly** the same as if you let Entity Modeler create it au

Re: Profiles, jobs and projects on wocommunity.org

2010-02-23 Thread Pascal Robert
Le 2010-02-22 à 08:56, Pascal Robert a écrit : > > Le 10-02-22 à 08:51, David Avendasora a écrit : > >> This is great Pascal! >> >> Two questions: >> >> 1) How do you get to the members listing from the main page of the site (not >> following the below links) > > I will add the links to the

Full URL on dev

2010-02-23 Thread James Cicenia
Hello - How do I get the full absolute url in my dev environment... I need to get something like: http://10.0.1.200:64420/cgi-bin/WebObjects/ . Especially the dynamic port number Thanks James ___ Do not post admin requests to the list. They wil

Chrome chokes on gzipped JS

2010-02-23 Thread Ramsey Gurley
Just a heads up for any of you guys supporting Chrome out there. If you're using gzip response compression, chrome chokes on the gzipped JS files. Specifically, it fails saying Uncaught SyntaxError: Unexpected token ILLEGAL It indicates failure on the last line of each script. And in some

Re: "failed to provide new primary keys for entity"

2010-02-23 Thread Don Lindsay
Well I dont know about that. you can add public NSDictionary databaseContextNewPrimaryKey(EODatabaseContext dbCtxt, Object object, EOEntity entity) { to your application.java file and create your key values. I have done this in the past for older projects. Don On Feb 23, 2010, a

Re: Lazy optional relationship creation on EO accessor

2010-02-23 Thread David Avendasora
On Feb 23, 2010, at 3:07 PM, Jon Nolan wrote: > David Avendasora wrote: >> On Feb 23, 2010, at 12:27 PM, Jon Nolan wrote: >> >>> In this case I don't want to use awakeFromInsertion as the relationship is >>> very, very optional (i.e. small % of entities have not-null relationship.) >> >> I'm

Re: "failed to provide new primary keys for entity"

2010-02-23 Thread Johnny Miller
Actually, there is no "primary" key. There are just the two "multi-occurence" keys for the two foreign keys that are propagated by the relationships. I thought that was OK because that's the default when you create a multi-to-multi join. And I do the exact same thing in another model, which is

Re: "failed to provide new primary keys for entity"

2010-02-23 Thread Don Lindsay
This sounds like you have a compound primary key? A primary key with more than one field or that your primary key is not something that WebObjects can generate (string, etc). The easiest way to use web objects is to create a primary key that is a number and use it. Not use other fields in

Re: Error on deployment - Can't connect to window server

2010-02-23 Thread James Cicenia
Thanks! I just add and edit the code... I will look at what the heck they were including j On Feb 23, 2010, at 2:44 PM, Mike Schrag wrote: > somehow whatever you did with your app is touching EOUserInterfaceParameters, > which touches the java.awt.Dimension class, which tries to initialize AWT

Re: Oracle connection

2010-02-23 Thread Don Lindsay
I have seen this before. it is not an issue with the oracle plugin. What the ER is trying to do is re-fault all your objects for webobjects. This results in an out of memory error. I would say, just guessing because I cannot see your EO Model. You have too many bidirectional relationshi

Re: Error on deployment - Can't connect to window server

2010-02-23 Thread Mike Schrag
somehow whatever you did with your app is touching EOUserInterfaceParameters, which touches the java.awt.Dimension class, which tries to initialize AWT. you can avoid this by setting -Djava.awt.headless=true in your VM params, but you're probably masking an actual problem. Some framework you're

Error on deployment - Can't connect to window server

2010-02-23 Thread James Cicenia
This is a very simple app I am using to try to learn and test some AJAX stuff. I have never seen this error before and I certainly don't use Windows. Thanks James Feb 23 14:19:37 N/A[N/A] (ERXNSLogLog4jBridge.java:43) WARN NSLog - A fatal exception occurred: Can't connect to window server -

Re: Lazy optional relationship creation on EO accessor

2010-02-23 Thread Jon Nolan
David Avendasora wrote: On Feb 23, 2010, at 12:27 PM, Jon Nolan wrote: In this case I don't want to use awakeFromInsertion as the relationship is very, very optional (i.e. small % of entities have not-null relationship.) I'm I missing something here? What does being optional (or even very, ve

"failed to provide new primary keys for entity"

2010-02-23 Thread Johnny Miller
Hi, I have a many to many join with flattened relationships that I created using the new relationship wizard in Entity Modeler. I then added a class property to the intermediary table and changed the class name from EOGeneric record to an appropriate one for the entity and package. Basically

Re: Oracle connection

2010-02-23 Thread Mark Ritchie
Hey Fabián! On 23/Feb/2010, at 11:16 AM, Fabián Montealegre Carvajal wrote: > The production environment is tomcat 5.5, java jdk 1.5, Windows Server 2003 > standard revision SP 2. Historically, Windows has been a terrible platform for deployment. In one case, I had better throughput on my lapt

Re: Oracle connection

2010-02-23 Thread Fabián Montealegre Carvajal
Sorry for not giving all the details. We have a WO 5.3 Wonder app. It's connected to a Oracle 10G db. It is allowing concurrent request handling (setAllowsConcurrentRequestHandling(true)). This is the DB connection: model.URL=jdbc:oracle:thin:@xxx.xxx.xxx.xxx:1521:bdtouse model.DBUser=user model

Re: Lazy optional relationship creation on EO accessor

2010-02-23 Thread David Avendasora
On Feb 23, 2010, at 12:27 PM, Jon Nolan wrote: > In this case I don't want to use awakeFromInsertion as the relationship is > very, very optional (i.e. small % of entities have not-null relationship.) I'm I missing something here? What does being optional (or even very, very optional) have to

Re: Lazy optional relationship creation on EO accessor

2010-02-23 Thread Kieran Kelleher
Just throwing this out there into the mix of replies... this is unaltered copy/paste from production code . YMMV ... (btw, the OptimisticLockAction makes sure that another thread does not create at the same time) /** * @return CTTextBlob lazily created textTemplate rel

Multiple File upload read

2010-02-23 Thread Fabián Montealegre Carvajal
Hello, I'm using an applet called JUpload to upload multiple files to the server. I'm used to the WOFileUpload to handle uploads, but this time I need to read the files directly from the request because the applet just post to an URL. I remember that in PHP one just access the $_FILE global to ach

Re: Lazy optional relationship creation on EO accessor

2010-02-23 Thread Jon Nolan
David LeBer wrote: Seriously smacks of EOF commandment violations to me: See: #6, #8. I'd use awakeFromInsertion or create a cover accessor (lazyProperties(), setLazyProperties()), and in a purely naming c

Re: Lazy optional relationship creation on EO accessor

2010-02-23 Thread Chuck Hill
On Feb 23, 2010, at 9:06 AM, David LeBer wrote: On 2010-02-23, at 11:55 AM, Jon Nolan wrote: Is this sane and safe? public Properties properties() { Properties properties = super.properties(); if (properties == null) { properties = Properties.createProperties(editingContext

Re: Lazy optional relationship creation on EO accessor

2010-02-23 Thread David LeBer
On 2010-02-23, at 11:55 AM, Jon Nolan wrote: > Is this sane and safe? > > public Properties properties() { > Properties properties = super.properties(); > if (properties == null) { > properties = Properties.createProperties(editingContext()); > setPropertiesRela

Lazy optional relationship creation on EO accessor

2010-02-23 Thread Jon Nolan
Is this sane and safe? public Properties properties() { Properties properties = super.properties(); if (properties == null) { properties = Properties.createProperties(editingContext()); setPropertiesRelationship(properties); } return properties