Re: WebObjects 4.5.1 DST problems with NSGregorianDate

2007-03-12 Thread James Stead
The Foundation class is fixed by updating the Olson timezone data (http://www.twinsun.com/tz/tz-link.htm) somewhere in the /Apple/ Library folder structure. Sorry, I'm not on a 4.5 box right now and can't give you the entire path. This definitely works, we just updated a bunch of servers.

Re: How to use boolean values in Frontbase with Webobjects

2007-03-12 Thread Chuck Hill
Nah, it is just Monday. ;-) On Mar 12, 2007, at 4:26 PM, Kevin Windham wrote: Thanks Chuck. I must be blind. I thought I checked the Wiki, but I must have been on the wrong Wiki. And then when I go to the right page I find it's covered in your book. I thought I looked in the index under

Re: NSArray.subList() implementation broken?

2007-03-12 Thread Gavin Eadie
At 1:08 AM +1000 3/13/07, Q wrote: Is it just me or does the NSArray.subList() implementation return too many elements. ... I've been getting good results (several WebObjects bugs fixed) by reporting them, so I've reported this as a bug against Leopard -- it's bug 5057960 ... Gav ___

Re: How to use boolean values in Frontbase with Webobjects

2007-03-12 Thread Kevin Windham
Thanks Chuck. I must be blind. I thought I checked the Wiki, but I must have been on the wrong Wiki. And then when I go to the right page I find it's covered in your book. I thought I looked in the index under Boolean and didn't see it. However, when I looked just now, sure enough it's th

Re: Generic conditional WOHyperlink

2007-03-12 Thread David Holt
Hi James, On 12 Mar 2007, at 3:01 PM, James Cicenia wrote: However I had a separate method for each tab to bring in the class. Seemed like a lot of redundant typing at the time, but I only had to do it once. You're right, this works, though it sure seems "ugly". This way I can set the "h

Re: How to use boolean values in Frontbase with Webobjects

2007-03-12 Thread Chuck Hill
Kevin, Please see the Wiki for all sorts of information on topics like this: http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/Modeling/ Booleans Chuck On Mar 12, 2007, at 3:05 PM, Kevin Windham wrote: I have a frontbase database that has some boolean values stored in it. I am havin

Re: Generic conditional WOHyperlink

2007-03-12 Thread David Holt
On 12 Mar 2007, at 3:28 PM, Chuck Hill wrote: On Mar 12, 2007, at 2:30 PM, David Holt wrote: Thanks Chuck, On 12 Mar 2007, at 1:42 PM, Chuck Hill wrote: On Mar 12, 2007, at 11:40 AM, David Holt wrote: I have a tabbed navigation component with several WOHyperlinks each bound to a diffe

Re: Generic conditional WOHyperlink

2007-03-12 Thread Chuck Hill
On Mar 12, 2007, at 2:30 PM, David Holt wrote: Thanks Chuck, On 12 Mar 2007, at 1:42 PM, Chuck Hill wrote: On Mar 12, 2007, at 11:40 AM, David Holt wrote: I have a tabbed navigation component with several WOHyperlinks each bound to a different action method. I have created a generic WO

Re: NSArray.subList() implementation broken?

2007-03-12 Thread Florijan Stamenkovic
Hi Q, Confirmed, yet another bug in the NS attempt to implement java.util interfaces. Pity. As for your problem, well, I don't know about others, but I gave up using java.util.* methods with foundation classes. There were some other problems as well (Iterator implementation IIRC). Will fi

How to use boolean values in Frontbase with Webobjects

2007-03-12 Thread Kevin Windham
I have a frontbase database that has some boolean values stored in it. I am having a difficult time getting things to work. What should I be using in my EOModel file for the boolean attributes, and what should I be binding to the checkbox controls on my pages. Thanks, Kevin

Re: Generic conditional WOHyperlink

2007-03-12 Thread James Cicenia
That is what I did. However I had a separate method for each tab to bring in the class. Seemed like a lot of redundant typing at the time, but I only had to do it once. James Cicenia On Mar 12, 2007, at 4:30 PM, David Holt wrote: Thanks Chuck, On 12 Mar 2007, at 1:42 PM, Chuck Hill wrote

Re: Generic conditional WOHyperlink

2007-03-12 Thread David Holt
Thanks Chuck, On 12 Mar 2007, at 1:42 PM, Chuck Hill wrote: On Mar 12, 2007, at 11:40 AM, David Holt wrote: I have a tabbed navigation component with several WOHyperlinks each bound to a different action method. I have created a generic WOHyperlink that adds a class binding bound to a c

Re: Generic conditional WOHyperlink

2007-03-12 Thread Chuck Hill
On Mar 12, 2007, at 11:40 AM, David Holt wrote: I have a tabbed navigation component with several WOHyperlinks each bound to a different action method. I have created a generic WOHyperlink that adds a class binding bound to a cssClass method that checks the link's location and returns th

Re: Using Links for submitting forms

2007-03-12 Thread Sam Barnum
One more suggestion that I haven't seen yet: use a You can style this however you want with CSS, and put an image inside the tag like so: May not be supported by older browsers, but at least your site won't break if javascript is off. Alternately, make liberal use of the tag. On Ma

Re: Using Links for submitting forms

2007-03-12 Thread Kevin Windham
On Mar 12, 2007, at 11:38 AM, Kevin Windham wrote: I have created some nice looking buttons that use hyperlinks with some css to create a pleasing effect. ;-) In order to get these links to submit forms properly I have been placing WOSubmitButtons in a hidden div and having the link use a

RE: Using Links for submitting forms

2007-03-12 Thread Andrew Lindesay
Hello Kevin; Yeah, the key is that there could be multiple buttons. Using submit() can only call one action which is bound to the form from what I understand. Correct me if I'm wrong. Is there maybe a way to change the action of the form with javascript? Download "LEWOStuff" from; htt

Generic conditional WOHyperlink

2007-03-12 Thread David Holt
I have a tabbed navigation component with several WOHyperlinks each bound to a different action method. I have created a generic WOHyperlink that adds a class binding bound to a cssClass method that checks the link's location and returns the CSS class as a string based on whether the compon

Re: Making a WO Project dependent on a WO Framework Project

2007-03-12 Thread Chuck Hill
On Mar 11, 2007, at 5:40 PM, Michael Scott wrote: Hi Chuck, thank you for your response. That’s funny about your book; I have an order confirmation from Amazon, and they claim to be shipping it to me between March 1 & March 21 this year. If they bill me, I’ll make sure you get a cut.

Re: Using Links for submitting forms

2007-03-12 Thread James Cicenia
I use the submit() function with a hidden variable for this purpose: JAVA: public String hyperLinkClick=""; public WOComponent doSubmit(){ if("SAVE_AND_SUBMIT".equals(hyperLinkClick)){ return saveAndSubmitChanges(); }else if ("SAVE_CHANG

Re: WebObjects 5.3.3, DST and J2SE 1.4.2

2007-03-12 Thread Mark Ritchie
On 12-Mar-07, at 1:34 PM, Baiss Eric Magnusson wrote: Good follow-up, here is where I was basing the deprecation notice on: and search for the definition of , it'

Re: WebObjects 5.3.3, DST and J2SE 1.4.2

2007-03-12 Thread Baiss Eric Magnusson
Good follow-up, here is where I was basing the deprecation notice on: and search for the definition of , it's the 3rd occurrence on the page. It's odd how Googl

Re: Using Links for submitting forms

2007-03-12 Thread Kevin Windham
On Mar 12, 2007, at 12:00 PM, Miguel Arroz wrote: Hi! Use javascript to call the submit() function of the form. Of course, clients must have JS active. Yours Miguel Arroz Yeah, the key is that there could be multiple buttons. Using submit() can only call one action which is bound

Re: Using Links for submitting forms

2007-03-12 Thread Kevin Windham
Well, the way my buttons are set up uses css to load the image. This makes it easier to do rollovers and all buttons uses the same image file. The text of the button is the link text and is not contained in the image. This also prevents needing to use a script for preloading rollover images

RE: Using Links for submitting forms

2007-03-12 Thread Telebuch
I guess you mean this: http://wocode.com/cgi-bin/WebObjects/WOCode.woa/wa/ShareCodeItem?itemId=413 HTH Frank Ruenagel > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > pple.com]O > n Behalf Of Kevin Windham > Sent: Monday, March 12, 2007 5:38 PM > To: WebObje

Re: Using Links for submitting forms

2007-03-12 Thread Miguel Arroz
Hi! Use javascript to call the submit() function of the form. Of course, clients must have JS active. Yours Miguel Arroz On 2007/03/12, at 16:38, Kevin Windham wrote: I have created some nice looking buttons that use hyperlinks with some css to create a pleasing effect. ;-) In orde

Re: Using Links for submitting forms

2007-03-12 Thread Jerry W. Walker
Hi, Kevin, Have you tried WOImageButton? It does what you seem to be trying to do in a much more straightforward manner. Regards, Jerry On Mar 12, 2007, at 12:38 PM, Kevin Windham wrote: I have created some nice looking buttons that use hyperlinks with some css to create a pleasing effec

Using Links for submitting forms

2007-03-12 Thread Kevin Windham
I have created some nice looking buttons that use hyperlinks with some css to create a pleasing effect. ;-) In order to get these links to submit forms properly I have been placing WOSubmitButtons in a hidden div and having the link use a javascript to click the button. Is this a reasonable

Re: WebObjects 5.3.3, DST and J2SE 1.4.2

2007-03-12 Thread Ken Anderson
On Mar 12, 2007, at 12:11 PM, Mark Ritchie wrote: On 9-Mar-07, at 6:08 PM, Baiss Eric Magnusson wrote: timestampByAddingGregorianUnits in the docs. public NSTimestamp timestampByAddingGregorianUnits( int year, int month, int day, int hour, int minute, int second) Deprecated in the Java Foun

Re: WebObjects 5.3.3, DST and J2SE 1.4.2

2007-03-12 Thread Mark Ritchie
Hi Baiss! I'm glad to hear that your problem has been fixed! Here are two points I think are important to clarify: On 9-Mar-07, at 6:08 PM, Baiss Eric Magnusson wrote: timestampByAddingGregorianUnits in the docs. public NSTimestamp timestampByAddingGregorianUnits( int year, int month, int day

How to create Portlets with WO

2007-03-12 Thread Tom Termini
Bluedog has a framework for this. Email me offline and I will make it available to you. - Ubique, Tom Termini -- e-mail: [EMAIL PROTECTED] direct dial: +353-1-440-1910 -- http://www.bluedog.ie Bluedog Ltd. Unit 3, 78, Furze Road, Sandyford Industrial Estate Sandyford Dublin 18 Ireland -- A P

How to create Portlets with WO

2007-03-12 Thread Daniel Mejia
Hi all, I need some help to create portlets with WO, Somebody knows how to create this type of J2EE components with WO? Regards, Daniel Mejia. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Web

Re: WO 5.3 on Mac OS X 10.3 server?

2007-03-12 Thread Mark Ritchie
On 11-Mar-07, at 11:32 PM, Art Isbell wrote: Don't be too sure (). Oh, nice bug! I ran a test case and it looks like NSTimestampFormatter does the right thing! It's specifically DateFormat and subclasses (ie SimpleDateFormat) whi

Re: Ajax Updates

2007-03-12 Thread Daniele Corti
2007/3/12, Mike Schrag <[EMAIL PROTECTED]>: really don't know what to think, I've checked also my Wonder version and it is the lastest from sourceforge... eek. Just rereading your original post. Latest from sourceforge, not latest from webobjects.mdimension.com/wonder? Get the latest from the

NSArray.subList() implementation broken?

2007-03-12 Thread Q
Is it just me or does the NSArray.subList() implementation return too many elements. I have the following code: Object[] list = {"1", "2", "3", "4", "5"}; ArrayList list1 = new ArrayList(Arrays.asList(list)); NSArray list2 = new NSArray(list); System.out.println(list1); System.out.println(li

Re: Ajax Updates

2007-03-12 Thread Mike Schrag
really don't know what to think, I've checked also my Wonder version and it is the lastest from sourceforge... eek. Just rereading your original post. Latest from sourceforge, not latest from webobjects.mdimension.com/wonder? Get the latest from the build server and try again. The sourcef

Re: Ajax Updates

2007-03-12 Thread Daniele Corti
2007/3/12, Mike Schrag <[EMAIL PROTECTED]>: Well, the " would explain why it's not working, probably ... Are you using 5.2 or something? Not sure why it would be escaped here and not in mine except for something like that. Well, I'm using WOLips... it's the 5.2 or 5.3, but do you think updat

Re: @sum and BigDecimal

2007-03-12 Thread Mike Schrag
The problem lies in _NSUtilities.convertNumberIntoCompatibleValue (Number, Class) method, and not in the @sum operator itself: if you use a Number subclass that is not exactly an Integer, Long, Short, Byte, BigInteger or BigDecimal, it build up a new BigDecimal instance using the doubleValue

Re: Ajax Updates

2007-03-12 Thread Mike Schrag
Well, the " would explain why it's not working, probably ... Are you using 5.2 or something? Not sure why it would be escaped here and not in mine except for something like that. On Mar 12, 2007, at 4:45 AM, Daniele Corti wrote: 2007/3/9, Mike Schrag <[EMAIL PROTECTED]>: >> 3) Why are yo

Re: @sum and BigDecimal

2007-03-12 Thread Francis Labrie
Hi Mike, Mike Schrag wrote: It looks like @sum doesn't properly propagate BigDecimal scale and rounding modes ... I'm guessing somewhere in the code path it turns the big decimal into a double or float (which is a terrible no- no). Just a heads up in case you're using @sum for anything wher

Re: Create and Query Multiple Values in an attribute

2007-03-12 Thread Jerry W. Walker
Hi, Ian, What you're trying to do is much more sophisticated than what is being done by the code I sent you. I worked on an application a couple years ago with similar requirements for searching for pictures. In order to meet those requirements, we integrated Gary Teter's WireHose framewo

Re: Ajax Updates

2007-03-12 Thread Daniele Corti
2007/3/9, Mike Schrag <[EMAIL PROTECTED]>: >> 3) Why are you doing an onClick with an Ajax.Updater in it vs just >> having updateContainerID = "content"? That looks particularly >> suspicious to me. >> >> because updateContainerID in AjaxSubmitButton has never worked! >> I've found this solutio

Re: Create and Query Multiple Values in an attribute

2007-03-12 Thread ijackson
Hi Jerry, Thanks very much for your thorough reply. I'm going to have a play around and see if I can get it to do something in my app. I gather that the code would try queries from more than one field. I was sort of intending something similar to that, but where a single query is run through a num