Re: GCPieChart

2017-06-15 Thread Calven Eggert
Thanks Paul. I'll look into those solutions. 

Calven


> On Jun 15, 2017, at 8:32 PM, Paul Hoadley <pa...@logicsquad.net> wrote:
> 
> Hi Calven,
> 
>> On 16 Jun 2017, at 01:38, Calven Eggert <cal...@mac.com> wrote:
>> 
> 
>> I’m thinking of creating a Pie chart using the GCPieChart class.  Does 
>> anyone have any tips or code examples they would like to share with this 
>> class or any of the other GC classes?
> 
> While I’ve used some of those components in the distant past, 
> GoogleCharts.framework is positively ancient. My tip would be to use a more 
> modern, client-side charting solution. We’ve used both of these recently:
> 
> https://www.highcharts.com
> https://d3js.org
> 
> If you’re keen on GoogleCharts.framework, there are some examples in the 
> ERComponentTour sample app.
> 
> 
> -- 
> Paul Hoadley
> http://logicsquad.net/
> https://www.linkedin.com/company/logic-squad/
> 
> 
> 
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


GCPieChart

2017-06-15 Thread Calven Eggert
Hi, All

I’m thinking of creating a Pie chart using the GCPieChart class.  Does anyone 
have any tips or code examples they would like to share with this class or any 
of the other GC classes?

Thanks,
Calven

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

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


Re: Abandoning AjaxDatePicker for JQuery?

2017-05-19 Thread Calven Eggert
I did as you suggested (remove js) and that works, however, putting back the 
jQuery still doesn’t.  The setter for that field doesn’t get called from some 
reason.


> On May 18, 2017, at 11:20 AM, Klaus Berkling <webobje...@berkling.us> wrote:
> 
> 
> If the  field content isn't saved I'd go back to basics, removing any 
> JavaScript events and manipulation from the HTML, and fix that first. 
> Manually enter a date that you server side date formatter understands. After 
> all, the date picker is just client side fanciness. 
> 
> The validateDate function is JavaScript I use but didn't add to the email. 
> You can just remove that line in the bindings. I should too since the date 
> picker shouldn't require validation. 
> 
> Sent from my phone. 
> 
> On May 18, 2017, at 06:36, Calven Eggert <cal...@mac.com 
> <mailto:cal...@mac.com>> wrote:
> 
>> Klaus,
>> 
>> Thanks for your code.  The calendar works great however, I can’t get the new 
>> value of the date saved.  I’m guessing it has to do with the validateDate() 
>> function (Which I currently don’t use). For the variable value of my 
>> WOTextField I use the following:
>> 
>> value = patientActivityFieldValueAsDate
>> 
>> And in my java:
>> 
>>  public NSTimestamp patientActivityFieldValueAsDate() {
>>  return (NSTimestamp) currentField.valueForKey("fieldDateValue");
>>  }
>>  public void setPatientActivityFieldValueAsDate(NSTimestamp newValue) {
>>  currentField.takeValueForKey(newValue, "fieldDateValue");
>>  }
>> 
>> The setter is not being called after the update to the field.  What needs to 
>> be changed in order for this to get called? Can this get called from the 
>> validateDate js function?
>> 
>> Calven
>> 
>> 
>>> On May 17, 2017, at 6:41 AM, Calven Eggert <cal...@mac.com 
>>> <mailto:cal...@mac.com>> wrote:
>>> 
>>> It looks like I’m going to abandon the AjaxDatePicker because I can’t get 
>>> it to work with the date format my users want for this calendar.
>>> 
>>> Anyone have experience using WO with JQuery?  Any hints on how to get that 
>>> setup would be appreciated.
>>> 
>> 
>> 
>> I’m walking out the door but:
>> 
>> In the WOD:
>> 
>> StartDate : WOTextField {
>>  value = event.startDate;
>>  formatter = localDateFormatter;
>>  placeholder = "mm/dd/";
>>  class = "eventdatepicker";
>>  onblur = "validateDate(this);";
>>  onchange = "$('#Update').click();";
>>  otherTagString = "readonly='true'";
>> }
>> 
>> 
>> And in a js file:
>> 
>> 
>> $(document).ready(function() {
>>  console.log("Document ready.")
>> 
>>  $(".eventdatepicker").datepicker({
>>  dateFormat: "mm/dd/yy",
>>  changeMonth: true,
>>  changeYear: true,
>>  yearRange: '-0y:+5y',
>>  defaultDate: '0'
>>  });
>> 
>> });
>> 
>> Hope this helps.
>> 
>> 
>> 
>> 
>> Klaus Berkling
>> www.berkling.us <http://www.berkling.us/> <http://berkling.us/ 
>> <http://berkling.us/>> | Photography <https://kib.smugmug.com/ 
>> <https://kib.smugmug.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: AjaxDatePicker - can't use b || B

2017-05-18 Thread Calven Eggert
For the record, this change does fix the problem.  THANKS!

I do like the jQuery calendar though because it has features such as the Today 
button and the month/year menus.

Calven


> On May 17, 2017, at 9:55 PM, Michael Sharp <mich...@getsharp.org> wrote:
> 
> Perhaps calendar.js should use Date.normalizeFormat instead of the string 
> replacements currently in string_to_date
> 
> Replacing the following lines:
> 
> dateOrder = dateOrder.replace(/%A/,'');
> dateOrder = dateOrder.replace(/%[ed]/,'d');
> dateOrder = dateOrder.replace(/%[mbB]/,'M');
> dateOrder = dateOrder.replace(/%[yY]/,'');
> 
> with
> 
> dateOrder = Date.normalizeFormat(dateOrder);
> 
> Seems to do the job with a range of format patterns I’ve thrown at it so far.
> 
> Sharpy..
> 
> 
>> On 17 May 2017, at 1:05 am, Calven Eggert <cal...@mac.com 
>> <mailto:cal...@mac.com>> wrote:
>> 
>> Anyone familiar with the AjaxDatePicker?
>> 
>> I’ve narrowed down my problem to the following line in the calendar.js file 
>> in the function string_to_date:
>> var result = Date.parseExact(s, [dateOrder]);
>> 
>> The parsing of the date doesn’t work properly with some formats (even the 
>> default one) it returns null and therefore, uses the current date.  It used 
>> to, and the AjaxExample here 
>> (http://webobjects.mdimension.com/cgi-bin/WebObjects/AjaxExample.woa/1/wo/VrPvtPdTQHbyR0L5j9srB0/2.0.69
>>  
>> <http://webobjects.mdimension.com/cgi-bin/WebObjects/AjaxExample.woa/1/wo/VrPvtPdTQHbyR0L5j9srB0/2.0.69>)
>>  works fine.
>> 
>> 
>> Any suggestions?  Anyone using a different calendar popup window?
>> 
>> 
>> 
>>> Begin forwarded message:
>>> 
>>> From: Calven Eggert <cal...@mac.com <mailto:cal...@mac.com>>
>>> Subject: AjaxDatePicker - can't use b || B
>>> Date: May 15, 2017 at 2:05:00 PM EDT
>>> To: WebObjects-Dev <webobjects-dev@lists.apple.com 
>>> <mailto:webobjects-dev@lists.apple.com>>
>>> 
>>> Hi, All
>>> 
>>> The AjaxDatePicker with the month format of %b doesn’t work for me.  (%B 
>>> doesn’t work either.  It does work with %m) 
>>> 
>>> Using %b, it displays properly in the field (For example: 14-Jan-2017) 
>>> however, when you click on the field to display the calendar, instead of 
>>> showing my January month  it shows the current date (May 15).
>>> 
>>> Does someone else use the %b or %B format successfully?
>>> 
>>> Calven
>>> 
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/getsharp%40gmail.com 
>> <https://lists.apple.com/mailman/options/webobjects-dev/getsharp%40gmail.com>
>> 
>> This email sent to getsh...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Abandoning AjaxDatePicker for JQuery?

2017-05-18 Thread Calven Eggert
Klaus,

Thanks for your code.  The calendar works great however, I can’t get the new 
value of the date saved.  I’m guessing it has to do with the validateDate() 
function (Which I currently don’t use). For the variable value of my 
WOTextField I use the following:

value = patientActivityFieldValueAsDate

And in my java:

public NSTimestamp patientActivityFieldValueAsDate() {
return (NSTimestamp) currentField.valueForKey("fieldDateValue");
}
public void setPatientActivityFieldValueAsDate(NSTimestamp newValue) {
currentField.takeValueForKey(newValue, "fieldDateValue");
}

The setter is not being called after the update to the field.  What needs to be 
changed in order for this to get called? Can this get called from the 
validateDate js function?

Calven


> On May 17, 2017, at 6:41 AM, Calven Eggert <cal...@mac.com 
> <mailto:cal...@mac.com>> wrote:
> 
> It looks like I’m going to abandon the AjaxDatePicker because I can’t get it 
> to work with the date format my users want for this calendar.
> 
> Anyone have experience using WO with JQuery?  Any hints on how to get that 
> setup would be appreciated.
> 


I’m walking out the door but:

In the WOD:

StartDate : WOTextField {
value = event.startDate;
formatter = localDateFormatter;
placeholder = "mm/dd/";
class = "eventdatepicker";
onblur = "validateDate(this);";
onchange = "$('#Update').click();";
otherTagString = "readonly='true'";
}


And in a js file:


$(document).ready(function() {
console.log("Document ready.")

$(".eventdatepicker").datepicker({
dateFormat: "mm/dd/yy",
changeMonth: true,
changeYear: true,
yearRange: '-0y:+5y',
defaultDate: '0'
});

});

Hope this helps.




Klaus Berkling
www.berkling.us <http://www.berkling.us/> <http://berkling.us/ 
<http://berkling.us/>> | Photography <https://kib.smugmug.com/ 
<https://kib.smugmug.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Abandoning AjaxDatePicker for JQuery?

2017-05-17 Thread Calven Eggert
It looks like I’m going to abandon the AjaxDatePicker because I can’t get it to 
work with the date format my users want for this calendar.

Anyone have experience using WO with JQuery?  Any hints on how to get that 
setup would be appreciated.


Calven


> On May 16, 2017, at 11:05 AM, Calven Eggert <cal...@mac.com> wrote:
> 
> Anyone familiar with the AjaxDatePicker?
> 
> I’ve narrowed down my problem to the following line in the calendar.js file 
> in the function string_to_date:
> var result = Date.parseExact(s, [dateOrder]);
> 
> The parsing of the date doesn’t work properly with some formats (even the 
> default one) it returns null and therefore, uses the current date.  It used 
> to, and the AjaxExample here 
> (http://webobjects.mdimension.com/cgi-bin/WebObjects/AjaxExample.woa/1/wo/VrPvtPdTQHbyR0L5j9srB0/2.0.69
>  
> <http://webobjects.mdimension.com/cgi-bin/WebObjects/AjaxExample.woa/1/wo/VrPvtPdTQHbyR0L5j9srB0/2.0.69>)
>  works fine.
> 
> 
> Any suggestions?  Anyone using a different calendar popup window?
> 
> 
> 
>> Begin forwarded message:
>> 
>> From: Calven Eggert <cal...@mac.com <mailto:cal...@mac.com>>
>> Subject: AjaxDatePicker - can't use b || B
>> Date: May 15, 2017 at 2:05:00 PM EDT
>> To: WebObjects-Dev <webobjects-dev@lists.apple.com 
>> <mailto:webobjects-dev@lists.apple.com>>
>> 
>> Hi, All
>> 
>> The AjaxDatePicker with the month format of %b doesn’t work for me.  (%B 
>> doesn’t work either.  It does work with %m) 
>> 
>> Using %b, it displays properly in the field (For example: 14-Jan-2017) 
>> however, when you click on the field to display the calendar, instead of 
>> showing my January month  it shows the current date (May 15).
>> 
>> Does someone else use the %b or %B format successfully?
>> 
>> Calven
>> 
> 

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

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


Fwd: AjaxDatePicker - can't use b || B

2017-05-16 Thread Calven Eggert
Anyone familiar with the AjaxDatePicker?

I’ve narrowed down my problem to the following line in the calendar.js file in 
the function string_to_date:
var result = Date.parseExact(s, [dateOrder]);

The parsing of the date doesn’t work properly with some formats (even the 
default one) it returns null and therefore, uses the current date.  It used to, 
and the AjaxExample here 
(http://webobjects.mdimension.com/cgi-bin/WebObjects/AjaxExample.woa/1/wo/VrPvtPdTQHbyR0L5j9srB0/2.0.69
 
<http://webobjects.mdimension.com/cgi-bin/WebObjects/AjaxExample.woa/1/wo/VrPvtPdTQHbyR0L5j9srB0/2.0.69>)
 works fine.


Any suggestions?  Anyone using a different calendar popup window?



> Begin forwarded message:
> 
> From: Calven Eggert <cal...@mac.com>
> Subject: AjaxDatePicker - can't use b || B
> Date: May 15, 2017 at 2:05:00 PM EDT
> To: WebObjects-Dev <webobjects-dev@lists.apple.com>
> 
> Hi, All
> 
> The AjaxDatePicker with the month format of %b doesn’t work for me.  (%B 
> doesn’t work either.  It does work with %m) 
> 
> Using %b, it displays properly in the field (For example: 14-Jan-2017) 
> however, when you click on the field to display the calendar, instead of 
> showing my January month  it shows the current date (May 15).
> 
> Does someone else use the %b or %B format successfully?
> 
> Calven
> 

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

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


AjaxDatePicker - can't use b || B

2017-05-15 Thread Calven Eggert
Hi, All

The AjaxDatePicker with the month format of %b doesn’t work for me.  (%B 
doesn’t work either.  It does work with %m) 

Using %b, it displays properly in the field (For example: 14-Jan-2017) however, 
when you click on the field to display the calendar, instead of showing my 
January month  it shows the current date (May 15).

Does someone else use the %b or %B format successfully?

Calven

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

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

Re: Compiling ERExtensions in Sierra no worky

2017-05-09 Thread Calven Eggert
I’ve finally managed to get the ERExtensions to compile without errors.  The 
trick was to place the commons-lang3-3.5 folder (downloaded from apache) in the 
Libraries folder in ERExtensions like so:
/Users/calven/WonderSource/Frameworks/Core/ERExtensions/Libraries

And now all my WO projects run in Eclipse and from the terminal.

Calven

> On May 8, 2017, at 8:24 AM, Johann Werner <johann.wer...@posteo.de> wrote:
> 
> The reported constructor method signature
> 
> (String, String, String, String, int, boolean, boolean)
> 
> does only exist in Wonder’s variant of WOCookie and not in the original 
> WOCookie class. Thus you probably have some sort of class ordering problem in 
> your project. Check if ERXExtensions comes before JavaWebObjects.
> 
> jw
> 
> 
>> Am 08.05.2017 um 14:15 schrieb Calven Eggert <cal...@mac.com>:
>> 
>> 
>> I changed the woolies.properties to new point to the woolies.543.properties 
>> and now it works.  Thanks for that hint.  I suppose with the changes we 
>> discussed earlier in getting this setup it messed this up. 
>> 
>> However, I’m still having problems with one of my apps where I try to run it 
>> from eclipse and I get this error (which I thought was going to be corrected 
>> once that compile was working but no):
>> 
>> java.lang.NoSuchMethodError: 
>> com.webobjects.appserver.WOCookie.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZ)V
>> com.webobjects.foundation.NSForwardException [java.lang.NoSuchMethodError] 
>> com.webobjects.appserver.WOCookie.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZ)V:java.lang.NoSuchMethodError:
>>  
>> com.webobjects.appserver.WOCookie.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZ)V
>>  at 
>> com.webobjects.foundation.NSForwardException._runtimeExceptionForThrowable(NSForwardException.java:39)
>>  at 
>> com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:124)
>>  at 
>> com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588)
>>  at 
>> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532)
>>  at 
>> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:546)
>>  at 
>> com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:370)
>>  at 
>> com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:445)
>>  at 
>> com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
>>  at 
>> er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2092)
>>  at 
>> er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:2057)
>>  at COREApplication.dispatchRequest(COREApplication.java:461)
>>  at 
>> com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
>>  at 
>> com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
>>  at java.lang.Thread.run(Thread.java:748)
>> Caused by: java.lang.NoSuchMethodError: 
>> com.webobjects.appserver.WOCookie.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZ)V
>>  at 
>> er.extensions.appserver.ERXApplication.addBalancerRouteCookie(ERXApplication.java:2853)
>>  at 
>> er.extensions.appserver.ERXApplication.addBalancerRouteCookieByNotification(ERXApplication.java:2836)
>>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>  at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>  at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>  at java.lang.reflect.Method.invoke(Method.java:498)
>>  at 
>> com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
>>  ... 12 more
>> 
>> 
>> It works if I run the app from the terminal.  What am I missing here?
>> 
>> 
>> 
>>> On May 8, 2017, at 7:52 AM, Theodore Petrosky <tedp...@yahoo.com> wrote:
>>> 
>>> I think you are going to find that your Apple WebObjects files are hurt. Of 
>>> course you will not be able to use the apple WebObjects.mpkg will not 
>>> install WO. You will need to use the WOInstaller.jar.
>>> 
>>> What do you have in your wobuild.properties (~/Library), and what about 
>>> ~/Library/Application\ Supp

Re: Compiling ERExtensions in Sierra no worky

2017-05-08 Thread Calven Eggert
I deleted the Root folder and did the ant frameworks and unfortunately the 
build on the ERExtensions is still an error as described before (error: package 
org.apache.commons.lang3.builder does not exist)

So I think that if this problem gets solved then I think it’ll all work.  What 
is that all about?


> On May 8, 2017, at 8:34 AM, Johann Werner <johann.wer...@posteo.de> wrote:
> 
> 
>> Am 08.05.2017 um 14:30 schrieb Calven Eggert <cal...@mac.com>:
>> 
>> Hmmm, do you mean ERExtensions? I don’t have ERXExtensions in my build path.
> 
> yes
> 
>> 
>> 
>>> On May 8, 2017, at 8:24 AM, Johann Werner <johann.wer...@posteo.de> wrote:
>>> 
>>> The reported constructor method signature
>>> 
>>> (String, String, String, String, int, boolean, boolean)
>>> 
>>> does only exist in Wonder’s variant of WOCookie and not in the original 
>>> WOCookie class. Thus you probably have some sort of class ordering problem 
>>> in your project. Check if ERXExtensions comes before JavaWebObjects.
>>> 
>>> jw
>>> 
>>> 
>>>> Am 08.05.2017 um 14:15 schrieb Calven Eggert <cal...@mac.com>:
>>>> 
>>>> 
>>>> I changed the woolies.properties to new point to the 
>>>> woolies.543.properties and now it works.  Thanks for that hint.  I suppose 
>>>> with the changes we discussed earlier in getting this setup it messed this 
>>>> up. 
>>>> 
>>>> However, I’m still having problems with one of my apps where I try to run 
>>>> it from eclipse and I get this error (which I thought was going to be 
>>>> corrected once that compile was working but no):
>>>> 
>>>> java.lang.NoSuchMethodError: 
>>>> com.webobjects.appserver.WOCookie.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZ)V
>>>> com.webobjects.foundation.NSForwardException [java.lang.NoSuchMethodError] 
>>>> com.webobjects.appserver.WOCookie.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZ)V:java.lang.NoSuchMethodError:
>>>>  
>>>> com.webobjects.appserver.WOCookie.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZ)V
>>>>at 
>>>> com.webobjects.foundation.NSForwardException._runtimeExceptionForThrowable(NSForwardException.java:39)
>>>>at 
>>>> com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:124)
>>>>at 
>>>> com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588)
>>>>at 
>>>> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532)
>>>>at 
>>>> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:546)
>>>>at 
>>>> com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:370)
>>>>at 
>>>> com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:445)
>>>>at 
>>>> com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
>>>>at 
>>>> er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2092)
>>>>at 
>>>> er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:2057)
>>>>at COREApplication.dispatchRequest(COREApplication.java:461)
>>>>at 
>>>> com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
>>>>at 
>>>> com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
>>>>at java.lang.Thread.run(Thread.java:748)
>>>> Caused by: java.lang.NoSuchMethodError: 
>>>> com.webobjects.appserver.WOCookie.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZ)V
>>>>at 
>>>> er.extensions.appserver.ERXApplication.addBalancerRouteCookie(ERXApplication.java:2853)
>>>>at 
>>>> er.extensions.appserver.ERXApplication.addBalancerRouteCookieByNotification(ERXApplication.java:2836)
>>>>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>at 
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>at 
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>

Re: Compiling ERExtensions in Sierra no worky

2017-05-08 Thread Calven Eggert
Hmmm, do you mean ERExtensions? I don’t have ERXExtensions in my build path.



> On May 8, 2017, at 8:24 AM, Johann Werner <johann.wer...@posteo.de> wrote:
> 
> The reported constructor method signature
> 
> (String, String, String, String, int, boolean, boolean)
> 
> does only exist in Wonder’s variant of WOCookie and not in the original 
> WOCookie class. Thus you probably have some sort of class ordering problem in 
> your project. Check if ERXExtensions comes before JavaWebObjects.
> 
> jw
> 
> 
>> Am 08.05.2017 um 14:15 schrieb Calven Eggert <cal...@mac.com>:
>> 
>> 
>> I changed the woolies.properties to new point to the woolies.543.properties 
>> and now it works.  Thanks for that hint.  I suppose with the changes we 
>> discussed earlier in getting this setup it messed this up. 
>> 
>> However, I’m still having problems with one of my apps where I try to run it 
>> from eclipse and I get this error (which I thought was going to be corrected 
>> once that compile was working but no):
>> 
>> java.lang.NoSuchMethodError: 
>> com.webobjects.appserver.WOCookie.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZ)V
>> com.webobjects.foundation.NSForwardException [java.lang.NoSuchMethodError] 
>> com.webobjects.appserver.WOCookie.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZ)V:java.lang.NoSuchMethodError:
>>  
>> com.webobjects.appserver.WOCookie.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZ)V
>>  at 
>> com.webobjects.foundation.NSForwardException._runtimeExceptionForThrowable(NSForwardException.java:39)
>>  at 
>> com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:124)
>>  at 
>> com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588)
>>  at 
>> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532)
>>  at 
>> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:546)
>>  at 
>> com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:370)
>>  at 
>> com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:445)
>>  at 
>> com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
>>  at 
>> er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2092)
>>  at 
>> er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:2057)
>>  at COREApplication.dispatchRequest(COREApplication.java:461)
>>  at 
>> com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
>>  at 
>> com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
>>  at java.lang.Thread.run(Thread.java:748)
>> Caused by: java.lang.NoSuchMethodError: 
>> com.webobjects.appserver.WOCookie.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZ)V
>>  at 
>> er.extensions.appserver.ERXApplication.addBalancerRouteCookie(ERXApplication.java:2853)
>>  at 
>> er.extensions.appserver.ERXApplication.addBalancerRouteCookieByNotification(ERXApplication.java:2836)
>>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>  at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>  at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>  at java.lang.reflect.Method.invoke(Method.java:498)
>>  at 
>> com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
>>  ... 12 more
>> 
>> 
>> It works if I run the app from the terminal.  What am I missing here?
>> 
>> 
>> 
>>> On May 8, 2017, at 7:52 AM, Theodore Petrosky <tedp...@yahoo.com> wrote:
>>> 
>>> I think you are going to find that your Apple WebObjects files are hurt. Of 
>>> course you will not be able to use the apple WebObjects.mpkg will not 
>>> install WO. You will need to use the WOInstaller.jar.
>>> 
>>> What do you have in your wobuild.properties (~/Library), and what about 
>>> ~/Library/Application\ Support/WOLips/wolips.properties
>>> 
>>> I spun my wheels for hours to get this to work again in Sierra.
>>> 
>>> 
>>>> On May 8, 2017, at 7:41 AM, Calven Eggert <cal...@mac.com> wrote:
>>>> 
>>

Re: Compiling ERExtensions in Sierra no worky

2017-05-08 Thread Calven Eggert

I changed the woolies.properties to new point to the woolies.543.properties and 
now it works.  Thanks for that hint.  I suppose with the changes we discussed 
earlier in getting this setup it messed this up. 

However, I’m still having problems with one of my apps where I try to run it 
from eclipse and I get this error (which I thought was going to be corrected 
once that compile was working but no):

java.lang.NoSuchMethodError: 
com.webobjects.appserver.WOCookie.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZ)V
com.webobjects.foundation.NSForwardException [java.lang.NoSuchMethodError] 
com.webobjects.appserver.WOCookie.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZ)V:java.lang.NoSuchMethodError:
 
com.webobjects.appserver.WOCookie.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZ)V
at 
com.webobjects.foundation.NSForwardException._runtimeExceptionForThrowable(NSForwardException.java:39)
at 
com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:124)
at 
com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588)
at 
com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532)
at 
com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:546)
at 
com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:370)
at 
com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:445)
at 
com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
at 
er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2092)
at 
er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:2057)
at COREApplication.dispatchRequest(COREApplication.java:461)
at 
com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at 
com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoSuchMethodError: 
com.webobjects.appserver.WOCookie.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZ)V
at 
er.extensions.appserver.ERXApplication.addBalancerRouteCookie(ERXApplication.java:2853)
at 
er.extensions.appserver.ERXApplication.addBalancerRouteCookieByNotification(ERXApplication.java:2836)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at 
com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
... 12 more


It works if I run the app from the terminal.  What am I missing here?



> On May 8, 2017, at 7:52 AM, Theodore Petrosky <tedp...@yahoo.com> wrote:
> 
> I think you are going to find that your Apple WebObjects files are hurt. Of 
> course you will not be able to use the apple WebObjects.mpkg will not install 
> WO. You will need to use the WOInstaller.jar.
> 
> What do you have in your wobuild.properties (~/Library), and what about 
> ~/Library/Application\ Support/WOLips/wolips.properties
> 
> I spun my wheels for hours to get this to work again in Sierra.
> 
> 
>> On May 8, 2017, at 7:41 AM, Calven Eggert <cal...@mac.com 
>> <mailto:cal...@mac.com>> wrote:
>> 
>> I get the same error for this source.
>> 
>> 
>>> On May 7, 2017, at 5:57 PM, Theodore Petrosky <tedp...@yahoo.com 
>>> <mailto:tedp...@yahoo.com>> wrote:
>>> 
>>> So, you are trying to build ERExtensions only? What do you get when you do 
>>> an ‘ant frameworks’ at the top level of your repo?
>>> 
>>> 
>>>> On May 7, 2017, at 4:23 PM, Calven Eggert <cal...@mac.com 
>>>> <mailto:cal...@mac.com>> wrote:
>>>> 
>>>> I’ve been installing my dev environment on a new Mac in Sierra however, 
>>>> I’m having problems with one of my applications.  When I build the Wonder 
>>>> code I get an error with ERExtensions. See below.  I’ve downloaded the 
>>>> file org.apache.commons.lang3 cause of the error message but I still get 
>>>> the error.  I’m not sure where this new file should go but something tells 
>>>> me this setup doesn’t feel quite right.  Anyone else have the issue?
>>>> 
>>>> Calven
>>>> --
>>>> 
>>>> calven

Re: Compiling ERExtensions in Sierra no worky

2017-05-08 Thread Calven Eggert
I get the same error for this source.


> On May 7, 2017, at 5:57 PM, Theodore Petrosky <tedp...@yahoo.com> wrote:
> 
> So, you are trying to build ERExtensions only? What do you get when you do an 
> ‘ant frameworks’ at the top level of your repo?
> 
> 
>> On May 7, 2017, at 4:23 PM, Calven Eggert <cal...@mac.com 
>> <mailto:cal...@mac.com>> wrote:
>> 
>> I’ve been installing my dev environment on a new Mac in Sierra however, I’m 
>> having problems with one of my applications.  When I build the Wonder code I 
>> get an error with ERExtensions. See below.  I’ve downloaded the file 
>> org.apache.commons.lang3 cause of the error message but I still get the 
>> error.  I’m not sure where this new file should go but something tells me 
>> this setup doesn’t feel quite right.  Anyone else have the issue?
>> 
>> Calven
>> --
>> 
>> calven$ cd /Users/calven/WonderSource/Frameworks/Core/ERExtensions 
>> calven$ ant
>> Buildfile: /Users/calven/WonderSource/Frameworks/Core/ERExtensions/build.xml
>> 
>> clean:
>> 
>> ERExtensions.all:
>> 
>> global.environment:
>> 
>> global.properties:
>> 
>> global.framework.clean:
>>[delete] Deleting directory /Users/calven/Roots/classes/ERExtensions
>> 
>> build:
>> 
>> ERExtensions.all:
>> 
>> global.environment:
>> 
>> global.properties:
>> 
>> global.prepare:
>> [mkdir] Created dir: /Users/calven/Roots/classes/ERExtensions
>> 
>> global.compile:
>> 
>> global.dummy:
>> [wocompile] Compiling 524 source files to 
>> /Users/calven/Roots/classes/ERExtensions
>> [wocompile] 
>> /Users/calven/WonderSource/Frameworks/Core/ERExtensions/Sources/er/extensions/eof/ERXSortOrdering.java:5:
>>  error: package org.apache.commons.lang3.builder does not exist
>> [wocompile] import org.apache.commons.lang3.builder.HashCodeBuilder;
>> [wocompile]^
>> [wocompile] 
>> /Users/calven/WonderSource/Frameworks/Core/ERExtensions/Sources/er/extensions/eof/qualifiers/ERXExistsQualifier.java:13:
>>  error: package org.apache.commons.lang3 does not exist
>> [wocompile] import org.apache.commons.lang3.StringUtils;
>> [wocompile]^
>> [wocompile] 
>> /Users/calven/WonderSource/Frameworks/Core/ERExtensions/Sources/er/extensions/eof/qualifiers/ERXExistsQualifier.java:14:
>>  error: package org.slf4j does not exist
>> [wocompile] import org.slf4j.Logger;
>> [wocompile] ^
>> [wocompile] 
>> /Users/calven/WonderSource/Frameworks/Core/ERExtensions/Sources/er/extensions/eof/qualifiers/ERXExistsQualifier.java:15:
>>  error: package org.slf4j does not exist
>> [wocompile] import org.slf4j.LoggerFactory;
>> [wocompile] ^
>> [wocompile] 
>> /Users/calven/WonderSource/Frameworks/Core/ERExtensions/Sources/er/extensions/eof/ERXFetchResultCache.java:3:
>>  error: package org.slf4j does not exist
>> [wocompile] import org.slf4j.Logger;
>> [wocompile] ^
>> [wocompile] 
>> /Users/calven/WonderSource/Frameworks/Core/ERExtensions/Sources/er/extensions/eof/ERXFetchResultCache.java:4:
>>  error: package org.slf4j does not exist
>> [wocompile] import org.slf4j.LoggerFactory;
>> [wocompile] ^
>> [wocompile] 
>> /Users/calven/WonderSource/Frameworks/Core/ERExtensions/Sources/er/extensions/eof/qualifiers/ERXExistsQualifier.java:69:
>>  error: cannot find symbol
>> [wocompile]  static final Logger log = 
>> LoggerFactory.getLogger(ERXExistsQualifier.class);
>> [wocompile]   ^
>> [wocompile]   symbol:   class Logger
>> …
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com 
>> <https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com>
>> 
>> This email sent to tedp...@yahoo.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Compiling ERExtensions in Sierra no worky

2017-05-07 Thread Calven Eggert
I’ve been installing my dev environment on a new Mac in Sierra however, I’m 
having problems with one of my applications.  When I build the Wonder code I 
get an error with ERExtensions. See below.  I’ve downloaded the file 
org.apache.commons.lang3 cause of the error message but I still get the error.  
I’m not sure where this new file should go but something tells me this setup 
doesn’t feel quite right.  Anyone else have the issue?

Calven
--

calven$ cd /Users/calven/WonderSource/Frameworks/Core/ERExtensions 
calven$ ant
Buildfile: /Users/calven/WonderSource/Frameworks/Core/ERExtensions/build.xml

clean:

ERExtensions.all:

global.environment:

global.properties:

global.framework.clean:
   [delete] Deleting directory /Users/calven/Roots/classes/ERExtensions

build:

ERExtensions.all:

global.environment:

global.properties:

global.prepare:
[mkdir] Created dir: /Users/calven/Roots/classes/ERExtensions

global.compile:

global.dummy:
[wocompile] Compiling 524 source files to 
/Users/calven/Roots/classes/ERExtensions
[wocompile] 
/Users/calven/WonderSource/Frameworks/Core/ERExtensions/Sources/er/extensions/eof/ERXSortOrdering.java:5:
 error: package org.apache.commons.lang3.builder does not exist
[wocompile] import org.apache.commons.lang3.builder.HashCodeBuilder;
[wocompile]^
[wocompile] 
/Users/calven/WonderSource/Frameworks/Core/ERExtensions/Sources/er/extensions/eof/qualifiers/ERXExistsQualifier.java:13:
 error: package org.apache.commons.lang3 does not exist
[wocompile] import org.apache.commons.lang3.StringUtils;
[wocompile]^
[wocompile] 
/Users/calven/WonderSource/Frameworks/Core/ERExtensions/Sources/er/extensions/eof/qualifiers/ERXExistsQualifier.java:14:
 error: package org.slf4j does not exist
[wocompile] import org.slf4j.Logger;
[wocompile] ^
[wocompile] 
/Users/calven/WonderSource/Frameworks/Core/ERExtensions/Sources/er/extensions/eof/qualifiers/ERXExistsQualifier.java:15:
 error: package org.slf4j does not exist
[wocompile] import org.slf4j.LoggerFactory;
[wocompile] ^
[wocompile] 
/Users/calven/WonderSource/Frameworks/Core/ERExtensions/Sources/er/extensions/eof/ERXFetchResultCache.java:3:
 error: package org.slf4j does not exist
[wocompile] import org.slf4j.Logger;
[wocompile] ^
[wocompile] 
/Users/calven/WonderSource/Frameworks/Core/ERExtensions/Sources/er/extensions/eof/ERXFetchResultCache.java:4:
 error: package org.slf4j does not exist
[wocompile] import org.slf4j.LoggerFactory;
[wocompile] ^
[wocompile] 
/Users/calven/WonderSource/Frameworks/Core/ERExtensions/Sources/er/extensions/eof/qualifiers/ERXExistsQualifier.java:69:
 error: cannot find symbol
[wocompile] static final Logger log = 
LoggerFactory.getLogger(ERXExistsQualifier.class);
[wocompile]  ^
[wocompile]   symbol:   class Logger
…

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

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


Re: Eclipse - WOLips & Sierra

2017-05-01 Thread Calven Eggert
Here is the file.  The only difference between this and the one on my old 
system is the location of the properties file which simply needed the 
“/Users/calven” added to the front:

webXML_CustomContent=
project.name=COREAdmin
webXML=false
eoAdaptorClassName=
principalClass=Application
embed.Local=true
classes.dir=bin
customInfoPListContent=
project.type=application
wolips.properties=/Users/calven/Library/Application 
Support/WOLips/wolips.543.properties

> On May 1, 2017, at 2:14 PM, Theodore Petrosky <tedp...@yahoo.com> wrote:
> 
> would you post your build.properties file? I’d love to see it.
> 
> 
>> On May 1, 2017, at 1:58 PM, Calven Eggert <cal...@mac.com 
>> <mailto:cal...@mac.com>> wrote:
>> 
>> Thru trial and error I’ve finally figured this out.  I have a 
>> build.properties file in my wo project folder and that needed to point to 
>> the right wolips.543.properties file.
>> 
>> Thanks for your assistance Ted!
>> 
>> Calven
>> 
>>> On May 1, 2017, at 1:01 PM, Theodore Petrosky <tedp...@yahoo.com 
>>> <mailto:tedp...@yahoo.com>> wrote:
>>> 
>>> zip up the wolips.properties file (so we can save it). Dupe the 
>>> wolips.543.properties file and rename it wolips.properties
>>> 
>>> I want to be sure that the install process is or is not using the 
>>> wolips.properties file. Did you do a cleaning and refresh of your workarea?
>>> 
>>> it is just a test.
>>> 
>>> Do you have the Wonder frameworks imported? have you run ant frameworks 
>>> yada yada or do you download the compiled frameworks. I mean you said this 
>>> is a new instal of Sierra. I just wiped my drive and installed Sierra and I 
>>> have no problems, but I set it up as a new install. I cloned (git) the 
>>> repository and installed the Wonder frameworks with ant frameworks; ant 
>>> frameworks install on the CLI
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>>> On May 1, 2017, at 12:39 PM, Calven Eggert <cal...@mac.com 
>>>> <mailto:cal...@mac.com>> wrote:
>>>> 
>>>> Thanks for the idea Ted.  I just copied the wolips.543.properties into the 
>>>> location you suggested, however, I received the same error. hmmm...
>>>> 
>>>> And yes, there is a wolips.properties in the WOLips folder.
>>>> 
>>>>> On May 1, 2017, at 12:19 PM, Theodore Petrosky <tedp...@yahoo.com 
>>>>> <mailto:tedp...@yahoo.com>> wrote:
>>>>> 
>>>>> I am about as clueless as a bean but I went looking in my 
>>>>> ~/Library/Application Support/WOLips and I see a folders and files named:
>>>>>  ~ (tilde)folder
>>>>> Project Templates folder
>>>>> wolips.543.properties   file
>>>>> wolips.properties  file
>>>>> 
>>>>> I followed the structure from the folder named with the tilde and there 
>>>>> is a wolips.543.properties at: /Users/asacksadmin/Library/Application\ 
>>>>> Support/WOLips/\~/Library/Application\ 
>>>>> Support/Wolips/wolips.543.properties
>>>>> 
>>>>> I opened Eclipse and viewed the WOLips preferences. I changed the 
>>>>> spelling of one of the entries and saved it. The only file to change was 
>>>>> the wolips.543.properties at ~/Library/Application\ Support/WOLips
>>>>> 
>>>>> So do you have a wolips.543.properties at  
>>>>> /Users/calven/git/coreadmin/Library/WOLips? If no, put one there and make 
>>>>> sure it is populated with what you want.
>>>>> 
>>>>> I renamed the folder with the tilde, ran eclipse, did stuff, altered my 
>>>>> WOLips preferences and the system never complained about a missing file 
>>>>> or folder.
>>>>> 
>>>>> copy or move the file wolips.543.properties to 
>>>>> /Users/calven/git/coreadmin/Library/WOLips and see if the problem goes 
>>>>> away.
>>>>> 
>>>>> BTW do you have a wolips.properties in that folder? I am not sure but, if 
>>>>> you ever compile from the CLI i think the compilation process will use 
>>>>> that file for its prefs. I THINK but don’t know for sure.
>>>>> 
>>>>> Ted
>>>>> 
>>>>> 
>>>>>> On May 1, 2017, at 10:58 AM, Calven Eggert <cal...@mac.com 
>>>>>> <mailto:cal...@mac.com>

Re: Eclipse - WOLips & Sierra

2017-05-01 Thread Calven Eggert
Thru trial and error I’ve finally figured this out.  I have a build.properties 
file in my wo project folder and that needed to point to the right 
wolips.543.properties file.

Thanks for your assistance Ted!

Calven

> On May 1, 2017, at 1:01 PM, Theodore Petrosky <tedp...@yahoo.com> wrote:
> 
> zip up the wolips.properties file (so we can save it). Dupe the 
> wolips.543.properties file and rename it wolips.properties
> 
> I want to be sure that the install process is or is not using the 
> wolips.properties file. Did you do a cleaning and refresh of your workarea?
> 
> it is just a test.
> 
> Do you have the Wonder frameworks imported? have you run ant frameworks yada 
> yada or do you download the compiled frameworks. I mean you said this is a 
> new instal of Sierra. I just wiped my drive and installed Sierra and I have 
> no problems, but I set it up as a new install. I cloned (git) the repository 
> and installed the Wonder frameworks with ant frameworks; ant frameworks 
> install on the CLI
> 
> 
> 
> 
> 
> 
>> On May 1, 2017, at 12:39 PM, Calven Eggert <cal...@mac.com 
>> <mailto:cal...@mac.com>> wrote:
>> 
>> Thanks for the idea Ted.  I just copied the wolips.543.properties into the 
>> location you suggested, however, I received the same error. hmmm...
>> 
>> And yes, there is a wolips.properties in the WOLips folder.
>> 
>>> On May 1, 2017, at 12:19 PM, Theodore Petrosky <tedp...@yahoo.com 
>>> <mailto:tedp...@yahoo.com>> wrote:
>>> 
>>> I am about as clueless as a bean but I went looking in my 
>>> ~/Library/Application Support/WOLips and I see a folders and files named:
>>>  ~ (tilde)folder
>>> Project Templates folder
>>> wolips.543.properties   file
>>> wolips.properties  file
>>> 
>>> I followed the structure from the folder named with the tilde and there is 
>>> a wolips.543.properties at: /Users/asacksadmin/Library/Application\ 
>>> Support/WOLips/\~/Library/Application\ Support/Wolips/wolips.543.properties
>>> 
>>> I opened Eclipse and viewed the WOLips preferences. I changed the spelling 
>>> of one of the entries and saved it. The only file to change was the 
>>> wolips.543.properties at ~/Library/Application\ Support/WOLips
>>> 
>>> So do you have a wolips.543.properties at  
>>> /Users/calven/git/coreadmin/Library/WOLips? If no, put one there and make 
>>> sure it is populated with what you want.
>>> 
>>> I renamed the folder with the tilde, ran eclipse, did stuff, altered my 
>>> WOLips preferences and the system never complained about a missing file or 
>>> folder.
>>> 
>>> copy or move the file wolips.543.properties to 
>>> /Users/calven/git/coreadmin/Library/WOLips and see if the problem goes away.
>>> 
>>> BTW do you have a wolips.properties in that folder? I am not sure but, if 
>>> you ever compile from the CLI i think the compilation process will use that 
>>> file for its prefs. I THINK but don’t know for sure.
>>> 
>>> Ted
>>> 
>>> 
>>>> On May 1, 2017, at 10:58 AM, Calven Eggert <cal...@mac.com 
>>>> <mailto:cal...@mac.com>> wrote:
>>>> 
>>>> Hi, All
>>>> 
>>>> I’ve got a shiny new MacBook Pro (OS = Sierra) and have installed Eclipse 
>>>> & WOLips and can get my WO projects to compile and run in Eclipse.  The 
>>>> last step is to do the WOLips Ant Tools Install.  That steps gives me an 
>>>> error:
>>>> /Users/calven/git/coreadmin/COREAdmin/build.xml:36: The properties 
>>>> 'wo.system.frameworks' and 'wo.local.frameworks' must be set. Check that 
>>>> your ~/Library/Application Support/WOLips/wolips.543.properties is correct.
>>>> 
>>>> And the strange part is that in my ~/Library/Application Support/WOLips/ 
>>>> folder when I run the install it creates a new folder with the actual name 
>>>> of “~” and then creates the rest of the folders /Library/Application 
>>>> Support/WOLips and also creates a wolips.543.properties file there too.  
>>>> So my folder structure then looks like this:
>>>> 
>>>> ~/Library/Application Support/WOLips/~/Library/Application 
>>>> Support/WOLips/wolips.543.properties
>>>> 
>>>> I’m guessing the error message is because this new woolies.543.properties 
>>>> is wrong.  Anyone have a clue what is going on here?
>>>> 
>>>> Calven
>>>> 
&g

Re: Eclipse - WOLips & Sierra

2017-05-01 Thread Calven Eggert
Thanks for the idea Ted.  I just copied the wolips.543.properties into the 
location you suggested, however, I received the same error. hmmm...

And yes, there is a wolips.properties in the WOLips folder.

> On May 1, 2017, at 12:19 PM, Theodore Petrosky <tedp...@yahoo.com> wrote:
> 
> I am about as clueless as a bean but I went looking in my 
> ~/Library/Application Support/WOLips and I see a folders and files named:
>  ~ (tilde)folder
> Project Templates folder
> wolips.543.properties   file
> wolips.properties  file
> 
> I followed the structure from the folder named with the tilde and there is a 
> wolips.543.properties at: /Users/asacksadmin/Library/Application\ 
> Support/WOLips/\~/Library/Application\ Support/Wolips/wolips.543.properties
> 
> I opened Eclipse and viewed the WOLips preferences. I changed the spelling of 
> one of the entries and saved it. The only file to change was the 
> wolips.543.properties at ~/Library/Application\ Support/WOLips
> 
> So do you have a wolips.543.properties at  
> /Users/calven/git/coreadmin/Library/WOLips? If no, put one there and make 
> sure it is populated with what you want.
> 
> I renamed the folder with the tilde, ran eclipse, did stuff, altered my 
> WOLips preferences and the system never complained about a missing file or 
> folder.
> 
> copy or move the file wolips.543.properties to 
> /Users/calven/git/coreadmin/Library/WOLips and see if the problem goes away.
> 
> BTW do you have a wolips.properties in that folder? I am not sure but, if you 
> ever compile from the CLI i think the compilation process will use that file 
> for its prefs. I THINK but don’t know for sure.
> 
> Ted
> 
> 
>> On May 1, 2017, at 10:58 AM, Calven Eggert <cal...@mac.com 
>> <mailto:cal...@mac.com>> wrote:
>> 
>> Hi, All
>> 
>> I’ve got a shiny new MacBook Pro (OS = Sierra) and have installed Eclipse & 
>> WOLips and can get my WO projects to compile and run in Eclipse.  The last 
>> step is to do the WOLips Ant Tools Install.  That steps gives me an error:
>> /Users/calven/git/coreadmin/COREAdmin/build.xml:36: The properties 
>> 'wo.system.frameworks' and 'wo.local.frameworks' must be set. Check that 
>> your ~/Library/Application Support/WOLips/wolips.543.properties is correct.
>> 
>> And the strange part is that in my ~/Library/Application Support/WOLips/ 
>> folder when I run the install it creates a new folder with the actual name 
>> of “~” and then creates the rest of the folders /Library/Application 
>> Support/WOLips and also creates a wolips.543.properties file there too.  So 
>> my folder structure then looks like this:
>> 
>> ~/Library/Application Support/WOLips/~/Library/Application 
>> Support/WOLips/wolips.543.properties
>> 
>> I’m guessing the error message is because this new woolies.543.properties is 
>> wrong.  Anyone have a clue what is going on here?
>> 
>> Calven
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com 
>> <https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com>
>> 
>> This email sent to tedp...@yahoo.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Eclipse - WOLips & Sierra

2017-05-01 Thread Calven Eggert
Hi, All

I’ve got a shiny new MacBook Pro (OS = Sierra) and have installed Eclipse & 
WOLips and can get my WO projects to compile and run in Eclipse.  The last step 
is to do the WOLips Ant Tools Install.  That steps gives me an error:
/Users/calven/git/coreadmin/COREAdmin/build.xml:36: The properties 
'wo.system.frameworks' and 'wo.local.frameworks' must be set. Check that your 
~/Library/Application Support/WOLips/wolips.543.properties is correct.

And the strange part is that in my ~/Library/Application Support/WOLips/ folder 
when I run the install it creates a new folder with the actual name of “~” and 
then creates the rest of the folders /Library/Application Support/WOLips and 
also creates a wolips.543.properties file there too.  So my folder structure 
then looks like this:

~/Library/Application Support/WOLips/~/Library/Application 
Support/WOLips/wolips.543.properties

I’m guessing the error message is because this new woolies.543.properties is 
wrong.  Anyone have a clue what is going on here?

Calven

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

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


Re: AjaxDatePicker Alternative?

2017-03-15 Thread Calven Eggert
Thanks Ralf.  This looks great!  What would I need to do to use with WO?  I 
currently do not use jquery.


Calven


> On Mar 15, 2017, at 9:14 AM, Ralf Schuchardt <r...@gmx.de> wrote:
> 
> Hi Calven,
> 
> I use jQueryUIs Datepicker (http://jqueryui.com/datepicker/ 
> <http://jqueryui.com/datepicker/>). It can be enabled on any input field, and 
> you only must ensure the date formats are compatible.
> 
> Ralf
> Am 15. März 2017 um 13:40:23, Calven Eggert (cal...@mac.com 
> <mailto:cal...@mac.com>) schrieb:
> 
>> Hello, All 
>> 
>> I'm finding that the AjaxDatePicker has a few issues in it that can't be 
>> easily resolved. Does anyone use an alternative solution that presents a 
>> calendar in a popup window? 
>> 
>> Calven 
>> 
>> 
>> ___ 
>> Do not post admin requests to the list. They will be ignored. 
>> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>) 
>> Help/Unsubscribe/Update your Subscription: 
>> https://lists.apple.com/mailman/options/webobjects-dev/rasc%40gmx.de 
>> <https://lists.apple.com/mailman/options/webobjects-dev/rasc%40gmx.de> 
>> 
>> This email sent to r...@gmx.de <mailto:r...@gmx.de>
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


AjaxDatePicker Alternative?

2017-03-15 Thread Calven Eggert
Hello, All

I'm finding that the AjaxDatePicker has a few issues in it that can't be easily 
resolved.  Does anyone use an alternative solution that presents a calendar in 
a popup window?

Calven


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

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


Re: The WOCommunity slack channel

2016-09-06 Thread Calven Eggert
hmmm, I know nothing about Slack.  Why should I join there when we have 
everything here? :-)

Calven



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

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

Eclipse Snippets

2016-07-21 Thread Calven Eggert
Hi, All

I've been on an extra efficiency kick lately (in terms of coding) and was 
wondering what snippets others are using in Eclipse for Java, HTML & WOD to 
speed up their programming?

Calven


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

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

WebObjects Time Fields

2016-07-06 Thread Calven Eggert
Hi, All

What are people using these days to display a time field for users to select 
hour/minute?

Calven


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

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

WOWODC

2016-06-28 Thread Calven Eggert
Thank you to Pascal for all the work he has done in making the arrangements for 
WOWODC.  It was a successful conference on all accounts!

It was great to meet up with fellow WO developers from around the world.  As I 
stated at the conference, I'm willing to put together a profile of all the 
members (companies and/or individuals) of the WO community that are interested 
in participating.  What is the purpose?  To showcase the WO community and their 
cool/interesting IT solutions.  Dr. Daniel Faber from Salt Lake City 
(http://www.spinalinterventions.com/ ) has 
already volunteered to be the first one to provide us with a profile. What a 
great story; a doctor that wrote his own WO solution for his clinic.  

I think that the first step would be to agree on what information the profile 
should contain.  Alternatively, I can go away and propose what information to 
gather and present to all on this list or to only those interested.  Do people 
want to discuss this on the list or on a separate email thread?

Now is a great opportunity to send out a press release, or something like it, 
or at least an email to Kif Leswing @ Business Insider 
(http://www.businessinsider.com/apple-officially-discontinues-webobjects-2016-5 
),
  talking about key presentations at the conference, comments participants have 
and perhaps highlight a few WO solutions.  The point I think is that even 
though WO may be dead to Apple, we are moving forward and we've discussed a 
number of ideas about where we want to go and how to do it.  (I'm willing to 
put this all together)  What do YOU think?


FYI, for those of you in the Toronto area there is a group that meets once a 
month to discuss WO stuff, iOS stuff, IT stuff in general and then discuss more 
'stuff' with a drink in hand.  Here is the link to the meet up group:
http://www.meetup.com/tacow-org/  

Next meeting is July 12th.  I hope to see you there.


Calven


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

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

Re: Design Ideas

2016-06-23 Thread Calven Eggert
Our app will not have the ability to create tables, columns, etc. in the 
production environment. Tables will have to be already created. 


Calven


> On Jun 23, 2016, at 9:05 AM, Stavros Panidis <stavros.pani...@gmail.com> 
> wrote:
> 
> Hi Calven,
> 
> Definitely I am not an expert! I am a amateur (translation to Greek language 
> is erasi texnis which means the lover of art).
> 
> I faced the same question some years before, for the same exactly target. I 
> found a solution and it works for around 3 years now at the department of 
> Nephrology, Papageorgiou General Hospital, Thessaloniki, Greece.
> 
> It is something  like FileMaker where the user can create his own tables, 
> adding desired variables to each table, even after a table has been created 
> and filled with data
> 
> As a general design outline I use EO to make my own schema backbone and then 
> I use raw sql to communicate with database.
> 
> Hope I helped  little.
> 
> Best regards
> 
> Stavros
>> 
>> Message: 4
>> Date: Wed, 22 Jun 2016 11:33:30 -0400
>> From: Calven Eggert <cal...@mac.com>
>> To: WebObjects-Dev <webobjects-dev@lists.apple.com>
>> Subject: Design Ideas?
>> Message-ID: <dd4d4fb0-4f27-4e05-b761-f239f98c7...@mac.com>
>> Content-Type: text/plain; charset="utf-8"
>> 
>> Hi all,
>> 
>> My question is not simply a WO question, however, perhaps the WO experts 
>> have a best practice way of doing this in WOnder.
>> 
>> I've been asked to design an application that tracks a process that a 
>> patient goes through, with the following:
>> 
>> 1. Each patient will follow one of many different paths. 
>> 2. Each path consists of a number of activities and the order of the 
>> activities along that path.
>> 3. At the moment there are 3 different paths and 15 different kinds of 
>> activities.  Each activity has different fields to store in the database. 
>> (Approx. 5 fields per activity X 15 activities = 75 fields)
>> 
>> It would be great if the application could be designed so that new 
>> paths/activities can be created by the user in an administration section, as 
>> opposed to having the developer create new versions of the application each 
>> time a new path/activity needs to be created.  Right now, I'm prepared to 
>> soldier through and simply design it so that there is 1 table for each 
>> activity.  I've looked at creating a generic table that has many string 
>> fields and then storing the field type, etc, however, this seems like way 
>> too much work (validation, etc.).  Also thought about one activity table but 
>> 75 fields sounds unmanageable plus the fact that there will be more 
>> activities added in the next year.
>> 
>> Anyone else out there have a different solution or idea?
>> 
>> Calven
>> 
>> 
>> -- next part --
>> An HTML attachment was scrubbed...
>> URL: 
>> <http://lists.apple.com/archives/webobjects-dev/attachments/20160622/d1c792a3/attachment.html>
>> 
>> --
>> 
>> ___
>> Webobjects-dev mailing list
>> Webobjects-dev@lists.apple.com
>> https://lists.apple.com/mailman/listinfo/webobjects-dev
>> 
>> End of Webobjects-dev Digest, Vol 13, Issue 264
>> ***
> 

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

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

Re: Design Ideas?

2016-06-23 Thread Calven Eggert
Hmmm, interesting. what if there was a single table of strings and the values 
are converted to dates, Int, etc after retrieving the records? Would this be 
very slow? (For now I'm only dealing with hundreds of records but potentially 
thousands in the near future)


Calven


> On Jun 23, 2016, at 2:49 AM, Jérémy DE ROYER <jeremy.dero...@ingencys.net> 
> wrote:
> 
> Hello,
> 
> We’ve made it creating a String Table, an Integer Table, a BigDecimal Table...
> 
> Each table is linked to the object using its EntityName and id (unique in our 
> app).
> 
> We also designed a pool with NSMutableDictionnaries to speed up the re-read 
> and update.
> 
> It’s reliable and, except the first load, it’s  pretty efficient.
> 
> It’s now easy to extend all our records and to design processes.
> 
> But we don’t use load balancing.
> 
> Jérémy
> 
>> Le 22 juin 2016 à 22:28, Chuck Hill <ch...@gevityinc.com> a écrit :
>> 
>> Hi Calven,
>>  
>> Our GVC.SiteMaker application had some features that you might find useful.  
>> https://sourceforge.net/projects/gvcsitemaker/
>>  
>> It has a feature “Virtual Tables” that let’s user create relational tables 
>> and user defined UIs.  It is fully KVC compatible and reasonably fast.  It 
>> does come with a robust set of limitations :-) like no indexes o unique 
>> constraints.  Virtual Tables is an independent WO framework, but the UI part 
>> is embedded in the GVC.Sitemaker code.  I am not sure how much effort it 
>> would be to rip out, er, repurpose.  All of the default values, non-null 
>> validations, etc are in the UI as only a few actual tables are used to 
>> implement VirtualTables. 
>>  
>> The University of Michigan used it campus wide until last year.  They 
>> managed to do some pretty extensive things with it, things that I never 
>> imagined would be done.
>>  
>> The only other way to do what you want fully open ended is to make 
>> on-the-fly changes to the database schema or use a No SQL data store and 
>> then you still have to deal with generating the UI.  If you can constrain 
>> the path and activities to a known set of options, then it is much easier to 
>> make something user extensible.
>>  
>> Chuck
>>  
>>  
>> From: <webobjects-dev-bounces+chill=gevityinc@lists.apple.com> on behalf 
>> of Calven Eggert <cal...@mac.com>
>> Date: Wednesday, June 22, 2016 at 8:33 AM
>> To: WebObjects-Dev <webobjects-dev@lists.apple.com>
>> Subject: Design Ideas?
>>  
>> Hi all, 
>>  
>> My question is not simply a WO question, however, perhaps the WO experts 
>> have a best practice way of doing this in WOnder.
>>  
>> I've been asked to design an application that tracks a process that a 
>> patient goes through, with the following:
>>  
>> 1. Each patient will follow one of many different paths. 
>> 2. Each path consists of a number of activities and the order of the 
>> activities along that path.
>> 3. At the moment there are 3 different paths and 15 different kinds of 
>> activities.  Each activity has different fields to store in the database. 
>> (Approx. 5 fields per activity X 15 activities = 75 fields)
>>  
>> It would be great if the application could be designed so that new 
>> paths/activities can be created by the user in an administration section, as 
>> opposed to having the developer create new versions of the application each 
>> time a new path/activity needs to be created.  Right now, I'm prepared to 
>> soldier through and simply design it so that there is 1 table for each 
>> activity.  I've looked at creating a generic table that has many string 
>> fields and then storing the field type, etc, however, this seems like way 
>> too much work (validation, etc.).  Also thought about one activity table but 
>> 75 fields sounds unmanageable plus the fact that there will be more 
>> activities added in the next year.
>>  
>> Anyone else out there have a different solution or idea?
>> 
>> Calven
>> 
>>  
>> ___
>> 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:
>> https://lists.apple.com/mailman/options/webobjects-dev/jeremy.deroyer%40ingencys.net
>> 
>> This email sent to jeremy.dero...@ingencys.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Design Ideas?

2016-06-22 Thread Calven Eggert
Hi all,

My question is not simply a WO question, however, perhaps the WO experts have a 
best practice way of doing this in WOnder.

I've been asked to design an application that tracks a process that a patient 
goes through, with the following:

1. Each patient will follow one of many different paths. 
2. Each path consists of a number of activities and the order of the activities 
along that path.
3. At the moment there are 3 different paths and 15 different kinds of 
activities.  Each activity has different fields to store in the database. 
(Approx. 5 fields per activity X 15 activities = 75 fields)

It would be great if the application could be designed so that new 
paths/activities can be created by the user in an administration section, as 
opposed to having the developer create new versions of the application each 
time a new path/activity needs to be created.  Right now, I'm prepared to 
soldier through and simply design it so that there is 1 table for each 
activity.  I've looked at creating a generic table that has many string fields 
and then storing the field type, etc, however, this seems like way too much 
work (validation, etc.).  Also thought about one activity table but 75 fields 
sounds unmanageable plus the fact that there will be more activities added in 
the next year.

Anyone else out there have a different solution or idea?

Calven


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

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

RE: Follow up on closure

2016-05-12 Thread Calven Eggert
I too would like to say thank you to the entire WO community for their 
assistance over the years.  WebObjects is not going anywhere soon as far as I'm 
concerned.  If that counts for anything:)

FYI, I work for UHN (a group of teaching hospitals) in Toronto.  We have been 
using WO apps for over 15 years.  We actively maintain about half a dozen 
applications, putting out new versions regularly.  All applications run on the 
intranet.  We've built a framework that all the apps use and that framework as 
of last year is now using Project WOnder.  We get requests for new applications 
regularly and we are working on another fair size application as we speak.  
With the use of WO and Project Wonder it certain feels like we deliver 
applications faster than many other bigger IT groups in the company.

BTW, A colleague and I are excited that we will be attending wowodc in Montreal.

Calven


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

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

Re: Can't Add WO Frameworks

2016-05-05 Thread Calven Eggert
I've copied the file paths from another project into my .classpath and it seems 
to work.  If anyone knows of a reason why this is not a good idea please let me 
know.

Thanks for your time guys/gals. (Are there actually any gals that do WO?)

Calven


> On May 5, 2016, at 2:55 PM, Steve Peery <spe...@me.com> wrote:
> 
> I would give it a try.
> 
>> On May 5, 2016, at 2:54 PM, Calven Eggert <cal...@mac.com 
>> <mailto:cal...@mac.com>> wrote:
>> 
>> I've done this many times before, just not in El Capitan.  For example, I 
>> have apps that run on a daily basis to poll records in a database via WO and 
>> do things like send emails.  The point is that that dialog freezes up and so 
>> I can't add the libraries.  Is it safe to edit the .classpath directly? (I 
>> noticed the libraries are in there of another project)
>> 
>> Calven
>> 
>> 
>>> On May 5, 2016, at 2:50 PM, Steve Peery <spe...@me.com 
>>> <mailto:spe...@me.com>> wrote:
>>> 
>>> That is definitely not how WebObject/Wonder applications are typically 
>>> used. What are you trying to create?
>>> 
>>> Steve
>>> 
>>>> On May 5, 2016, at 2:46 PM, Calven Eggert <cal...@mac.com 
>>>> <mailto:cal...@mac.com>> wrote:
>>>> 
>>>> Actually, I'm creating a new java project because this will be an app run 
>>>> from a batch process in the terminal.  Is this not correct?
>>>> 
>>>> BTW, creating a new workspace didn't fix the problem.
>>>> 
>>>> Calven
>>>> 
>>>> 
>>>>> On May 5, 2016, at 2:42 PM, Steve Peery <spe...@me.com 
>>>>> <mailto:spe...@me.com>> wrote:
>>>>> 
>>>>> Also, I notice that you say you "created a new java project”. It should 
>>>>> be a new Wonder Application project.
>>>>> 
>>>>> 
>>>>>> On May 5, 2016, at 2:38 PM, Theodore Petrosky <tedp...@yahoo.com 
>>>>>> <mailto:tedp...@yahoo.com>> wrote:
>>>>>> 
>>>>>> try creating a new workspace and a project. the current workspace may be 
>>>>>> NFG.
>>>>>> 
>>>>>> 
>>>>>>> On May 5, 2016, at 2:34 PM, Calven Eggert <cal...@mac.com 
>>>>>>> <mailto:cal...@mac.com>> wrote:
>>>>>>> 
>>>>>>> I've created a new java project in Eclipse and when I go to add a 
>>>>>>> library using JavaBuildPath/Add Library, I select "WebObjects 
>>>>>>> Frameworks" click on the Next button and it nothing happens.  It won't 
>>>>>>> display the next dialog and therefore I can't add a library.  I can't 
>>>>>>> even dismiss the dialog and have to force-quit Eclipse. :-(
>>>>>>> 
>>>>>>> Has anyone else encountered this problem, or know of a work around? 
>>>>>>> (Using Mars.1 Release (4.5.1), El Capitan)
>>>>>>> 
>>>>>>> Calven
>>>>>>> 
>>>>>>> ___
>>>>>>> Do not post admin requests to the list. They will be ignored.
>>>>>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>>>>>>> <mailto:Webobjects-dev@lists.apple.com>)
>>>>>>> Help/Unsubscribe/Update your Subscription:
>>>>>>> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
>>>>>>>  
>>>>>>> <https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com>
>>>>>>> 
>>>>>>> This email sent to tedp...@yahoo.com <mailto:tedp...@yahoo.com>
>>>>>> ___
>>>>>> Do not post admin requests to the list. They will be ignored.
>>>>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>>>>>> <mailto:Webobjects-dev@lists.apple.com>)
>>>>>> Help/Unsubscribe/Update your Subscription:
>>>>>> https://lists.apple.com/mailman/options/webobjects-dev/speery%40me.com 
>>>>>> <https://lists.apple.com/mailman/options/webobjects-dev/speery%40me.com>
>>>>>> 
>>>>>> This email sent to spe...@me.com <mailto:spe...@me.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: Can't Add WO Frameworks

2016-05-05 Thread Calven Eggert
I've done this many times before, just not in El Capitan.  For example, I have 
apps that run on a daily basis to poll records in a database via WO and do 
things like send emails.  The point is that that dialog freezes up and so I 
can't add the libraries.  Is it safe to edit the .classpath directly? (I 
noticed the libraries are in there of another project)

Calven


> On May 5, 2016, at 2:50 PM, Steve Peery <spe...@me.com> wrote:
> 
> That is definitely not how WebObject/Wonder applications are typically used. 
> What are you trying to create?
> 
> Steve
> 
>> On May 5, 2016, at 2:46 PM, Calven Eggert <cal...@mac.com 
>> <mailto:cal...@mac.com>> wrote:
>> 
>> Actually, I'm creating a new java project because this will be an app run 
>> from a batch process in the terminal.  Is this not correct?
>> 
>> BTW, creating a new workspace didn't fix the problem.
>> 
>> Calven
>> 
>> 
>>> On May 5, 2016, at 2:42 PM, Steve Peery <spe...@me.com 
>>> <mailto:spe...@me.com>> wrote:
>>> 
>>> Also, I notice that you say you "created a new java project”. It should be 
>>> a new Wonder Application project.
>>> 
>>> 
>>>> On May 5, 2016, at 2:38 PM, Theodore Petrosky <tedp...@yahoo.com 
>>>> <mailto:tedp...@yahoo.com>> wrote:
>>>> 
>>>> try creating a new workspace and a project. the current workspace may be 
>>>> NFG.
>>>> 
>>>> 
>>>>> On May 5, 2016, at 2:34 PM, Calven Eggert <cal...@mac.com 
>>>>> <mailto:cal...@mac.com>> wrote:
>>>>> 
>>>>> I've created a new java project in Eclipse and when I go to add a library 
>>>>> using JavaBuildPath/Add Library, I select "WebObjects Frameworks" click 
>>>>> on the Next button and it nothing happens.  It won't display the next 
>>>>> dialog and therefore I can't add a library.  I can't even dismiss the 
>>>>> dialog and have to force-quit Eclipse. :-(
>>>>> 
>>>>> Has anyone else encountered this problem, or know of a work around? 
>>>>> (Using Mars.1 Release (4.5.1), El Capitan)
>>>>> 
>>>>> Calven
>>>>> 
>>>>> ___
>>>>> Do not post admin requests to the list. They will be ignored.
>>>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>>>>> <mailto:Webobjects-dev@lists.apple.com>)
>>>>> Help/Unsubscribe/Update your Subscription:
>>>>> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
>>>>>  
>>>>> <https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com>
>>>>> 
>>>>> This email sent to tedp...@yahoo.com <mailto:tedp...@yahoo.com>
>>>> ___
>>>> Do not post admin requests to the list. They will be ignored.
>>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>>>> <mailto:Webobjects-dev@lists.apple.com>)
>>>> Help/Unsubscribe/Update your Subscription:
>>>> https://lists.apple.com/mailman/options/webobjects-dev/speery%40me.com 
>>>> <https://lists.apple.com/mailman/options/webobjects-dev/speery%40me.com>
>>>> 
>>>> This email sent to spe...@me.com <mailto:spe...@me.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: Can't Add WO Frameworks

2016-05-05 Thread Calven Eggert
Actually, I'm creating a new java project because this will be an app run from 
a batch process in the terminal.  Is this not correct?

BTW, creating a new workspace didn't fix the problem.

Calven


> On May 5, 2016, at 2:42 PM, Steve Peery <spe...@me.com> wrote:
> 
> Also, I notice that you say you "created a new java project”. It should be a 
> new Wonder Application project.
> 
> 
>> On May 5, 2016, at 2:38 PM, Theodore Petrosky <tedp...@yahoo.com 
>> <mailto:tedp...@yahoo.com>> wrote:
>> 
>> try creating a new workspace and a project. the current workspace may be NFG.
>> 
>> 
>>> On May 5, 2016, at 2:34 PM, Calven Eggert <cal...@mac.com 
>>> <mailto:cal...@mac.com>> wrote:
>>> 
>>> I've created a new java project in Eclipse and when I go to add a library 
>>> using JavaBuildPath/Add Library, I select "WebObjects Frameworks" click on 
>>> the Next button and it nothing happens.  It won't display the next dialog 
>>> and therefore I can't add a library.  I can't even dismiss the dialog and 
>>> have to force-quit Eclipse. :-(
>>> 
>>> Has anyone else encountered this problem, or know of a work around? (Using 
>>> Mars.1 Release (4.5.1), El Capitan)
>>> 
>>> Calven
>>> 
>>> ___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>>> <mailto:Webobjects-dev@lists.apple.com>)
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com 
>>> <https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com>
>>> 
>>> This email sent to tedp...@yahoo.com <mailto:tedp...@yahoo.com>
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/speery%40me.com 
>> <https://lists.apple.com/mailman/options/webobjects-dev/speery%40me.com>
>> 
>> This email sent to spe...@me.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Can't Add WO Frameworks

2016-05-05 Thread Calven Eggert
I've created a new java project in Eclipse and when I go to add a library using 
JavaBuildPath/Add Library, I select "WebObjects Frameworks" click on the Next 
button and it nothing happens.  It won't display the next dialog and therefore 
I can't add a library.  I can't even dismiss the dialog and have to force-quit 
Eclipse. :-(

Has anyone else encountered this problem, or know of a work around? (Using 
Mars.1 Release (4.5.1), El Capitan)

Calven

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

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

Re: Disable WOTextField Input when using AjaxDatePicker

2016-01-11 Thread Calven Eggert
That is Fantastic!  how did you find out about the otherTagString?

Calven


> On Jan 11, 2016, at 11:51 AM, Samuel Pelletier <sam...@samkar.com> wrote:
> 
> Hi Calven,
> 
> I found a way by setting the readonly attribute of the input. Ideally, the 
> bonding would be available (I will create a pull request) but in the mean 
> time, you can add this binding to do the same: otherTagString="readonly"
> 
> I discovered the readonly attribute lately, it is cool because it allows the 
> content to be selected and copied when disabled, except in Safari, does not 
> allows the selection and copy of an input field content.
> 
> Regards,
> 
> Samuel
> 
>> Le 2016-01-11 à 10:07, Calven Eggert <cal...@mac.com 
>> <mailto:cal...@mac.com>> a écrit :
>> 
>> Anyone know of a way to disable the AjaxDatePicker so that input can only be 
>> done in the calendar that displays? (Basically, disable the WOTextField, but 
>> allow the onclick to get triggered)
>> 
>> 
>> Calven
>> 
>> 
>> 
>> Calven
>> 
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com 
>> <https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com>
>> 
>> This email sent to sam...@samkar.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Disable WOTextField Input when using AjaxDatePicker

2016-01-11 Thread Calven Eggert
Anyone know of a way to disable the AjaxDatePicker so that input can only be 
done in the calendar that displays? (Basically, disable the WOTextField, but 
allow the onclick to get triggered)


Calven



Calven


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

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

Disable WOTextField Input of AjaxDatePicker

2016-01-07 Thread Calven Eggert
Anyone know of a way to disable the AjaxDatePicker so that input can only be 
done in the calendar that displays? (Basically, disable the WOTextField, but 
allow the onclick to get triggered)

Calven


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

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

Re: Ajax ?

2016-01-04 Thread Calven Eggert
Thank you!  The link for the scriptaculous documentation was broken but I 
managed to find out how to use that binding here 
https://github.com/wocommunity/wonder/blob/master/Frameworks/Ajax/Ajax/Sources/er/ajax/AjaxDraggable.java
 
<https://github.com/wocommunity/wonder/blob/master/Frameworks/Ajax/Ajax/Sources/er/ajax/AjaxDraggable.java>.

Calven


> On Jan 2, 2016, at 12:28 PM, Samuel Pelletier <sam...@samkar.com> wrote:
> 
> Hi Calven,
> 
> I think the ghosting binding of AjaxDraggable does exactly that. 
> 
> Regards,
> 
> Samuel
> 
>> Le 2015-12-30 à 15:05, Calven Eggert <cal...@mac.com 
>> <mailto:cal...@mac.com>> a écrit :
>> 
>> Happy holidays all!
>> 
>> I'm looking to create an Ajax page that has two lists of items.  The first 
>> list, Activity 1, Activity 2, Activity 3, etc.  The second list, called 
>> Steps, will be created by the user by dragging the activity items into the 
>> Steps list.  The user should be able to drag the same activity from the list 
>> many times.
>> 
>> In the Ajax drag example, when the item is dragged there is a gap in 
>> the original list.  I don't want the gap to ever appear.  Is there a way to 
>> drag the activity, however, not allow it to be actually be moved from the 
>> first list? First cloning the item and then dropping it in the new list? 
>> 
>> Calven
>> 
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com 
>> <https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com>
>> 
>> This email sent to sam...@samkar.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Ajax ?

2015-12-30 Thread Calven Eggert
Happy holidays all!

I'm looking to create an Ajax page that has two lists of items.  The first 
list, Activity 1, Activity 2, Activity 3, etc.  The second list, called Steps, 
will be created by the user by dragging the activity items into the Steps list. 
 The user should be able to drag the same activity from the list many times.

In the Ajax drag example, when the item is dragged there is a gap in the 
original list.  I don't want the gap to ever appear.  Is there a way to drag 
the activity, however, not allow it to be actually be moved from the first 
list? First cloning the item and then dropping it in the new list? 

Calven


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

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

Searching the Webobjects Dev List Archives

2015-11-18 Thread Calven Eggert
Gang,

This link https://lists.apple.com/archives/Webobjects-dev 
 is not very helpful for 
searching for something specific in the list.

Is there a better way?

Calven


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

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

RE: Build Path issue - unbound Wonder frameworks

2015-11-05 Thread Calven Eggert
I've just completed going thru this entire process of setting up Eclipse Mars,  
java 1.8 and Wonder in El Capitan.  Which OS are you using?  Can you share the 
error messages?

Calven

---
I’m warming up my WO development environment after a year or so. I still have a 
working Eclipse 3.8/Java 1.6 installation.
I’m using Mars release of Eclipse
WOLips 4.4
Wonder 7 frameworks are installed 
>
 in /Library/Frameworks
Java 1.8

It seems I can build & run WebObjects applications but not Wonder applications. 
I created the wo apps using the templates.

I haven’t see the unbound issue before in the Build Path window:



I’m missing something, but I don’t see it (Ich muß Tomaten of the Augen haben). 
Any ideas?
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

RE: Build Path issue - unbound Wonder frameworks

2015-11-05 Thread Calven Eggert
I didn't do the binary install of the Wonder frameworks.  I downloaded the 
source and then did the build as per instructions here:

https://wiki.wocommunity.org/display/WEB/Getting+the+Wonder+Source+Code 
<https://wiki.wocommunity.org/display/WEB/Getting+the+Wonder+Source+Code>
https://wiki.wocommunity.org/display/documentation/Building+and+Installing+a+Framework+with+Ant
 
<https://wiki.wocommunity.org/display/documentation/Building+and+Installing+a+Framework+with+Ant>
 (Built from command line)

Calven


> On Nov 5, 2015, at 5:05 AM, Calven Eggert <cal...@mac.com 
> <mailto:cal...@mac.com>> wrote:
> 
> I've just completed going thru this entire process of setting up Eclipse 
> Mars,  java 1.8 and Wonder in El Capitan.  Which OS are you using? Can you 
> share the error messages?

I’m running OS X 10.10.5.

These all look like the frameworks can’t be found. Did you get the same warning 
as below?

Description ResourcePathLocationType
Cannot cast from WOApplication to Application   DirectAction.java   
/HelloWorld/Sources/com/kib/HelloWorld  line 22 Java Problem
ERXApplication cannot be resolved   Application.java
/HelloWorld/Sources/com/kib/HelloWorld  line 7  Java Problem
ERXApplication cannot be resolved   Application.java
/HelloWorld/Sources/com/kib/HelloWorld  line 11 Java Problem
ERXApplication cannot be resolved to a type Application.java
/HelloWorld/Sources/com/kib/HelloWorld  line 5  Java Problem
ERXComponent cannot be resolved to a type   BaseComponent.java  
/HelloWorld/Sources/com/kib/HelloWorld/components   line 10 Java Problem
ERXComponent cannot be resolved to a type   BaseComponent.java  
/HelloWorld/Sources/com/kib/HelloWorld/components   line 17 Java Problem
ERXComponent cannot be resolved to a type   BaseComponent.java  
/HelloWorld/Sources/com/kib/HelloWorld/components   line 22 Java Problem
ERXDirectAction cannot be resolved to a typeDirectAction.java   
/HelloWorld/Sources/com/kib/HelloWorld  line 11 Java Problem
ERXDirectAction cannot be resolved to a typeDirectAction.java   
/HelloWorld/Sources/com/kib/HelloWorld  line 27 Java Problem
ERXSession cannot be resolved to a type Session.java
/HelloWorld/Sources/com/kib/HelloWorld  line 5  Java Problem
ERXSession cannot be resolved to a type Session.java
/HelloWorld/Sources/com/kib/HelloWorld  line 13 Java Problem
The hierarchy of the type Main is inconsistent  Main.java   
/HelloWorld/Sources/com/kib/HelloWorld/components   line 5  Java Problem
The import er cannot be resolvedApplication.java
/HelloWorld/Sources/com/kib/HelloWorld  line 3  Java Problem
The import er cannot be resolvedBaseComponent.java  
/HelloWorld/Sources/com/kib/HelloWorld/components   line 5  Java Problem
The import er cannot be resolvedDirectAction.java   
/HelloWorld/Sources/com/kib/HelloWorld  line 7  Java Problem
The import er cannot be resolvedSession.java
/HelloWorld/Sources/com/kib/HelloWorld  line 3  Java Problem
The method application() of type BaseComponent must override or implement a 
supertype methodBaseComponent.java  
/HelloWorld/Sources/com/kib/HelloWorld/components   line 16 Java Problem
The method application() of type Session must override or implement a supertype 
method  Session.java/HelloWorld/Sources/com/kib/HelloWorld  line 12 Java 
Problem
The method defaultAction() of type DirectAction must override or implement a 
supertype method   DirectAction.java   
/HelloWorld/Sources/com/kib/HelloWorld  line 17 Java Problem
The method name() is undefined for the type Application Application.java
/HelloWorld/Sources/com/kib/HelloWorld  line 11 Java Problem
The method pageWithName(String) is undefined for the type DirectAction  
DirectAction.java   /HelloWorld/Sources/com/kib/HelloWorld  line 18 Java 
Problem
The method session() of type BaseComponent must override or implement a 
supertype methodBaseComponent.java  
/HelloWorld/Sources/com/kib/HelloWorld/components   line 21 Java Problem
The method session() of type DirectAction must override or implement a 
supertype method DirectAction.java   /HelloWorld/Sources/com/kib/HelloWorld 
 line 26 Java Problem
The method setAllowsConcurrentRequestHandling(boolean) is undefined for the 
type ApplicationApplication.java
/HelloWorld/Sources/com/kib/HelloWorld  line 13 Java Problem

Build path specifies execution environment J2SE-1.5. There are no JREs 
installed in the workspace that are strictly compatible with this environment.  
 HelloWorld  Build path  JRE System Library Problem

 ___
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 Subscriptio

Default Model Group - Error or Warning?

2015-10-27 Thread Calven Eggert
I've just recently noticed that I get this error upon starting my WO app. 
Everything seems to be working ok, just wondering if I need to address it:

Oct 27 11:21:44 CRR[49599] ERROR er.extensions.eof.ERXEntityClassDescription  - 
Entity NSMutableDictionary not found in the default model group!



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

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

Re: Default Model Group - Error or Warning?

2015-10-27 Thread Calven Eggert
strange.  can't find any entity with that name.

I did:
EOEntity theModel = 
EOModelGroup.defaultGroup().entityNamed("NSMutableDictionary");

and the answer was nil.

hmmm...

Calven


> On Oct 27, 2015, at 11:54 AM, Chuck Hill <ch...@gevityinc.com> wrote:
> 
> It looks like you have that as the Entity name for one of your entities in 
> the model?  It is a modelling issue in any case.
> 
> Chuck
> 
> 
> From: <webobjects-dev-bounces+chill=gevityinc@lists.apple.com 
> <mailto:webobjects-dev-bounces+chill=gevityinc@lists.apple.com>> on 
> behalf of Calven Eggert <cal...@mac.com <mailto:cal...@mac.com>>
> Date: Tuesday, October 27, 2015 at 8:39 AM
> To: WebObjects-Dev <webobjects-dev@lists.apple.com 
> <mailto:webobjects-dev@lists.apple.com>>
> Subject: Default Model Group - Error or Warning?
> 
> I've just recently noticed that I get this error upon starting my WO app. 
> Everything seems to be working ok, just wondering if I need to address it:
> 
> Oct 27 11:21:44 CRR[49599] ERROR er.extensions.eof.ERXEntityClassDescription  
> - Entity NSMutableDictionary not found in the default model group!
> 
> 
> 

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

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

Re: Default Model Group - Error or Warning?

2015-10-27 Thread Calven Eggert
thank you.  that was a great idea since I now have all the Wonder source 
downloaded.

Calven


> On Oct 27, 2015, at 1:36 PM, Ricardo Parada <rpar...@mac.com> wrote:
> 
> Se a breakpoint in Wonder where that warning is logged to see if it gets you 
> anywhere to solving that mystery.  :-)
> 
> 
> 
> On Oct 27, 2015, at 1:17 PM, Calven Eggert <cal...@mac.com 
> <mailto:cal...@mac.com>> wrote:
> 
>> strange.  can't find any entity with that name.
>> 
>> I did:
>> EOEntity theModel = 
>> EOModelGroup.defaultGroup().entityNamed("NSMutableDictionary");
>> 
>> and the answer was nil.
>> 
>> hmmm...
>> 
>> Calven
>> 
>> 
>>> On Oct 27, 2015, at 11:54 AM, Chuck Hill <ch...@gevityinc.com 
>>> <mailto:ch...@gevityinc.com>> wrote:
>>> 
>>> It looks like you have that as the Entity name for one of your entities in 
>>> the model?  It is a modelling issue in any case.
>>> 
>>> Chuck
>>> 
>>> 
>>> From: <webobjects-dev-bounces+chill=gevityinc@lists.apple.com 
>>> <mailto:webobjects-dev-bounces+chill=gevityinc@lists.apple.com>> on 
>>> behalf of Calven Eggert <cal...@mac.com <mailto:cal...@mac.com>>
>>> Date: Tuesday, October 27, 2015 at 8:39 AM
>>> To: WebObjects-Dev <webobjects-dev@lists.apple.com 
>>> <mailto:webobjects-dev@lists.apple.com>>
>>> Subject: Default Model Group - Error or Warning?
>>> 
>>> I've just recently noticed that I get this error upon starting my WO app. 
>>> Everything seems to be working ok, just wondering if I need to address it:
>>> 
>>> Oct 27 11:21:44 CRR[49599] ERROR 
>>> er.extensions.eof.ERXEntityClassDescription  - Entity NSMutableDictionary 
>>> not found in the default model group!
>>> 
>>> 
>>> 
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com 
>> <https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com>
>> 
>> This email sent to rpar...@mac.com <mailto:rpar...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Apache 2.4 binary anyone?

2015-10-27 Thread Calven Eggert
Does anyone have the Apache2.4 binary or alternative?

I've tried to compile based on the instructions but no luck, all kinds of 
errors, from this link:
http://lists.apple.com/archives/webobjects-dev/2014/Oct/msg00181.html 




Calven


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

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

Re: El Capitan - setting java timezone

2015-10-26 Thread Calven Eggert
Unfortunately, that didn’t work.  I’ve tried adding it in two different ways 
based on google searches:

-Duser.timezone=EST
-Doracle.jdbc.timezoneAsRegion=false

Is anyone else using Java 1.8 and has this working?



> On Oct 23, 2015, at 4:25 PM, Gino Pacitti <ginok...@mac.com> wrote:
> 
> What about in the Run Configuration?
> 
>  15.24.32.png>
>> On 23 Oct 2015, at 15:24, Calven Eggert <cal...@mac.com 
>> <mailto:cal...@mac.com>> wrote:
>> 
>> I’ve been working on a new install of El Capitan.  I found a problem with 
>> running the app inside Eclipse until it was discovered that the java 
>> timezone was not set and therefore, not allowing a connection to the 
>> database.  This was fixed by adding an argument to the Run Configuration 
>> “-Duser.timezone=EST”.
>> 
>> After building my .woa using the “WOLips Ant Tools/Install”, the application 
>> cannot connect to a database.  it’s the same problem because if I type:
>> 
>> ./APPNAME -Duser.timezone=EST
>> 
>> the application works as expected. Does anyone know how to set the timezone 
>> in eclipse so that I don’t need to add the parameter on the command line??
>> 
>> Calven
>> 
>> 
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/ginokris%40mac.com 
>> <https://lists.apple.com/mailman/options/webobjects-dev/ginokris%40mac.com>
>> 
>> This email sent to ginok...@mac.com
> 


Calven



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

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

Re: El Capitan - setting java timezone

2015-10-26 Thread Calven Eggert
I changed my time zone and then changed it back and…it worked.  Unbelievable.  
All that fusing over java timezone.  Chuck, you are the man.


> On Oct 26, 2015, at 1:13 PM, Chuck Hill <ch...@gevityinc.com> wrote:
> 
> As a guess, your OS might have this set to some name that Java is not 
> recognizing.  Take a look in system preferences, and try changing it to 
> something else and back again.
> 
> Chuck
> 
> 
> From: <webobjects-dev-bounces+chill=gevityinc@lists.apple.com 
> <mailto:webobjects-dev-bounces+chill=gevityinc....@lists.apple.com>> on 
> behalf of Calven Eggert <cal...@mac.com <mailto:cal...@mac.com>>
> Date: Monday, October 26, 2015 at 7:02 AM
> To: WebObjects-Dev <webobjects-dev@lists.apple.com 
> <mailto:webobjects-dev@lists.apple.com>>, Gino Pacitti <ginok...@mac.com 
> <mailto:ginok...@mac.com>>
> Subject: Re: El Capitan - setting java timezone
> 
> Unfortunately, that didn’t work.  I’ve tried adding it in two different ways 
> based on google searches:
> 
> -Duser.timezone=EST
> -Doracle.jdbc.timezoneAsRegion=false
> 
> Is anyone else using Java 1.8 and has this working?
> 
> 
> 
>> On Oct 23, 2015, at 4:25 PM, Gino Pacitti <ginok...@mac.com 
>> <mailto:ginok...@mac.com>> wrote:
>> 
>> What about in the Run Configuration?
>> 
>> > 15.24.32.png>
>>> On 23 Oct 2015, at 15:24, Calven Eggert <cal...@mac.com 
>>> <mailto:cal...@mac.com>> wrote:
>>> 
>>> I’ve been working on a new install of El Capitan.  I found a problem with 
>>> running the app inside Eclipse until it was discovered that the java 
>>> timezone was not set and therefore, not allowing a connection to the 
>>> database.  This was fixed by adding an argument to the Run Configuration 
>>> “-Duser.timezone=EST”.
>>> 
>>> After building my .woa using the “WOLips Ant Tools/Install”, the 
>>> application cannot connect to a database.  it’s the same problem because if 
>>> I type:
>>> 
>>> ./APPNAME -Duser.timezone=EST
>>> 
>>> the application works as expected. Does anyone know how to set the timezone 
>>> in eclipse so that I don’t need to add the parameter on the command line??
>>> 
>>> Calven
>>> 
>>> 
>>> 
>>> ___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>>> <mailto:Webobjects-dev@lists.apple.com>)
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/ginokris%40mac.com 
>>> <https://lists.apple.com/mailman/options/webobjects-dev/ginokris%40mac.com>
>>> 
>>> This email sent to ginok...@mac.com <mailto:ginok...@mac.com>
>> 
> 
> 
> Calven
> 
> 
> 


Calven



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

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

Re: El Capitan - setting java timezone

2015-10-26 Thread Calven Eggert
hehe. Thank you for taking it for the entire WO team community. 
https://www.youtube.com/watch?v=CP6v4T3VT7I 
<https://www.youtube.com/watch?v=CP6v4T3VT7I>


> On Oct 26, 2015, at 1:39 PM, Chuck Hill <ch...@gevityinc.com> wrote:
> 
> I am just the man who has shot off all of his toes at one time or another and 
> just just happens to remember why.  :-)
> 
> From: Calven Eggert <cal...@mac.com <mailto:cal...@mac.com>>
> Date: Monday, October 26, 2015 at 10:38 AM
> To: Chuck Hill <ch...@gevityinc.com <mailto:ch...@gevityinc.com>>
> Cc: WebObjects-Dev <webobjects-dev@lists.apple.com 
> <mailto:webobjects-dev@lists.apple.com>>, Gino Pacitti <ginok...@mac.com 
> <mailto:ginok...@mac.com>>
> Subject: Re: El Capitan - setting java timezone
> 
> I changed my time zone and then changed it back and…it worked.  Unbelievable. 
>  All that fusing over java timezone.  Chuck, you are the man.
> 
> 
>> On Oct 26, 2015, at 1:13 PM, Chuck Hill <ch...@gevityinc.com 
>> <mailto:ch...@gevityinc.com>> wrote:
>> 
>> As a guess, your OS might have this set to some name that Java is not 
>> recognizing.  Take a look in system preferences, and try changing it to 
>> something else and back again.
>> 
>> Chuck
>> 
>> 
>> From: <webobjects-dev-bounces+chill=gevityinc@lists.apple.com 
>> <mailto:webobjects-dev-bounces+chill=gevityinc@lists.apple.com>> on 
>> behalf of Calven Eggert <cal...@mac.com <mailto:cal...@mac.com>>
>> Date: Monday, October 26, 2015 at 7:02 AM
>> To: WebObjects-Dev <webobjects-dev@lists.apple.com 
>> <mailto:webobjects-dev@lists.apple.com>>, Gino Pacitti <ginok...@mac.com 
>> <mailto:ginok...@mac.com>>
>> Subject: Re: El Capitan - setting java timezone
>> 
>> Unfortunately, that didn’t work.  I’ve tried adding it in two different ways 
>> based on google searches:
>> 
>> -Duser.timezone=EST
>> -Doracle.jdbc.timezoneAsRegion=false
>> 
>> Is anyone else using Java 1.8 and has this working?
>> 
>> 
>> 
>>> On Oct 23, 2015, at 4:25 PM, Gino Pacitti <ginok...@mac.com 
>>> <mailto:ginok...@mac.com>> wrote:
>>> 
>>> What about in the Run Configuration?
>>> 
>>> >> 15.24.32.png>
>>>> On 23 Oct 2015, at 15:24, Calven Eggert <cal...@mac.com 
>>>> <mailto:cal...@mac.com>> wrote:
>>>> 
>>>> I’ve been working on a new install of El Capitan.  I found a problem with 
>>>> running the app inside Eclipse until it was discovered that the java 
>>>> timezone was not set and therefore, not allowing a connection to the 
>>>> database.  This was fixed by adding an argument to the Run Configuration 
>>>> “-Duser.timezone=EST”.
>>>> 
>>>> After building my .woa using the “WOLips Ant Tools/Install”, the 
>>>> application cannot connect to a database.  it’s the same problem because 
>>>> if I type:
>>>> 
>>>> ./APPNAME -Duser.timezone=EST
>>>> 
>>>> the application works as expected. Does anyone know how to set the 
>>>> timezone in eclipse so that I don’t need to add the parameter on the 
>>>> command line??
>>>> 
>>>> Calven
>>>> 
>>>> 
>>>> 
>>>> ___
>>>> Do not post admin requests to the list. They will be ignored.
>>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>>>> <mailto:Webobjects-dev@lists.apple.com>)
>>>> Help/Unsubscribe/Update your Subscription:
>>>> https://lists.apple.com/mailman/options/webobjects-dev/ginokris%40mac.com 
>>>> <https://lists.apple.com/mailman/options/webobjects-dev/ginokris%40mac.com>
>>>> 
>>>> This email sent to ginok...@mac.com <mailto:ginok...@mac.com>
>>> 
>> 
>> 
>> Calven
>> 
>> 
>> 
> 
> 
> Calven
> 
> 
> 


Calven



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

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

Fwd: Building the Wonder libraries: SOLVED

2015-10-23 Thread Calven Eggert
I solved the problem I was having with a new install of Eclipse, WOLips, 
Wonder.  Essentially the problem was that when compiling the Wonder source, it 
could not find the WebObjects frameworks.  

On this page 
https://wiki.wocommunity.org/display/WEB/Project+Wonder+Installation 
<https://wiki.wocommunity.org/display/WEB/Project+Wonder+Installation> it 
states:This is the most intricate step in the installation process.  The 
configuration file found in the WOlips preferences must correctly reference the 
framework directory structure.  Failure to successfully complete this step will 
result in broken libraries.  Running the script from step 2 installs the WO 
framework to the /Library/WebObjects/Versions/WebObjects543 directory on your 
system. Below is the contents for a configuration file that matches this setup. 
 Create a new file called wolips.543.properties...

On this page 
https://wiki.wocommunity.org/display/documentation/Building+and+Installing+a+Framework+with+Ant
 
<https://wiki.wocommunity.org/display/documentation/Building+and+Installing+a+Framework+with+Ant>
 it states:
The Wonder build script will use properties defined in ~/Library/Application 
Support/WOLips/wolips.properties. This is a good place to set 
wo.system.frameworks property.


I assumed that the wolips.543.properties replaced the need to use the 
wolips.properties file.  Not so.  The Wonder build script uses the original 
properties file when compiling the Wonder source code and uses the path in the 
wo.system.frameworks variable to find the WebObjects frameworks.

People might find this useful:
https://wiki.wocommunity.org/display/WOL/wolips.properties 
<https://wiki.wocommunity.org/display/WOL/wolips.properties>


Calven

> Begin forwarded message:
> 
> From: Calven Eggert <cal...@mac.com>
> Subject: Building the Wonder libraries
> Date: October 22, 2015 at 2:50:41 PM EDT
> To: webobjects-dev@lists.apple.com
> 
> I just finished installing El Capitan (clean install), installed Eclipse 
> (Mars 4.5.1), installed WOLips, downloaded Wonder Source (using git from the 
> command line) and opened the projects in Eclipse.  They build fine (there is 
> an error in ERDistribution, but I’m not using that so I ignored that one) in 
> eclipse but I can’t build for install either using WOLips install 
> Tools/Install or from the command line using ant frameworks which gives me 
> this:
> 
> [wocompile] Compiling 59 source files to 
> /Users/ceggert/Roots/classes/JavaWOExtensions
> [wocompile] 
> /Users/ceggert/WonderSource/Frameworks/Core/JavaWOExtensions/Sources/com/webobjects/woextensions/JSAlertPanel.java:10:
>  error: package com.webobjects.appserver does not exist
> [wocompile] import com.webobjects.appserver.WOContext;
> [wocompile]^
> [wocompile] 
> /Users/ceggert/WonderSource/Frameworks/Core/JavaWOExtensions/Sources/com/webobjects/woextensions/JSAlertPanel.java:11:
>  error: package com.webobjects.foundation does not exist
> [wocompile] import com.webobjects.foundation.NSArray;
> [wocompile] ^
> [wocompile] 
> /Users/ceggert/WonderSource/Frameworks/Core/JavaWOExtensions/Sources/com/webobjects/woextensions/JSComponent.java:10:
>  error: package com.webobjects.appserver does not exist
> [wocompile] import com.webobjects.appserver.WOComponent;
> [wocompile]^
> 
> 
> It can’t find the webobjects files
> 
> Those files are located: 
> /Library/WebObjects/Versions/WebObjects543/Library/WebObjects/lib as per the 
> install.
> 
> So, what do I need to do to get it to find those files?
> 
> Thanks for your time,
> Calven
> 


Calven



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

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

El Capitan - setting java timezone

2015-10-23 Thread Calven Eggert
I’ve been working on a new install of El Capitan.  I found a problem with 
running the app inside Eclipse until it was discovered that the java timezone 
was not set and therefore, not allowing a connection to the database.  This was 
fixed by adding an argument to the Run Configuration “-Duser.timezone=EST”.

After building my .woa using the “WOLips Ant Tools/Install”, the application 
cannot connect to a database.  it’s the same problem because if I type:

./APPNAME -Duser.timezone=EST

the application works as expected. Does anyone know how to set the timezone in 
eclipse so that I don’t need to add the parameter on the command line??

Calven



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

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

Building the Wonder libraries

2015-10-22 Thread Calven Eggert
I just finished installing El Capitan (clean install), installed Eclipse (Mars 
4.5.1), installed WOLips, downloaded Wonder Source (using git from the command 
line) and opened the projects in Eclipse.  They build fine (there is an error 
in ERDistribution, but I’m not using that so I ignored that one) in eclipse but 
I can’t build for install either using WOLips install Tools/Install or from the 
command line using ant frameworks which gives me this:

[wocompile] Compiling 59 source files to 
/Users/ceggert/Roots/classes/JavaWOExtensions
[wocompile] 
/Users/ceggert/WonderSource/Frameworks/Core/JavaWOExtensions/Sources/com/webobjects/woextensions/JSAlertPanel.java:10:
 error: package com.webobjects.appserver does not exist
[wocompile] import com.webobjects.appserver.WOContext;
[wocompile]^
[wocompile] 
/Users/ceggert/WonderSource/Frameworks/Core/JavaWOExtensions/Sources/com/webobjects/woextensions/JSAlertPanel.java:11:
 error: package com.webobjects.foundation does not exist
[wocompile] import com.webobjects.foundation.NSArray;
[wocompile] ^
[wocompile] 
/Users/ceggert/WonderSource/Frameworks/Core/JavaWOExtensions/Sources/com/webobjects/woextensions/JSComponent.java:10:
 error: package com.webobjects.appserver does not exist
[wocompile] import com.webobjects.appserver.WOComponent;
[wocompile]^


It can’t find the webobjects files

Those files are located: 
/Library/WebObjects/Versions/WebObjects543/Library/WebObjects/lib as per the 
install.

So, what do I need to do to get it to find those files?

Thanks for your time,
Calven


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

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

Re: Can't get WOlips installed properly

2015-10-21 Thread Calven Eggert
I’ve clicked Apply and it wipes out the values.

I then made the change and clicked OK and it too also wiped out all the values.

> On Oct 21, 2015, at 11:24 AM, Gino Pacitti <ginok...@mac.com> wrote:
> 
> Did you click apply?
> 
> 
>> On 21 Oct 2015, at 10:24, Calven Eggert <cal...@mac.com> wrote:
>> 
>> I’ve done that a few times.  The problem I have then is in Eclipse when I 
>> change the wolips properties file to wolips.543.properties and click ok, 
>> when I look back at the values, they are all wiped out, except for the 
>> wolips properties.  I wish I understood how this all works.  Where does 
>> eclipse store the wolips properties value?
>> 
>> 
>> 
>>> On Oct 21, 2015, at 10:55 AM, Chuck Hill <ch...@gevityinc.com> wrote:
>>> 
>>> You can just create that directory manually and place the file there.
>>> 
>>> From: <webobjects-dev-bounces+chill=gevityinc@lists.apple.com> on 
>>> behalf of Calven Eggert <cal...@mac.com>
>>> Date: Wednesday, October 21, 2015 at 7:41 AM
>>> To: "webobjects-dev@lists.apple.com" <webobjects-dev@lists.apple.com>
>>> Subject: Can't get WOlips installed properly
>>> 
>>> I’ve followed these steps:
>>> 
>>>> 1) installed Eclipse IDE for Java Developers Luna SR2 (4.4.2)
>>>> 
>>>> 2) installed wolips from 
>>>> https://jenkins.wocommunity.org/job/WOLips44/lastStableBuild/artifact/temp/dist/
>>>> 
>>>> 3) Installed the WebObjects Framework
>>>> $ sudo mkdir -p /Library/WebObjects/Versions/WebObjects543
>>>> $ curl -O http://wocommunity.org/tools/WOInstaller.jar
>>>> $ sudo java -jar WOInstaller.jar 5.4.3 
>>>> /Library/WebObjects/Versions/WebObjects543
>>>> 
>>>> 4) generated the wolips.properties as per step 3 on 
>>>> https://wiki.wocommunity.org/display/WEB/Project+Wonder+Installation
>>> 
>>> Step 4: in the link it says: “Place this file in ~/Library/Application 
>>> Support/WOLips, this directory should already exist and contain the default 
>>> wolips.properties file."
>>> 
>>> The WOLips directory was not created and the wolips.properties file was not 
>>> created.
>>> 
>>> Any assistance would be appreciated.  I’m running on El Capitan and 
>>> installed. Eclipse 4.4.2
>>> 
>>> Calven
>>> 
>>> 
>>> 
>> 
>> 
>> Calven
>> 
>> 
>> 
>> ___
>> 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:
>> https://lists.apple.com/mailman/options/webobjects-dev/ginokris%40me.com
>> 
>> This email sent to ginok...@me.com
> 


Calven



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

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

Re: Can't get WOlips installed properly

2015-10-21 Thread Calven Eggert
I’ve done that a few times.  The problem I have then is in Eclipse when I 
change the wolips properties file to wolips.543.properties and click ok, when I 
look back at the values, they are all wiped out, except for the wolips 
properties.  I wish I understood how this all works.  Where does eclipse store 
the wolips properties value?



> On Oct 21, 2015, at 10:55 AM, Chuck Hill <ch...@gevityinc.com> wrote:
> 
> You can just create that directory manually and place the file there.
> 
> From: <webobjects-dev-bounces+chill=gevityinc@lists.apple.com 
> <mailto:webobjects-dev-bounces+chill=gevityinc@lists.apple.com>> on 
> behalf of Calven Eggert <cal...@mac.com <mailto:cal...@mac.com>>
> Date: Wednesday, October 21, 2015 at 7:41 AM
> To: "webobjects-dev@lists.apple.com <mailto:webobjects-dev@lists.apple.com>" 
> <webobjects-dev@lists.apple.com <mailto:webobjects-dev@lists.apple.com>>
> Subject: Can't get WOlips installed properly
> 
> I’ve followed these steps:
> 
>> 1) installed Eclipse IDE for Java Developers Luna SR2 (4.4.2)
>> 
>> 2) installed wolips from 
>> https://jenkins.wocommunity.org/job/WOLips44/lastStableBuild/artifact/temp/dist/
>>  
>> <https://jenkins.wocommunity.org/job/WOLips44/lastStableBuild/artifact/temp/dist/>
>> 
>> 3) Installed the WebObjects Framework
>> $ sudo mkdir -p /Library/WebObjects/Versions/WebObjects543
>> $ curl -O http://wocommunity.org/tools/WOInstaller.jar 
>> <http://wocommunity.org/tools/WOInstaller.jar>
>> $ sudo java -jar WOInstaller.jar 5.4.3 
>> /Library/WebObjects/Versions/WebObjects543
>> 
>> 4) generated the wolips.properties as per step 3 on 
>> https://wiki.wocommunity.org/display/WEB/Project+Wonder+Installation 
>> <https://wiki.wocommunity.org/display/WEB/Project+Wonder+Installation>
> 
> Step 4: in the link it says: “Place this file in ~/Library/Application 
> Support/WOLips, this directory should already exist and contain the default 
> wolips.properties file."
> 
> The WOLips directory was not created and the wolips.properties file was not 
> created.
> 
> Any assistance would be appreciated.  I’m running on El Capitan and 
> installed. Eclipse 4.4.2
> 
> Calven
> 
> 
> 


Calven



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

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

Re: Can't get WOlips installed properly

2015-10-21 Thread Calven Eggert
I suspect that my system is f'ked up.

I did an upgrade to El Capitan and I already had an older version of of Eclipse 
installed (3.7).  I think I should do the install to El Capitan from scratch.

> On Oct 21, 2015, at 10:55 AM, Chuck Hill <ch...@gevityinc.com> wrote:
> 
> You can just create that directory manually and place the file there.
> 
> From: <webobjects-dev-bounces+chill=gevityinc@lists.apple.com 
> <mailto:webobjects-dev-bounces+chill=gevityinc@lists.apple.com>> on 
> behalf of Calven Eggert <cal...@mac.com <mailto:cal...@mac.com>>
> Date: Wednesday, October 21, 2015 at 7:41 AM
> To: "webobjects-dev@lists.apple.com <mailto:webobjects-dev@lists.apple.com>" 
> <webobjects-dev@lists.apple.com <mailto:webobjects-dev@lists.apple.com>>
> Subject: Can't get WOlips installed properly
> 
> I’ve followed these steps:
> 
>> 1) installed Eclipse IDE for Java Developers Luna SR2 (4.4.2)
>> 
>> 2) installed wolips from 
>> https://jenkins.wocommunity.org/job/WOLips44/lastStableBuild/artifact/temp/dist/
>>  
>> <https://jenkins.wocommunity.org/job/WOLips44/lastStableBuild/artifact/temp/dist/>
>> 
>> 3) Installed the WebObjects Framework
>> $ sudo mkdir -p /Library/WebObjects/Versions/WebObjects543
>> $ curl -O http://wocommunity.org/tools/WOInstaller.jar 
>> <http://wocommunity.org/tools/WOInstaller.jar>
>> $ sudo java -jar WOInstaller.jar 5.4.3 
>> /Library/WebObjects/Versions/WebObjects543
>> 
>> 4) generated the wolips.properties as per step 3 on 
>> https://wiki.wocommunity.org/display/WEB/Project+Wonder+Installation 
>> <https://wiki.wocommunity.org/display/WEB/Project+Wonder+Installation>
> 
> Step 4: in the link it says: “Place this file in ~/Library/Application 
> Support/WOLips, this directory should already exist and contain the default 
> wolips.properties file."
> 
> The WOLips directory was not created and the wolips.properties file was not 
> created.
> 
> Any assistance would be appreciated.  I’m running on El Capitan and 
> installed. Eclipse 4.4.2
> 
> Calven
> 
> 
> 


Calven



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

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

Can't get WOlips installed properly

2015-10-21 Thread Calven Eggert
I’ve followed these steps:

> 1) installed Eclipse IDE for Java Developers Luna SR2 (4.4.2)
> 
> 2) installed wolips from 
> https://jenkins.wocommunity.org/job/WOLips44/lastStableBuild/artifact/temp/dist/
>  
> 
> 
> 3) Installed the WebObjects Framework
> $ sudo mkdir -p /Library/WebObjects/Versions/WebObjects543
> $ curl -O http://wocommunity.org/tools/WOInstaller.jar 
> 
> $ sudo java -jar WOInstaller.jar 5.4.3 
> /Library/WebObjects/Versions/WebObjects543
> 
> 4) generated the wolips.properties as per step 3 on 
> https://wiki.wocommunity.org/display/WEB/Project+Wonder+Installation 
> 

Step 4: in the link it says: “Place this file in ~/Library/Application 
Support/WOLips, this directory should already exist and contain the default 
wolips.properties file."

The WOLips directory was not created and the wolips.properties file was not 
created.

Any assistance would be appreciated.  I’m running on El Capitan and installed. 
Eclipse 4.4.2

Calven



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

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

Eclipse Issue

2015-10-19 Thread Calven Eggert
Hi, All

I’ve created a new java project but Eclipse freezes when I: Add Library, then 
select “Webobjects Frameworks” and click Next.

I’m using Eclipse version 3.8.2.  Should I be using a different version of 
Eclipse? (iMac OS version 10.10.5)


Calven

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

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

Re: Eclipse Issue

2015-10-19 Thread Calven Eggert
Not a new install, but should it be treated that way?  Is this the latest 
instructions? 
https://wiki.wocommunity.org/display/WEB/Project+Wonder+Installation 
<https://wiki.wocommunity.org/display/WEB/Project+Wonder+Installation>




> On Oct 19, 2015, at 1:28 PM, Gino Pacitti <ginok...@mac.com> wrote:
> 
> If its a new installation you have to reinstall WOLips for that installation 
> version and then use the eclipse properties file that has the framework paths…
> 
> 
>> On 19 Oct 2015, at 12:24, Calven Eggert <cal...@mac.com> wrote:
>> 
>> Does that mean I need to install WOLips, etc? Or will it just update Eclipse 
>> and everything works? :)
>> 
>> 
>> 
>>> On Oct 19, 2015, at 12:20 PM, Theodore Petrosky <tedp...@yahoo.com> wrote:
>>> 
>>> That’s old!!! Try Mars  (4.x.x)
>>> 
>>> 
>>>> On Oct 19, 2015, at 12:13 PM, Calven Eggert <cal...@mac.com> wrote:
>>>> 
>>>> Hi, All
>>>> 
>>>> I’ve created a new java project but Eclipse freezes when I: Add Library, 
>>>> then select “Webobjects Frameworks” and click Next.
>>>> 
>>>> I’m using Eclipse version 3.8.2.  Should I be using a different version of 
>>>> Eclipse? (iMac OS version 10.10.5)
>>>> 
>>>> 
>>>> Calven
>>>> 
>>>> ___
>>>> 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:
>>>> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
>>>> 
>>>> This email sent to tedp...@yahoo.com
>>> 
>> 
>> 
>> Calven
>> 
>> 
>> 
>> ___
>> 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:
>> https://lists.apple.com/mailman/options/webobjects-dev/ginokris%40me.com
>> 
>> This email sent to ginok...@me.com
> 


Calven



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

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

Re: Eclipse Issue

2015-10-19 Thread Calven Eggert
Does that mean I need to install WOLips, etc? Or will it just update Eclipse 
and everything works? :)



> On Oct 19, 2015, at 12:20 PM, Theodore Petrosky <tedp...@yahoo.com> wrote:
> 
> That’s old!!! Try Mars  (4.x.x)
> 
> 
>> On Oct 19, 2015, at 12:13 PM, Calven Eggert <cal...@mac.com 
>> <mailto:cal...@mac.com>> wrote:
>> 
>> Hi, All
>> 
>> I’ve created a new java project but Eclipse freezes when I: Add Library, 
>> then select “Webobjects Frameworks” and click Next.
>> 
>> I’m using Eclipse version 3.8.2.  Should I be using a different version of 
>> Eclipse? (iMac OS version 10.10.5)
>> 
>> 
>> Calven
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com 
>> <https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com>
>> 
>> This email sent to tedp...@yahoo.com
> 


Calven



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

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

Re: EOFetchSpecification - sorting by partial date

2015-07-14 Thread Calven Eggert
As it turns out, this method does not work in the WO application. (It does work 
when executing it from a SQL command line) The fetch spec fails when the new 
column is included the sort:

EvaluateExpression failed: 
com.webobjects.jdbcadaptor.OraclePlugIn$OracleExpression: SELECT (EXTRACT(YEAR 
FROM APPT_DATE) * 100 + EXTRACT(MONTH FROM APPT_DATE)) AS YEARMTH, FROM 
the_table t0 ORDER BY t0.YEARMTH ASC, 
Next exception:SQL State:42000 -- error code: 904 -- msg: ORA-00904: 
T0.YEARMTH: invalid identifier


If the new column is removed from the sort then the select statement works:
SELECT (EXTRACT(YEAR FROM APPT_DATE) * 100 + EXTRACT(MONTH FROM APPT_DATE)) AS 
“YEARMTH FROM the_table t0


This is the new column created in EntityModeler:
(EXTRACT(YEAR FROM APPT_DATE) * 100 + EXTRACT(MONTH FROM APPT_DATE)) AS 
“YEARMTH


Any other ideas, other than creating a new view in the database or new column 
in the table?


 Le 2015-07-13 à 16:48, Calven Eggert cal...@mac.com 
 mailto:cal...@mac.com a écrit :
 
 Thanks Chuck!
 
 I had to add the ŒAS¹ clause to the Read Format, otherwise, I
 received an invalid SQL statement.  I then took advantage of the
 situation by concatenating my two values (year and month) and padded
 the month so that I would always get a 6 digit string so I could then
 do some comparisons with the value for a report.
 
 Read Format:
 EXTRACT(YEAR FROM APPT_DATE) || LPAD(EXTRACT(MONTH FROM APPT_DATE),
 2, '0') AS YM
 
 
 On Jul 13, 2015, at 4:10 PM, Chuck Hill ch...@gevityinc.com 
 mailto:ch...@gevityinc.com wrote:
 
 Sorry, not derived.  Battling too many tasks this morning.  A read
 format should do it (so the same column defined as three class
 property attributes: theDate, theDateYear and theDateMonth (feel free
 to pick better names :-)
 DE4C48C1-45C2-420F-A017-59C3BC72CBD6.png
 
 
 
 
 On 2015-07-13, 1:05 PM, Theodore Petrosky wrote:
 
 I just looked in there. How do you set that up? I tried playing but
 I guess I don¹t understand the derived column.
 
 Thanks Chuck!
 
 
 On Jul 13, 2015, at 2:20 PM, Chuck Hill ch...@gevityinc.com 
 mailto:ch...@gevityinc.com wrote:
 
 Just a note that you can use the  extract (year from theDate) and
 extract (month from theDate) in a derived column in EntityModeler
 which avoids the need for a view.
 
 On 2015-07-13, 11:16 AM, Theodore Petrosky wrote:
 
 you didn¹t mention your database, but I have done things like this
 with a view.
 
 I created a view with the appropriate columns and in the select
 statement I put in the order by
 
 CREATE OR REPLACE VIEW myNewView AS SELECT info1, info2, theDate
 FROM theTable ORDER BY extract (year from theDate) desc, extract
 (month from theDate) asc;
 
 A one point I actually set up some rules to make the ŒVIEW¹
 updatable.
 
 YMMV obviously depending on you access to the backend, and if Views
 are supported.
 
 Ted
 
 
 On Jul 13, 2015, at 12:02 PM, Calven Eggert cal...@mac.com 
 mailto:cal...@mac.com wrote:
 Hi, All
 I have a fetch that sorts records by three columns where one of the
 columns is a date (timestamp).  Is there a way to sort the date by
 month  year only?
 Thanks,
 Calven
 Here is the current fetch:
 ...
 EOSortOrdering sortBySource = new EOSortOrdering(source,
 EOSortOrdering.CompareCaseInsensitiveAscending);
 EOSortOrdering sortByAppt = new EOSortOrdering(appointmentDate,
 EOSortOrdering.CompareCaseInsensitiveAscending);
 EOSortOrdering sortBySite = new EOSortOrdering(³site,
 EOSortOrdering.CompareCaseInsensitiveAscending);
 NSMutableArray orderings = new NSMutableArray();
 orderings.addObject(sortBySource);
 orderings.addObject(sortByAppt);
 orderings.addObject(sortBySite);
 EOFetchSpecification spec = new EOFetchSpecification(³records,
 qual, orderings);
 ___
 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:
 
 https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yaho
 o.com
 This email sent to tedp...@yahoo.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:
 
 https://lists.apple.com/mailman/options/webobjects-dev/chill%40gevity
 inc.com
 
 This email sent to ch...@gevityinc.com
 
 
 
 Calven
 
 
 
 ___
 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:
 
 https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.
 com
 
 This email sent to sam...@samkar.com
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help

Re: EOFetchSpecification - sorting by partial date

2015-07-14 Thread Calven Eggert
I have to sort tens of thousands of rows. :(

It looks like I have to resort to creating a view in the database.

 On Jul 14, 2015, at 11:18 AM, Samuel Pelletier sam...@samkar.com wrote:
 
 I do not think so, the table reference may be required for more complex 
 select with joins and the frameworks cannot really know when put it or not 
 (or it would require a deep analyses of the query)
 
 Unless you have to sort thousands of rows and most of them will never be 
 displayed or used, I would sort in memory.
 
 If you do not specify a fetch limit, you can probably sort in memory...
 
 Samuel
 
 Le 2015-07-14 à 10:46, Calven Eggert cal...@mac.com 
 mailto:cal...@mac.com a écrit :
 
 Is there a way in WO to remove the t0 from the order by clause?
 
 
 On Jul 14, 2015, at 10:29 AM, Theodore Petrosky tedp...@yahoo.com 
 mailto:tedp...@yahoo.com wrote:
 
 interesting this worked in postgresql:
 
 SELECT (EXTRACT(YEAR FROM c_materials_close_ns_timestamp) * 100 + 
 EXTRACT(MONTH FROM c_materials_close_ns_timestamp)) AS t_test  FROM t_grid 
 t0 ORDER BY t_test ASC’
 
 notice the ORDER BY t_test has no table listed  if I put in t0 it fails 
 i.e.  t0.t_test
 
 SELECT (EXTRACT(YEAR FROM c_materials_close_ns_timestamp) * 100 + 
 EXTRACT(MONTH FROM c_materials_close_ns_timestamp)) AS t_test  FROM t_grid 
 t0 ORDER BY t0.t_test ASC;
 LOG:  statement: SELECT (EXTRACT(YEAR FROM c_materials_close_ns_timestamp) 
 * 100 + EXTRACT(MONTH FROM c_materials_close_ns_timestamp)) AS t_test  FROM 
 t_grid t0 ORDER BY t0.t_test ASC;
 ERROR:  column t0.t_test does not exist
 LINE 1: ...ns_timestamp)) AS t_test  FROM t_grid t0 ORDER BY t0.t_test ...
  ^
 but this did:
 
 colorgrid=# SELECT (EXTRACT(YEAR FROM c_materials_close_ns_timestamp) * 100 
 + EXTRACT(MONTH FROM c_materials_close_ns_timestamp)) AS t_test  FROM 
 t_grid t0 ORDER BY t_test ASC;
 LOG:  statement: SELECT (EXTRACT(YEAR FROM c_materials_close_ns_timestamp) 
 * 100 + EXTRACT(MONTH FROM c_materials_close_ns_timestamp)) AS t_test  FROM 
 t_grid t0 ORDER BY t_test ASC;
  t_test 
 
  199906
  199908
  199908
  199908
  199909
  199909
 
 
 
 
 On Jul 14, 2015, at 9:59 AM, Calven Eggert cal...@mac.com 
 mailto:cal...@mac.com wrote:
 
 As it turns out, this method does not work in the WO application. (It does 
 work when executing it from a SQL command line) The fetch spec fails when 
 the new column is included the sort:
 
 EvaluateExpression failed: 
 com.webobjects.jdbcadaptor.OraclePlugIn$OracleExpression: SELECT 
 (EXTRACT(YEAR FROM APPT_DATE) * 100 + EXTRACT(MONTH FROM APPT_DATE)) AS 
 YEARMTH, FROM the_table t0 ORDER BY t0.YEARMTH ASC, 
 Next exception:SQL State:42000 -- error code: 904 -- msg: ORA-00904: 
 T0.YEARMTH: invalid identifier
 
 
 If the new column is removed from the sort then the select statement works:
 SELECT (EXTRACT(YEAR FROM APPT_DATE) * 100 + EXTRACT(MONTH FROM 
 APPT_DATE)) AS “YEARMTH FROM the_table t0
 
 
 This is the new column created in EntityModeler:
 (EXTRACT(YEAR FROM APPT_DATE) * 100 + EXTRACT(MONTH FROM APPT_DATE)) AS 
 “YEARMTH
 
 
 Any other ideas, other than creating a new view in the database or new 
 column in the table?
 
 
 Le 2015-07-13 à 16:48, Calven Eggert cal...@mac.com 
 mailto:cal...@mac.com a écrit :
 
 Thanks Chuck!
 
 I had to add the ŒAS¹ clause to the Read Format, otherwise, I
 received an invalid SQL statement.  I then took advantage of the
 situation by concatenating my two values (year and month) and padded
 the month so that I would always get a 6 digit string so I could then
 do some comparisons with the value for a report.
 
 Read Format:
 EXTRACT(YEAR FROM APPT_DATE) || LPAD(EXTRACT(MONTH FROM APPT_DATE),
 2, '0') AS YM
 
 
 On Jul 13, 2015, at 4:10 PM, Chuck Hill ch...@gevityinc.com 
 mailto:ch...@gevityinc.com wrote:
 
 Sorry, not derived.  Battling too many tasks this morning.  A read
 format should do it (so the same column defined as three class
 property attributes: theDate, theDateYear and theDateMonth (feel free
 to pick better names :-)
 DE4C48C1-45C2-420F-A017-59C3BC72CBD6.png
 
 
 
 
 On 2015-07-13, 1:05 PM, Theodore Petrosky wrote:
 
 I just looked in there. How do you set that up? I tried playing but
 I guess I don¹t understand the derived column.
 
 Thanks Chuck!
 
 
 On Jul 13, 2015, at 2:20 PM, Chuck Hill ch...@gevityinc.com 
 mailto:ch...@gevityinc.com wrote:
 
 Just a note that you can use the  extract (year from theDate) and
 extract (month from theDate) in a derived column in EntityModeler
 which avoids the need for a view.
 
 On 2015-07-13, 11:16 AM, Theodore Petrosky wrote:
 
 you didn¹t mention your database, but I have done things like this
 with a view.
 
 I created a view with the appropriate columns and in the select
 statement I put in the order by
 
 CREATE OR REPLACE VIEW myNewView AS SELECT info1, info2, theDate
 FROM theTable ORDER BY extract (year from theDate) desc, extract
 (month from theDate) asc

Re: EOFetchSpecification - sorting by partial date

2015-07-14 Thread Calven Eggert
Is there a way in WO to remove the t0 from the order by clause?


 On Jul 14, 2015, at 10:29 AM, Theodore Petrosky tedp...@yahoo.com wrote:
 
 interesting this worked in postgresql:
 
 SELECT (EXTRACT(YEAR FROM c_materials_close_ns_timestamp) * 100 + 
 EXTRACT(MONTH FROM c_materials_close_ns_timestamp)) AS t_test  FROM t_grid t0 
 ORDER BY t_test ASC’
 
 notice the ORDER BY t_test has no table listed  if I put in t0 it fails i.e.  
 t0.t_test
 
 SELECT (EXTRACT(YEAR FROM c_materials_close_ns_timestamp) * 100 + 
 EXTRACT(MONTH FROM c_materials_close_ns_timestamp)) AS t_test  FROM t_grid t0 
 ORDER BY t0.t_test ASC;
 LOG:  statement: SELECT (EXTRACT(YEAR FROM c_materials_close_ns_timestamp) * 
 100 + EXTRACT(MONTH FROM c_materials_close_ns_timestamp)) AS t_test  FROM 
 t_grid t0 ORDER BY t0.t_test ASC;
 ERROR:  column t0.t_test does not exist
 LINE 1: ...ns_timestamp)) AS t_test  FROM t_grid t0 ORDER BY t0.t_test ...
  ^
 but this did:
 
 colorgrid=# SELECT (EXTRACT(YEAR FROM c_materials_close_ns_timestamp) * 100 + 
 EXTRACT(MONTH FROM c_materials_close_ns_timestamp)) AS t_test  FROM t_grid t0 
 ORDER BY t_test ASC;
 LOG:  statement: SELECT (EXTRACT(YEAR FROM c_materials_close_ns_timestamp) * 
 100 + EXTRACT(MONTH FROM c_materials_close_ns_timestamp)) AS t_test  FROM 
 t_grid t0 ORDER BY t_test ASC;
  t_test 
 
  199906
  199908
  199908
  199908
  199909
  199909
 
 
 
 
 On Jul 14, 2015, at 9:59 AM, Calven Eggert cal...@mac.com 
 mailto:cal...@mac.com wrote:
 
 As it turns out, this method does not work in the WO application. (It does 
 work when executing it from a SQL command line) The fetch spec fails when 
 the new column is included the sort:
 
 EvaluateExpression failed: 
 com.webobjects.jdbcadaptor.OraclePlugIn$OracleExpression: SELECT 
 (EXTRACT(YEAR FROM APPT_DATE) * 100 + EXTRACT(MONTH FROM APPT_DATE)) AS 
 YEARMTH, FROM the_table t0 ORDER BY t0.YEARMTH ASC, 
 Next exception:SQL State:42000 -- error code: 904 -- msg: ORA-00904: 
 T0.YEARMTH: invalid identifier
 
 
 If the new column is removed from the sort then the select statement works:
 SELECT (EXTRACT(YEAR FROM APPT_DATE) * 100 + EXTRACT(MONTH FROM APPT_DATE)) 
 AS “YEARMTH FROM the_table t0
 
 
 This is the new column created in EntityModeler:
 (EXTRACT(YEAR FROM APPT_DATE) * 100 + EXTRACT(MONTH FROM APPT_DATE)) AS 
 “YEARMTH
 
 
 Any other ideas, other than creating a new view in the database or new 
 column in the table?
 
 
 Le 2015-07-13 à 16:48, Calven Eggert cal...@mac.com 
 mailto:cal...@mac.com a écrit :
 
 Thanks Chuck!
 
 I had to add the ŒAS¹ clause to the Read Format, otherwise, I
 received an invalid SQL statement.  I then took advantage of the
 situation by concatenating my two values (year and month) and padded
 the month so that I would always get a 6 digit string so I could then
 do some comparisons with the value for a report.
 
 Read Format:
 EXTRACT(YEAR FROM APPT_DATE) || LPAD(EXTRACT(MONTH FROM APPT_DATE),
 2, '0') AS YM
 
 
 On Jul 13, 2015, at 4:10 PM, Chuck Hill ch...@gevityinc.com 
 mailto:ch...@gevityinc.com wrote:
 
 Sorry, not derived.  Battling too many tasks this morning.  A read
 format should do it (so the same column defined as three class
 property attributes: theDate, theDateYear and theDateMonth (feel free
 to pick better names :-)
 DE4C48C1-45C2-420F-A017-59C3BC72CBD6.png
 
 
 
 
 On 2015-07-13, 1:05 PM, Theodore Petrosky wrote:
 
 I just looked in there. How do you set that up? I tried playing but
 I guess I don¹t understand the derived column.
 
 Thanks Chuck!
 
 
 On Jul 13, 2015, at 2:20 PM, Chuck Hill ch...@gevityinc.com 
 mailto:ch...@gevityinc.com wrote:
 
 Just a note that you can use the  extract (year from theDate) and
 extract (month from theDate) in a derived column in EntityModeler
 which avoids the need for a view.
 
 On 2015-07-13, 11:16 AM, Theodore Petrosky wrote:
 
 you didn¹t mention your database, but I have done things like this
 with a view.
 
 I created a view with the appropriate columns and in the select
 statement I put in the order by
 
 CREATE OR REPLACE VIEW myNewView AS SELECT info1, info2, theDate
 FROM theTable ORDER BY extract (year from theDate) desc, extract
 (month from theDate) asc;
 
 A one point I actually set up some rules to make the ŒVIEW¹
 updatable.
 
 YMMV obviously depending on you access to the backend, and if Views
 are supported.
 
 Ted
 
 
 On Jul 13, 2015, at 12:02 PM, Calven Eggert cal...@mac.com 
 mailto:cal...@mac.com wrote:
 Hi, All
 I have a fetch that sorts records by three columns where one of the
 columns is a date (timestamp).  Is there a way to sort the date by
 month  year only?
 Thanks,
 Calven
 Here is the current fetch:
 ...
 EOSortOrdering sortBySource = new EOSortOrdering(source,
 EOSortOrdering.CompareCaseInsensitiveAscending);
 EOSortOrdering sortByAppt = new EOSortOrdering(appointmentDate,
 EOSortOrdering.CompareCaseInsensitiveAscending);
 EOSortOrdering

Re: EOFetchSpecification - sorting by partial date

2015-07-14 Thread Calven Eggert
Guys,  Thanks so much for all you assistance and time spent on this issue. It 
now works!!! woohoo!  Here is my final screenshot, only difference from Chuck’s 
being I stored the value in an Integer.

Calven

PS - User: “How hard could it be to sort that report by month and year?”  :-)



 On Jul 14, 2015, at 1:46 PM, Chuck Hill ch...@gevityinc.com wrote:
 
 Maybe I was right the first time.  :-)  I know that I have used this before, 
 somewhere.  So Calven, try something like this (remove the Read Format) and 
 make it Read Only.
 
 
 Entity_Modeler_-_CadreCore_CadreCore_eomodelgroup_-_Eclipse_SDK_-__Users_chuck_Documents_workspace[1].png
 
 Chuck
 
 On 2015-07-14, 10:01 AM, Oscar González wrote:
 
 Hi all,
 I used a derived column  like this (EXTRACT(YEAR FROM fechaIngreso) * 100 + 
 EXTRACT(MONTH FROM fechaIngreso))
 
 and it generates this sql
 
 SELECT (EXTRACT(YEAR FROM t0.fechaingreso) * 100 + EXTRACT(MONTH FROM 
 t0.fechaingreso)) FROM ep_empxcom t0 
 ORDER BY (EXTRACT(YEAR FROM t0.fechaingreso) * 100 + EXTRACT(MONTH FROM 
 t0.fechaingreso)) ASC
 
 It works with postgres, I think it will work in oracle too.
 
 Saludos,
  Oscar.
 
 Subject: Re: EOFetchSpecification - sorting by partial date
 From: cal...@mac.com mailto:cal...@mac.com
 Date: Tue, 14 Jul 2015 11:21:32 -0400
 To: sam...@samkar.com mailto:sam...@samkar.com
 CC: webobjects-dev@lists.apple.com mailto:webobjects-dev@lists.apple.com
 
 I have to sort tens of thousands of rows. :(
 
 It looks like I have to resort to creating a view in the database.
 
 On Jul 14, 2015, at 11:18 AM, Samuel Pelletier sam...@samkar.com 
 mailto:sam...@samkar.com wrote:
 
 I do not think so, the table reference may be required for more complex 
 select with joins and the frameworks cannot really know when put it or not 
 (or it would require a deep analyses of the query)
 
 Unless you have to sort thousands of rows and most of them will never be 
 displayed or used, I would sort in memory.
 
 If you do not specify a fetch limit, you can probably sort in memory...
 
 Samuel
 
 Le 2015-07-14 à 10:46, Calven Eggert cal...@mac.com mailto:cal...@mac.com 
 a écrit :
 
 Is there a way in WO to remove the t0 from the order by clause?
 
 
 On Jul 14, 2015, at 10:29 AM, Theodore Petrosky tedp...@yahoo.com 
 mailto:tedp...@yahoo.com wrote:
 
 interesting this worked in postgresql:
 
 SELECT (EXTRACT(YEAR FROM c_materials_close_ns_timestamp) * 100 + 
 EXTRACT(MONTH FROM c_materials_close_ns_timestamp)) AS t_test  FROM t_grid t0 
 ORDER BY t_test ASC’
 
 notice the ORDER BY t_test has no table listed  if I put in t0 it fails i.e.  
 t0.t_test
 
 SELECT (EXTRACT(YEAR FROM c_materials_close_ns_timestamp) * 100 + 
 EXTRACT(MONTH FROM c_materials_close_ns_timestamp)) AS t_test  FROM t_grid t0 
 ORDER BY t0.t_test ASC;
 LOG:  statement: SELECT (EXTRACT(YEAR FROM c_materials_close_ns_timestamp) * 
 100 + EXTRACT(MONTH FROM c_materials_close_ns_timestamp)) AS t_test  FROM 
 t_grid t0 ORDER BY t0.t_test ASC;
 ERROR:  column t0.t_test does not exist
 LINE 1: ...ns_timestamp)) AS t_test  FROM t_grid t0 ORDER BY t0.t_test ...
  ^
 but this did:
 
 colorgrid=# SELECT (EXTRACT(YEAR FROM c_materials_close_ns_timestamp) * 100 + 
 EXTRACT(MONTH FROM c_materials_close_ns_timestamp)) AS t_test  FROM t_grid t0 
 ORDER BY t_test ASC;
 LOG:  statement: SELECT (EXTRACT(YEAR FROM c_materials_close_ns_timestamp) * 
 100 + EXTRACT(MONTH FROM c_materials_close_ns_timestamp)) AS t_test  FROM 
 t_grid t0 ORDER BY t_test ASC;
  t_test 
 
  199906
  199908
  199908
  199908
  199909
  199909
 
 
 
 
 On Jul 14, 2015, at 9:59 AM, Calven Eggert cal...@mac.com 
 mailto:cal...@mac.com wrote:
 
 As it turns out, this method does not work in the WO application. (It does 
 work when executing it from a SQL command line) The fetch spec fails when the 
 new column is included the sort:
 
 EvaluateExpression failed: 
 com.webobjects.jdbcadaptor.OraclePlugIn$OracleExpression: SELECT 
 (EXTRACT(YEAR FROM APPT_DATE) * 100 + EXTRACT(MONTH FROM APPT_DATE)) AS 
 YEARMTH, FROM the_table t0 ORDER BY t0.YEARMTH ASC, 
 Next exception:SQL State:42000 -- error code: 904 -- msg: ORA-00904: 
 T0.YEARMTH: invalid identifier
 
 
 If the new column is removed from the sort then the select statement works:
 SELECT (EXTRACT(YEAR FROM APPT_DATE) * 100 + EXTRACT(MONTH FROM APPT_DATE)) 
 AS “YEARMTH FROM the_table t0
 
 
 This is the new column created in EntityModeler:
 (EXTRACT(YEAR FROM APPT_DATE) * 100 + EXTRACT(MONTH FROM APPT_DATE)) AS 
 “YEARMTH
 
 
 Any other ideas, other than creating a new view in the database or new column 
 in the table?
 
 
 Le 2015-07-13 à 16:48, Calven Eggert cal...@mac.com mailto:cal...@mac.com 
 a écrit :
 
 Thanks Chuck!
 
 I had to add the ŒAS¹ clause to the Read Format, otherwise, I
 received an invalid SQL statement.  I then took advantage of the
 situation by concatenating my two values (year and month) and padded

Re: EOFetchSpecification - sorting by partial date

2015-07-13 Thread Calven Eggert
Thanks for the idea.  sorting in memory is the other option I’ve considered, 
however, was hoping to get the results faster at the database end.

 On Jul 13, 2015, at 12:27 PM, Samuel Pelletier sam...@samkar.com wrote:
 
 Calven,
 
 There is no easy way on the database but you can add a method that returns a 
 formatted string or int and sort in memory on it.
 
 To use an int, you take the date year*100 + month number, for a string a 
 formatter like this -MM.
 
 For more readable code, add an ERXKey on your entity class like this:
 public static ERXKeyString YEAR_MONTH = new ERXKeyString(yearMonth);
 
 and sort like this:
 sortedRows = EntityClass.YEAR_MONTH.ascs().sorted(rowsFromDB);
 
 BTW, if you are using the Wonder templates, your sort ordering can be created 
 like this with no strings constants:
 
 orderings = 
 SOURCE.ascInsensitive().then(APPOINTMENT_DATE.ascInsensitive()).then(SITE.ascInsensitive());
 
 Samuel
 
 
 Le 2015-07-13 à 12:02, Calven Eggert cal...@mac.com a écrit :
 
 Hi, All
 
 I have a fetch that sorts records by three columns where one of the columns 
 is a date (timestamp).  Is there a way to sort the date by month  year 
 only?  
 
 
 Thanks,
 Calven
 
 Here is the current fetch:
 
  ...
   EOSortOrdering sortBySource = new EOSortOrdering(source, 
 EOSortOrdering.CompareCaseInsensitiveAscending);
   EOSortOrdering sortByAppt = new EOSortOrdering(appointmentDate, 
 EOSortOrdering.CompareCaseInsensitiveAscending);
   EOSortOrdering sortBySite = new EOSortOrdering(“site, 
 EOSortOrdering.CompareCaseInsensitiveAscending);
   NSMutableArray orderings = new NSMutableArray();
   orderings.addObject(sortBySource);
   orderings.addObject(sortByAppt);
   orderings.addObject(sortBySite);
   EOFetchSpecification spec = new EOFetchSpecification(“records, qual, 
 orderings);
 
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com
 
 This email sent to sam...@samkar.com
 


Calven



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

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

Re: EOFetchSpecification - sorting by partial date

2015-07-13 Thread Calven Eggert
Thanks Chuck!

I had to add the ‘AS’ clause to the Read Format, otherwise, I received an 
invalid SQL statement.  I then took advantage of the situation by concatenating 
my two values (year and month) and padded the month so that I would always get 
a 6 digit string so I could then do some comparisons with the value for a 
report.

Read Format:
EXTRACT(YEAR FROM APPT_DATE) || LPAD(EXTRACT(MONTH FROM APPT_DATE), 2, '0') AS 
YM


 On Jul 13, 2015, at 4:10 PM, Chuck Hill ch...@gevityinc.com wrote:
 
 Sorry, not derived.  Battling too many tasks this morning.  A read format 
 should do it (so the same column defined as three class property attributes: 
 theDate, theDateYear and theDateMonth (feel free to pick better names :-)
 DE4C48C1-45C2-420F-A017-59C3BC72CBD6.png
 
 
 
 
 On 2015-07-13, 1:05 PM, Theodore Petrosky wrote:
 
 I just looked in there. How do you set that up? I tried playing but I guess I 
 don’t understand the derived column.
 
 Thanks Chuck!
 
 
 On Jul 13, 2015, at 2:20 PM, Chuck Hill ch...@gevityinc.com 
 mailto:ch...@gevityinc.com wrote:
 
 Just a note that you can use the  extract (year from theDate) and extract 
 (month from theDate) in a derived column in EntityModeler which avoids the 
 need for a view.
 
 On 2015-07-13, 11:16 AM, Theodore Petrosky wrote:
 
 you didn’t mention your database, but I have done things like this with a 
 view.
 
 I created a view with the appropriate columns and in the select statement I 
 put in the order by
 
 CREATE OR REPLACE VIEW myNewView AS SELECT info1, info2, theDate FROM 
 theTable ORDER BY extract (year from theDate) desc, extract (month from 
 theDate) asc;
 
 A one point I actually set up some rules to make the ‘VIEW’ updatable.
 
 YMMV obviously depending on you access to the backend, and if Views are 
 supported.
 
 Ted
 
 
 On Jul 13, 2015, at 12:02 PM, Calven Eggert cal...@mac.com 
 mailto:cal...@mac.com wrote:
 Hi, All
 I have a fetch that sorts records by three columns where one of the columns 
 is a date (timestamp).  Is there a way to sort the date by month  year 
 only?  
 Thanks,
 Calven
 Here is the current fetch:
 ...
 EOSortOrdering sortBySource = new EOSortOrdering(source, 
 EOSortOrdering.CompareCaseInsensitiveAscending);
 EOSortOrdering sortByAppt = new EOSortOrdering(appointmentDate, 
 EOSortOrdering.CompareCaseInsensitiveAscending);
  EOSortOrdering sortBySite = new EOSortOrdering(“site, 
 EOSortOrdering.CompareCaseInsensitiveAscending);
  NSMutableArray orderings = new NSMutableArray();
  orderings.addObject(sortBySource);
  orderings.addObject(sortByAppt);
  orderings.addObject(sortBySite);
 EOFetchSpecification spec = new EOFetchSpecification(“records, qual, 
 orderings);
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
 mailto:Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com 
 https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
 This email sent to tedp...@yahoo.com mailto:tedp...@yahoo.com
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
 mailto:Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/chill%40gevityinc.com 
 https://lists.apple.com/mailman/options/webobjects-dev/chill%40gevityinc.com
 
 This email sent to ch...@gevityinc.com mailto:ch...@gevityinc.com


Calven



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

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

Re: EOFetchSpecification - sorting by partial date

2015-07-13 Thread Calven Eggert
I'm not going good to be changing the value of the date but thanks for the 
heads up. Good idea on using the calculation to get a number!

Calven


 On Jul 13, 2015, at 5:11 PM, Samuel Pelletier sam...@samkar.com wrote:
 
 Keep in mind that the YM value on your EO will not be updated if you change 
 the apptDate unless you refresh the object from the database.
 
 To save string creation and manipulation on the server, you may generate a 
 number instead of a string...
 
 EXTRACT(YEAR FROM APPT_DATE) * 100 + EXTRACT(MONTH FROM APPT_DATE) AS YM
 
 Samuel
 
 Le 2015-07-13 à 16:48, Calven Eggert cal...@mac.com a écrit :
 
 Thanks Chuck!
 
 I had to add the ‘AS’ clause to the Read Format, otherwise, I received an 
 invalid SQL statement.  I then took advantage of the situation by 
 concatenating my two values (year and month) and padded the month so that I 
 would always get a 6 digit string so I could then do some comparisons with 
 the value for a report.
 
 Read Format:
 EXTRACT(YEAR FROM APPT_DATE) || LPAD(EXTRACT(MONTH FROM APPT_DATE), 2, '0') 
 AS YM
 
 
 On Jul 13, 2015, at 4:10 PM, Chuck Hill ch...@gevityinc.com wrote:
 
 Sorry, not derived.  Battling too many tasks this morning.  A read format 
 should do it (so the same column defined as three class property 
 attributes: theDate, theDateYear and theDateMonth (feel free to pick better 
 names :-)
 DE4C48C1-45C2-420F-A017-59C3BC72CBD6.png
 
 
 
 
 On 2015-07-13, 1:05 PM, Theodore Petrosky wrote:
 
 I just looked in there. How do you set that up? I tried playing but I guess 
 I don’t understand the derived column.
 
 Thanks Chuck!
 
 
 On Jul 13, 2015, at 2:20 PM, Chuck Hill ch...@gevityinc.com wrote:
 
 Just a note that you can use the  extract (year from theDate) and extract 
 (month from theDate) in a derived column in EntityModeler which avoids the 
 need for a view.
 
 On 2015-07-13, 11:16 AM, Theodore Petrosky wrote:
 
 you didn’t mention your database, but I have done things like this with a 
 view.
 
 I created a view with the appropriate columns and in the select statement 
 I put in the order by
 
 CREATE OR REPLACE VIEW myNewView AS SELECT info1, info2, theDate FROM 
 theTable ORDER BY extract (year from theDate) desc, extract (month from 
 theDate) asc;
 
 A one point I actually set up some rules to make the ‘VIEW’ updatable.
 
 YMMV obviously depending on you access to the backend, and if Views are 
 supported.
 
 Ted
 
 
 On Jul 13, 2015, at 12:02 PM, Calven Eggert cal...@mac.com wrote:
 Hi, All
 I have a fetch that sorts records by three columns where one of the 
 columns is a date (timestamp).  Is there a way to sort the date by month  
 year only?  
 Thanks,
 Calven
 Here is the current fetch:
 ...
 EOSortOrdering sortBySource = new EOSortOrdering(source, 
 EOSortOrdering.CompareCaseInsensitiveAscending);
 EOSortOrdering sortByAppt = new EOSortOrdering(appointmentDate, 
 EOSortOrdering.CompareCaseInsensitiveAscending);
  EOSortOrdering sortBySite = new EOSortOrdering(“site, 
 EOSortOrdering.CompareCaseInsensitiveAscending);
  NSMutableArray orderings = new NSMutableArray();
  orderings.addObject(sortBySource);
  orderings.addObject(sortByAppt);
  orderings.addObject(sortBySite);
 EOFetchSpecification spec = new EOFetchSpecification(“records, qual, 
 orderings);
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
 This email sent to tedp...@yahoo.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:
 https://lists.apple.com/mailman/options/webobjects-dev/chill%40gevityinc.com
 
 This email sent to ch...@gevityinc.com
 
 
 Calven
 
 
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com
 
 This email sent to sam...@samkar.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

EOFetchSpecification - sorting by partial date

2015-07-13 Thread Calven Eggert
Hi, All

I have a fetch that sorts records by three columns where one of the columns is 
a date (timestamp).  Is there a way to sort the date by month  year only?  


Thanks,
Calven

Here is the current fetch:

...
 EOSortOrdering sortBySource = new EOSortOrdering(source, 
EOSortOrdering.CompareCaseInsensitiveAscending);
 EOSortOrdering sortByAppt = new EOSortOrdering(appointmentDate, 
EOSortOrdering.CompareCaseInsensitiveAscending);
 EOSortOrdering sortBySite = new EOSortOrdering(“site, 
EOSortOrdering.CompareCaseInsensitiveAscending);
 NSMutableArray orderings = new NSMutableArray();
 orderings.addObject(sortBySource);
 orderings.addObject(sortByAppt);
 orderings.addObject(sortBySite);
 EOFetchSpecification spec = new EOFetchSpecification(“records, qual, 
orderings);


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

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

Returning JSON

2015-06-18 Thread Calven Eggert
Hi,

What needs to be done to properly return a webpage with proper json encoding, 
meaning content type of “application/json?   The page my application is 
returning seems to be of type “text/html”.  I’m not exactly sure how to see 
what the content type is. my app returns a WOString with the json text in it.  
Is this the correct way to handle this?

I’ve found this example but it didn’t seem to make a difference to my app. (In 
Application.java)

public void appendToResponse(WOResponse response, WOContext context) {
super.appendToResponse(response, context);
if( _NSUtilities.UTF8StringEncoding.equals(response.contentEncoding()))
response.setHeader(application/json; charset=UTF-8, 
Content-Type);
}



Thanks,
Calven ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: Returning JSON

2015-06-18 Thread Calven Eggert
My app only has one purpose that that is to accept parameters in a 
DirectAction, which then returns the json output.  It calls a method to get the 
json string and then it sets the contents just like noted by hugi.


 On Jun 18, 2015, at 11:52 AM, Hugi Thordarson h...@karlmenn.is wrote:
 
 Remember kids… It’s always a good idea to give that example code a second 
 glance _before_ you hit that send button.
 
 public WOActionResults downloadJson() {
   WOResponse response = new WOResponse();
   response.setHeader( application/json, content-type );
   response.setContent( someStringContainingJSON );
   return response;
 }
 
 Cheers,
 hugi
 
 
 On 18. jún. 2015, at 15:48, Hugi Thordarson h...@karlmenn.is wrote:
 
 public WOActionResults downloadJson() {
  WOResponse response = new WORespnse();
  response.setHeader( “application/json” );
  response.setContentString( someStringContainingJSON );
  return response;
 }
 
 


Calven



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

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

Re: Returning JSON

2015-06-18 Thread Calven Eggert
ok.  will do.  quick advice on where to start?

 On Jun 18, 2015, at 12:02 PM, Chuck Hill ch...@gevityinc.com wrote:
 
 You so very, very, very much want to look at ERRest.  You are re-inventing 
 the wheel.  :-)
 
 Chuck
 
 
 On 2015-06-18, 9:00 AM, Calven Eggert wrote:
 
 My app only has one purpose that that is to accept parameters in a 
 DirectAction, which then returns the json output.  It calls a method to get 
 the json string and then it sets the contents just like noted by hugi.
 
 
 On Jun 18, 2015, at 11:52 AM, Hugi Thordarson h...@karlmenn.is 
 mailto:h...@karlmenn.is wrote:
 
 Remember kids… It’s always a good idea to give that example code a second 
 glance _before_ you hit that send button.
 
 public WOActionResults downloadJson() {
 WOResponse response = new WOResponse();
 response.setHeader( application/json, content-type );
 response.setContent( someStringContainingJSON );
 return response;
 }
 
 Cheers,
 hugi
 
 
 On 18. jún. 2015, at 15:48, Hugi Thordarson h...@karlmenn.is 
 mailto:h...@karlmenn.is wrote:
 
 public WOActionResults downloadJson() {
 WOResponse response = new WORespnse();
 response.setHeader( “application/json” );
 response.setContentString( someStringContainingJSON );
 return response;
 }
 
 
 
 
 Calven
 
 
 


Calven



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

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

Ajax Observe Field wierdness

2015-03-09 Thread Calven Eggert
Hi,

I'm learning AJAX and I'm following the Dependent List Example but am having 
weird results.  The result is the observed field is duplicated at the top of 
the webpage.  When I view source in Chrome, the observed field is only found 
once in the HTML at the proper place.  Here is my code:
...
tr
td class=maincontentboldSite Group:/td
tdWEBOBJECT NAME=SiteGroupPopUpButton/WEBOBJECTWEBOBJECT 
NAME=SiteObserveField/WEBOBJECT/td
/tr
WEBOBJECT NAME=UpdateComponent
tr
td class=maincontentboldMalignant Disease:/td
tdWEBOBJECT NAME=SiteOfDiseasePopUpButton/WEBOBJECT/td
/tr
/WEBOBJECT
...

SiteGroupPopUpButton: WOPopUpButton {
id = groupPopupID;
displayString = currentItem.displayName;
item = currentItem;
list = siteGroupArray;
noSelectionString = kNoneSelected;
selection = siteGroupSelection;
}
SiteObserveField: AjaxObserveField {
observeFieldID = groupPopupID;
updateContainerID = observerID;
fullSubmit = false;
}
UpdateComponent: AjaxUpdateContainer {
id = observerID;
}
SiteOfDiseasePopUpButton: WOPopUpButton {
displayString = currentItem.displayName;
item = currentItem;
list = siteGroupSelectionSites;
noSelectionString = kNoneSelected;
selection = currentCase.siteOfDiseaseLookup;
}

SiteGroupPopUpButton is the field that the user will change (observed field) 
and SiteOfDiseasePopUpButton (Malignant Disease) is the popup that should 
change accordingly.  When the Site Group popup is changed the phantom popup at 
the top of the page does change appropriately but the real popup does not. (not 
sure if images are allowed in this email list but one is included just in case, 
so you can see the phantom popup at the top of the page)

What am I doing wrong?

Calven



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

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

Re: Citrix Issue - resolved?

2015-02-19 Thread Calven Eggert
Yes, Citrix Desktop.

Update...what appeared to be the fix one day (changing the url to IP) no longer 
worked the next day.  Bottom line is that Citrix is causing problems and now I 
need to put in a fix in my WO code to accommodate Citrix's behaviour.


On 2015-02-18, at 8:24 PM, Pascal Robert wrote:

 Hi,
 
 By Citrix, you mean Citrix XenDesktop?
 
 Le 2015-02-18 à 12:06, Calven Eggert cegg...@uhnresearch.ca a écrit :
 
 Hi, WO Community
 
 We've been experiencing some strange behaviour over the past month in one of 
 our WO apps that has given an error like the following:
 
 EvaluateExpression failed: 
 com.webobjects.jdbcadaptor.OraclePlugIn$OracleExpression: INSERT INTO 
 CRR_ADVERSE_EVENTS...
 Next exception:SQL State:23000 -- error code: 1400 -- msg: ORA-01400: cannot 
 insert NULL into (CRE_MASTER.CRR_ADVERSE_EVENTS.CATEGORY_ID)
 
 What is weird is that I have not been able to reproduce this error after 
 many, many attempts in the development environment on my Mac.  
 
 When connecting to the WO application via Citrix this is when the error does 
 happen, although there are no exact steps to reproduce the problem 100% of 
 the time, it can be reproduced within a couple of minutes.  This seems to 
 say that the issue has something to do with Citrix.
 
 This is where it gets a bit strange...
 
 The WO application accesses images stored in a directory by using urls that 
 looks like server1.networkserver.com.  Because we had very strong 
 suspicions that Citrix was the problem it was suggested that we change the 
 urls to the actual IP address like 123.45.67.890.  
 
 Guess what?  The problem disappeared.  We no longer get the error.
 
 
 Has anyone else ever experienced something like this or has an explanation 
 for what is going on here?
 
 
 Calven
 
 
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
 
 This email sent to prob...@macti.ca
 
 
 



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

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

Citrix Issue - resolved?

2015-02-18 Thread Calven Eggert
Hi, WO Community

We've been experiencing some strange behaviour over the past month in one of 
our WO apps that has given an error like the following:

EvaluateExpression failed: 
com.webobjects.jdbcadaptor.OraclePlugIn$OracleExpression: INSERT INTO 
CRR_ADVERSE_EVENTS...
Next exception:SQL State:23000 -- error code: 1400 -- msg: ORA-01400: cannot 
insert NULL into (CRE_MASTER.CRR_ADVERSE_EVENTS.CATEGORY_ID)

What is weird is that I have not been able to reproduce this error after many, 
many attempts in the development environment on my Mac.  

When connecting to the WO application via Citrix this is when the error does 
happen, although there are no exact steps to reproduce the problem 100% of the 
time, it can be reproduced within a couple of minutes.  This seems to say that 
the issue has something to do with Citrix.

This is where it gets a bit strange...

The WO application accesses images stored in a directory by using urls that 
looks like server1.networkserver.com.  Because we had very strong suspicions 
that Citrix was the problem it was suggested that we change the urls to the 
actual IP address like 123.45.67.890.  

Guess what?  The problem disappeared.  We no longer get the error.


Has anyone else ever experienced something like this or has an explanation for 
what is going on here?


Calven



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

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

EO Modeling tool?

2014-10-23 Thread Calven Eggert
Hi, Fellow WOers

What are people using these days to create diagrams from the EO models?

Calven


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

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

Clustered Databases

2014-07-21 Thread Calven Eggert
I've just been told that one of the databases my WO application is talking to 
has changed and it should now connect to a clustered database.

Currently I connect to the previous database like so: (In the eomodel)

URL = jdbc:sqlserver://123.456.789.01:1234;

I've been told to connect to a string that looks something like this 
MIQSQL.name.ca.  I've also been told that this is a FQDN. (whatever that is)

hmmm, I'm not sure how to use this new information.  Anyone else know?

Calven



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

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

Drawing and saving images using WO

2014-06-17 Thread Calven Eggert
Anyone know how to write a WO app to allow the user to draw in a browser, 
capture the image and then use WO to store the image in a database?

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

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

WO app to Draw

2014-06-17 Thread Calven Eggert
Anyone know how to write a WO app to allow the user to draw notes using a 
stylus in a browser, capture the image and then use WO to store the image in a 
database?
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: Drawing and saving images using WO

2014-06-17 Thread Calven Eggert
that's cool.  Yes, please send me more info when you get a chance.  Thanks.

On 2014-06-17, at 4:03 PM, Klaus Berkling wrote:

 Take a look at fabric.js. It uses the HTML canvas tag and allows you to get 
 the image as png or jpeg in base64. 
 You can then use a JavaScript to place the image data value into a hidden 
 input field. You can do that onsubmit in the WOform. Everything else is 
 normal.  Just did this to capture signatures.  I can give you more info later 
 today when I get home. 
 
 ... sent while out-n-about
 
 On Jun 17, 2014, at 12:41 PM, Calven Eggert cegg...@uhnresearch.ca wrote:
 
 Anyone know how to write a WO app to allow the user to draw in a browser, 
 capture the image and then use WO to store the image in a database?
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/webobjects%40berkling.us
 
 This email sent to webobje...@berkling.us



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

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

Unique Constraint Error

2014-02-28 Thread Calven Eggert
I have a table A that has a one to many relationship to table B. (A-B)  At 
the time A is created a user may choose to create multiple B records before 
they all get saved.

Problem is that the B records are causing a unique constraint error.  The 
first sequence number is always an already chosen ID in the table.

Here is a snippet of the code generated:

SELECT JOBS_NOTES_SEQ.NEXTVAL FROM DUAL
SELECT JOBS_NOTES_SEQ.NEXTVAL FROM DUAL

INSERT INTO JOBS_NOTES(NOTES_SUBMITTED_BY, NOTES_HYPERLINK, NOTES_USER_VISIBLE, 
NOTES_JOB_ID, NOTES_SUBMITTED_DATE, NOTES_DESCRIPTION, NOTES_ID, 
NOTES_ATTACHMENT_NAME) VALUES (?, NULL, ?, ?, ?, ?, ?, ?)1:204(submittedby), 
2:Y(uservisible), 3:14456(jobid), 4:2014-02-27 13:34:27(submitteddate), 
5:2(notesdescription), 6:37427(notesid), 7:eyetv serial 
number.rtf(attachmentname):
INSERT INTO JOBS_NOTES(NOTES_SUBMITTED_BY, NOTES_HYPERLINK, NOTES_USER_VISIBLE, 
NOTES_JOB_ID, NOTES_SUBMITTED_DATE, NOTES_DESCRIPTION, NOTES_ID, 
NOTES_ATTACHMENT_NAME) VALUES (?, NULL, ?, ?, ?, ?, ?, ?)1:204(submittedby), 
2:Y(uservisible), 3:14456(jobid), 4:2014-02-27 13:34:27(submitteddate), 
5:2(notesdescription), 6:37467(notesid), 7:eyetv serial 
number.rtf(attachmentname):

Next exception:SQL State:23000 -- error code: 1 -- msg: ORA-1: unique 
constraint (CRE_MASTER.SYS_C001646) violated

The number 37467 is correct but the first number 37427 is not because it is an 
already existing primary key. huh?

Anyone have any suggestions?  Why is the first number invalid and why is the 
second one valid?

Calven


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

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

Re: Unique Constraint Error

2014-02-28 Thread Calven Eggert

On 2014-02-28, at 12:32 PM, Chuck Hill wrote:

 Jumping 40 from 37427 to 37467 is a little suspicious.  Is there an increment 
  1 on this sequence? It could be that EOF has a cached value out of sync 
 with the database.  

increment is 1.

 
 Or is the database sequence out of sync with the data in the table?

how can this happen?  I started up the app from my machine and created the 
scenario in a very few steps.  

 Try re-creating the sequence.

I don't have access to production tables/sequences and so I wanted to see if 
there was something at my end that I could fix before speaking with the DBA.

 
 Is anything else writing to this database besides EOF?

nope.

 
 Chuck
 
 
 On 2014-02-28, 6:07 AM, Calven Eggert wrote:
 
 I have a table A that has a one to many relationship to table B. (A-B)  At 
 the time A is created a user may choose to create multiple B records before 
 they all get saved.
 
 Problem is that the B records are causing a unique constraint error.  The 
 first sequence number is always an already chosen ID in the table.
 
 Here is a snippet of the code generated:
 
 SELECT JOBS_NOTES_SEQ.NEXTVAL FROM DUAL
 SELECT JOBS_NOTES_SEQ.NEXTVAL FROM DUAL
 
 INSERT INTO JOBS_NOTES(NOTES_SUBMITTED_BY, NOTES_HYPERLINK, 
 NOTES_USER_VISIBLE, NOTES_JOB_ID, NOTES_SUBMITTED_DATE, NOTES_DESCRIPTION, 
 NOTES_ID, NOTES_ATTACHMENT_NAME) VALUES (?, NULL, ?, ?, ?, ?, ?, 
 ?)1:204(submittedby), 2:Y(uservisible), 3:14456(jobid), 4:2014-02-27 
 13:34:27(submitteddate), 5:2(notesdescription), 6:37427(notesid), 7:eyetv 
 serial number.rtf(attachmentname):
 INSERT INTO JOBS_NOTES(NOTES_SUBMITTED_BY, NOTES_HYPERLINK, 
 NOTES_USER_VISIBLE, NOTES_JOB_ID, NOTES_SUBMITTED_DATE, NOTES_DESCRIPTION, 
 NOTES_ID, NOTES_ATTACHMENT_NAME) VALUES (?, NULL, ?, ?, ?, ?, ?, 
 ?)1:204(submittedby), 2:Y(uservisible), 3:14456(jobid), 4:2014-02-27 
 13:34:27(submitteddate), 5:2(notesdescription), 6:37467(notesid), 7:eyetv 
 serial number.rtf(attachmentname):
 
 Next exception:SQL State:23000 -- error code: 1 -- msg: ORA-1: unique 
 constraint (CRE_MASTER.SYS_C001646) violated
 
 The number 37467 is correct but the first number 37427 is not because it is 
 an already existing primary key. huh?
 
 Anyone have any suggestions?  Why is the first number invalid and why is the 
 second one valid?
 
 Calven
 
 

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

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

Re: Unique Constraint Error

2014-02-28 Thread Calven Eggert
FYI, the problem has been solved (on initial testing) by checking the 
Propagates Primary Key checkbox for the relationship between table A  B.  
The ID is now using the proper sequence number.  The sequence number for table 
A is very close to the sequence number for table B.


On 2014-02-28, at 12:32 PM, Chuck Hill wrote:

 Jumping 40 from 37427 to 37467 is a little suspicious.  Is there an increment 
  1 on this sequence? It could be that EOF has a cached value out of sync 
 with the database.  
 
 Or is the database sequence out of sync with the data in the table?  Try 
 re-creating the sequence.
 
 Is anything else writing to this database besides EOF?
 
 Chuck
 
 
 On 2014-02-28, 6:07 AM, Calven Eggert wrote:
 
 I have a table A that has a one to many relationship to table B. (A-B)  At 
 the time A is created a user may choose to create multiple B records before 
 they all get saved.
 
 Problem is that the B records are causing a unique constraint error.  The 
 first sequence number is always an already chosen ID in the table.
 
 Here is a snippet of the code generated:
 
 SELECT JOBS_NOTES_SEQ.NEXTVAL FROM DUAL
 SELECT JOBS_NOTES_SEQ.NEXTVAL FROM DUAL
 
 INSERT INTO JOBS_NOTES(NOTES_SUBMITTED_BY, NOTES_HYPERLINK, 
 NOTES_USER_VISIBLE, NOTES_JOB_ID, NOTES_SUBMITTED_DATE, NOTES_DESCRIPTION, 
 NOTES_ID, NOTES_ATTACHMENT_NAME) VALUES (?, NULL, ?, ?, ?, ?, ?, 
 ?)1:204(submittedby), 2:Y(uservisible), 3:14456(jobid), 4:2014-02-27 
 13:34:27(submitteddate), 5:2(notesdescription), 6:37427(notesid), 7:eyetv 
 serial number.rtf(attachmentname):
 INSERT INTO JOBS_NOTES(NOTES_SUBMITTED_BY, NOTES_HYPERLINK, 
 NOTES_USER_VISIBLE, NOTES_JOB_ID, NOTES_SUBMITTED_DATE, NOTES_DESCRIPTION, 
 NOTES_ID, NOTES_ATTACHMENT_NAME) VALUES (?, NULL, ?, ?, ?, ?, ?, 
 ?)1:204(submittedby), 2:Y(uservisible), 3:14456(jobid), 4:2014-02-27 
 13:34:27(submitteddate), 5:2(notesdescription), 6:37467(notesid), 7:eyetv 
 serial number.rtf(attachmentname):
 
 Next exception:SQL State:23000 -- error code: 1 -- msg: ORA-1: unique 
 constraint (CRE_MASTER.SYS_C001646) violated
 
 The number 37467 is correct but the first number 37427 is not because it is 
 an already existing primary key. huh?
 
 Anyone have any suggestions?  Why is the first number invalid and why is the 
 second one valid?
 
 Calven
 
 

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

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

unable to increment snapshot count for object

2014-02-06 Thread Calven Eggert
Hi,

All of a sudden, in the past couple of weeks, I'm getting the below error a lot 
and I can't figure out what the heck is going on.  Any ideas?

Yes, I'm aware of the EOF commandments. :-)

Calven
===

java.lang.reflect.InvocationTargetException
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._private.WOComponentDefinition._componentInstanceInContext(WOComponentDefinition.java:567)
at 
com.webobjects.appserver._private.WOComponentDefinition.componentInstanceInContext(WOComponentDefinition.java:658)
at 
com.webobjects.appserver.WOApplication.pageWithName(WOApplication.java:2332)
at 
com.webobjects.appserver.WOComponent.pageWithName(WOComponent.java:1346)
at CORELogin.login(CORELogin.java:95)
at CORELogin.login(CORELogin.java:49)
at sun.reflect.GeneratedMethodAccessor344.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
at 
com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
at 
com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1324)
at 
com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1736)
at 
com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:447)
at 
com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
at 
com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:1804)
at COREGenericComponent.valueForKeyPath(COREGenericComponent.java:467)
at 
com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:50)
at 
com.webobjects.appserver._private.WOSubmitButton.invokeAction(WOSubmitButton.java:81)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at 
com.webobjects.appserver._private.WOForm.invokeAction(WOForm.java:141)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at 
com.webobjects.appserver._private.WOComponentContent.invokeAction(WOComponentContent.java:38)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at 
com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079)
at 
com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:127)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at 
com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079)
at com.webobjects.appserver.WOSession.invokeAction(WOSession.java:1357)
at 
com.webobjects.appserver.WOApplication.invokeAction(WOApplication.java:1745)
at 
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:206)
at 
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:298)
at 
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
at 
com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
at 
com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
at 
com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
at COREApplication.dispatchRequest(COREApplication.java:454)
at Application.dispatchRequest(Application.java:46)
at 
com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at 
com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
at java.lang.Thread.run(Thread.java:680)
Caused by: 

Re: unable to increment snapshot count for object

2014-02-06 Thread Calven Eggert
I've just looked at my log and  it looks like this error has been happening for 
quite a while now a couple of years, it's just that lately many more users are 
using the application and so the error is showing up more often.  What would 
cause this problem?


On 2014-02-06, at 2:12 PM, Chuck Hill wrote:

 What have you changed?
 
 On 2/6/2014, 11:05 AM, Calven Eggert wrote:
 
 Hi,
 
 All of a sudden, in the past couple of weeks, I'm getting the below error a 
 lot and I can't figure out what the heck is going on.  Any ideas?
 
 Yes, I'm aware of the EOF commandments. :-)
 
 Calven
 ===
 
 java.lang.reflect.InvocationTargetException
 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._private.WOComponentDefinition._componentInstanceInContext(WOComponentDefinition.java:567)
 at 
 com.webobjects.appserver._private.WOComponentDefinition.componentInstanceInContext(WOComponentDefinition.java:658)
 at 
 com.webobjects.appserver.WOApplication.pageWithName(WOApplication.java:2332)
 at com.webobjects.appserver.WOComponent.pageWithName(WOComponent.java:1346)
 at CORELogin.login(CORELogin.java:95)
 at CORELogin.login(CORELogin.java:49)
 at sun.reflect.GeneratedMethodAccessor344.invoke(Unknown Source)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at 
 KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
 at 
 com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
 at 
 com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1324)
 at com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1736)
 at 
 com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:447)
 at 
 com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
 at com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:1804)
 at COREGenericComponent.valueForKeyPath(COREGenericComponent.java:467)
 at 
 com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:50)
 at 
 com.webobjects.appserver._private.WOSubmitButton.invokeAction(WOSubmitButton.java:81)
 at 
 com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
 at 
 com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
 at com.webobjects.appserver._private.WOForm.invokeAction(WOForm.java:141)
 at 
 com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
 at 
 com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
 at 
 com.webobjects.appserver._private.WOComponentContent.invokeAction(WOComponentContent.java:38)
 at 
 com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
 at 
 com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
 at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079)
 at 
 com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:127)
 at 
 com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
 at 
 com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
 at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079)
 at com.webobjects.appserver.WOSession.invokeAction(WOSession.java:1357)
 at 
 com.webobjects.appserver.WOApplication.invokeAction(WOApplication.java:1745)
 at 
 com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:206)
 at 
 com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:298)
 at 
 com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
 at 
 com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
 at 
 com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
 at 
 com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
 at COREApplication.dispatchRequest(COREApplication.java:454)
 at Application.dispatchRequest(Application.java:46)
 at 
 com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
 at 
 com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226

Re: unable to increment snapshot count for object

2014-02-06 Thread Calven Eggert
I have a WOComponent called CORELogin.java and it does this if a user's id/pw 
is valid

Main mainPage = (Main) pageWithName(Main);

---
public Main(WOContext context) {
super(context);
initialize();
}
public void initialize() {
...
}
---


On 2014-02-06, at 2:33 PM, Chuck Hill wrote:

 What is Main?  It looks like you are calling into EOF in a static 
 initializer.  That is NOT a good idea.
 
 at 
 com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)
 at BIXIdentity.accountName(BIXIdentity.java:44)
 at TrialMgr.isTrialCoordinator(TrialMgr.java:696)
 at TrialMgr.filterTrialViaQualifier(TrialMgr.java:585)
 at TrialMgr.filterTrialsViaQualifier(TrialMgr.java:577)
 at TrialMgr.retrieveTrials(TrialMgr.java:321)
 at Main.setUpTrialsDisplay(Main.java:153)
 at Main.initialize(Main.java:111)
 at Main.init(Main.java:86)
 
 
 
 
 On 2/6/2014, 11:31 AM, Calven Eggert wrote:
 
 I've just looked at my log and  it looks like this error has been happening 
 for quite a while now a couple of years, it's just that lately many more 
 users are using the application and so the error is showing up more often.  
 What would cause this problem?
 
 
 On 2014-02-06, at 2:12 PM, Chuck Hill wrote:
 
 What have you changed?
 
 On 2/6/2014, 11:05 AM, Calven Eggert wrote:
 
 Hi,
 
 All of a sudden, in the past couple of weeks, I'm getting the below error a 
 lot and I can't figure out what the heck is going on.  Any ideas?
 
 Yes, I'm aware of the EOF commandments. :-)
 
 Calven
 ===
 
 java.lang.reflect.InvocationTargetException
 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._private.WOComponentDefinition._componentInstanceInContext(WOComponentDefinition.java:567)
 at 
 com.webobjects.appserver._private.WOComponentDefinition.componentInstanceInContext(WOComponentDefinition.java:658)
 at 
 com.webobjects.appserver.WOApplication.pageWithName(WOApplication.java:2332)
 at com.webobjects.appserver.WOComponent.pageWithName(WOComponent.java:1346)
 at CORELogin.login(CORELogin.java:95)
 at CORELogin.login(CORELogin.java:49)
 at sun.reflect.GeneratedMethodAccessor344.invoke(Unknown Source)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at 
 KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
 at 
 com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
 at 
 com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1324)
 at com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1736)
 at 
 com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:447)
 at 
 com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
 at 
 com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:1804)
 at COREGenericComponent.valueForKeyPath(COREGenericComponent.java:467)
 at 
 com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:50)
 at 
 com.webobjects.appserver._private.WOSubmitButton.invokeAction(WOSubmitButton.java:81)
 at 
 com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
 at 
 com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
 at com.webobjects.appserver._private.WOForm.invokeAction(WOForm.java:141)
 at 
 com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
 at 
 com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
 at 
 com.webobjects.appserver._private.WOComponentContent.invokeAction(WOComponentContent.java:38)
 at 
 com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
 at 
 com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
 at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079)
 at 
 com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:127)
 at 
 com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
 at 
 com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
 at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079)
 at com.webobjects.appserver.WOSession.invokeAction(WOSession.java:1357)
 at 
 com.webobjects.appserver.WOApplication.invokeAction(WOApplication.java:1745)
 at 
 com.webobjects.appserver

Re: unable to increment snapshot count for object

2014-02-06 Thread Calven Eggert
no static init blocks in Main or CORELogin (the calling class).

the only locking that is done in app or framework is here using the 
MultiECLockManager:

public Session() {
super();
ecManager = new MultiECLockManager();
}

public void finalize() throws Throwable {
ecManager = null;
super.finalize();
}
public void awake() {
super.awake();
ecManager.lock();
}
public void sleep() {
ecManager.unlock();
super.sleep();
}



On 2014-02-06, at 2:42 PM, Chuck Hill wrote:

 So just the constructor then, no static init blocks in that class?
 
 There are a few things that can cause this.  Improper locking of the 
 EODatabaseContext or the OSC for example.
 
 
 Chuck
 
 
 On 2/6/2014, 11:37 AM, Calven Eggert wrote:
 
 I have a WOComponent called CORELogin.java and it does this if a user's id/pw 
 is valid
 
 Main mainPage = (Main) pageWithName(Main);
 
 ---
 public Main(WOContext context) {
 super(context);
 initialize();
 }
 public void initialize() {
 ...
 }
 ---
 
 
 On 2014-02-06, at 2:33 PM, Chuck Hill wrote:
 
 What is Main?  It looks like you are calling into EOF in a static 
 initializer.  That is NOT a good idea.
 
 at 
 com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)
 at BIXIdentity.accountName(BIXIdentity.java:44)
 at TrialMgr.isTrialCoordinator(TrialMgr.java:696)
 at TrialMgr.filterTrialViaQualifier(TrialMgr.java:585)
 at TrialMgr.filterTrialsViaQualifier(TrialMgr.java:577)
 at TrialMgr.retrieveTrials(TrialMgr.java:321)
 at Main.setUpTrialsDisplay(Main.java:153)
 at Main.initialize(Main.java:111)
 at Main.init(Main.java:86)
 
 
 
 
 On 2/6/2014, 11:31 AM, Calven Eggert wrote:
 
 I've just looked at my log and  it looks like this error has been happening 
 for quite a while now a couple of years, it's just that lately many more 
 users are using the application and so the error is showing up more often.  
 What would cause this problem?
 
 
 On 2014-02-06, at 2:12 PM, Chuck Hill wrote:
 
 What have you changed?
 
 On 2/6/2014, 11:05 AM, Calven Eggert wrote:
 
 Hi,
 
 All of a sudden, in the past couple of weeks, I'm getting the below error a 
 lot and I can't figure out what the heck is going on.  Any ideas?
 
 Yes, I'm aware of the EOF commandments. :-)
 
 Calven
 ===
 
 java.lang.reflect.InvocationTargetException
 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._private.WOComponentDefinition._componentInstanceInContext(WOComponentDefinition.java:567)
 at 
 com.webobjects.appserver._private.WOComponentDefinition.componentInstanceInContext(WOComponentDefinition.java:658)
 at 
 com.webobjects.appserver.WOApplication.pageWithName(WOApplication.java:2332)
 at com.webobjects.appserver.WOComponent.pageWithName(WOComponent.java:1346)
 at CORELogin.login(CORELogin.java:95)
 at CORELogin.login(CORELogin.java:49)
 at sun.reflect.GeneratedMethodAccessor344.invoke(Unknown Source)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at 
 KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
 at 
 com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
 at 
 com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1324)
 at com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1736)
 at 
 com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:447)
 at 
 com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
 at 
 com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:1804)
 at COREGenericComponent.valueForKeyPath(COREGenericComponent.java:467)
 at 
 com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:50)
 at 
 com.webobjects.appserver._private.WOSubmitButton.invokeAction(WOSubmitButton.java:81)
 at 
 com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
 at 
 com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
 at com.webobjects.appserver._private.WOForm.invokeAction(WOForm.java:141)
 at 
 com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
 at 
 com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
 at 
 com.webobjects.appserver

Upgrading WebObjects?

2014-02-04 Thread Calven Eggert
Hi, All

I've been working in WO for a number of years at my current job and our 
multiple WO systems generally work without a major problems, however, I am 
getting sporadic issues that I think could be fixed going to Project Wonder. 
Plus, I want to integrate AJAX into our applications.

My company is buying me a new iMac (yay!) and so I thought that this would be a 
good time to upgrade.  I believe that the steps I need to follow are on the 
Wonder Tutorial 
page(http://wiki.wocommunity.org/display/documentation/Wonder+Tutorials).  
Specifically, I'll do the Installation, Setup and Upgrading step and then 
I'll need to follow the steps in the Integrating Wonder into your webobjects 
app section.  Is this fairly painless?  Any caveats?

I currently build my apps and frameworks in Eclipse using the WOLips Ant Tools 
Install menu item.  On this page 
(http://wiki.wocommunity.org/display/documentation/Binary+Frameworks+Installation+and+Upgrade)
 it talks about the different versions of WO.  I could not figure out how to 
determine my WO version, although I found a wolips.properties.533 file in a 
WOLips folder in my Library/Application Support folder.  Does this mean that I 
am running WO5.3.3?  Are there any concerns, in regards to the WO version that 
I need to be aware of in performing this upgrade?

Any other comments or suggestions to help make this transition go smoothly 
would be greatly appreciated.

Thanks,
Calven



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

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

Re: Upgrading WebObjects?

2014-02-04 Thread Calven Eggert
Thanks Chuck, Now I know that I'm using 5.4.3.

On 2014-02-04, at 12:00 PM, Chuck Hill wrote:

 Hi Calven,
 
 If you are on 5.3.3, this might help:
 http://www.global-village.net/chill/webobjects_5.4.2_changes
 
 Try this to see which version you are running
 grep -A 1 CFBundleShortVersionString 
 /System/Library/Frameworks/JavaWebObjects.framework/Resources/Info.plist 
 
 E.g.
 keyCFBundleShortVersionString/key
 string5.4.3/string
 
 
 Chuck
 
 On 2/4/2014, 8:25 AM, Calven Eggert wrote:
 
 Hi, All
 
 I've been working in WO for a number of years at my current job and our 
 multiple WO systems generally work without a major problems, however, I am 
 getting sporadic issues that I think could be fixed going to Project Wonder. 
 Plus, I want to integrate AJAX into our applications.
 
 My company is buying me a new iMac (yay!) and so I thought that this would be 
 a good time to upgrade.  I believe that the steps I need to follow are on the 
 Wonder Tutorial 
 page(http://wiki.wocommunity.org/display/documentation/Wonder+Tutorials).  
 Specifically, I'll do the Installation, Setup and Upgrading step and then 
 I'll need to follow the steps in the Integrating Wonder into your webobjects 
 app section.  Is this fairly painless?  Any caveats?
 
 I currently build my apps and frameworks in Eclipse using the WOLips Ant 
 Tools Install menu item.  On this page 
 (http://wiki.wocommunity.org/display/documentation/Binary+Frameworks+Installation+and+Upgrade)
  it talks about the different versions of WO.  I could not figure out how to 
 determine my WO version, although I found a wolips.properties.533 file in a 
 WOLips folder in my Library/Application Support folder.  Does this mean that 
 I am running WO5.3.3?  Are there any concerns, in regards to the WO version 
 that I need to be aware of in performing this upgrade?
 
 Any other comments or suggestions to help make this transition go smoothly 
 would be greatly appreciated.
 
 Thanks,
 Calven
 
 
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
 
 This email sent to ch...@global-village.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: WOResponse HandleException problem

2012-12-20 Thread Calven Eggert
Even though I've created a new context it only appears to have solved the 
problem.  clicking the button to take me to my login page is not working 
properly because the link it goes to is invalid.

I've just found this in the html of my error page :

form method=post name=firstform 
action=/cgi-bin/WebObjects/.woa/wo/bV82atO1hU5cqnWZgbj7U0/0.1

The action has a different ID and the missing app name before the .woa

What would cause this?


On 2012-12-19, at 4:02 PM, Chuck Hill wrote:

 The old context stores the previous page.  When the request comes in, that 
 page has takeValues and invoke action run on it.  One of those must have been 
 causing the exception to happen again.  Creating a new context removes the 
 history.
 
 Chuck
 
 
 On 2012-12-19, at 12:54 PM, Calven Eggert wrote:
 
 YES!  it works!   Thank you, thank you, thank you!
 
 Can you explain why?
 
 On 2012-12-19, at 3:46 PM, Chuck Hill wrote:
 
 Try creating a new context here instead of using aContext:
 
COREErrorPage errorPage = (COREErrorPage) 
 pageWithName(COREErrorPage, aContext);
 
 
 
 On 2012-12-19, at 12:45 PM, Calven Eggert wrote:
 
 I've set a breakpoint in the dispatchRequest.  it gets there.
 
 The exception that I'm getting in the first place fires again.
 
 recap:
 page one, click to activate exception
 page two (error page), click button to go to login page
 exception on page one fires again. It's as if the first page is active 
 although the error page is being displayed.
 
 
 
 On 2012-12-19, at 3:02 PM, Chuck Hill wrote:
 
 Override dispatchRequest() to see if the first click even gets to the 
 app.  If not, check the HTML in the page.  If it does get there, is it 
 causing a new exception?
 
 
 Chuck
 
 
 On 2012-12-19, at 5:14 AM, Calven Eggert wrote:
 
 *bump*
 
 anyone have any ideas?
 
 Begin forwarded message:
 
 From: Calven Eggert cegg...@uhnresearch.ca
 Subject: WOResponse HandleException problem
 Date: 17 December, 2012 4:04:00 PM EST
 To: webobjects-dev@lists.apple.com
 
 I have a framework that has overridden WOResponse HandleException for 
 many years.  
 
 Today I have discovered that there is a problem with the page I display 
 to the user.  The page shows text and a button at the bottom of the 
 page is labelled Go to Login Page.  It used to go to the login page 
 of the application but now when clicked on it seems to do nothing.  
 When clicked on a second time it then correctly goes to the login page.
 
 I can't seem to figure out why it's no longer working.  I can confirm 
 that it was working properly in May of 2011.  I haven't a clue when it 
 stopped working.  Some kind of upgrade may have caused it to stop.  
 Java version, Eclipse no idea.
 
 This is how it is handled:
 
 public WOResponse handleException(Exception anException, WOContext 
 aContext)
 {
super.handleException(anException, aContext);
COREErrorPage errorPage = (COREErrorPage) 
 pageWithName(COREErrorPage, aContext);
errorPage.initialize(true, anException, theUser, , , null);
return errorPage.generateResponse();
 }
 
 
 My error page does this when the user clicks on the button, but only 
 the second time it is clicked:
 
 public WOComponent loginPage() {
WORedirect redirect = new WORedirect(context());
try {
redirect.setUrl(((COREApplication)application()).logoutLink());
} catch (Exception e) {
e.printStackTrace();
e = null;
redirect.setUrl(((COREApplication)application()).logoutLink());
}
((CORESession)session()).terminate();
return redirect;
 }
 
 Any help in solving this mystery is appreciated.
 
 Calven
 
 
 ___
 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:
 https://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/gvc/practical_webobjects
 
 Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest 
 Growing Companies in B.C! 
 Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of 
 Canada’s Fastest-Growing Companies by PROFIT Magazine!
 
 
 
 
 
 
 
 
 
 
 
 
 
 -- 
 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/gvc/practical_webobjects
 
 Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest 
 Growing Companies in B.C! 
 Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of 
 Canada’s Fastest-Growing

Re: WOResponse HandleException problem

2012-12-20 Thread Calven Eggert
I tried it that way and also like this:

WOContext newContext = new WOContext(null);

both give the same result. :-(

On 2012-12-20, at 4:18 PM, Chuck Hill wrote:

 How did you create the new context?  Like this:
 
 WOContext newContext = new WOContext(originalContext.request());
 
 If not, try that.
 
 
 Chuck
 
 On 2012-12-20, at 1:14 PM, Calven Eggert wrote:
 
 Even though I've created a new context it only appears to have solved the 
 problem.  clicking the button to take me to my login page is not working 
 properly because the link it goes to is invalid.
 
 I've just found this in the html of my error page :
 
   form method=post name=firstform 
 action=/cgi-bin/WebObjects/.woa/wo/bV82atO1hU5cqnWZgbj7U0/0.1
 
 The action has a different ID and the missing app name before the .woa
 
 What would cause this?
 
 
 On 2012-12-19, at 4:02 PM, Chuck Hill wrote:
 
 The old context stores the previous page.  When the request comes in, that 
 page has takeValues and invoke action run on it.  One of those must have 
 been causing the exception to happen again.  Creating a new context removes 
 the history.
 
 Chuck
 
 
 On 2012-12-19, at 12:54 PM, Calven Eggert wrote:
 
 YES!  it works!   Thank you, thank you, thank you!
 
 Can you explain why?
 
 On 2012-12-19, at 3:46 PM, Chuck Hill wrote:
 
 Try creating a new context here instead of using aContext:
 
  COREErrorPage errorPage = (COREErrorPage) 
 pageWithName(COREErrorPage, aContext);
 
 
 
 On 2012-12-19, at 12:45 PM, Calven Eggert wrote:
 
 I've set a breakpoint in the dispatchRequest.  it gets there.
 
 The exception that I'm getting in the first place fires again.
 
 recap:
 page one, click to activate exception
 page two (error page), click button to go to login page
 exception on page one fires again. It's as if the first page is active 
 although the error page is being displayed.
 
 
 
 On 2012-12-19, at 3:02 PM, Chuck Hill wrote:
 
 Override dispatchRequest() to see if the first click even gets to the 
 app.  If not, check the HTML in the page.  If it does get there, is it 
 causing a new exception?
 
 
 Chuck
 
 
 On 2012-12-19, at 5:14 AM, Calven Eggert wrote:
 
 *bump*
 
 anyone have any ideas?
 
 Begin forwarded message:
 
 From: Calven Eggert cegg...@uhnresearch.ca
 Subject: WOResponse HandleException problem
 Date: 17 December, 2012 4:04:00 PM EST
 To: webobjects-dev@lists.apple.com
 
 I have a framework that has overridden WOResponse HandleException for 
 many years.  
 
 Today I have discovered that there is a problem with the page I 
 display to the user.  The page shows text and a button at the bottom 
 of the page is labelled Go to Login Page.  It used to go to the 
 login page of the application but now when clicked on it seems to do 
 nothing.  When clicked on a second time it then correctly goes to the 
 login page.
 
 I can't seem to figure out why it's no longer working.  I can confirm 
 that it was working properly in May of 2011.  I haven't a clue when 
 it stopped working.  Some kind of upgrade may have caused it to stop. 
  Java version, Eclipse no idea.
 
 This is how it is handled:
 
 public WOResponse handleException(Exception anException, WOContext 
 aContext)
 {
  super.handleException(anException, aContext);
  COREErrorPage errorPage = (COREErrorPage) 
 pageWithName(COREErrorPage, aContext);
  errorPage.initialize(true, anException, theUser, , , null);
  return errorPage.generateResponse();
 }
 
 
 My error page does this when the user clicks on the button, but only 
 the second time it is clicked:
 
 public WOComponent loginPage() {
  WORedirect redirect = new WORedirect(context());
  try {
  redirect.setUrl(((COREApplication)application()).logoutLink());
  } catch (Exception e) {
  e.printStackTrace();
  e = null;
  redirect.setUrl(((COREApplication)application()).logoutLink());
  }
  ((CORESession)session()).terminate();
  return redirect;
 }
 
 Any help in solving this mystery is appreciated.
 
 Calven
 
 
 ___
 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:
 https://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/gvc/practical_webobjects
 
 Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest 
 Growing Companies in B.C! 
 Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking 
 of Canada’s Fastest-Growing Companies by PROFIT Magazine!
 
 
 
 
 
 
 
 
 
 
 
 
 
 -- 
 Chuck Hill Senior Consultant / VP Development
 
 Practical WebObjects - for developers who want

Re: WOResponse HandleException problem

2012-12-20 Thread Calven Eggert
this is an old WO application that doesn't use Wonder.  (yah, I know)

Should I convert this app to use Wonder?  would that take a lot of work?

On 2012-12-20, at 4:44 PM, Ramsey Gurley wrote:

 Maybe try ERXApplication.instantiatePage(String pageName) instead?
 
 On Dec 20, 2012, at 2:24 PM, Calven Eggert wrote:
 
 I tried it that way and also like this:
 
  WOContext newContext = new WOContext(null);
 
 both give the same result. :-(
 
 On 2012-12-20, at 4:18 PM, Chuck Hill wrote:
 
 How did you create the new context?  Like this:
 
 WOContext newContext = new WOContext(originalContext.request());
 
 If not, try that.
 
 
 Chuck
 
 On 2012-12-20, at 1:14 PM, Calven Eggert wrote:
 
 Even though I've created a new context it only appears to have solved the 
 problem.  clicking the button to take me to my login page is not working 
 properly because the link it goes to is invalid.
 
 I've just found this in the html of my error page :
 
 form method=post name=firstform 
 action=/cgi-bin/WebObjects/.woa/wo/bV82atO1hU5cqnWZgbj7U0/0.1
 
 The action has a different ID and the missing app name before the .woa
 
 What would cause this?
 
 
 On 2012-12-19, at 4:02 PM, Chuck Hill wrote:
 
 The old context stores the previous page.  When the request comes in, 
 that page has takeValues and invoke action run on it.  One of those must 
 have been causing the exception to happen again.  Creating a new context 
 removes the history.
 
 Chuck
 
 
 On 2012-12-19, at 12:54 PM, Calven Eggert wrote:
 
 YES!  it works!   Thank you, thank you, thank you!
 
 Can you explain why?
 
 On 2012-12-19, at 3:46 PM, Chuck Hill wrote:
 
 Try creating a new context here instead of using aContext:
 
 COREErrorPage errorPage = (COREErrorPage) 
 pageWithName(COREErrorPage, aContext);
 
 
 
 On 2012-12-19, at 12:45 PM, Calven Eggert wrote:
 
 I've set a breakpoint in the dispatchRequest.  it gets there.
 
 The exception that I'm getting in the first place fires again.
 
 recap:
 page one, click to activate exception
 page two (error page), click button to go to login page
 exception on page one fires again. It's as if the first page is active 
 although the error page is being displayed.
 
 
 
 On 2012-12-19, at 3:02 PM, Chuck Hill wrote:
 
 Override dispatchRequest() to see if the first click even gets to the 
 app.  If not, check the HTML in the page.  If it does get there, is 
 it causing a new exception?
 
 
 Chuck
 
 
 On 2012-12-19, at 5:14 AM, Calven Eggert wrote:
 
 *bump*
 
 anyone have any ideas?
 
 Begin forwarded message:
 
 From: Calven Eggert cegg...@uhnresearch.ca
 Subject: WOResponse HandleException problem
 Date: 17 December, 2012 4:04:00 PM EST
 To: webobjects-dev@lists.apple.com
 
 I have a framework that has overridden WOResponse HandleException 
 for many years.
 
 Today I have discovered that there is a problem with the page I 
 display to the user.  The page shows text and a button at the 
 bottom of the page is labelled Go to Login Page.  It used to go 
 to the login page of the application but now when clicked on it 
 seems to do nothing.  When clicked on a second time it then 
 correctly goes to the login page.
 
 I can't seem to figure out why it's no longer working.  I can 
 confirm that it was working properly in May of 2011.  I haven't a 
 clue when it stopped working.  Some kind of upgrade may have caused 
 it to stop.  Java version, Eclipse no idea.
 
 This is how it is handled:
 
 public WOResponse handleException(Exception anException, WOContext 
 aContext)
 {
 super.handleException(anException, aContext);
 COREErrorPage errorPage = (COREErrorPage) 
 pageWithName(COREErrorPage, aContext);
 errorPage.initialize(true, anException, theUser, , , null);
 return errorPage.generateResponse();
 }
 
 
 My error page does this when the user clicks on the button, but 
 only the second time it is clicked:
 
 public WOComponent loginPage() {
 WORedirect redirect = new WORedirect(context());
 try {
redirect.setUrl(((COREApplication)application()).logoutLink());
 } catch (Exception e) {
e.printStackTrace();
e = null;
redirect.setUrl(((COREApplication)application()).logoutLink());
 }
 ((CORESession)session()).terminate();
 return redirect;
 }
 
 Any help in solving this mystery is appreciated.
 
 Calven
 
 
 ___
 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:
 https://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/gvc/practical_webobjects
 
 Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest

Re: WOResponse HandleException problem

2012-12-20 Thread Calven Eggert
i understand.

In the meantime, something here has broke and I haven't a clue how to fix it.  
This area of the code hasn't been touched in years and I suspect that the 
change in the java version might have done it.  I don't know why, but that's 
the only major thing that has happened since we moved all of our WO apps to new 
mac mini servers last year.  like i mentioned before, it's possible that this 
bug I'm fixing was there a year ago but none of the hundreds of users has said 
anything until now. very strange.


On 2012-12-20, at 4:54 PM, Ramsey Gurley wrote:

 In my experience, more work is required by not converting a project to use 
 Wonder. WO is just so broken without it.  How much work it will take to make 
 the conversion is dependent on the app.
 
 Ramsey
 
 On Dec 20, 2012, at 2:46 PM, Calven Eggert wrote:
 
 this is an old WO application that doesn't use Wonder.  (yah, I know)
 
 Should I convert this app to use Wonder?  would that take a lot of work?
 
 On 2012-12-20, at 4:44 PM, Ramsey Gurley wrote:
 
 Maybe try ERXApplication.instantiatePage(String pageName) instead?
 
 On Dec 20, 2012, at 2:24 PM, Calven Eggert wrote:
 
 I tried it that way and also like this:
 
   WOContext newContext = new WOContext(null);
 
 both give the same result. :-(
 
 On 2012-12-20, at 4:18 PM, Chuck Hill wrote:
 
 How did you create the new context?  Like this:
 
 WOContext newContext = new WOContext(originalContext.request());
 
 If not, try that.
 
 
 Chuck
 
 On 2012-12-20, at 1:14 PM, Calven Eggert wrote:
 
 Even though I've created a new context it only appears to have solved 
 the problem.  clicking the button to take me to my login page is not 
 working properly because the link it goes to is invalid.
 
 I've just found this in the html of my error page :
 
 form method=post name=firstform 
 action=/cgi-bin/WebObjects/.woa/wo/bV82atO1hU5cqnWZgbj7U0/0.1
 
 The action has a different ID and the missing app name before the .woa
 
 What would cause this?
 
 
 On 2012-12-19, at 4:02 PM, Chuck Hill wrote:
 
 The old context stores the previous page.  When the request comes in, 
 that page has takeValues and invoke action run on it.  One of those 
 must have been causing the exception to happen again.  Creating a new 
 context removes the history.
 
 Chuck
 
 
 On 2012-12-19, at 12:54 PM, Calven Eggert wrote:
 
 YES!  it works!   Thank you, thank you, thank you!
 
 Can you explain why?
 
 On 2012-12-19, at 3:46 PM, Chuck Hill wrote:
 
 Try creating a new context here instead of using aContext:
 
 COREErrorPage errorPage = (COREErrorPage) 
 pageWithName(COREErrorPage, aContext);
 
 
 
 On 2012-12-19, at 12:45 PM, Calven Eggert wrote:
 
 I've set a breakpoint in the dispatchRequest.  it gets there.
 
 The exception that I'm getting in the first place fires again.
 
 recap:
 page one, click to activate exception
 page two (error page), click button to go to login page
 exception on page one fires again. It's as if the first page is 
 active although the error page is being displayed.
 
 
 
 On 2012-12-19, at 3:02 PM, Chuck Hill wrote:
 
 Override dispatchRequest() to see if the first click even gets to 
 the app.  If not, check the HTML in the page.  If it does get 
 there, is it causing a new exception?
 
 
 Chuck
 
 
 On 2012-12-19, at 5:14 AM, Calven Eggert wrote:
 
 *bump*
 
 anyone have any ideas?
 
 Begin forwarded message:
 
 From: Calven Eggert cegg...@uhnresearch.ca
 Subject: WOResponse HandleException problem
 Date: 17 December, 2012 4:04:00 PM EST
 To: webobjects-dev@lists.apple.com
 
 I have a framework that has overridden WOResponse HandleException 
 for many years.
 
 Today I have discovered that there is a problem with the page I 
 display to the user.  The page shows text and a button at the 
 bottom of the page is labelled Go to Login Page.  It used to go 
 to the login page of the application but now when clicked on it 
 seems to do nothing.  When clicked on a second time it then 
 correctly goes to the login page.
 
 I can't seem to figure out why it's no longer working.  I can 
 confirm that it was working properly in May of 2011.  I haven't a 
 clue when it stopped working.  Some kind of upgrade may have 
 caused it to stop.  Java version, Eclipse no idea.
 
 This is how it is handled:
 
 public WOResponse handleException(Exception anException, 
 WOContext aContext)
 {
 super.handleException(anException, aContext);
 COREErrorPage errorPage = (COREErrorPage) 
 pageWithName(COREErrorPage, aContext);
 errorPage.initialize(true, anException, theUser, , , null);
 return errorPage.generateResponse();
 }
 
 
 My error page does this when the user clicks on the button, but 
 only the second time it is clicked:
 
 public WOComponent loginPage() {
 WORedirect redirect = new WORedirect(context());
 try {
 redirect.setUrl(((COREApplication)application()).logoutLink());
 } catch (Exception e) {
 e.printStackTrace();
 e = null;
 redirect.setUrl(((COREApplication)application()).logoutLink

Fwd: WOResponse HandleException problem

2012-12-19 Thread Calven Eggert
*bump*

anyone have any ideas?

Begin forwarded message:

 From: Calven Eggert cegg...@uhnresearch.ca
 Subject: WOResponse HandleException problem
 Date: 17 December, 2012 4:04:00 PM EST
 To: webobjects-dev@lists.apple.com
 
 I have a framework that has overridden WOResponse HandleException for many 
 years.  
 
 Today I have discovered that there is a problem with the page I display to 
 the user.  The page shows text and a button at the bottom of the page is 
 labelled Go to Login Page.  It used to go to the login page of the 
 application but now when clicked on it seems to do nothing.  When clicked on 
 a second time it then correctly goes to the login page.
 
 I can't seem to figure out why it's no longer working.  I can confirm that it 
 was working properly in May of 2011.  I haven't a clue when it stopped 
 working.  Some kind of upgrade may have caused it to stop.  Java version, 
 Eclipse no idea.
 
 This is how it is handled:
 
 public WOResponse handleException(Exception anException, WOContext 
 aContext)
 {
 super.handleException(anException, aContext);
 COREErrorPage errorPage = (COREErrorPage) 
 pageWithName(COREErrorPage, aContext);
 errorPage.initialize(true, anException, theUser, , , null);
 return errorPage.generateResponse();
 }
 
 
 My error page does this when the user clicks on the button, but only the 
 second time it is clicked:
 
 public WOComponent loginPage() {
 WORedirect redirect = new WORedirect(context());
 try {
 redirect.setUrl(((COREApplication)application()).logoutLink());
 } catch (Exception e) {
 e.printStackTrace();
 e = null;
 redirect.setUrl(((COREApplication)application()).logoutLink());
 }
 ((CORESession)session()).terminate();
 return redirect;
 }
 
 Any help in solving this mystery is appreciated.
 
 Calven
 

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

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


Re: WOResponse HandleException problem

2012-12-19 Thread Calven Eggert
that doesn't seem to make a difference.

What I can't figure out is that I've set a breakpoint on the loginPage method 
and it never gets there.  I click on the button and the page reloads again.  
What would make the error page load a second time?


On 2012-12-19, at 8:41 AM, John Huss wrote:

 WORedirect should be created using pageWithName. May not matter though.
 
 On Wednesday, December 19, 2012, Calven Eggert wrote:
 *bump*
 
 anyone have any ideas?
 
 Begin forwarded message:
 
 From: Calven Eggert cegg...@uhnresearch.ca
 Subject: WOResponse HandleException problem
 Date: 17 December, 2012 4:04:00 PM EST
 To: webobjects-dev@lists.apple.com
 
 I have a framework that has overridden WOResponse HandleException for many 
 years.  
 
 Today I have discovered that there is a problem with the page I display to 
 the user.  The page shows text and a button at the bottom of the page is 
 labelled Go to Login Page.  It used to go to the login page of the 
 application but now when clicked on it seems to do nothing.  When clicked on 
 a second time it then correctly goes to the login page.
 
 I can't seem to figure out why it's no longer working.  I can confirm that 
 it was working properly in May of 2011.  I haven't a clue when it stopped 
 working.  Some kind of upgrade may have caused it to stop.  Java version, 
 Eclipse no idea.
 
 This is how it is handled:
 
 public WOResponse handleException(Exception anException, WOContext 
 aContext)
 {
 super.handleException(anException, aContext);
 COREErrorPage errorPage = (COREErrorPage) 
 pageWithName(COREErrorPage, aContext);
 errorPage.initialize(true, anException, theUser, , , null);
 return errorPage.generateResponse();
 }
 
 
 My error page does this when the user clicks on the button, but only the 
 second time it is clicked:
 
 public WOComponent loginPage() {
 WORedirect redirect = new WORedirect(context());
 try {
 redirect.setUrl(((COREApplication)application()).logoutLink());
 } catch (Exception e) {
 e.printStackTrace();
 e = null;
 redirect.setUrl(((COREApplication)application()).logoutLink());
 }
 ((CORESession)session()).terminate();
 return redirect;
 }
 
 Any help in solving this mystery is appreciated.
 
 Calven
 
 

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

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


Re: WOResponse HandleException problem

2012-12-19 Thread Calven Eggert
My URL looks like this when the error page is displayed:

.../cgi-bin/WebObjects/CRR.woa/wo/1uoeYYmtvWCOQKj2xVio70/4.0.99.1.1.21

Then it looks like this when i click on the button: (And stays on the same page 
instead of executing the action in that button and going to my login page)

.../cgi-bin/WebObjects/CRR.woa/wo/1uoeYYmtvWCOQKj2xVio70/4.0.99.1.1.21?1=Submit+and+Return+to+Login+Page

That looks strange. what's with the ?1=...

Anyone know why it looks like this?


On 2012-12-19, at 10:32 AM, John Huss wrote:

 You need to examine the urls and the session ID (cookie or url) and see 
 where/what they are.
 
 
 On Wed, Dec 19, 2012 at 9:15 AM, Calven Eggert cegg...@uhnresearch.ca wrote:
 that doesn't seem to make a difference.
 
 What I can't figure out is that I've set a breakpoint on the loginPage method 
 and it never gets there.  I click on the button and the page reloads again.  
 What would make the error page load a second time?
 
 
 On 2012-12-19, at 8:41 AM, John Huss wrote:
 
 WORedirect should be created using pageWithName. May not matter though.
 
 On Wednesday, December 19, 2012, Calven Eggert wrote:
 *bump*
 
 anyone have any ideas?
 
 Begin forwarded message:
 
 From: Calven Eggert cegg...@uhnresearch.ca
 Subject: WOResponse HandleException problem
 Date: 17 December, 2012 4:04:00 PM EST
 To: webobjects-dev@lists.apple.com
 
 I have a framework that has overridden WOResponse HandleException for many 
 years.  
 
 Today I have discovered that there is a problem with the page I display to 
 the user.  The page shows text and a button at the bottom of the page is 
 labelled Go to Login Page.  It used to go to the login page of the 
 application but now when clicked on it seems to do nothing.  When clicked 
 on a second time it then correctly goes to the login page.
 
 I can't seem to figure out why it's no longer working.  I can confirm that 
 it was working properly in May of 2011.  I haven't a clue when it stopped 
 working.  Some kind of upgrade may have caused it to stop.  Java version, 
 Eclipse no idea.
 
 This is how it is handled:
 
 public WOResponse handleException(Exception anException, WOContext 
 aContext)
 {
 super.handleException(anException, aContext);
 COREErrorPage errorPage = (COREErrorPage) 
 pageWithName(COREErrorPage, aContext);
 errorPage.initialize(true, anException, theUser, , , null);
 return errorPage.generateResponse();
 }
 
 
 My error page does this when the user clicks on the button, but only the 
 second time it is clicked:
 
 public WOComponent loginPage() {
 WORedirect redirect = new WORedirect(context());
 try {
 redirect.setUrl(((COREApplication)application()).logoutLink());
 } catch (Exception e) {
 e.printStackTrace();
 e = null;
 redirect.setUrl(((COREApplication)application()).logoutLink());
 }
 ((CORESession)session()).terminate();
 return redirect;
 }
 
 Any help in solving this mystery is appreciated.
 
 Calven
 
 
 
 

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

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


Re: WOResponse HandleException problem

2012-12-19 Thread Calven Eggert
I've found the variable storePageInBacktrackCache = true.

could this be the reason that it looks like my previous page is continuously 
being loaded?  should I set this to false.  Anyone have experience with this?


On 2012-12-19, at 11:26 AM, John Huss wrote:

 Looks like someone reversed the order of the arguments to 
 NSDictionary.setObjectForKey.
 
 
 On Wed, Dec 19, 2012 at 10:06 AM, Calven Eggert cegg...@uhnresearch.ca 
 wrote:
 My URL looks like this when the error page is displayed:
 
 .../cgi-bin/WebObjects/CRR.woa/wo/1uoeYYmtvWCOQKj2xVio70/4.0.99.1.1.21
 
 Then it looks like this when i click on the button: (And stays on the same 
 page instead of executing the action in that button and going to my login 
 page)
 
 .../cgi-bin/WebObjects/CRR.woa/wo/1uoeYYmtvWCOQKj2xVio70/4.0.99.1.1.21?1=Submit+and+Return+to+Login+Page
 
 That looks strange. what's with the ?1=...
 
 Anyone know why it looks like this?
 
 
 On 2012-12-19, at 10:32 AM, John Huss wrote:
 
 You need to examine the urls and the session ID (cookie or url) and see 
 where/what they are.
 
 
 On Wed, Dec 19, 2012 at 9:15 AM, Calven Eggert cegg...@uhnresearch.ca 
 wrote:
 that doesn't seem to make a difference.
 
 What I can't figure out is that I've set a breakpoint on the loginPage 
 method and it never gets there.  I click on the button and the page reloads 
 again.  What would make the error page load a second time?
 
 
 On 2012-12-19, at 8:41 AM, John Huss wrote:
 
 WORedirect should be created using pageWithName. May not matter though.
 
 On Wednesday, December 19, 2012, Calven Eggert wrote:
 *bump*
 
 anyone have any ideas?
 
 Begin forwarded message:
 
 From: Calven Eggert cegg...@uhnresearch.ca
 Subject: WOResponse HandleException problem
 Date: 17 December, 2012 4:04:00 PM EST
 To: webobjects-dev@lists.apple.com
 
 I have a framework that has overridden WOResponse HandleException for many 
 years.  
 
 Today I have discovered that there is a problem with the page I display to 
 the user.  The page shows text and a button at the bottom of the page is 
 labelled Go to Login Page.  It used to go to the login page of the 
 application but now when clicked on it seems to do nothing.  When clicked 
 on a second time it then correctly goes to the login page.
 
 I can't seem to figure out why it's no longer working.  I can confirm that 
 it was working properly in May of 2011.  I haven't a clue when it stopped 
 working.  Some kind of upgrade may have caused it to stop.  Java version, 
 Eclipse no idea.
 
 This is how it is handled:
 
 public WOResponse handleException(Exception anException, WOContext 
 aContext)
 {
 super.handleException(anException, aContext);
 COREErrorPage errorPage = (COREErrorPage) 
 pageWithName(COREErrorPage, aContext);
 errorPage.initialize(true, anException, theUser, , , null);
 return errorPage.generateResponse();
 }
 
 
 My error page does this when the user clicks on the button, but only the 
 second time it is clicked:
 
 public WOComponent loginPage() {
 WORedirect redirect = new WORedirect(context());
 try {
 redirect.setUrl(((COREApplication)application()).logoutLink());
 } catch (Exception e) {
 e.printStackTrace();
 e = null;
 redirect.setUrl(((COREApplication)application()).logoutLink());
 }
 ((CORESession)session()).terminate();
 return redirect;
 }
 
 Any help in solving this mystery is appreciated.
 
 Calven
 
 
 
 
 
 

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

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


Re: WOResponse HandleException problem

2012-12-19 Thread Calven Eggert
I've set a breakpoint in the dispatchRequest.  it gets there.

The exception that I'm getting in the first place fires again.

recap:
page one, click to activate exception
page two (error page), click button to go to login page
exception on page one fires again. It's as if the first page is active although 
the error page is being displayed.



On 2012-12-19, at 3:02 PM, Chuck Hill wrote:

 Override dispatchRequest() to see if the first click even gets to the app.  
 If not, check the HTML in the page.  If it does get there, is it causing a 
 new exception?
 
 
 Chuck
 
 
 On 2012-12-19, at 5:14 AM, Calven Eggert wrote:
 
 *bump*
 
 anyone have any ideas?
 
 Begin forwarded message:
 
 From: Calven Eggert cegg...@uhnresearch.ca
 Subject: WOResponse HandleException problem
 Date: 17 December, 2012 4:04:00 PM EST
 To: webobjects-dev@lists.apple.com
 
 I have a framework that has overridden WOResponse HandleException for many 
 years.  
 
 Today I have discovered that there is a problem with the page I display to 
 the user.  The page shows text and a button at the bottom of the page is 
 labelled Go to Login Page.  It used to go to the login page of the 
 application but now when clicked on it seems to do nothing.  When clicked 
 on a second time it then correctly goes to the login page.
 
 I can't seem to figure out why it's no longer working.  I can confirm that 
 it was working properly in May of 2011.  I haven't a clue when it stopped 
 working.  Some kind of upgrade may have caused it to stop.  Java version, 
 Eclipse no idea.
 
 This is how it is handled:
 
public WOResponse handleException(Exception anException, WOContext 
 aContext)
{
super.handleException(anException, aContext);
COREErrorPage errorPage = (COREErrorPage) 
 pageWithName(COREErrorPage, aContext);
errorPage.initialize(true, anException, theUser, , , null);
return errorPage.generateResponse();
}
 
 
 My error page does this when the user clicks on the button, but only the 
 second time it is clicked:
 
public WOComponent loginPage() {
WORedirect redirect = new WORedirect(context());
try {
redirect.setUrl(((COREApplication)application()).logoutLink());
} catch (Exception e) {
e.printStackTrace();
e = null;
redirect.setUrl(((COREApplication)application()).logoutLink());
}
((CORESession)session()).terminate();
return redirect;
}
 
 Any help in solving this mystery is appreciated.
 
 Calven
 
 
 ___
 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:
 https://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/gvc/practical_webobjects
 
 Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing 
 Companies in B.C! 
 Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of 
 Canada’s Fastest-Growing Companies by PROFIT Magazine!
 
 
 
 
 
 
 
 
 
 



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

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

Re: WOResponse HandleException problem

2012-12-19 Thread Calven Eggert
YES!  it works!   Thank you, thank you, thank you!

Can you explain why?

On 2012-12-19, at 3:46 PM, Chuck Hill wrote:

 Try creating a new context here instead of using aContext:
 
  COREErrorPage errorPage = (COREErrorPage) 
 pageWithName(COREErrorPage, aContext);
 
 
 
 On 2012-12-19, at 12:45 PM, Calven Eggert wrote:
 
 I've set a breakpoint in the dispatchRequest.  it gets there.
 
 The exception that I'm getting in the first place fires again.
 
 recap:
 page one, click to activate exception
 page two (error page), click button to go to login page
 exception on page one fires again. It's as if the first page is active 
 although the error page is being displayed.
 
 
 
 On 2012-12-19, at 3:02 PM, Chuck Hill wrote:
 
 Override dispatchRequest() to see if the first click even gets to the app.  
 If not, check the HTML in the page.  If it does get there, is it causing a 
 new exception?
 
 
 Chuck
 
 
 On 2012-12-19, at 5:14 AM, Calven Eggert wrote:
 
 *bump*
 
 anyone have any ideas?
 
 Begin forwarded message:
 
 From: Calven Eggert cegg...@uhnresearch.ca
 Subject: WOResponse HandleException problem
 Date: 17 December, 2012 4:04:00 PM EST
 To: webobjects-dev@lists.apple.com
 
 I have a framework that has overridden WOResponse HandleException for 
 many years.  
 
 Today I have discovered that there is a problem with the page I display 
 to the user.  The page shows text and a button at the bottom of the page 
 is labelled Go to Login Page.  It used to go to the login page of the 
 application but now when clicked on it seems to do nothing.  When clicked 
 on a second time it then correctly goes to the login page.
 
 I can't seem to figure out why it's no longer working.  I can confirm 
 that it was working properly in May of 2011.  I haven't a clue when it 
 stopped working.  Some kind of upgrade may have caused it to stop.  Java 
 version, Eclipse no idea.
 
 This is how it is handled:
 
  public WOResponse handleException(Exception anException, WOContext 
 aContext)
  {
  super.handleException(anException, aContext);
  COREErrorPage errorPage = (COREErrorPage) 
 pageWithName(COREErrorPage, aContext);
  errorPage.initialize(true, anException, theUser, , , null);
  return errorPage.generateResponse();
  }
 
 
 My error page does this when the user clicks on the button, but only the 
 second time it is clicked:
 
  public WOComponent loginPage() {
  WORedirect redirect = new WORedirect(context());
  try {
  redirect.setUrl(((COREApplication)application()).logoutLink());
  } catch (Exception e) {
  e.printStackTrace();
  e = null;
  redirect.setUrl(((COREApplication)application()).logoutLink());
  }
  ((CORESession)session()).terminate();
  return redirect;
  }
 
 Any help in solving this mystery is appreciated.
 
 Calven
 
 
 ___
 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:
 https://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/gvc/practical_webobjects
 
 Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest 
 Growing Companies in B.C! 
 Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of 
 Canada’s Fastest-Growing Companies by PROFIT Magazine!
 
 
 
 
 
 
 
 
 
 
 
 
 
 -- 
 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/gvc/practical_webobjects
 
 Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing 
 Companies in B.C! 
 Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of 
 Canada’s Fastest-Growing Companies by PROFIT Magazine!
 
 
 
 
 
 
 
 
 
 



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

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

Re: WOResponse HandleException problem

2012-12-19 Thread Calven Eggert
that makes sense.

strange thing now is that if I set a break point on my method that is attached 
to the button I never hit it.  Is this something to do with the new context?

On 2012-12-19, at 4:02 PM, Chuck Hill wrote:

 The old context stores the previous page.  When the request comes in, that 
 page has takeValues and invoke action run on it.  One of those must have been 
 causing the exception to happen again.  Creating a new context removes the 
 history.
 
 Chuck
 
 
 On 2012-12-19, at 12:54 PM, Calven Eggert wrote:
 
 YES!  it works!   Thank you, thank you, thank you!
 
 Can you explain why?
 
 On 2012-12-19, at 3:46 PM, Chuck Hill wrote:
 
 Try creating a new context here instead of using aContext:
 
COREErrorPage errorPage = (COREErrorPage) 
 pageWithName(COREErrorPage, aContext);
 
 
 
 On 2012-12-19, at 12:45 PM, Calven Eggert wrote:
 
 I've set a breakpoint in the dispatchRequest.  it gets there.
 
 The exception that I'm getting in the first place fires again.
 
 recap:
 page one, click to activate exception
 page two (error page), click button to go to login page
 exception on page one fires again. It's as if the first page is active 
 although the error page is being displayed.
 
 
 
 On 2012-12-19, at 3:02 PM, Chuck Hill wrote:
 
 Override dispatchRequest() to see if the first click even gets to the 
 app.  If not, check the HTML in the page.  If it does get there, is it 
 causing a new exception?
 
 
 Chuck
 
 
 On 2012-12-19, at 5:14 AM, Calven Eggert wrote:
 
 *bump*
 
 anyone have any ideas?
 
 Begin forwarded message:
 
 From: Calven Eggert cegg...@uhnresearch.ca
 Subject: WOResponse HandleException problem
 Date: 17 December, 2012 4:04:00 PM EST
 To: webobjects-dev@lists.apple.com
 
 I have a framework that has overridden WOResponse HandleException for 
 many years.  
 
 Today I have discovered that there is a problem with the page I display 
 to the user.  The page shows text and a button at the bottom of the 
 page is labelled Go to Login Page.  It used to go to the login page 
 of the application but now when clicked on it seems to do nothing.  
 When clicked on a second time it then correctly goes to the login page.
 
 I can't seem to figure out why it's no longer working.  I can confirm 
 that it was working properly in May of 2011.  I haven't a clue when it 
 stopped working.  Some kind of upgrade may have caused it to stop.  
 Java version, Eclipse no idea.
 
 This is how it is handled:
 
 public WOResponse handleException(Exception anException, WOContext 
 aContext)
 {
super.handleException(anException, aContext);
COREErrorPage errorPage = (COREErrorPage) 
 pageWithName(COREErrorPage, aContext);
errorPage.initialize(true, anException, theUser, , , null);
return errorPage.generateResponse();
 }
 
 
 My error page does this when the user clicks on the button, but only 
 the second time it is clicked:
 
 public WOComponent loginPage() {
WORedirect redirect = new WORedirect(context());
try {
redirect.setUrl(((COREApplication)application()).logoutLink());
} catch (Exception e) {
e.printStackTrace();
e = null;
redirect.setUrl(((COREApplication)application()).logoutLink());
}
((CORESession)session()).terminate();
return redirect;
 }
 
 Any help in solving this mystery is appreciated.
 
 Calven
 
 
 ___
 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:
 https://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/gvc/practical_webobjects
 
 Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest 
 Growing Companies in B.C! 
 Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of 
 Canada’s Fastest-Growing Companies by PROFIT Magazine!
 
 
 
 
 
 
 
 
 
 
 
 
 
 -- 
 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/gvc/practical_webobjects
 
 Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest 
 Growing Companies in B.C! 
 Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of 
 Canada’s Fastest-Growing Companies by PROFIT Magazine!
 
 
 
 
 
 
 
 
 
 
 
 
 
 -- 
 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

WOResponse HandleException problem

2012-12-17 Thread Calven Eggert
I have a framework that has overridden WOResponse HandleException for many 
years.  

Today I have discovered that there is a problem with the page I display to the 
user.  The page shows text and a button at the bottom of the page is labelled 
Go to Login Page.  It used to go to the login page of the application but now 
when clicked on it seems to do nothing.  When clicked on a second time it then 
correctly goes to the login page.

I can't seem to figure out why it's no longer working.  I can confirm that it 
was working properly in May of 2011.  I haven't a clue when it stopped working. 
 Some kind of upgrade may have caused it to stop.  Java version, Eclipse no 
idea.

This is how it is handled:

public WOResponse handleException(Exception anException, WOContext aContext)
{
super.handleException(anException, aContext);
COREErrorPage errorPage = (COREErrorPage) pageWithName(COREErrorPage, 
aContext);
errorPage.initialize(true, anException, theUser, , , null);
return errorPage.generateResponse();
}


My error page does this when the user clicks on the button, but only the second 
time it is clicked:

public WOComponent loginPage() {
WORedirect redirect = new WORedirect(context());
try {
redirect.setUrl(((COREApplication)application()).logoutLink());
} catch (Exception e) {
e.printStackTrace();
e = null;
redirect.setUrl(((COREApplication)application()).logoutLink());
}
((CORESession)session()).terminate();
return redirect;
}

Any help in solving this mystery is appreciated.

Calven

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

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


How do you do onMouseOver

2012-09-20 Thread Calven Eggert
I have a column heading on a page and I'd like to display help text when the 
user moves his/her mouse over the heading.

Anyone have any ideas how to easily do this in WO?

Calven



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

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


Problems changing eomodel

2012-09-13 Thread Calven Eggert
Hi, All

In two different java projects in the past week I've made a change to an 
eomodel and in both cases the changes are not being recognized when running the 
program.  In one case I changed my production database to test and it continues 
to use the production db.  yikes!  In my second project I've added a new column 
to a table in a database and when running the program the model can't find the 
new column in the model by giving me the error:

java.lang.IllegalStateException: sqlStringForKeyValueQualifier: attempt to 
generate SQL for com.webobjects.eocontrol.EOKeyValueQualifier (email 
caseinsensitivelike 'myem...@mycompany.com') failed because attribute 
identified by key 'email' was not reachable from from entity 
'PrincipalInvestigator'--Error in reading study detail

This is a real head scratcher.  (I've cleaned the project. no luck there)

Any ideas what else I can do to solve this?  I haven't upgraded to mountain 
lion or updated any software in regards to eclipse or WOLips for quite a while. 
 Obviously, something has changed but nothing that I'm aware of.

Calven



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

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


Re: Problems changing eomodel

2012-09-13 Thread Calven Eggert
I use connection dictionaries. don't use properties to set model. I don't use 
migrations.

Here is more information:

I make the change to the model, added the column, and then I look on the 
desktop for the model file.  Open package contents and the look at the specific 
.plist file.  The file there shows that I've added the new column.  The last 
modified date though hasn't changed.  this is so bizarre.

any idea?


On 2012-09-13, at 12:08 PM, David Holt wrote:

 Do you use connection dictionaries?
 
 Do you use properties to set your model information?
 
 Is it possible you have set your model information in two places and one that 
 you are not expecting is overriding the other?
 
 Are you using migrations?
 
 
 On 2012-09-13, at 8:20 AM, Calven Eggert cegg...@uhnresearch.ca wrote:
 
 Hi, All
 
 In two different java projects in the past week I've made a change to an 
 eomodel and in both cases the changes are not being recognized when running 
 the program.  In one case I changed my production database to test and it 
 continues to use the production db.  yikes!  In my second project I've added 
 a new column to a table in a database and when running the program the model 
 can't find the new column in the model by giving me the error:
 
 java.lang.IllegalStateException: sqlStringForKeyValueQualifier: attempt to 
 generate SQL for com.webobjects.eocontrol.EOKeyValueQualifier (email 
 caseinsensitivelike 'myem...@mycompany.com') failed because attribute 
 identified by key 'email' was not reachable from from entity 
 'PrincipalInvestigator'--Error in reading study detail
 
 This is a real head scratcher.  (I've cleaned the project. no luck there)
 
 Any ideas what else I can do to solve this?  I haven't upgraded to mountain 
 lion or updated any software in regards to eclipse or WOLips for quite a 
 while.  Obviously, something has changed but nothing that I'm aware of.
 
 Calven
 
 
 
 ___
 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:
 https://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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


  1   2   >