Re: IllegalArgumentException in D2W queryAll page?
Re: IllegalArgumentException in D2W queryAll page?
- Subject: Re: IllegalArgumentException in D2W queryAll page?
- From: Ramsey Gurley <email@hidden>
- Date: Mon, 08 Sep 2008 17:39:42 -0400
On Sep 8, 2008, at 4:32 PM, Guido Neitzer wrote:
On 08.09.08 14:14, "Ramsey Gurley" <email@hidden> wrote:
at
com
.webobjects
.woextensions.WOAnyField.setTextFieldValue(WOAnyField.java:186)
You are really using the QueryAll page? Wow. I never thought anybody
would
leave that in an application. ;-)
I only do queries on specific query pages.
cug
Well if YOU don't use it, then I'm definitely going to have to look at
fixing the thing. You do seem to be the authority on D2W lately ;-)
I've discovered that adding
formatter = relationshipContext.formatter; // VALID
to the WOD of my D2WQueryAnyField subclass component eliminates the
IllegalArgumentException but equals does not seem to work too well.
I'm guessing it is trying to be a little too "equal" to be useful on a
date object. In some cases, equals doesn't work, in others, it works
partially. Less than and greater than work fine.
I logged formatterForKey(selectedKey()) for fun in the
setTextFieldValue method of my WOAnyField subclass and for some
reason, WOAnyField defaults to YYYY/MM/DD if it is not set... not only
is 'Y' a non existent formatter pattern letter, but 'D' is day of the
year (1-365) instead of day of the month. Oops! (>.<) Looking at the
WOD in the D2WQueryAnyField for both Apple and Project Wonder, I do
not see the formatter being set... Is this supposed to be set some
other way? I first though, hmmm, I'll just grab it from the
d2wContext, but WOAnyField doesn't have a d2wContext... it's from
WOExtensions. So I'm guessing it really needs to be set by that
QueryAnyField wrapper.
So what do you think... am I counting correctly... is that three bugs
to file?
1. Default format string (Apple)
2. Date equals is too precise (Apple)
3. D2WQueryAnyField should set the formatter in the WOD (Apple and
Wonder)
Ramsey
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden