Re: JasperReport LocalDate question

2011-02-01 Thread Paul Hoadley
On 02/02/2011, at 9:48 AM, Theodore Petrosky wrote: > 2. then you apply the Field variable to a Text Field. The Text Field has both > a Text Field Expression and an Expression Class. This is where I am falling > down. The Expression Class is not editable. You can only choose from the > internal

Re: JasperReport LocalDate question

2011-02-01 Thread Chuck Hill
e. Chuck > --- On Tue, 2/1/11, Paul Hoadley wrote: > >> From: Paul Hoadley >> Subject: Re: JasperReport LocalDate question >> To: "Theodore Petrosky" >> Cc: "WebObjects-Dev Mailing List List" >> Date: Tuesday, February 1, 2011, 5:35 PM

Re: JasperReport LocalDate question

2011-02-01 Thread Theodore Petrosky
as an NSTimestamp in iReport. Problem is gone. Ted --- On Tue, 2/1/11, Paul Hoadley wrote: > From: Paul Hoadley > Subject: Re: JasperReport LocalDate question > To: "Theodore Petrosky" > Cc: "WebObjects-Dev Mailing List List" > Date: Tuesday, February 1, 2011, 5:3

Re: JasperReport LocalDate question

2011-02-01 Thread Theodore Petrosky
lly wanted (and want) to learn how to use the JodaTime (LocalDate) in iReport. Ted --- On Tue, 2/1/11, Paul Hoadley wrote: > From: Paul Hoadley > Subject: Re: JasperReport LocalDate question > To: "Theodore Petrosky" > Cc: "WebObjects-Dev Mailing List List" &g

Re: JasperReport LocalDate question

2011-02-01 Thread Paul Hoadley
With the caveat that I don't know anything about JR... On 02/02/2011, at 1:08 AM, Theodore Petrosky wrote: > I used the org.joda.time.LocalDate for the Field Class Definition. Don't you want to be using your wrapper class for LocalDate, not Joda's LocalDate? This name collision is unfortunate—

Re: JasperReport LocalDate question

2011-02-01 Thread David Avendasora
ler.java:498) > at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) > at > org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) > > --- On Mon, 1/31/11, Kieran Kelleher wrote: > >> From: Kieran Kelleher >> Subject:

Re: JasperReport LocalDate question

2011-02-01 Thread Kieran Kelleher
rsoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:498) > at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) > at > org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) > > --- On Mon, 1/31/11, Kieran Kellehe

Re: JasperReport LocalDate question

2011-02-01 Thread Theodore Petrosky
igner.compiler.IReportCompiler.run(IReportCompiler.java:498) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)      at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) --- On Mon, 1/31/11, Kieran Kelleher wrote: > From: Kieran Kelleher > Subj

Re: JasperReport LocalDate question

2011-01-31 Thread Theodore Petrosky
on Class of the TextField. so yes I get a compile time error. I am doing something wrong. Ted > > > > I hope you have time to help me with this. > > > > Ted > > > > > > > > --- On Mon, 1/31/11, Kieran Kelleher > wrote: > > > &g

Re: JasperReport LocalDate question

2011-01-31 Thread Kieran Kelleher
can not change the Expression Class to match > the Field's class. > > I hope you have time to help me with this. > > Ted > > > > --- On Mon, 1/31/11, Kieran Kelleher wrote: > >> From: Kieran Kelleher >> Subject: Re: JasperReport LocalDa

Re: JasperReport LocalDate question

2011-01-31 Thread Theodore Petrosky
ave time to help me with this. Ted --- On Mon, 1/31/11, Kieran Kelleher wrote: > From: Kieran Kelleher > Subject: Re: JasperReport LocalDate question > To: "Theodore Petrosky" > Cc: "Paul Hoadley" , "WebObjects-Dev Mailing List List" > > Dat

Re: JasperReport LocalDate question

2011-01-31 Thread John Huss
Yeah, I meant "without Joda" On Mon, Jan 31, 2011 at 6:55 AM, Kieran Kelleher wrote: > I think John mean "without Joda" in that sentence People have been > using WO without Joda for a ling time. > > On Jan 30, 2011, at 3:33 PM, John Huss wrote: > > > People have been doing WO apps withOUT Jod

Re: JasperReport LocalDate question

2011-01-31 Thread Kieran Kelleher
use timestamps > the issue goes away, but I have to deal with my app refusing to work when I > switch platforms. So I could spend the time learning the methods of getting > around the Java dateTime issues. > > Thanks again. > > Ted > > > --- On Mon, 1/31/11

Re: JasperReport LocalDate question

2011-01-31 Thread Kieran Kelleher
I think John mean "without Joda" in that sentence People have been using WO without Joda for a ling time. On Jan 30, 2011, at 3:33 PM, John Huss wrote: > People have been doing WO apps withOUT Joda for a long time ___ Do not post admin requests t

Re: JasperReport LocalDate question

2011-01-31 Thread Theodore Petrosky
wrote: > From: Paul Hoadley > Subject: Re: JasperReport LocalDate question > To: "Theodore Petrosky" > Cc: "WebObjects-Dev Mailing List List" > Date: Monday, January 31, 2011, 3:52 AM > On 31/01/2011, at 12:01 AM, Theodore > Petrosky wrote: > &g

Re: JasperReport LocalDate question

2011-01-31 Thread Paul Hoadley
On 31/01/2011, at 12:01 AM, Theodore Petrosky wrote: > So my attempt is to add into LocalDate the extends like this: > > public class LocalDate extends java.util.Date implements ReadablePartial, > Comparable > { > > } I don't think you need or want to do this. I don't think your LocalDate w

Re: JasperReport LocalDate question

2011-01-31 Thread Paul Hoadley
On 30/01/2011, at 6:50 PM, Theodore Petrosky wrote: > I have an EO with attributes that are dates in the postgresql db. > > invoiceBookedDate is a date. It is modeled as a LocalDate. This sounds right. (I'm assuming that you've followed Henrique's example closely, and that "LocalDate" there is

Re: JasperReport LocalDate question

2011-01-30 Thread John Huss
ecision to comment out the compareTo() method in > LocalDate. > > And to my complete surprise, it works. > > But without your help reading the error log, I didn't even have an idea > where to start looking. > > Of course, maybe my hacking is actually making things worse.

Re: JasperReport LocalDate question

2011-01-30 Thread David Avendasora
Hi Ted, What was the actual method signature of the LocalDate compareTo method? I'm guessing was "compareTo(Object obj)" or similar. By commenting it out you're no longer overriding it with a clashing class name. Now when compareTo is called, it's using the compareTo method on Date instead, whi

Re: JasperReport LocalDate question

2011-01-30 Thread Theodore Petrosky
lly making things worse. I guess I will have to keep my fingers crossed and hope youse guys don't get too tired helping people like me. Thank you, Ted --- On Sun, 1/30/11, Pascal Robert wrote: > From: Pascal Robert > Subject: Re: JasperReport LocalDate question > To: &quo

Re: JasperReport LocalDate question

2011-01-30 Thread Pascal Robert
You just have to read the errors: > Jan 30 08:03:52 TheWorkTracker[56046] ERROR > er.jasperreports.ERJRFetchSpecificationReportTask - Error in JR task > ClassCastException: com.eltek.utilities.LocalDate cannot be cast to > java.util.Date From what class com.eltek.utilities.LocalDate inherits?

JasperReport LocalDate question

2011-01-30 Thread Theodore Petrosky
I think I am almost there. Well maybe. I have an EO with attributes that are dates in the postgresql db. invoiceBookedDate is a date. It is modeled as a LocalDate. In my UI, I have an AjaxDatePicker which appears to only create NSTimestamps. So I create a cover methods (setter and getter) that