Re: Hyperlinks and action methods

2008-03-31 Thread Lachlan Deck
On 01/04/2008, at 2:14 PM, Mike Schrag wrote: No -- this is a component action, not a direct action (it has to have the object being referenced). Right, overlooked that. If you want to do it on a direct action, just do a normal hyperlink with ?personID=person.primaryKey and reload the perso

Re: [OT] Limiting File Upload Sizes

2008-03-31 Thread Chuck Hill
On Mar 31, 2008, at 6:46 PM, Miguel Arroz wrote: Hi! The KISS solution: configure the maximum size of a request in Apache itself, using the LimitRequestBody option in the configuration. You should find a way to handle nicely the error pages the user will see when submitting a file too

Re: Hyperlinks and action methods

2008-03-31 Thread Archibald Singleton
On 01 Apr 2008, at 00:14, Mike Schrag wrote: No -- this is a component action, not a direct action (it has to have the object being referenced). Right, overlooked that. If you want to do it on a direct action, just do a normal hyperlink with ?personID=person.primaryKey and reload the perso

Re: binding validation problem

2008-03-31 Thread Mike Schrag
That should just work, so I'm not sure what the problem is there, offhand ... Not sure what version of WOLips you're using, though. ms On Mar 31, 2008, at 11:26 PM, Archibald Singleton wrote: On 01 Apr 2008, at 00:16, Mike Schrag wrote: filename = "~$currentItem + \".gif\""/> OGNL doesn't u

Re: binding validation problem

2008-03-31 Thread Archibald Singleton
On 01 Apr 2008, at 00:16, Mike Schrag wrote: filename = "~$currentItem + \".gif\""/> OGNL doesn't use $, it just uses the binding name, so "~$currentItem + \".gif\"" is invalid, it should be "~currentItem + '.gif'" (single tick instead of quote is a lot easier with OGNL, too -- a lot less e

Re: binding validation problem

2008-03-31 Thread Mike Schrag
filename = "~$currentItem + \".gif\""/> OGNL doesn't use $, it just uses the binding name, so "~$currentItem + \".gif\"" is invalid, it should be "~currentItem + '.gif'" (single tick instead of quote is a lot easier with OGNL, too -- a lot less escaping). ms ___

Re: Hyperlinks and action methods

2008-03-31 Thread Mike Schrag
No -- this is a component action, not a direct action (it has to have the object being referenced). Right, overlooked that. If you want to do it on a direct action, just do a normal hyperlink with ?personID=person.primaryKey and reload the person in the DA. Yeah, that's what I was doing bu

binding validation problem

2008-03-31 Thread Archibald Singleton
Hello, I've got the following subcomponent in my Main component for which WOLips is giving me a "There is no key $currentItem in Main" error message. = "~$currentItem + \".gif\""/> The problem is that the key does exist (private ivar with vanilla accessor methods) and in fact WOLips doe

Re: Hyperlinks and action methods

2008-03-31 Thread Archibald Singleton
On 31 Mar 2008, at 23:51, Mike Schrag wrote: No -- this is a component action, not a direct action (it has to have the object being referenced). Right, overlooked that. If you want to do it on a direct action, just do a normal hyperlink with ?personID=person.primaryKey and reload the per

Re: Hyperlinks and action methods

2008-03-31 Thread Mike Schrag
No -- this is a component action, not a direct action (it has to have the object being referenced). If you want to do it on a direct action, just do a normal hyperlink with ?personID=person.primaryKey and reload the person in the DA. ms On Mar 31, 2008, at 10:49 PM, Archibald Singleton wr

Re: Hyperlinks and action methods

2008-03-31 Thread Archibald Singleton
Is this supposed to work with a direct action? E.g.: "$person">edit person I'm asking because I tried it and the person binding just yield and entree attribute for the tag. Looking at the implementation of ERXDataHyperlink I don't seem to see any reason why it wouldn't work. So, what am

Re: [OT] Limiting File Upload Sizes

2008-03-31 Thread Miguel Arroz
Hi! The KISS solution: configure the maximum size of a request in Apache itself, using the LimitRequestBody option in the configuration. You should find a way to handle nicely the error pages the user will see when submitting a file too large. This of course depends on your setup, if

[OT] Limiting File Upload Sizes

2008-03-31 Thread Owen McKerrow
Hi All, Just wondering if anyone has any recommendations on what to use to limit the size of files uses upload. Im currently looking at http://swfupload.org/. has anyone had any experience with it, in particular getting it to play nice with a WOApp ? Or is there something better out there ?

Why does Partner think it is a Catalog ?

2008-03-31 Thread James Cicenia
Hello - I am a bit baffled. I have a construct like catalog().products(). When it tries to fault in products it gives me an error stating that Catalog doesn't like having "publish" set. Of course not because that attribute is only in product. Then on one of my searches it tells me that par

Re: XML decoding using a mapping file

2008-03-31 Thread Chuck Hill
On Mar 31, 2008, at 3:35 PM, David Holt wrote: I am attempting to decode the following return from a website and I am OH SO CLOSE :-) This is the xml: 2 18326189 18061844 I am trying to get the list of IDs, but I can only get it as far as the array "IdList". In my HTML component, I

XML decoding using a mapping file

2008-03-31 Thread David Holt
I am attempting to decode the following return from a website and I am OH SO CLOSE :-) This is the xml: 2 18326189 18061844 I am trying to get the list of IDs, but I can only get it as far as the array "IdList". In my HTML compone

Re: Is Adding EOAttribute to EOEntity Thread Safe?

2008-03-31 Thread Dov Rosenberg
It took us a long time to figure this out. It was indeed caused by improper locking in our app. We don't use Project Wonder, but we did use the LockScreamingEditingContext to help us find the problem. That helped a bunch - another useful gem from Practical WebObjects!!! Dov Rosenberg On 3/31/08

Re: Is Adding EOAttribute to EOEntity Thread Safe?

2008-03-31 Thread Chuck Hill
On Mar 31, 2008, at 2:31 PM, Dov Rosenberg wrote: That has been our experience - no warning just a sudden shutdown of the app. When deployed out as a servlet the behavior is such that any other app including tomcat still responds but the WO app is effectively dead. That is a locking defect

Re: Is Adding EOAttribute to EOEntity Thread Safe?

2008-03-31 Thread Dov Rosenberg
That has been our experience - no warning just a sudden shutdown of the app. When deployed out as a servlet the behavior is such that any other app including tomcat still responds but the WO app is effectively dead. Thanks Dov Rosenberg On 3/31/08 5:25 PM, "Chuck Hill" <[EMAIL PROTECTED]> wrot

Re: Is Adding EOAttribute to EOEntity Thread Safe?

2008-03-31 Thread Chuck Hill
EOF is single threaded at this level. So the threads just wait for the lock. If you have mis-matched locks (e.g. lock the db context but never unlock it), the app just deadlocks. No timeout, no exception. Just a warm, fuzzy deadlock. try... finally is your friend. Chuck On Mar 31, 2

Re: Is Adding EOAttribute to EOEntity Thread Safe?

2008-03-31 Thread Dov Rosenberg
Is there a queue where requests get stored in or some sort of timeout waiting for the lock to release? Or is the failure an outright exception? Dov Rosenberg On 3/31/08 4:25 PM, "Chuck Hill" <[EMAIL PROTECTED]> wrote: > > On Mar 31, 2008, at 1:15 PM, Dov Rosenberg wrote: > >> I guess the real

Re: DirectAction problem

2008-03-31 Thread David LeBer
On 31-Mar-08, at 5:00 PM, Yury Peskin wrote: List, I keep getting an error that a DirectAction method does not exist, but only on the production server. But I can get to it when I call it from my development machine. Anybody got any ideas? The URL you are calling is wrong? ;david -- Davi

Re: derby examples

2008-03-31 Thread Art Isbell
On Mar 30, 2008, at 10:12 PM, Francois Bientz wrote: Should the EO (Derby) examples work for WO5.4.1 ? I was able to get the ThinkMovies example to work, but it wasn't straightforward. The example project build paths and jar dependencies were incorrect. The name of the Derby bin directo

FW: DirectAction problem

2008-03-31 Thread Yury Peskin
Please disregard this. I already figured it out. Thanks again, Yury -Original Message- From: Yury Peskin [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2008 4:01 PM To: 'WebObjects Development' Subject: DirectAction problem List, I keep getting an error that a DirectAction method doe

DirectAction problem

2008-03-31 Thread Yury Peskin
List, I keep getting an error that a DirectAction method does not exist, but only on the production server. But I can get to it when I call it from my development machine. Anybody got any ideas? Thanks, Yury ___ Do not post admin requests to the list.

Re: Is Adding EOAttribute to EOEntity Thread Safe?

2008-03-31 Thread Chuck Hill
On Mar 31, 2008, at 1:15 PM, Dov Rosenberg wrote: I guess the real problem is trying to run multithreaded apps against a single threaded EOF stack. Unless we start using multiple EOF stacks we could potentially have other performance problems lurking in the shadows More likely from slow f

Re: Is Adding EOAttribute to EOEntity Thread Safe?

2008-03-31 Thread Dov Rosenberg
I guess the real problem is trying to run multithreaded apps against a single threaded EOF stack. Unless we start using multiple EOF stacks we could potentially have other performance problems lurking in the shadows Thanks Dov Rosenberg On 3/31/08 3:39 PM, "Chuck Hill" <[EMAIL PROTECTED]> wrot

Re: Is Adding EOAttribute to EOEntity Thread Safe?

2008-03-31 Thread Chuck Hill
That is how you lock the EOF stack. While the stack is locked, no other thread can fetch / save. This same lock happens during all fetch or save operations. Chuck On Mar 31, 2008, at 12:09 PM, Dov Rosenberg wrote: Taking a look at the new code – I agree it looks a bit safer than the old

Re: Is Adding EOAttribute to EOEntity Thread Safe?

2008-03-31 Thread Dov Rosenberg
Taking a look at the new code ­ I agree it looks a bit safer than the old code. What is the implication for doing an EODatabaseContext lock in a multi threaded app? Will that cause any problems if multiple sessions are trying to do something similar concurrently? Dov Rosenberg On 3/30/08 5:56 PM

Re: Tips: Some Useful MacOSX tools.

2008-03-31 Thread Jonathan 'Wolf' Rentzsch
On Mar 31, 2008, at 12:43 PM, Pierce T. Wetter III wrote: I haven't tried the new single file format style tags, but old style tags don't seem to confuse Coda, from Panic. Of course, it doesn't look in the .wod file to figure out if things are FORM/ INPUT, etc., but nothing has done that sin

Tips: Some Useful MacOSX tools.

2008-03-31 Thread Pierce T. Wetter III
I haven't tried the new single file format style tags, but old style tags don't seem to confuse Coda, from Panic. Of course, it doesn't look in the .wod file to figure out if things are FORM/INPUT, etc., but nothing has done that since GoLive. Useful if you're tweaking static HTML/CSS

Re: Hyperlinks and action methods

2008-03-31 Thread Chris Meyer
Ha! Is there anything Wonder can't do? I knew there had to be something there already !!! Extra Very Elegant. On Mon, Mar 31, 2008 at 5:58 AM, Mike Schrag <[EMAIL PROTECTED]> wrote: > In Wonder, ERXDataHyperlink -- > edit > person > > You can pass in multiple variables, as well ... > > ms > > On

Re: Hyperlinks and action methods

2008-03-31 Thread Mike Schrag
In Wonder, ERXDataHyperlink -- "$person">edit person You can pass in multiple variables, as well ... ms On Mar 31, 2008, at 12:51 AM, Chris Meyer wrote: > Code comment: Ooo ick - using public ivars in your api! - wrap that > person with accessors! If I'm lazy enough to want to avoid writin

[ANN] WOWODC 2008

2008-03-31 Thread Pascal Robert
WOWODC, our annual WebObjects conference, is being held on June 7th and 8th 2008, the weekend before WWDC, at the Parc 55 Hotel in San Franscico. Join us for two days of learning and discussion hosted by the WebObjects community's leading experts! When: June 7th and June 8th. Where: Parc 5

derby examples

2008-03-31 Thread Francois Bientz
Should the EO (Derby) examples work for WO5.4.1 ? But what must be written in this properties file and where put this file ? Thanks franc --- Re: derby examples Tom Pelaia Tue, 20 Nov 2007 10:08:39 -0800 Thanks for the feedback. You are correct. The part that I was missing was that I needed to s