Re: OT: Stepwise gone

2009-11-21 Thread Andrew Lindesay
Hi Joe; Most of the articles on there are fairly old, but my WO articles are PDF'ed on my web site if anybody wants them. It's sad to see the site go as it was the main source of news in the NeXT days, but I guess those days are long gone. cheers. > Scott took his site down as noted below. >

OT: Stepwise gone

2009-11-21 Thread Joe Little
Scott took his site down as noted below. http://www.stepwise.com/ Every once in a while there is mention of an article or info that was posted there. He deleted it all. So, someone cache anything relevant, its the right time to move it to the wiki. ___

Re: [OT] Weird Boolean/ Wrapper class bug

2009-11-21 Thread Q
On 22/11/2009, at 12:44 PM, Shravan Kumar. M wrote: > Thanks for your example and analysis Mike. When I run your example from a > simple file over command-line everything is fine and when I put this code > this Application.java, even then its fine... > This is why it's important to include th

Re: [OT] Weird Boolean/ Wrapper class bug

2009-11-21 Thread Shravan Kumar. M
Thanks for your example and analysis Mike. When I run your example from a simple file over command-line everything is fine and when I put this code this Application.java, even then its fine... But the error happens from a EO class and when I debug and test this code snippet in Display view, sam

Re: [OT] Weird Boolean/ Wrapper class bug

2009-11-21 Thread Mike Schrag
Incidentally, boxing/unboxing actually happens at compile time ... Once you run that code and verify if it works or not, then do the same inside of Eclipse and see if it fails (assuming you are compiling this from eclipse not javac). If that fails, run javap -c Test and you can see the decompi

Re: [OT] Weird Boolean/ Wrapper class bug

2009-11-21 Thread Mike Schrag
I just tested that code under JDK 1.5.0_16-b06-275 on Tiger and it works for me. Incidentally, my rule of thumb is "if you think it's a VM, you're wrong. it's your fault." This rule of thumb has never failed me. In a sample java file: public class Test { public static void main(String[]

Re: [OT] Weird Boolean/ Wrapper class bug

2009-11-21 Thread Shravan Kumar. M
Hello Mike, Its the same code I have showed you (except that I changed variable names for simplicity), and there is no line of code that is missing. Where "a" is the EO property and when I check for it ( if(a != null) JRE throws NPE and when I check for if(a == null), JRE enjoys ), its throwin

Re: Velocity Template Question

2009-11-21 Thread Andrew Lindesay
Hi; Thanks for that -- works really well. cheers. ___ Andrew Lindesay www.lindesay.co.nz ___ 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: How do I restore the 'previous' page with DirectActions

2009-11-21 Thread Chuck Hill
On Nov 21, 2009, at 10:31 AM, Riccardo De Menna wrote: Hi Chuck, thx for answering, On 20/nov/2009, at 14.08, Chuck Hill wrote: I want to return the same page a user is viewing after he clicks a directAction. Why a direct action? If the page is the result of a component action, why no

Re: How do I restore the 'previous' page with DirectActions

2009-11-21 Thread Riccardo De Menna
Hi Chuck, thx for answering, > On 20/nov/2009, at 14.08, Chuck Hill wrote: > >> I want to return the same page a user is viewing after he clicks a >> directAction. > > Why a direct action? If the page is the result of a component action, why > not use a component action. I want external refe

Re: Velocity Template Question

2009-11-21 Thread Faizel Dakri
I'm assuming that the 'code' is an EO attribute of an entity. I think you'll have to iterate over the list of attributes, check the name and set a flag manually. Then you can conditionally generate your template code base on the flag. I may be wrong--and I'd love to find an easier way if I am-

Re: [OT] Weird Boolean/ Wrapper class bug

2009-11-21 Thread Mike Schrag
You're not pasting the real code, I don't think. I suspect you're just getting screwed by autoboxing in whatever code you're not showing. If you have: Boolean a = null; boolean b = a; That will result in a NPE as auto-unboxing attempts to unbox a into a boolean, which throws a NPE. Somewhere in

Re: [OT] Weird Boolean/ Wrapper class bug

2009-11-21 Thread Shravan Kumar. M
Mine: java version "1.5.0_16" From: David LeBer To: Shravan Kumar. M Cc: WO Dev Group Sent: Sat, November 21, 2009 9:06:22 PM Subject: Re: [OT] Weird Boolean/ Wrapper class bug On 2009-11-21, at 10:23 AM, Shravan Kumar. M wrote: > Hello Group, > > Boolean

Re: [OT] Weird Boolean/ Wrapper class bug

2009-11-21 Thread David LeBer
On 2009-11-21, at 10:23 AM, Shravan Kumar. M wrote: > Hello Group, > > Boolean a = null; > if(a != null) > System.out.println("s"); > else > System.out.println("n"); > > -- > Above code block raises NullPointerException, where as below one runs > successfully!!! Same

[OT] Weird Boolean/ Wrapper class bug

2009-11-21 Thread Shravan Kumar. M
Hello Group, Boolean a = null; if(a != null) System.out.println("s"); else System.out.println("n"); -- Above code block raises NullPointerException, where as below one runs successfully!!! Same is the case with any wrapper class (Integer, Long, ...). *Its wondering what it makes differen