Re: AjaxModalDialog.close(context()) being ignored

2011-02-01 Thread Paul Hoadley
Hi Chuck,

On 02/02/2011, at 2:40 PM, Chuck Hill wrote:

>>> You can also use the JS AMD.close(); to close it.  You should not NEED to 
>>> do this, but it may provide a clue as to what is or is not wrong.
>> 
>> I've added that to the 'onComplete' binding, and it solves the problem (with 
>> and without 'evalScripts="$true"').  It's a bit unsatisfying though—I wonder 
>> why AjaxModalDialog.close(context()) is working for some buttons but not 
>> others.
> 
> It has to be one of two things: 
> - the "time to close" message is not getting to the server
> - the "hide the dialog" message is not getting to the browser
> 
> The first implies the second.  Could there be a structure change in the page 
> that is making the button not exist?  Otherwise, you will need to use the 
> source and take a look at what is getting to the server and what is getting 
> sent back.

There shouldn't be a structural change, no, but I will check.

Meanwhile, I've stumbled across what is presumably the relevant difference in 
the action methods: the problem button's action method sends some emails using 
(indirectly) ERMailDelivery.  At some point a WOComponent is created (even for 
plain text mails—good templating system), for example:

SuccessTextEmail component = 
ERXApplication.erxApplication().pageWithName(SuccessTextEmail.class);

Commenting out the component creation (and returning some dummy text instead) 
lets the AMD close as intended.  Is this component creation messing with the 
operation of AjaxModalDialog.close(WOContext)?


-- 
Paul.

http://logicsquad.net/


 ___
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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: AjaxModalDialog.close(context()) being ignored

2011-02-01 Thread Chuck Hill

On Feb 1, 2011, at 7:54 PM, Paul Hoadley wrote:

> Hi Chuck,
> 
> On 02/02/2011, at 1:41 PM, Chuck Hill wrote:
> 
>> Do both buttons have evalScripts = true?  That method returns JavaScript 
>> that needs to be evaluated on the client side.
> 
> None of the buttons have that binding.  (Didn't know it was needed.)  Adding 
> it to the problem button has no effect, though.

I am uncertain myself when that is needed and when not.  I have run into some 
cases where it is needed.



>> You can also use the JS AMD.close(); to close it.  You should not NEED to do 
>> this, but it may provide a clue as to what is or is not wrong.
> 
> I've added that to the 'onComplete' binding, and it solves the problem (with 
> and without 'evalScripts="$true"').  It's a bit unsatisfying though—I wonder 
> why AjaxModalDialog.close(context()) is working for some buttons but not 
> others.


It has to be one of two things: 
- the "time to close" message is not getting to the server
- the "hide the dialog" message is not getting to the browser

The first implies the second.  Could there be a structure change in the page 
that is making the button not exist?  Otherwise, you will need to use the 
source and take a look at what is getting to the server and what is getting 
sent back.  If you have a simple reproduction,  I can take a look at it. I have 
tracked a few problems down, it is usually not hard.


Chuck

-- 
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall 
knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects









smime.p7s
Description: S/MIME cryptographic signature
 ___
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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: AjaxModalDialog.close(context()) being ignored

2011-02-01 Thread Paul Hoadley
Hi Chuck,

On 02/02/2011, at 1:41 PM, Chuck Hill wrote:

> Do both buttons have evalScripts = true?  That method returns JavaScript that 
> needs to be evaluated on the client side.

None of the buttons have that binding.  (Didn't know it was needed.)  Adding it 
to the problem button has no effect, though.

> You can also use the JS AMD.close(); to close it.  You should not NEED to do 
> this, but it may provide a clue as to what is or is not wrong.

I've added that to the 'onComplete' binding, and it solves the problem (with 
and without 'evalScripts="$true"').  It's a bit unsatisfying though—I wonder 
why AjaxModalDialog.close(context()) is working for some buttons but not others.

Thanks Chuck.


-- 
Paul.

http://logicsquad.net/


 ___
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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Better D2W question: pull down lists for relationships

2011-02-01 Thread Joe Little
On Tue, Feb 1, 2011 at 4:11 PM, David Holt  wrote:
> Okay okay, you got me.
>
> On 2011-02-01, at 3:38 PM, Joe Little wrote:
>
>> Forgot to reply all the first time:
>>
>> I did discover these, but wasn't grokking myself of which went to
>> where. I'll try and take the other David's advice on what is used
>> where.
>>
>> I think create/edit/update uses the *Edit types, and display/list are
>> *Display. Next step is to find out how to limit the default to search
>> panels

In general, you'll get "Search" and "New" with each entity you enter
in ERModern, etc, and I'm more interested in a paginated list of all
(or a batch set) of those entities

>
> What does this mean?
>
>> and give out Lists by default for most of my entities.
>
> This shouldn't be an issue though I assume you mean "relationships" not 
> entities.

I think I mean entities here, as noted above.

>
>>
>> The harder one is having a page with multiple sections and lists (divs
>> with their own entities list) based on some derived batch and limits,
>> such as "next 5 tasks that are due", "most recent tasks created" etc.
>
> Not really hard depending how you do it. Is this for display or edit?

This is for Display. I find D2W is more intuitive to setup a full CRUD
(and thus the CUD part) but the defaults for Display are not as
intuitive for the users. Even in creation of a relation, you get an
nice embedded search pane or new pane, and although it can be
converted into a pull down list to select from w/o "new" -- the end
users are typically expecting a pull down with one fo the new items
being "create new..." or similar. Its a little jarring to go down the
rabbit hole of multiple search/new embedded windows when the
relationship maps get complex :)


>
> Yours,
> The trifecta
>
>>
>> On Tue, Feb 1, 2011 at 6:22 AM, David Avendasora
>>  wrote:
>>> Hi Joe,
>>>
>>> I have found the D2WKeys link at the top of the Wonder API to be incredibly 
>>> useful when trying to figure out which components are available:
>>>
>>> http://webobjects.mdimension.com/hudson/job/Wonder54/javadoc/d2wlist.html - 
>>> I believe we have Ray Kiddy to thank for that piece of JavaDoc magic.
>>>
>>> Dave
>>>
>>> PS, now if we could just get Mr. Holt to chime in, you could have the 
>>> DirectToDave trifecta!
>>>
>>> On Jan 31, 2011, at 10:51 PM, Joe Little wrote:
>>>
 Thanks. Still not finding these on my own -- or at least the logic to
 find them. I was looking for an ERD2WList type..


 On Mon, Jan 31, 2011 at 2:39 PM, David LeBer
  wrote:
>
> On 2011-01-31, at 5:26 PM, Joe Little wrote:
>
>> Always in D2W, relationships selection is usually a "search" or "new"
>> option. I was wondering how to override this will a pull down. I have
>> a to-one relationship for a projectType, and I don't want my Project
>> entities having to do a subsearch each time to find available
>> projects, but select instead from a pull down. Is this something
>> settable in D2W or is that a custom component.
>
> Try using ERD2WEditToOneRelationship?
>
> ;david
>
> --
> David LeBer
> Codeferous Software
> 'co-def-er-ous' adj. Literally 'code-bearing'
> site:   http://codeferous.com
> blog:   http://davidleber.net
> profile:        http://www.linkedin.com/in/davidleber
> twitter:        http://twitter.com/rebeld
> --
> Toronto Area Cocoa / WebObjects developers group:
> http://tacow.org
>
>
>
>
>
 ___
 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 Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com

 This email sent to webobje...@avendasora.com


>>>
>>>
>> ___
>> 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 Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
>>
>> This email sent to programming...@mac.com
>
>
 ___
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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: AjaxModalDialog.close(context()) being ignored

2011-02-01 Thread Chuck Hill
Hi Paul,

Do both buttons have evalScripts = true?  That method returns JavaScript that 
needs to be evaluated on the client side.  You can also use the JS AMD.close(); 
to close it.  You should not NEED to do this, but it may provide a clue as to 
what is or is not wrong.


Chuck


On Feb 1, 2011, at 7:02 PM, Paul Hoadley wrote:

> Hello,
> 
> I'm using WO 5.4.3, and Ajax.framework that I downloaded just now to see if 
> there had been a fix, but the rest of Wonder from a month or so ago.
> 
> I have a page that contains two AjaxModalDialogs with different 'id' 
> bindings.  They're quite similar, both containing two AjaxSubmitButtons, one 
> of which is a "Cancel" button, the other performs some task.  The action 
> methods for both of those task buttons are pretty similar: perform a task, 
> AjaxModalDialog.close(context());, return null.  One of the AMDs closes after 
> the action is performed, the other doesn't.  The page gets updated properly 
> behind the translucent drop-down, but I have to click the 'X' button to close 
> the AMD.
> 
> I can't put my finger on any relevant differences between the two AMDs, or 
> their action methods.  I've simplified the page and removed the AMD that 
> functions correctly, the other one still fails to respond to 
> AjaxModalDialog.close(context()) when it's the only AMD on the page.  I see 
> nothing in Safari's error console.  Firebug shows two fewer GET requests in 
> the AMD that's not closing compared to the one that is.
> 
> Are there known conditions where AjaxModalDialog.close(context()) will fail?
> 
> 
> -- 
> Paul.
> 
> http://logicsquad.net/
> 
> 
> ___
> 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 Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
> 
> This email sent to ch...@global-village.net

-- 
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall 
knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects









smime.p7s
Description: S/MIME cryptographic signature
 ___
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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

AjaxModalDialog.close(context()) being ignored

2011-02-01 Thread Paul Hoadley
Hello,

I'm using WO 5.4.3, and Ajax.framework that I downloaded just now to see if 
there had been a fix, but the rest of Wonder from a month or so ago.

I have a page that contains two AjaxModalDialogs with different 'id' bindings.  
They're quite similar, both containing two AjaxSubmitButtons, one of which is a 
"Cancel" button, the other performs some task.  The action methods for both of 
those task buttons are pretty similar: perform a task, 
AjaxModalDialog.close(context());, return null.  One of the AMDs closes after 
the action is performed, the other doesn't.  The page gets updated properly 
behind the translucent drop-down, but I have to click the 'X' button to close 
the AMD.

I can't put my finger on any relevant differences between the two AMDs, or 
their action methods.  I've simplified the page and removed the AMD that 
functions correctly, the other one still fails to respond to 
AjaxModalDialog.close(context()) when it's the only AMD on the page.  I see 
nothing in Safari's error console.  Firebug shows two fewer GET requests in the 
AMD that's not closing compared to the one that is.

Are there known conditions where AjaxModalDialog.close(context()) will fail?


-- 
Paul.

http://logicsquad.net/


 ___
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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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 list of Classes. (java.util.Date, java.lang.String,…etc)

Choose a String!  Your LocalDate wrapper should be able to display itself as a 
String just fine.


-- 
Paul.

http://logicsquad.net/


 ___
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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Better D2W question: pull down lists for relationships

2011-02-01 Thread David Holt
Okay okay, you got me.

On 2011-02-01, at 3:38 PM, Joe Little wrote:

> Forgot to reply all the first time:
> 
> I did discover these, but wasn't grokking myself of which went to
> where. I'll try and take the other David's advice on what is used
> where.
> 
> I think create/edit/update uses the *Edit types, and display/list are
> *Display. Next step is to find out how to limit the default to search
> panels

What does this mean?

> and give out Lists by default for most of my entities.

This shouldn't be an issue though I assume you mean "relationships" not 
entities.

> 
> The harder one is having a page with multiple sections and lists (divs
> with their own entities list) based on some derived batch and limits,
> such as "next 5 tasks that are due", "most recent tasks created" etc.

Not really hard depending how you do it. Is this for display or edit?

Yours,
The trifecta

> 
> On Tue, Feb 1, 2011 at 6:22 AM, David Avendasora
>  wrote:
>> Hi Joe,
>> 
>> I have found the D2WKeys link at the top of the Wonder API to be incredibly 
>> useful when trying to figure out which components are available:
>> 
>> http://webobjects.mdimension.com/hudson/job/Wonder54/javadoc/d2wlist.html - 
>> I believe we have Ray Kiddy to thank for that piece of JavaDoc magic.
>> 
>> Dave
>> 
>> PS, now if we could just get Mr. Holt to chime in, you could have the 
>> DirectToDave trifecta!
>> 
>> On Jan 31, 2011, at 10:51 PM, Joe Little wrote:
>> 
>>> Thanks. Still not finding these on my own -- or at least the logic to
>>> find them. I was looking for an ERD2WList type..
>>> 
>>> 
>>> On Mon, Jan 31, 2011 at 2:39 PM, David LeBer
>>>  wrote:
 
 On 2011-01-31, at 5:26 PM, Joe Little wrote:
 
> Always in D2W, relationships selection is usually a "search" or "new"
> option. I was wondering how to override this will a pull down. I have
> a to-one relationship for a projectType, and I don't want my Project
> entities having to do a subsearch each time to find available
> projects, but select instead from a pull down. Is this something
> settable in D2W or is that a custom component.
 
 Try using ERD2WEditToOneRelationship?
 
 ;david
 
 --
 David LeBer
 Codeferous Software
 'co-def-er-ous' adj. Literally 'code-bearing'
 site:   http://codeferous.com
 blog:   http://davidleber.net
 profile:http://www.linkedin.com/in/davidleber
 twitter:http://twitter.com/rebeld
 --
 Toronto Area Cocoa / WebObjects developers group:
 http://tacow.org
 
 
 
 
 
>>> ___
>>> 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 Subscription:
>>> http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com
>>> 
>>> This email sent to webobje...@avendasora.com
>>> 
>>> 
>> 
>> 
> ___
> 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 Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
> 
> This email sent to programming...@mac.com

 ___
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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: JasperReport LocalDate question

2011-02-01 Thread Chuck Hill

On Feb 1, 2011, at 3:35 PM, Theodore Petrosky wrote:

> so that's what I just tried. a cover method to access the LocalDate
> 
> 
> public NSTimestamp invoiceBDTimestamp() {
>   DateTime dt = new DateTime(invoiceBookedDate().toString());
>   NSTimestamp theIBDTS = new NSTimestamp(dt.getMillis());
>
>   return theIBDTS;
> }
> 
> Now I can access it as an NSTimestamp in iReport. Problem is gone.

The Problem is not seen.  :-)  Now you have a point in time again, which means 
the date can change with changes in time zone and day light savings time.

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
>> 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—when I borrowed the code from Henrique's
>> sample project, I renamed the wrapper class to LSLocalDate
>> to avoid just this confusion.  It's the wrapper class
>> that's in your model, and that is presumably being handed to
>> JR.
>> 
>>> I still get the compile time error that it can not
>> cast from LocalDate to java.util.Date:
>> 
>> Of course, that doesn't explain why JR is still trying to
>> cast it to a Date.  I just don't know enough to help
>> there.
>> 
>>> So I tried changing to an NSTimestamp to see if I
>> installed the jars correctly and Voila. No compilation
>> errors. So it looks like Joda LocalDate does not Extend
>> java.util.Date.
>> 
>> It certainly doesn't.  Nor does your wrapper
>> class.  Nor should they.
>> 
>>> We have entered the world of, "I have no idea where to
>> go now".
>> 
>> That's disappointing (mostly for you!), because the Joda
>> LocalDate class works just fine as a custom attribute type,
>> and solves exactly your original problem.  I'm sorry I
>> don't know enough about JR to help you integrate it there.
>> 
>> 
>> -- 
>> Paul.
>> 
>> http://logicsquad.net/
>> 
>> 
>> 
> 
> 
> 
> ___
> 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 Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
> 
> This email sent to ch...@global-village.net

-- 
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall 
knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects









smime.p7s
Description: S/MIME cryptographic signature
 ___
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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Better D2W question: pull down lists for relationships

2011-02-01 Thread Joe Little
Forgot to reply all the first time:

I did discover these, but wasn't grokking myself of which went to
where. I'll try and take the other David's advice on what is used
where.

I think create/edit/update uses the *Edit types, and display/list are
*Display. Next step is to find out how to limit the default to search
panels and give out Lists by default for most of my entities.

The harder one is having a page with multiple sections and lists (divs
with their own entities list) based on some derived batch and limits,
such as "next 5 tasks that are due", "most recent tasks created" etc.

On Tue, Feb 1, 2011 at 6:22 AM, David Avendasora
 wrote:
> Hi Joe,
>
> I have found the D2WKeys link at the top of the Wonder API to be incredibly 
> useful when trying to figure out which components are available:
>
> http://webobjects.mdimension.com/hudson/job/Wonder54/javadoc/d2wlist.html - I 
> believe we have Ray Kiddy to thank for that piece of JavaDoc magic.
>
> Dave
>
> PS, now if we could just get Mr. Holt to chime in, you could have the 
> DirectToDave trifecta!
>
> On Jan 31, 2011, at 10:51 PM, Joe Little wrote:
>
>> Thanks. Still not finding these on my own -- or at least the logic to
>> find them. I was looking for an ERD2WList type..
>>
>>
>> On Mon, Jan 31, 2011 at 2:39 PM, David LeBer
>>  wrote:
>>>
>>> On 2011-01-31, at 5:26 PM, Joe Little wrote:
>>>
 Always in D2W, relationships selection is usually a "search" or "new"
 option. I was wondering how to override this will a pull down. I have
 a to-one relationship for a projectType, and I don't want my Project
 entities having to do a subsearch each time to find available
 projects, but select instead from a pull down. Is this something
 settable in D2W or is that a custom component.
>>>
>>> Try using ERD2WEditToOneRelationship?
>>>
>>> ;david
>>>
>>> --
>>> David LeBer
>>> Codeferous Software
>>> 'co-def-er-ous' adj. Literally 'code-bearing'
>>> site:   http://codeferous.com
>>> blog:   http://davidleber.net
>>> profile:        http://www.linkedin.com/in/davidleber
>>> twitter:        http://twitter.com/rebeld
>>> --
>>> Toronto Area Cocoa / WebObjects developers group:
>>> http://tacow.org
>>>
>>>
>>>
>>>
>>>
>> ___
>> 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 Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com
>>
>> This email sent to webobje...@avendasora.com
>>
>>
>
>
 ___
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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: JasperReport LocalDate question

2011-02-01 Thread Theodore Petrosky
so that's what I just tried. a cover method to access the LocalDate


public NSTimestamp invoiceBDTimestamp() {
   DateTime dt = new DateTime(invoiceBookedDate().toString());
   NSTimestamp theIBDTS = new NSTimestamp(dt.getMillis());
 
   return theIBDTS;
}

Now I can access it 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:35 PM
> 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—when I borrowed the code from Henrique's
> sample project, I renamed the wrapper class to LSLocalDate
> to avoid just this confusion.  It's the wrapper class
> that's in your model, and that is presumably being handed to
> JR.
> 
> > I still get the compile time error that it can not
> cast from LocalDate to java.util.Date:
> 
> Of course, that doesn't explain why JR is still trying to
> cast it to a Date.  I just don't know enough to help
> there.
> 
> > So I tried changing to an NSTimestamp to see if I
> installed the jars correctly and Voila. No compilation
> errors. So it looks like Joda LocalDate does not Extend
> java.util.Date.
> 
> It certainly doesn't.  Nor does your wrapper
> class.  Nor should they.
> 
> > We have entered the world of, "I have no idea where to
> go now".
> 
> That's disappointing (mostly for you!), because the Joda
> LocalDate class works just fine as a custom attribute type,
> and solves exactly your original problem.  I'm sorry I
> don't know enough about JR to help you integrate it there.
> 
> 
> -- 
> Paul.
> 
> http://logicsquad.net/
> 
> 
> 



 ___
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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: JasperReport LocalDate question

2011-02-01 Thread Theodore Petrosky
What I have finally come to the conclusion is that the problem is neither Joda 
nor WO but an iReport issue. Not a bug nor anything 'wrong'. I just need to 
learn iReport and how to tell it what I want.

For instance. there are two places one needs to tell iReport about the class 
definitions.

1. in the creation of the Field Variables. first you give it a name then the 
Field Class. In this case org.joda.time.LocalDate.

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 
list of Classes. (java.util.Date, java.lang.String,…etc)

In the last email from Kieren(sp) he mentions some possibilities for applying 
class to the Field Variable. So I am in the process of reading as much as 
possible on iReport and JodaTime as well as looking at the methods available in 
LocalDart.

I think it is fantastic that Henrique's example allows me to use dates in my 
backend. That said, I guess I could add some accessors to my WO model that vend 
out NSTimestamp just for this. Then I am done.

I really 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" 
> Date: Tuesday, February 1, 2011, 5:35 PM
> 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—when I borrowed the code from Henrique's
> sample project, I renamed the wrapper class to LSLocalDate
> to avoid just this confusion.  It's the wrapper class
> that's in your model, and that is presumably being handed to
> JR.
> 
> > I still get the compile time error that it can not
> cast from LocalDate to java.util.Date:
> 
> Of course, that doesn't explain why JR is still trying to
> cast it to a Date.  I just don't know enough to help
> there.
> 
> > So I tried changing to an NSTimestamp to see if I
> installed the jars correctly and Voila. No compilation
> errors. So it looks like Joda LocalDate does not Extend
> java.util.Date.
> 
> It certainly doesn't.  Nor does your wrapper
> class.  Nor should they.
> 
> > We have entered the world of, "I have no idea where to
> go now".
> 
> That's disappointing (mostly for you!), because the Joda
> LocalDate class works just fine as a custom attribute type,
> and solves exactly your original problem.  I'm sorry I
> don't know enough about JR to help you integrate it there.
> 
> 
> -- 
> Paul.
> 
> http://logicsquad.net/
> 
> 
> 



 ___
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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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—when I borrowed the code from 
Henrique's sample project, I renamed the wrapper class to LSLocalDate to avoid 
just this confusion.  It's the wrapper class that's in your model, and that is 
presumably being handed to JR.

> I still get the compile time error that it can not cast from LocalDate to 
> java.util.Date:

Of course, that doesn't explain why JR is still trying to cast it to a Date.  I 
just don't know enough to help there.

> So I tried changing to an NSTimestamp to see if I installed the jars 
> correctly and Voila. No compilation errors. So it looks like Joda LocalDate 
> does not Extend java.util.Date.

It certainly doesn't.  Nor does your wrapper class.  Nor should they.

> We have entered the world of, "I have no idea where to go now".

That's disappointing (mostly for you!), because the Joda LocalDate class works 
just fine as a custom attribute type, and solves exactly your original problem. 
 I'm sorry I don't know enough about JR to help you integrate it there.


-- 
Paul.

http://logicsquad.net/


 ___
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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: JUnit Test Initialization

2011-02-01 Thread Joe Kramer
Hi John,

Thanks for the help.  What I ended up doing was:

@BeforeClass

public static void setUpBeforeClass() throws Exception {

ERXApplication.setup(new String[0]);

}

That worked for me.

Thanks again,

Joe

On Tue, Feb 1, 2011 at 2:08 PM, John Huss  wrote:

> There are varying levels of initialization you can perform.  One of the
> shorter ones is this:
>
> @BeforeClass
>
> public static void setUpBeforeClass() throws Exception {
>
> ERXExtensions.initEOF(new String[0]);
>
> }
>
>
> You have to have the working directory set to
> ${working_dir_loc_WOLips:YOURPROJECT} for this to work.
>
> John
>
> On Tue, Feb 1, 2011 at 3:44 PM, Joe Kramer  wrote:
>
>> Hi Everyone,
>>
>> I'm writing my first JUnit test for a WebObjects Application and I've hit
>> a roadblock.  I need access to some of the data in the database.  When I
>> just try to run the test I get an error:
>> "java.lang.IllegalArgumentException: An object store for the entity
>> "Account" could not be found. Verify that the entity is defined in an
>> EOModel, and that the model is installed properly. To see what models are
>> loaded, you can try printing the return value of EOModelGroup.defaultGroup()
>> in your application."
>>
>> Seems I need to initialize my application, so I tried this advice on the
>> wiki:
>> http://wiki.objectstyle.org/confluence/display/WO/Testing-JUnit+and+TestNGto 
>> initialize the app, but then I get a NPE:
>>
>> java.lang.NullPointerException
>> at
>> er.extensions.foundation.ERXConfigurationManager.commandLineArgumentProperties(ERXConfigurationManager.java:170)
>> at
>> er.extensions.foundation.ERXConfigurationManager.applyConfiguration(ERXConfigurationManager.java:300)
>> at
>> er.extensions.foundation.ERXConfigurationManager.loadConfiguration(ERXConfigurationManager.java:289)
>> at
>> er.extensions.ERXExtensions.finishInitialization(ERXExtensions.java:261)
>> at
>> er.extensions.ERXFrameworkPrincipal$Observer.willFinishInitialization(ERXFrameworkPrincipal.java:97)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at
>> com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
>> at
>> com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588)
>> at
>> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532)
>> at
>> er.extensions.appserver.ERXApplication.(ERXApplication.java:1035)
>> at com.example.Application.(Application.java:21)
>> at com.example.tests.YourOrdersTest.initWO(YourOrdersTest.java:51)
>> 
>>
>> and the console message: "It seems that your application class
>> com.example.Application did not call
>> er.extensions.appserver.ERXApplication.main(argv[], applicationClass)
>> method. Please modify your Application.java as the followings so that
>> er.extensions.foundation.ERXConfigurationManager can provide its rapid
>> turnaround feature completely. "
>>
>> Any help setting up this test would be greatly appreciated.
>>
>> Thanks,
>>
>> Joe
>>
>>
>>
>>  ___
>> 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 Subscription:
>>
>> http://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com
>>
>> This email sent to johnth...@gmail.com
>>
>
>
 ___
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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: JUnit Test Initialization

2011-02-01 Thread John Huss
There are varying levels of initialization you can perform.  One of the
shorter ones is this:

@BeforeClass

public static void setUpBeforeClass() throws Exception {

ERXExtensions.initEOF(new String[0]);

}


You have to have the working directory set to
${working_dir_loc_WOLips:YOURPROJECT} for this to work.

John

On Tue, Feb 1, 2011 at 3:44 PM, Joe Kramer  wrote:

> Hi Everyone,
>
> I'm writing my first JUnit test for a WebObjects Application and I've hit a
> roadblock.  I need access to some of the data in the database.  When I just
> try to run the test I get an error: "java.lang.IllegalArgumentException: An
> object store for the entity "Account" could not be found. Verify that the
> entity is defined in an EOModel, and that the model is installed properly.
> To see what models are loaded, you can try printing the return value of
> EOModelGroup.defaultGroup() in your application."
>
> Seems I need to initialize my application, so I tried this advice on the
> wiki:
> http://wiki.objectstyle.org/confluence/display/WO/Testing-JUnit+and+TestNGto 
> initialize the app, but then I get a NPE:
>
> java.lang.NullPointerException
> at
> er.extensions.foundation.ERXConfigurationManager.commandLineArgumentProperties(ERXConfigurationManager.java:170)
> at
> er.extensions.foundation.ERXConfigurationManager.applyConfiguration(ERXConfigurationManager.java:300)
> at
> er.extensions.foundation.ERXConfigurationManager.loadConfiguration(ERXConfigurationManager.java:289)
> at
> er.extensions.ERXExtensions.finishInitialization(ERXExtensions.java:261)
> at
> er.extensions.ERXFrameworkPrincipal$Observer.willFinishInitialization(ERXFrameworkPrincipal.java:97)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
> at
> com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588)
> at
> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532)
> at
> er.extensions.appserver.ERXApplication.(ERXApplication.java:1035)
> at com.example.Application.(Application.java:21)
> at com.example.tests.YourOrdersTest.initWO(YourOrdersTest.java:51)
> 
>
> and the console message: "It seems that your application class
> com.example.Application did not call
> er.extensions.appserver.ERXApplication.main(argv[], applicationClass)
> method. Please modify your Application.java as the followings so that
> er.extensions.foundation.ERXConfigurationManager can provide its rapid
> turnaround feature completely. "
>
> Any help setting up this test would be greatly appreciated.
>
> Thanks,
>
> Joe
>
>
>
>  ___
> 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 Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com
>
> This email sent to johnth...@gmail.com
>
 ___
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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

JUnit Test Initialization

2011-02-01 Thread Joe Kramer
Hi Everyone,

I'm writing my first JUnit test for a WebObjects Application and I've hit a
roadblock.  I need access to some of the data in the database.  When I just
try to run the test I get an error: "java.lang.IllegalArgumentException: An
object store for the entity "Account" could not be found. Verify that the
entity is defined in an EOModel, and that the model is installed properly.
To see what models are loaded, you can try printing the return value of
EOModelGroup.defaultGroup() in your application."

Seems I need to initialize my application, so I tried this advice on the
wiki:
http://wiki.objectstyle.org/confluence/display/WO/Testing-JUnit+and+TestNGto
initialize the app, but then I get a NPE:

java.lang.NullPointerException
at
er.extensions.foundation.ERXConfigurationManager.commandLineArgumentProperties(ERXConfigurationManager.java:170)
at
er.extensions.foundation.ERXConfigurationManager.applyConfiguration(ERXConfigurationManager.java:300)
at
er.extensions.foundation.ERXConfigurationManager.loadConfiguration(ERXConfigurationManager.java:289)
at
er.extensions.ERXExtensions.finishInitialization(ERXExtensions.java:261)
at
er.extensions.ERXFrameworkPrincipal$Observer.willFinishInitialization(ERXFrameworkPrincipal.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
at
com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588)
at
com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532)
at
er.extensions.appserver.ERXApplication.(ERXApplication.java:1035)
at com.example.Application.(Application.java:21)
at com.example.tests.YourOrdersTest.initWO(YourOrdersTest.java:51)


and the console message: "It seems that your application class
com.example.Application did not call
er.extensions.appserver.ERXApplication.main(argv[], applicationClass)
method. Please modify your Application.java as the followings so that
er.extensions.foundation.ERXConfigurationManager can provide its rapid
turnaround feature completely. "

Any help setting up this test would be greatly appreciated.

Thanks,

Joe
 ___
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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: JasperReport LocalDate question

2011-02-01 Thread David Avendasora
Hi Ted,

At this point, I really have to second John Huss' recommendation that you take 
a time-out from development and get a more thorough understanding of Java. You 
are missing key points that people are making because you don't recognize them 
as key points. For example, In the very first response to your question, Pascal 
told you that LocalDate does not extend java.util.Date. You also didn't catch 
that Kieran's in comment about including other classes javafoundation.jar was 
only there in support of NSTimestamp and wouldn't apply to a non-WO class like 
Joda's LocalDate.

I personally came to WO without a strong programming background and it was 
_very_ difficult for me (go find some of my posts from 2004-2005!) until I took 
a step back and read a few books on Java and Object Oriented programming. I 
wrote literally thousands of lines of code that I ended up throwing away 
because I didn't fully comprehend OO programming or I was working against WO. 
(Head First Java was the book that brought it all together for me and made it 
make sense) Don't make the mistake I did.

WO is an amazing technology that will help a reasonably knowledgeable developer 
quickly do things that would take a coding guru a huge amount of time in any 
other technology. But in the hands of a complete novice, it will suck up a huge 
amount of your time and effort  and you'll end up with something that will 
likely never work the way you want it to.

This list is one of the best development resources ever. The greatest minds in 
WO read and contribute to this list every day (Chuck does too) and they don't 
expect me, you or anyone to be an expert. You don't have to understand 
Practical WebObjects, but you do need to understand the core concepts OO 
programming. I think you'll be a much happier and far more productive WO 
developer if you take some time to reinforce the basics before you try to 
understand the requeust-response loop (I still haven't fully parsed that one 
yet) or make effective use of an experimental framework like ERJasperReports.

Please don't get me wrong, there is always a place here for new developers 
asking questions about the basics. After all, those are the questions that I 
actually have a shot at being able answer! Take a step back, don't try to 
implement the world. 

Yet. :-)

Dave

On Feb 1, 2011, at 9:38 AM, Theodore Petrosky wrote:

>> From your example video at the places you noted, I added the 
>> joda-time-1.6.2.jar to the same folder as iReport and added the Class Path.
> 
> I used the org.joda.time.LocalDate for the Field Class Definition. I still 
> get the compile time error that it can not cast from LocalDate to 
> java.util.Date:
> 
> So I tried changing to an NSTimestamp to see if I installed the jars 
> correctly and Voila. No compilation errors. So it looks like Joda LocalDate 
> does not Extend java.util.Date.
> 
> We have entered the world of, "I have no idea where to go now".
> 
> Thanks for your help.
> 
> Ted
> 
> Compilation exceptions: 
> com.jaspersoft.ireport.designer.compiler.ErrorsCollector@d8a9586 
> net.sf.jasperreports.engine.JRException: Errors were encountered when 
> compiling report expressions class file: 1. Cannot cast from LocalDate to 
> Date value = 
> (java.util.Date)(((org.joda.time.LocalDate)field_invoiceDateTimestamp.getValue()));
>  //$JR_EXPR_ID=12$ 
> <>
>  2. Cannot cast from LocalDate to Date value = 
> (java.util.Date)(((org.joda.time.LocalDate)field_invoiceDateTimestamp.getOldValue()));
>  //$JR_EXPR_ID=12$ 
> <--->
>  3. Cannot cast from LocalDate to Date
> value = 
> (java.util.Date)(((org.joda.time.LocalDate)field_invoiceDateTimestamp.getValue()));
>  //$JR_EXPR_ID=12$ 
> <>
>  3 errors at 
> net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:191)
>  at 
> com.jaspersoft.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 Kelleher  wrote:
> 
>> From: Kieran Kelleher 
>> Subject: Re: JasperReport LocalDate question
>> To: "Theodore Petrosky" 
>> Cc: "Paul Hoadley" , "WebObjects-Dev Mailing List 
>> List" 
>> Date: Monday, January 31, 2011, 8:13 AM
>> JR is looking for a java.util.Date
>> because in the iReport template you have defined a field as
>> a java.util.Date.
>> 
>> First, sorry, but the API compatible example is not yet
>> committed to Wonder. Long story short, I have been too busy
>> with my work, but it is still on my

Re: AjaxTabbedPanel - Implementation changes

2011-02-01 Thread Chuck Hill

On Feb 1, 2011, at 10:54 AM, Raghavender wrote:

> Hi Chuck,
> 
> I have implemented AjaxTabbedPanel with eight AjaxTabbedPanelTab 's,  in each 
> Tab I am loading a component page.  And in that component page I have next 
> submit button that takes the user input data from this page to next component 
> page.  In this way I have to keep navigating to three to four component pages 
> in each AjaxTabbedPanelTab.  All these three or four component pages should 
> be keep navigating in the same AjaxTabbedPanelTab.  For example a Admin User 
> selects a "Test Results" tab, and in that Tab the District selection page is 
> displayed, after the district is selected then user clicks on next button to 
> move to School selection page then move to next page for Students selection 
> and finally generates a report.
> All these component pages are extended ERXComponent and now in order to 
> achieve complete Ajax based application and keep tracking of data while 
> navigating from one page to another in the same AjaxTabbedPanelTab, what 
> changes have to be made, please suggest.

My best suggestion is to come up with a better UI!.  What  you want to do might 
"just work" if you manipulate the selected bindings in code.  


Chuck



> On 31-Jan-11, at 11:54 PM, Chuck Hill wrote:
> 
>> 
>> On Jan 31, 2011, at 7:19 AM, Raghavender wrote:
>> 
>>> Hi Chuck,
>>> 
>>> I have loaded a component page in the AjaxTabbedPannedTab, in that page 
>>> when I am trying to do some action (in that subcomponent page) then the 
>>> page is getting cleared off.
>>> 
>>> Any suggestions.
>> 
>> Make sure that isSelected is bound to a boolean variable.
>> 
>> 
>> Chuck
>> 
>>> On 29-Jan-11, at 10:15 AM, Raghavender wrote:
>>> 
 Thanks a lot Chuck,  I have updated Wonder frameworks and the issue got 
 resolved.  Now I am able to see the AjaxTabbedPannel and Tabs.
 
 Thanks,
 Raghu.
 
 On 29-Jan-11, at 8:27 AM, Chuck Hill wrote:
 
>> Caused by: java.lang.NullPointerException
>>at er.ajax.AjaxTabbedPanel.findTabs(AjaxTabbedPanel.java:94)
> 
> I have no idea what you have on that line, that is an old version.
> Check your source at that line.Or update Wonder and see if the 
> problem goes away.
> 
> 
> Chuck
> 
> 
> On Jan 28, 2011, at 6:09 PM, Raghavender wrote:
> 
>> Hi Chuck,
>> 
WOActionResults res = super.invokeAction(aRequest, aContext);
 ...
   return ((WOComponent)res);//  Exception occurring at 
 this line-151.
>>> 
>> 
>> I have changed the casting from WOResponse to WOComponent, and now the 
>> error in the Session invokeAction(. .) method is not occurring.  But the 
>> exception (InvokeTargetException) is occurring in the my Application's 
>> dispatchRequest(.) method, getting the following exception:
>> 
>> Also I see a NullPointerException from the AjaxTabbedPanel class at the 
>> end of the following exception:
>> ---
>> 29193 [WorkerThread15] INFO NSLog  - > subcomponents: null >
>> 29203 [WorkerThread15] WARN NSLog  - 
>> : Exception 
>> occurred while handling request:
>> com.webobjects.foundation.NSForwardException 
>> [java.lang.reflect.InvocationTargetException] 
>> null:java.lang.reflect.InvocationTargetException
>> [2011-1-28 14:16:3 EST]  
>> com.webobjects.foundation.NSForwardException 
>> [java.lang.reflect.InvocationTargetException] 
>> null:java.lang.reflect.InvocationTargetException
>>at 
>> com.webobjects.foundation._NSUtilities._explainInstantiationException(_NSUtilities.java:600)
>>at 
>> com.webobjects.foundation._NSUtilities.instantiateObject(_NSUtilities.java:620)
>>at 
>> com.webobjects.appserver.WOApplication.dynamicElementWithName(WOApplication.java:2404)
>>at 
>> com.webobjects.appserver.parser.WOHTMLWebObjectTag._elementWithClass(WOHTMLWebObjectTag.java:179)
>>at 
>> com.webobjects.appserver.parser.WOHTMLWebObjectTag._elementWithDeclaration(WOHTMLWebObjectTag.java:234)
>>at 
>> com.webobjects.appserver.parser.WOHTMLWebObjectTag.dynamicElement(WOHTMLWebObjectTag.java:155)
>>at 
>> com.webobjects.appserver.parser.WOBundleComponentTemplateParser.didParseClosingWebObjectTag(WOBundleComponentTemplateParser.java:68)
>>at 
>> com.webobjects.appserver.parser.WOHTMLParser.didParseClosingWebObjectTag(WOHTMLParser.java:194)
>>at 
>> com.webobjects.appserver.parser.WOHTMLParser.endOfWebObjectTag(WOHTMLParser.java:161)
>>at 
>> com.webobjects.appserver.parser.WOHTMLParser.parseHTML(WOHTMLParser.java:68)
>>at 
>> com.webobjects.appserver.parser.WOBundleComponentTemplateParser.parse(WOBundleComponentTem

Re: Horizontal inheritance mismatch between WebObjects 5.4 and 5.3 [ was: SQL generation doesn't conform to entity inheritance]

2011-02-01 Thread Chuck Hill
Hi Xavier,


On Feb 1, 2011, at 12:42 AM, Dev WO wrote:

> I'm still trying to figure out what's happening...
> What I have found so far is that:
> 
> If I'm doing:
> -latest 5.4 wonder frameworks except JavaERJDBCAdaptor.framework and 
> PostgresqlPlugIn.framework from 5.3
> -binding to WebObjects 5.4 (using 
> wo.system.frameworks=/System/Library/Frameworks/WebObjects54 in my 
> wolips.properties)
> => SQL generation doesn't conform to entity inheritance
> 
> If I'm doing:
> -latest 5.4 wonder frameworks
> -binding to WebObjects 5.4 (using 
> wo.system.frameworks=/System/Library/Frameworks/WebObjects54 in my 
> wolips.properties)
> => SQL generation doesn't conform to entity inheritance

Try it without JavaERJDBCAdaptor.framework at all (just use 
JavaJDBCAdaptor.framework)


> if I'm doing:
> -lastest 5.3 wonder frameworks
> -binding to WebObjects 5.3 (using 
> wo.system.frameworks=/System/Library/Frameworks/WebObjects53 in my 
> wolips.properties)
> => I've got the correct behavior which is inheritance enforced when 
> generating the SQL in EntityModeler.
> 
> So I can say there is something different regarding horizontal inheritance 
> between WebObjects 5.3 and WebObjects 5.4. Based on the first case scenario, 
> it seems the difference occurs within WebObjects frameworks (but maybe 
> something else is involved in the Wonder frameworks in addition to the 2 I 
> keept from 5.3 in the first case).
> 
> I don't know if this is to be considered a bug or if there's just something I 
> should add/edit to make horizontal inheritance works under a complete 5.4 
> setup, but the fact that I couldn't find the same issue on the list makes me 
> feel like the issue could at least be fixed on my side.

It might be that few people are using Horizontal Inheritance.I have not 
noticed any problem with Single Table Inheritance.


> Any pointer about where to look at to ensure proper horizontal inheritance 
> SQL generation under 5.4?

Based on your evidence, I'd search for "primary" in ERExtensions.  If nothing 
else, that will at least show you were in EOF the PK generation  happens.


Chuck


> On 31 janv. 2011, at 18:57, Dev WO wrote:
> 
>> Hello,
>> 
>> I don't really know where the issue come from, but here's what's happening 
>> and what I've already tried to fix it (without a solution so far).
>> 
>> I'm using Eclipse 3.6.1.M20100909 cocoa 64
>> WOLips 3.6.6215
>> PostgreSQL 8.4
>> WO 5.4.3
>> 
>> My previous setup was WO 5.3.3 with the previous major version of Eclipse 
>> (Carbon) and WOLips. The following behavior wasn't happening in this setup.
>> 
>> I've got an Abstract entity A and a couple sub-entities, let's say SubA1 and 
>> SubA2.
>> In the previous setup, when I generated the SQL for them, they were both 
>> correctly referring to A_seq for their primary key generation (in 
>> EntityModeler when generating SQL and while the app was running).
>> Now they are referring to SubA1_seq and SubA2_seq (in EntityModeler and 
>> while the app is running) which breaks the entire application by providing 
>> pk that might be already taken by the other sub-entity...
>> 
>> I first thought it could come from the PosgreSQL plugin framework, but after 
>> putting back my previous one, the issue is still there (cleaned the project 
>> after "updating" the framework).
>> 
>> I'll will update WOLips right away to check if it changes anything, but if 
>> anyone has an idea on what might cause this issue and even better how to fix 
>> it to respect entity inheritance, that would be really nice:)
>> 
>> Thanks,
>> 
>> Xavier
>> ___
>> 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 Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40anazys.com
>> 
>> This email sent to webobje...@anazys.com
>> 
> 
> ___
> 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 Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
> 
> This email sent to ch...@global-village.net

-- 
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall 
knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects









smime.p7s
Description: S/MIME cryptographic signature
 ___
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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

AjaxTabbedPanel - Implementation changes

2011-02-01 Thread Raghavender

Hi Chuck,

I have implemented AjaxTabbedPanel with eight AjaxTabbedPanelTab 's,   
in each Tab I am loading a component page.  And in that component page  
I have next submit button that takes the user input data from this  
page to next component page.  In this way I have to keep navigating to  
three to four component pages in each AjaxTabbedPanelTab.  All these  
three or four component pages should be keep navigating in the same  
AjaxTabbedPanelTab.  For example a Admin User selects a "Test Results"  
tab, and in that Tab the District selection page is displayed, after  
the district is selected then user clicks on next button to move to  
School selection page then move to next page for Students selection  
and finally generates a report.
All these component pages are extended ERXComponent and now in order  
to achieve complete Ajax based application and keep tracking of data  
while navigating from one page to another in the same  
AjaxTabbedPanelTab, what changes have to be made, please suggest.


Regards,
Raghu.

On 31-Jan-11, at 11:54 PM, Chuck Hill wrote:



On Jan 31, 2011, at 7:19 AM, Raghavender wrote:


Hi Chuck,

I have loaded a component page in the AjaxTabbedPannedTab, in that  
page when I am trying to do some action (in that subcomponent page)  
then the page is getting cleared off.


Any suggestions.


Make sure that isSelected is bound to a boolean variable.


Chuck


On 29-Jan-11, at 10:15 AM, Raghavender wrote:

Thanks a lot Chuck,  I have updated Wonder frameworks and the  
issue got resolved.  Now I am able to see the AjaxTabbedPannel and  
Tabs.


Thanks,
Raghu.

On 29-Jan-11, at 8:27 AM, Chuck Hill wrote:


Caused by: java.lang.NullPointerException
at er.ajax.AjaxTabbedPanel.findTabs(AjaxTabbedPanel.java:94)


I have no idea what you have on that line, that is an old  
version.Check your source at that line.Or update Wonder  
and see if the problem goes away.



Chuck


On Jan 28, 2011, at 6:09 PM, Raghavender wrote:


Hi Chuck,

WOActionResults res = super.invokeAction(aRequest,  
aContext);

...
   return ((WOComponent)res);//  Exception  
occurring at this line-151.




I have changed the casting from WOResponse to WOComponent, and  
now the error in the Session invokeAction(. .) method is not  
occurring.  But the exception (InvokeTargetException) is  
occurring in the my Application's dispatchRequest(.) method,  
getting the following exception:


Also I see a NullPointerException from the AjaxTabbedPanel class  
at the end of the following exception:

---
29193 [WorkerThread15] INFO NSLog  - DDStartPage subcomponents: null >
29203 [WorkerThread15] WARN NSLog  -  
:  
Exception occurred while handling request:
com.webobjects.foundation.NSForwardException  
[java.lang.reflect.InvocationTargetException]  
null:java.lang.reflect.InvocationTargetException
[2011-1-28 14:16:3 EST]   
com.webobjects.foundation.NSForwardException  
[java.lang.reflect.InvocationTargetException]  
null:java.lang.reflect.InvocationTargetException
at  
com 
.webobjects 
.foundation 
._NSUtilities._explainInstantiationException(_NSUtilities.java: 
600)
at  
com 
.webobjects 
.foundation._NSUtilities.instantiateObject(_NSUtilities.java:620)
at  
com 
.webobjects 
.appserver 
.WOApplication.dynamicElementWithName(WOApplication.java:2404)
at  
com 
.webobjects 
.appserver 
.parser 
.WOHTMLWebObjectTag._elementWithClass(WOHTMLWebObjectTag.java:179)
at  
com 
.webobjects 
.appserver 
.parser 
.WOHTMLWebObjectTag 
._elementWithDeclaration(WOHTMLWebObjectTag.java:234)
at  
com 
.webobjects 
.appserver 
.parser 
.WOHTMLWebObjectTag.dynamicElement(WOHTMLWebObjectTag.java:155)
at  
com 
.webobjects 
.appserver 
.parser 
.WOBundleComponentTemplateParser 
.didParseClosingWebObjectTag 
(WOBundleComponentTemplateParser.java:68)
at  
com 
.webobjects 
.appserver 
.parser 
.WOHTMLParser.didParseClosingWebObjectTag(WOHTMLParser.java:194)
at  
com 
.webobjects 
.appserver 
.parser.WOHTMLParser.endOfWebObjectTag(WOHTMLParser.java:161)
at  
com 
.webobjects 
.appserver.parser.WOHTMLParser.parseHTML(WOHTMLParser.java:68)
at  
com 
.webobjects 
.appserver 
.parser 
.WOBundleComponentTemplateParser 
.parse(WOBundleComponentTemplateParser.java:109)
at  
com 
.webobjects 
.appserver 
.parser.WOHTMLTemplateParser.parse(WOHTMLTemplateParser.java:40)
at  
com 
.webobjects 
.appserver 
.parser 
.WOComponentTemplateParser 
.templateWithHTMLAndDeclaration(WOComponentTemplateParser.java: 
438)
at  
com 
.webobjects 
.appserver 
._private 
.WOComponentDefinition.template(WOComponentDefinition.java:364)
at  
com.webobjects.appserver.WOComponent.template(WOComponent.java: 
499)
at  
com 
.webobjects 
.appserver.WOComponent.appendToResponse(WOComponent.java:1112)
at  
er 
.extensions 
.componen

Re: JasperReport LocalDate question

2011-02-01 Thread Kieran Kelleher
Theodore,

I am sure that somewhere in your template you have defined either a (1) Field 
Class, or (2) an Expression class as a Date, or possibly (3) you are using a 
joda LocalDate in an expression function that takes a param of a Date. This is 
not a bug. You are doing something wrong.

Your error messages are giving you a clue:

value = 
(java.util.Date)(((org.joda.time.LocalDate)field_invoiceDateTimestamp.getValue()));

that expression simply will not work. LocalDate cannot be cast to a Date.

I have not worked with Jasper for a few months, so details might be a little 
fuzzy, but if for example you want a group by, or order by expression derived 
from a LocalDate, then you can convert it to a simple String, Long or Integer 
and group/order on that result.. for example, assuming 
"field_invoiceDateTimestamp" is a joda LocalDate..

[Long]  value = Long.valueOf( field_invoiceDateTimestamp.getLocalMillis() );

OR

[String]value = field_invoiceDateTimestamp.toString();

Not sure what you are trying to do with it. In any case, you need to work 
directly with LocalDate class and its methods and forget about java.util.Date 
since Joda LocalTime is not a Date and cannot be cast to a Date since it does 
not subclass Date.

-Kieran



On Feb 1, 2011, at 9:38 AM, Theodore Petrosky wrote:

> From your example video at the places you noted, I added the 
> joda-time-1.6.2.jar to the same folder as iReport and added the Class Path.
> 
> I used the org.joda.time.LocalDate for the Field Class Definition. I still 
> get the compile time error that it can not cast from LocalDate to 
> java.util.Date:
> 
> So I tried changing to an NSTimestamp to see if I installed the jars 
> correctly and Voila. No compilation errors. So it looks like Joda LocalDate 
> does not Extend java.util.Date.
> 
> We have entered the world of, "I have no idea where to go now".
> 
> Thanks for your help.
> 
> Ted
> 
> Compilation exceptions: 
> com.jaspersoft.ireport.designer.compiler.ErrorsCollector@d8a9586 
> net.sf.jasperreports.engine.JRException: Errors were encountered when 
> compiling report expressions class file: 1. Cannot cast from LocalDate to 
> Date value = 
> (java.util.Date)(((org.joda.time.LocalDate)field_invoiceDateTimestamp.getValue()));
>  //$JR_EXPR_ID=12$ 
> <>
>  2. Cannot cast from LocalDate to Date value = 
> (java.util.Date)(((org.joda.time.LocalDate)field_invoiceDateTimestamp.getOldValue()));
>  //$JR_EXPR_ID=12$ 
> <--->
>  3. Cannot cast from LocalDate to Date
> value = 
> (java.util.Date)(((org.joda.time.LocalDate)field_invoiceDateTimestamp.getValue()));
>  //$JR_EXPR_ID=12$ 
> <>
>  3 errors at 
> net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:191)
>  at 
> com.jaspersoft.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 Kelleher  wrote:
> 
>> From: Kieran Kelleher 
>> Subject: Re: JasperReport LocalDate question
>> To: "Theodore Petrosky" 
>> Cc: "Paul Hoadley" , "WebObjects-Dev Mailing List 
>> List" 
>> Date: Monday, January 31, 2011, 8:13 AM
>> JR is looking for a java.util.Date
>> because in the iReport template you have defined a field as
>> a java.util.Date.
>> 
>> First, sorry, but the API compatible example is not yet
>> committed to Wonder. Long story short, I have been too busy
>> with my work, but it is still on my TO DO list and I 
>> am feeling anxious (aka., motivated) to get it done as soon
>> as I get a chance which may be sooner rather than later.
>> Meanwhile the original pre-Wonder framework and working
>> example are still available in the 
>> http://montreal2010.googlecode.com/svn/trunk/ SVN
>> repository and can be checked out into a separate workspace
>> for playing with and learning.
>> 
>> 
>> OK, now back to your problem. Your problem is easily
>> solvable by using the Joda class for your field definition
>> inside your iReport template.
>> 
>> To find out how, just go to the JasperReports video at
>> about 39 minutes in and listen to the discussion about
>> NSTimestamp, which iReport knows nothing about either. In
>> the video, it shows you how to add apple Foundation classes
>> to iReports classpath so that you can use NSTimestamp in
>> your report template as a field class definition. Use the
>> same procedure to add the JodaTime jar to the iReport
>> classpath and thenuse the LocalDate class for the 'Field
>> Class' in the field Properti

Re: Better D2W question: pull down lists for relationships

2011-02-01 Thread Mike Schrag
I still think it's a good idea statically  Just knowing what keys are even 
available to you is useful.

ms

On Feb 1, 2011, at 9:30 AM, Anjo Krank wrote:

> That stuff most likely isn't up to date.
> 
> The actual keys should be written into the d2wclientConfiguration.plist of 
> the respective framework. Once they are, the keys are directly available in 
> the running app via hover's when debugging is turned on.
> 
> Statically they don't make a lot of sense... (I know, the D2WKeys were my 
> idea in the first place, but still).
> 
> Cheers, Anjo
> 
> Am 01.02.2011 um 15:22 schrieb David Avendasora:
> 
>> Hi Joe,
>> 
>> I have found the D2WKeys link at the top of the Wonder API to be incredibly 
>> useful when trying to figure out which components are available:
>> 
>> http://webobjects.mdimension.com/hudson/job/Wonder54/javadoc/d2wlist.html - 
>> I believe we have Ray Kiddy to thank for that piece of JavaDoc magic.
>> 
>> Dave
>> 
>> PS, now if we could just get Mr. Holt to chime in, you could have the 
>> DirectToDave trifecta!
>> 
>> On Jan 31, 2011, at 10:51 PM, Joe Little wrote:
>> 
>>> Thanks. Still not finding these on my own -- or at least the logic to
>>> find them. I was looking for an ERD2WList type..
>>> 
>>> 
>>> On Mon, Jan 31, 2011 at 2:39 PM, David LeBer
>>>  wrote:
 
 On 2011-01-31, at 5:26 PM, Joe Little wrote:
 
> Always in D2W, relationships selection is usually a "search" or "new"
> option. I was wondering how to override this will a pull down. I have
> a to-one relationship for a projectType, and I don't want my Project
> entities having to do a subsearch each time to find available
> projects, but select instead from a pull down. Is this something
> settable in D2W or is that a custom component.
 
 Try using ERD2WEditToOneRelationship?
 
 ;david
 
 --
 David LeBer
 Codeferous Software
 'co-def-er-ous' adj. Literally 'code-bearing'
 site:   http://codeferous.com
 blog:   http://davidleber.net
 profile:http://www.linkedin.com/in/davidleber
 twitter:http://twitter.com/rebeld
 --
 Toronto Area Cocoa / WebObjects developers group:
 http://tacow.org
 
 
 
 
 
>>> ___
>>> 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 Subscription:
>>> http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com
>>> 
>>> This email sent to webobje...@avendasora.com
>>> 
>>> 
>> 
>> ___
>> 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 Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/anjo%40krank.net
>> 
>> This email sent to a...@krank.net
> 
> ___
> 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 Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40pobox.com
> 
> This email sent to msch...@pobox.com

 ___
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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: JasperReport LocalDate question

2011-02-01 Thread Theodore Petrosky
>From your example video at the places you noted, I added the 
>joda-time-1.6.2.jar to the same folder as iReport and added the Class Path.

I used the org.joda.time.LocalDate for the Field Class Definition. I still get 
the compile time error that it can not cast from LocalDate to java.util.Date:

So I tried changing to an NSTimestamp to see if I installed the jars correctly 
and Voila. No compilation errors. So it looks like Joda LocalDate does not 
Extend java.util.Date.

We have entered the world of, "I have no idea where to go now".

Thanks for your help.

Ted

Compilation exceptions: com.jaspersoft.ireport.designer.compiler.ErrorsCollector@d8a9586
 
net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
 1. Cannot cast from LocalDate to Date 
value = (java.util.Date)(((org.joda.time.LocalDate)field_invoiceDateTimestamp.getValue())); //$JR_EXPR_ID=12$
 
<>
 2. Cannot cast from LocalDate to Date 
value = (java.util.Date)(((org.joda.time.LocalDate)field_invoiceDateTimestamp.getOldValue())); //$JR_EXPR_ID=12$
 
<--->
 3. Cannot cast from LocalDate to Date
 
value = (java.util.Date)(((org.joda.time.LocalDate)field_invoiceDateTimestamp.getValue())); //$JR_EXPR_ID=12$
 
<>
 3 errors 
at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:191)
 
at com.jaspersoft.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 Kelleher  wrote:

> From: Kieran Kelleher 
> Subject: Re: JasperReport LocalDate question
> To: "Theodore Petrosky" 
> Cc: "Paul Hoadley" , "WebObjects-Dev Mailing List List" 
> 
> Date: Monday, January 31, 2011, 8:13 AM
> JR is looking for a java.util.Date
> because in the iReport template you have defined a field as
> a java.util.Date.
> 
> First, sorry, but the API compatible example is not yet
> committed to Wonder. Long story short, I have been too busy
> with my work, but it is still on my TO DO list and I 
> am feeling anxious (aka., motivated) to get it done as soon
> as I get a chance which may be sooner rather than later.
> Meanwhile the original pre-Wonder framework and working
> example are still available in the 
> http://montreal2010.googlecode.com/svn/trunk/ SVN
> repository and can be checked out into a separate workspace
> for playing with and learning.
> 
> 
> OK, now back to your problem. Your problem is easily
> solvable by using the Joda class for your field definition
> inside your iReport template.
> 
> To find out how, just go to the JasperReports video at
> about 39 minutes in and listen to the discussion about
> NSTimestamp, which iReport knows nothing about either. In
> the video, it shows you how to add apple Foundation classes
> to iReports classpath so that you can use NSTimestamp in
> your report template as a field class definition. Use the
> same procedure to add the JodaTime jar to the iReport
> classpath and thenuse the LocalDate class for the 'Field
> Class' in the field Properties settings in iReport.
> 
> To help you get concepts, note also the discussion about
> BigDecimal and class cast exception around 42:15 on the
> video timeline.
> 
> HTH, Kieran
> 
> PS. The fact that we *don't have to* use NSTimestamp and
> that we can use java.util.Date as a field class type insdie
> iReport is because NSTimestamp EXTENDS java.util.Date.
> 
> 
> On Jan 31, 2011, at 6:57 AM, Theodore Petrosky wrote:
> 
> > Paul,
> > 
> > Thank you for looking at my attempts.
> > 
> > I am using the JasperReports example that Kieran
> Kelleher created for WOWODC 2010 as my starting point. It is
> helpful not only for the beginning steps for integrating JR
> but figuring out iReport to create the report templates.
> > 
> > He mentions in the presentation that there will be a
> fuller example committed to Wonder and perhaps this issue is
> already addressed. However, in the meantime, I will continue
> reading the limited documentation on JasperReports and
> follow the code to see if I can figure out why I get this
> error.
> > 
> > Of course if I just forget about the date resolution
> issue and 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, Paul Hoadley 
> wrote:
> > 
> >> From: Paul Hoadley 
> >> Sub

Re: Better D2W question: pull down lists for relationships

2011-02-01 Thread Anjo Krank
That stuff most likely isn't up to date.

The actual keys should be written into the d2wclientConfiguration.plist of the 
respective framework. Once they are, the keys are directly available in the 
running app via hover's when debugging is turned on.

Statically they don't make a lot of sense... (I know, the D2WKeys were my idea 
in the first place, but still).

Cheers, Anjo

Am 01.02.2011 um 15:22 schrieb David Avendasora:

> Hi Joe,
> 
> I have found the D2WKeys link at the top of the Wonder API to be incredibly 
> useful when trying to figure out which components are available:
> 
> http://webobjects.mdimension.com/hudson/job/Wonder54/javadoc/d2wlist.html - I 
> believe we have Ray Kiddy to thank for that piece of JavaDoc magic.
> 
> Dave
> 
> PS, now if we could just get Mr. Holt to chime in, you could have the 
> DirectToDave trifecta!
> 
> On Jan 31, 2011, at 10:51 PM, Joe Little wrote:
> 
>> Thanks. Still not finding these on my own -- or at least the logic to
>> find them. I was looking for an ERD2WList type..
>> 
>> 
>> On Mon, Jan 31, 2011 at 2:39 PM, David LeBer
>>  wrote:
>>> 
>>> On 2011-01-31, at 5:26 PM, Joe Little wrote:
>>> 
 Always in D2W, relationships selection is usually a "search" or "new"
 option. I was wondering how to override this will a pull down. I have
 a to-one relationship for a projectType, and I don't want my Project
 entities having to do a subsearch each time to find available
 projects, but select instead from a pull down. Is this something
 settable in D2W or is that a custom component.
>>> 
>>> Try using ERD2WEditToOneRelationship?
>>> 
>>> ;david
>>> 
>>> --
>>> David LeBer
>>> Codeferous Software
>>> 'co-def-er-ous' adj. Literally 'code-bearing'
>>> site:   http://codeferous.com
>>> blog:   http://davidleber.net
>>> profile:http://www.linkedin.com/in/davidleber
>>> twitter:http://twitter.com/rebeld
>>> --
>>> Toronto Area Cocoa / WebObjects developers group:
>>> http://tacow.org
>>> 
>>> 
>>> 
>>> 
>>> 
>> ___
>> 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 Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com
>> 
>> This email sent to webobje...@avendasora.com
>> 
>> 
> 
> ___
> 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 Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/anjo%40krank.net
> 
> This email sent to a...@krank.net

 ___
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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Better D2W question: pull down lists for relationships

2011-02-01 Thread David Avendasora
Hi Joe,

I have found the D2WKeys link at the top of the Wonder API to be incredibly 
useful when trying to figure out which components are available:

http://webobjects.mdimension.com/hudson/job/Wonder54/javadoc/d2wlist.html - I 
believe we have Ray Kiddy to thank for that piece of JavaDoc magic.

Dave

PS, now if we could just get Mr. Holt to chime in, you could have the 
DirectToDave trifecta!

On Jan 31, 2011, at 10:51 PM, Joe Little wrote:

> Thanks. Still not finding these on my own -- or at least the logic to
> find them. I was looking for an ERD2WList type..
> 
> 
> On Mon, Jan 31, 2011 at 2:39 PM, David LeBer
>  wrote:
>> 
>> On 2011-01-31, at 5:26 PM, Joe Little wrote:
>> 
>>> Always in D2W, relationships selection is usually a "search" or "new"
>>> option. I was wondering how to override this will a pull down. I have
>>> a to-one relationship for a projectType, and I don't want my Project
>>> entities having to do a subsearch each time to find available
>>> projects, but select instead from a pull down. Is this something
>>> settable in D2W or is that a custom component.
>> 
>> Try using ERD2WEditToOneRelationship?
>> 
>> ;david
>> 
>> --
>> David LeBer
>> Codeferous Software
>> 'co-def-er-ous' adj. Literally 'code-bearing'
>> site:   http://codeferous.com
>> blog:   http://davidleber.net
>> profile:http://www.linkedin.com/in/davidleber
>> twitter:http://twitter.com/rebeld
>> --
>> Toronto Area Cocoa / WebObjects developers group:
>> http://tacow.org
>> 
>> 
>> 
>> 
>> 
> ___
> 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 Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com
> 
> This email sent to webobje...@avendasora.com
> 
> 

 ___
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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Better D2W question: pull down lists for relationships

2011-02-01 Thread David LeBer

On 2011-01-31, at 10:51 PM, Joe Little wrote:

> Thanks. Still not finding these on my own -- or at least the logic to
> find them. I was looking for an ERD2WList type..

Generally, property level components follow these naming conventions:

Edit: ERDEdit* or ERD2WEdit*
Display: ERDDisplay* or ERD2WDisplay*

Embedded page level components (ERDList, ERMDEditRelationship, etc) are usually 
used when greater flexibility/features are required.

So, if your requirement is simple for that property, look to the property level 
components, if you requirement is feature rich, look to an embedded page level 
component.

> 
> 
> On Mon, Jan 31, 2011 at 2:39 PM, David LeBer
>  wrote:
>> 
>> On 2011-01-31, at 5:26 PM, Joe Little wrote:
>> 
>>> Always in D2W, relationships selection is usually a "search" or "new"
>>> option. I was wondering how to override this will a pull down. I have
>>> a to-one relationship for a projectType, and I don't want my Project
>>> entities having to do a subsearch each time to find available
>>> projects, but select instead from a pull down. Is this something
>>> settable in D2W or is that a custom component.
>> 
>> Try using ERD2WEditToOneRelationship?

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog:   http://davidleber.net
profile:http://www.linkedin.com/in/davidleber
twitter:http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org




 ___
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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Strange Apache issue

2011-02-01 Thread Patrick Middleton

Which Apache have you got? 2.2.x?

Did you compare httpd.conf between the two servers, the one that  
works and the one that doesn't?
Have you got 'Include /Library/WebObjects/Adaptors/Apache2.2/ 
apache.conf' at the end?
Have you got an  block that does  
'ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) "/Library/ 
WebServer/CGI-Executables/$1"' ?  If so, do you need to update that  
directive?



On 1 Feb 2011, at 10:33, Frédéric JECKER wrote:


Already tried this one !!
I also tried to copy the configuration from working servers..  
Without success



De : Jesse Tayler 
Date : Tue, 1 Feb 2011 03:29:05 -0500
À : Frédéric JECKER 
Cc : "Webobjects-dev@lists.apple.com" 
Objet : Re: Strange Apache issue

mime types -


On Feb 1, 2011, at 2:27 AM, Frédéric JECKER wrote:


Hi,

I just installed a new server and can't figure where I missed  
something.
In the mod_WebObjects configuration file, if I use /cgi-bin/ 
WebObjects everything works fine but if I switch to /Scripts/ 
WebObjects

Apache returns the requested page as a download !
Any idea where I can look ?


Regards

Fred





This email, including any attachments, is confidential and intended solely for 
the person or organisation to whom it is addressed. If you are not the intended 
recipient you must not disseminate, distribute or copy any part of this email 
nor take any action in reliance on it.

If you have received this in error please notify the sender immediately by 
email or phone +44 (0)1702 426400 and delete this email and any attachments 
from your system.

Email transmission cannot be guaranteed to be secure or error-free as 
information could be intercepted, corrupted, lost, destroyed, arrive late or 
incomplete, or contain viruses. The sender therefore does not accept liability 
for any errors or omissions in the contents of this message which arise as a 
result of email transmission. If verification is required please request a 
hard-copy version.

OneStep Solutions LLP is registered in England and Wales under registration 
number OC337173 and has its registered office at 457 Southchurch Road, 
Southend-on-Sea, Essex SS1 2PH. ___
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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Strange Apache issue

2011-02-01 Thread Frédéric JECKER
Already tried this one !!
I also tried to copy the configuration from working servers.. Without
success


De :  Jesse Tayler 
Date :  Tue, 1 Feb 2011 03:29:05 -0500
À :  Frédéric JECKER 
Cc :  "Webobjects-dev@lists.apple.com" 
Objet :  Re: Strange Apache issue

> mime types -
> 
> 
> On Feb 1, 2011, at 2:27 AM, Frédéric JECKER wrote:
> 
>> Hi,
>> 
>> I just installed a new server and can't figure where I missed something.
>> In the mod_WebObjects configuration file, if I use /cgi-bin/WebObjects
>> everything works fine but if I switch to /Scripts/WebObjects
>> Apache returns the requested page as a download !
>> Any idea where I can look ?
>> 
>> Regards
>> 
>> Fred
>>  ___
>> 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 Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com
>> 
>> This email sent to jtay...@oeinc.com
> 


<> ___
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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Horizontal inheritance mismatch between WebObjects 5.4 and 5.3 [ was: SQL generation doesn't conform to entity inheritance]

2011-02-01 Thread Dev WO
I'm still trying to figure out what's happening...
What I have found so far is that:

If I'm doing:
-latest 5.4 wonder frameworks except JavaERJDBCAdaptor.framework and 
PostgresqlPlugIn.framework from 5.3
-binding to WebObjects 5.4 (using 
wo.system.frameworks=/System/Library/Frameworks/WebObjects54 in my 
wolips.properties)
=> SQL generation doesn't conform to entity inheritance

If I'm doing:
-latest 5.4 wonder frameworks
-binding to WebObjects 5.4 (using 
wo.system.frameworks=/System/Library/Frameworks/WebObjects54 in my 
wolips.properties)
=> SQL generation doesn't conform to entity inheritance

if I'm doing:
-lastest 5.3 wonder frameworks
-binding to WebObjects 5.3 (using 
wo.system.frameworks=/System/Library/Frameworks/WebObjects53 in my 
wolips.properties)
=> I've got the correct behavior which is inheritance enforced when generating 
the SQL in EntityModeler.

So I can say there is something different regarding horizontal inheritance 
between WebObjects 5.3 and WebObjects 5.4. Based on the first case scenario, it 
seems the difference occurs within WebObjects frameworks (but maybe something 
else is involved in the Wonder frameworks in addition to the 2 I keept from 5.3 
in the first case).

I don't know if this is to be considered a bug or if there's just something I 
should add/edit to make horizontal inheritance works under a complete 5.4 
setup, but the fact that I couldn't find the same issue on the list makes me 
feel like the issue could at least be fixed on my side.

Any pointer about where to look at to ensure proper horizontal inheritance SQL 
generation under 5.4?

Thanks,

Xavier


On 31 janv. 2011, at 18:57, Dev WO wrote:

> Hello,
> 
> I don't really know where the issue come from, but here's what's happening 
> and what I've already tried to fix it (without a solution so far).
> 
> I'm using Eclipse 3.6.1.M20100909 cocoa 64
> WOLips 3.6.6215
> PostgreSQL 8.4
> WO 5.4.3
> 
> My previous setup was WO 5.3.3 with the previous major version of Eclipse 
> (Carbon) and WOLips. The following behavior wasn't happening in this setup.
> 
> I've got an Abstract entity A and a couple sub-entities, let's say SubA1 and 
> SubA2.
> In the previous setup, when I generated the SQL for them, they were both 
> correctly referring to A_seq for their primary key generation (in 
> EntityModeler when generating SQL and while the app was running).
> Now they are referring to SubA1_seq and SubA2_seq (in EntityModeler and while 
> the app is running) which breaks the entire application by providing pk that 
> might be already taken by the other sub-entity...
> 
> I first thought it could come from the PosgreSQL plugin framework, but after 
> putting back my previous one, the issue is still there (cleaned the project 
> after "updating" the framework).
> 
> I'll will update WOLips right away to check if it changes anything, but if 
> anyone has an idea on what might cause this issue and even better how to fix 
> it to respect entity inheritance, that would be really nice:)
> 
> Thanks,
> 
> Xavier
> ___
> 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 Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40anazys.com
> 
> This email sent to webobje...@anazys.com
> 

 ___
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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Strange Apache issue

2011-02-01 Thread Jesse Tayler
mime types -On Feb 1, 2011, at 2:27 AM, Frédéric JECKER wrote:Hi,I just installed a new server and can't figure where I missed something.In the mod_WebObjects configuration file, if I use /cgi-bin/WebObjects everything works fine but if I switch to /Scripts/WebObjectsApache returns the requested page as a download !Any idea where I can look ?RegardsFred
 ___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 Subscription:http://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.comThis email sent to jtay...@oeinc.com ___
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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com