Re: AjaxUtils.redirectTo() and IE7

2010-01-13 Thread Amedeo Mantica
I Sasha, seem to work on IE 7.0.5730.13 I get the umich login page regards Amedeo On 12/gen/2010, at 19.17, Sacha Michel Mallais wrote: Hi all, Has anyone had any issues with using AjaxUtils.redirectTo() with IE7? I'm getting this error on each page that uses redirectTo() on IE7 (typed

Re: need to add dir to classpath

2010-01-13 Thread David Avendasora
Hi Patrick, This is just a stab-in-the-dark, but can't you just drop it into the Sources directory? Dave On Jan 12, 2010, at 11:20 PM, Patrick Robinson wrote: I need to use a java library that expects to find my java keystore file (which would normally be specified by the

Re: Objects don't get initialized sometimes

2010-01-13 Thread Gennady Kushnir
may this be the reason? public void setWeight(BigDecimal aValue) { if(weight().compareTo(aValue) != 0) { if(weight().compareTo(BigDecimal.ZERO) == 0 || aValue.compareTo(BigDecimal.ZERO) == 0) _integralPresenter = null;

Re: need to add dir to classpath

2010-01-13 Thread Patrick Robinson
No, that didn't work... it just gets ignored. Thanks for the suggestion, though; it sounded promising! I thought it might result in the file's being put into Contents/Resources/Java/, which *is* in the classpath. - Patrick On Jan 13, 2010, at 6:17 AM, David Avendasora wrote: Hi Patrick,

Re: need to add dir to classpath

2010-01-13 Thread Kieran Kelleher
Another untested stab is: For development, add a project dir to the classpath. I expect that is straightforward and Eclipse will take care of it. For deployment, have a look at the APP.woa/Contents/MacOS/MacOSClassPath.txt file (or appropriate one if using other platform). When a WOA is

Re: need to add dir to classpath

2010-01-13 Thread Henrique Gomes
Some time ago I also needed a properties file on the classpath and after trying and failing to convince the build system to help me, I gave up and added -DWOEnvClassPath= to the app configuration on JavaMonitor. If you find a better way let me know :-) Henrique Gomes On Jan 13, 2010, at

WOForm or ERXForm bug ?

2010-01-13 Thread Amedeo Mantica
hi, in a secure wo/erx form the tag generates: https://HOST/cgi-bin/bla bla bla... the HOST value seem to be taken resolving machine reverse ip address, this is really bad, if I have server inside NAT i get a wrong hostname !!! Regards Amedeo ___ Do

Re: [Wonder-disc] WOForm or ERXForm bug ?

2010-01-13 Thread Mike Schrag
set ServerName on your apache to what you want it to use ms On Jan 13, 2010, at 10:19 AM, Amedeo Mantica wrote: hi, in a secure wo/erx form the tag generates: https://HOST/cgi-bin/bla bla bla... the HOST value seem to be taken resolving machine reverse ip address, this is really bad,

Re: need to add dir to classpath

2010-01-13 Thread Elizabeth Lynch
Hi Patrick How about right-clicking it and trying WOLips Tools-Include as Resource? Liz On 13 Jan 2010, at 14:30, Patrick Robinson wrote: No, that didn't work... it just gets ignored. Thanks for the suggestion, though; it sounded promising! I thought it might result in the file's being

Re: need to add dir to classpath

2010-01-13 Thread Mike Schrag
you need to put it in your source folder and add the file extension to the classes.include.patternset ... On Jan 13, 2010, at 11:01 AM, Elizabeth Lynch wrote: Hi Patrick How about right-clicking it and trying WOLips Tools-Include as Resource? Liz On 13 Jan 2010, at 14:30, Patrick

Re: need to add dir to classpath

2010-01-13 Thread Patrick Robinson
Ah! That works in Eclipse (it causes the .keystore file to be copied to build/app.woa/Contents/Resources/Java/), but it doesn't work for deployment. Do I need to add something to build.xml to make it do the same thing there? On Jan 13, 2010, at 11:11 AM, Mike Schrag wrote: you need to put

Re: need to add dir to classpath

2010-01-13 Thread Mike Schrag
hmmm .. i thought class includes were used by build.xml also . actually, i took a look at the project i have that uses Kerberos (and has a krb5.conf in source): wocompile srcdir=src destdir=bin includes=**/*.java,**/*.conf looks like i added it to the wocompile script.

Re: need to add dir to classpath

2010-01-13 Thread Ray Kiddy
On Jan 13, 2010, at 8:41 AM, Patrick Robinson wrote: Ah! That works in Eclipse (it causes the .keystore file to be copied to build/app.woa/Contents/Resources/Java/), but it doesn't work for deployment. Do I need to add something to build.xml to make it do the same thing there?

Re: need to add dir to classpath

2010-01-13 Thread Mike Schrag
This actually isn't a directory dep .. it's really Adding a non-Java jar resource or something like that, but yeah, probably someone should put this info somewhere. On Jan 13, 2010, at 11:55 AM, Ray Kiddy wrote: On Jan 13, 2010, at 8:41 AM, Patrick Robinson wrote: Ah! That works in

Fwd: Download the MySQL Guide: Best Practices in Optimizing Performance of the MySQL Cluster Database

2010-01-13 Thread Kieran Kelleher
FYI, Info on the *FREE* MySQL Cluster performance optimization best practices for Chuck's favorite enterprise database ;-) Begin forwarded message: From: MySQL email-my...@sun.com Date: January 13, 2010 12:31:01 PM EST To: kieran_li...@mac.com Subject: Download the MySQL Guide: Best

Re: Objects don't get initialized sometimes

2010-01-13 Thread Chuck Hill
On Jan 13, 2010, at 4:04 AM, Gennady Kushnir wrote: may this be the reason? public void setWeight(BigDecimal aValue) { if(weight().compareTo(aValue) != 0) { if(weight().compareTo(BigDecimal.ZERO) == 0 || aValue.compareTo(BigDecimal.ZERO) == 0)

OT: WO Deployment Consultant Needed

2010-01-13 Thread james o'loughlin
looking for a WO deployment consultant guru to help stabilize and optimize our WO deployment and probably analyze our application code. servers: apple xserve 10.5.8 java: java version 1.5.0_22 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22- b03-333-9M3125) Java HotSpot(TM)

Re: need to add dir to classpath

2010-01-13 Thread Patrick Robinson
But even that isn't going to handle what this lib of mine needs, which is that the *directory* where the keystore file lives be in the classpath. On Jan 13, 2010, at 11:47 AM, Mike Schrag wrote: hmmm .. i thought class includes were used by build.xml also . actually, i took a look at

Re: need to add dir to classpath

2010-01-13 Thread Jeffrey Simpson
When you put it in your source directory did you right click on it and choose WOLIPS - Include as Class? Jeffrey Simpson Senior Software Engineer Telephone: 240.235.2144 Fax: 240.235.2174 simp...@yfu.org Youth For Understanding (YFU) prepares young people for their responsibilities and

Re: need to add dir to classpath

2010-01-13 Thread Mike Schrag
all that does is update the classes include patternset, though .. so if you did it manually, it should end up the same thing On Jan 13, 2010, at 2:21 PM, Jeffrey Simpson wrote: When you put it in your source directory did you right click on it and choose WOLIPS - Include as Class?

MySQL: Moving to InnoDB

2010-01-13 Thread Timo Hoepfner
Hi list, especially Kieran. :) I have a project that evolved over the years. Basically it's a product and image database, which also provides the content for the customer's home page. The product and image database and CMS administration is done in WO, the customer's home page was coded in PHP

Re: MySQL: Moving to InnoDB

2010-01-13 Thread David LeBer
On 2010-01-13, at 3:52 PM, Timo Hoepfner wrote: Hi list, especially Kieran. :) I have a project that evolved over the years. Basically it's a product and image database, which also provides the content for the customer's home page. The product and image database and CMS administration is

Re: Objects don't get initialized sometimes

2010-01-13 Thread Gennady Kushnir
2010/1/13 Chuck Hill ch...@global-village.net: On Jan 13, 2010, at 4:04 AM, Gennady Kushnir wrote: may this be the reason?   public void setWeight(BigDecimal aValue) {      if(weight().compareTo(aValue) != 0) {           if(weight().compareTo(BigDecimal.ZERO) == 0                          

Re: need to add dir to classpath

2010-01-13 Thread Patrick Robinson
It looks to me like the otherclasspath ... / nested element of woapplication / might be persuaded to add the right thing to the various *ClassPath.txt files, but I haven't stumbled across the right incantation, yet. otherclasspath dir=Resources/Keystore / causes the following to be added

Modeling an optional to-one relationship

2010-01-13 Thread Lon Varscsak
Is there a way to model an optional to-one relationship from the primary key to a primary key of another object? -Lon ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)

Re: MySQL: Moving to InnoDB

2010-01-13 Thread Travis Britt
Yeah I'm doing this, everything is InnoDB except for a read-mostly (as in, write once in a blue moon) table that's MyISAM due to InnoDB's row size limit and the fact that it's currently got a ton of varchar(255) columns. On Jan 13, 2010, at 4:01 PM, David LeBer wrote: I know it's ugly, but you

Re: Modeling an optional to-one relationship

2010-01-13 Thread Travis Britt
Short answer: no. Is the PK not really a PK? If it is a real PK, how are there rows without it? On Jan 13, 2010, at 5:53 PM, Lon Varscsak wrote: Is there a way to model an optional to-one relationship from the primary key to a primary key of another object?

Re: Modeling an optional to-one relationship

2010-01-13 Thread Lon Varscsak
Yes it is the same PK in both tables but there are no rows in the relationship. This is a pretty common practice and I just hate modeling a to-many and then provide interfaces as a to-one. On Wed, Jan 13, 2010 at 4:14 PM, Travis Britt tbr...@phigment.org wrote: Short answer: no. Is the PK not

Re: Objects don't get initialized sometimes

2010-01-13 Thread Neil MacLennan
On 12 Jan 2010, at 01:07, Chuck Hill wrote: Scotch?!!? That is not very Irish of you! I thought that Scotch was what the Scottish drank because they knew not how to make Irish whiskey. looks around hoping that no Scots are nearby *cough* String geoLocate() { String location =

Re: Modeling an optional to-one relationship

2010-01-13 Thread Chuck Hill
Modelling it as FK to PK seems like the way to go, unless I am misunderstanding what you need. On Jan 13, 2010, at 3:24 PM, Lon Varscsak wrote: Yes it is the same PK in both tables but there are no rows in the relationship. This is a pretty common practice and I just hate modeling a

Re: Objects don't get initialized sometimes

2010-01-13 Thread Chuck Hill
On Jan 13, 2010, at 3:45 PM, Neil MacLennan wrote: On 12 Jan 2010, at 01:07, Chuck Hill wrote: Scotch?!!? That is not very Irish of you! I thought that Scotch was what the Scottish drank because they knew not how to make Irish whiskey. looks around hoping that no Scots are nearby

Re: MySQL: Moving to InnoDB

2010-01-13 Thread Chuck Hill
On Jan 13, 2010, at 3:11 PM, Travis Britt wrote: Yeah I'm doing this, everything is InnoDB except for a read-mostly (as in, write once in a blue moon) table that's MyISAM due to InnoDB's row size limit Row size limit? Oooh, tell me more! ;-) and the fact that it's currently got a

Re: Objects don't get initialized sometimes

2010-01-13 Thread Chuck Hill
On Jan 13, 2010, at 2:05 PM, Gennady Kushnir wrote: 2010/1/13 Chuck Hill ch...@global-village.net: On Jan 13, 2010, at 4:04 AM, Gennady Kushnir wrote: may this be the reason? public void setWeight(BigDecimal aValue) { if(weight().compareTo(aValue) != 0) {

Re: Modeling an optional to-one relationship

2010-01-13 Thread Lon Varscsak
Okay, let me try to give an example (although a contrived example). Entity: Part (PK: partNumber) Entity: PartAttributes (PK: partNumber) It's a to-one relationship from Part to PartAttributes, but the part_attributes table doesn't have to have a row for a given part. If this were a to-many

Re: Modeling an optional to-one relationship

2010-01-13 Thread Mark Ritchie
On 13/Jan/2010, at 2:53 PM, Lon Varscsak wrote: Is there a way to model an optional to-one relationship from the primary key to a primary key of another object? *sigh* As with so many conversations theses days... What are you trying to do? My initial response is look at how the

Re: Modeling an optional to-one relationship

2010-01-13 Thread Lon Varscsak
Sighing is not allowed on the list. ;) I sent an example a few minutes ago. Yes, that does sound like what I'm describing. On Wed, Jan 13, 2010 at 4:56 PM, Mark Ritchie mark.ritc...@mac.com wrote: On 13/Jan/2010, at 2:53 PM, Lon Varscsak wrote: Is there a way to model an optional to-one

Re: Modeling an optional to-one relationship

2010-01-13 Thread Lon Varscsak
I should add that that sounds what I'm talking about, but consider that you don't always have a photo for a Talent. -Lon On Wed, Jan 13, 2010 at 5:07 PM, Lon Varscsak varsc...@smarthealth.comwrote: Sighing is not allowed on the list. ;) I sent an example a few minutes ago. Yes, that does

Re: Modeling an optional to-one relationship

2010-01-13 Thread Chuck Hill
You could model it as a right-outer join and optional, but I think that EOF is still going to have a hissy fit when it does not find the row. Worth a try and a good bug to log with Apple if it does not work. Chuck On Jan 13, 2010, at 4:01 PM, Lon Varscsak wrote: Okay, let me try to give

Re: MySQL: Moving to InnoDB

2010-01-13 Thread Travis Britt
On Jan 13, 2010, at 6:51 PM, Chuck Hill wrote: Row size limit? Oooh, tell me more! ;-) When I physicalize Oracle or MySQL I often imagine this hulking, idiosyncratic Soviet-era metal contraption that in the hands of its builders will relocate mountains but which I am forced to drive to pick

Re: MySQL: Moving to InnoDB

2010-01-13 Thread Chuck Hill
On Jan 13, 2010, at 4:28 PM, Travis Britt wrote: On Jan 13, 2010, at 6:51 PM, Chuck Hill wrote: Row size limit? Oooh, tell me more! ;-) When I physicalize Oracle or MySQL I often imagine this hulking, idiosyncratic Soviet-era metal contraption that in the hands of its builders will

Re: Modeling an optional to-one relationship

2010-01-13 Thread Mark Ritchie
On 13/Jan/2010, at 4:07 PM, Lon Varscsak wrote: Sighing is not allowed on the list. ;) Apparently you're having a different day then I am! ;-) I sent an example a few minutes ago. Yes, that does sound like what I'm describing. Your message and mine crossed paths... ;-) Thanks for posting the

Re: How to get the failing EO when a unique constraint violation occurs?

2010-01-13 Thread Chuck Hill
On Jan 12, 2010, at 4:37 PM, Amiel Montecillo wrote: @Ramsey, yeah I had the feeling I might end up with gray hairs trying to find that EO too so I am going with the index name. @Chuck - I didn't have to get the table name to get an entity. I notice I can get the EOAdaptorOperation that

Re: Modeling an optional to-one relationship

2010-01-13 Thread Chuck Hill
On Jan 13, 2010, at 5:08 PM, Mark Ritchie wrote: On 13/Jan/2010, at 4:07 PM, Lon Varscsak wrote: Sighing is not allowed on the list. ;) Apparently you're having a different day then I am! ;-) I sent an example a few minutes ago. Yes, that does sound like what I'm describing. Your

Re: MySQL: Moving to InnoDB

2010-01-13 Thread Kieran Kelleher
Hi Timo, If you mix MyISAM and InnoDB, then when a transaction fails, IIRC, just he InnoDB tables will rollback, the MyISAM tables will not. If important,to you, then you could potentially write some logic that if an ec save fails, then do some logic to delete the rows (EOs) inserted into the

Re: Objects don't get initialized sometimes

2010-01-13 Thread Ken Anderson
One minor point... weight, which is a BigDecimal, is immutable. The 'setScale' method actually returns a new BigDecimal, so this code will not do what is intended. This has to be one of my biggest pet peeves... it is probably the worst named method in all of Java land. Ken On Jan

Re: Objects don't get initialized sometimes

2010-01-13 Thread Chuck Hill
On Jan 13, 2010, at 7:36 PM, Ken Anderson wrote: One minor point... weight, which is a BigDecimal, is immutable. The 'setScale' method actually returns a new BigDecimal, so this code will not do what is intended. This has to be one of my biggest pet peeves... it is probably the