Re: FrontBase speed, feels weird.

2024-07-15 Thread Samuel Pelletier via Webobjects-dev
Hi OC,

Your problem description smell like an IO contention. BTW, this is not FB 
exclusive, all database will have the same kind of behaviour.

If the is no index for the where condition, you force a table scan (read all 
the table rows to validate the condition). If the row data in memory, this is 
fast, if it need to be read from disk, speed can vary a lot depending on the 
precise amount of data in cache and disk usage art this moment. The size of 
your row data can also create an amplification of this problem (few int VS many 
timestamps and char columns for example or if you fetch large blob).

If you are on very fast PCIe SSD, it is usually very fast but regular HDs have 
a very limited IO capacity.

Regards,

Samuel


> Le 15 juill. 2024 à 09:33, OCsite via Webobjects-dev 
>  a écrit :
> 
> Hi there,
> 
> for years and years, we happily use FrontBase. Lately though we are bumping 
> into somewhat weird behaviour: we observe inexplicably long fetches, even 
> with tables which are not extremely big, no joins, trivial conditions. What's 
> even more intriguing is that in sql92, it was much faster. Even so, the 
> problem was at the FB (not application) side, for an index did help 
> tremendously. Does not make really sense to me, and I wonder whether there 
> might be some weird problem in the FB itself, which might raise its head soon 
> and bite us hard.
> 
> - the table contains about 16 000 rows, that's not too many;
> - the fetch condition is trivial, just WHERE SOME_BOOLEAN_COLUMN = false;
> - the number of found rows is only 13 currently (and never exceeded 100).
> 
> These fetches took seconds — usually about 1200 ms, not once below 1000, 
> occasionally almost 3000 ms.
> 
> When I've tried the very same fetch in sql92, it was instantaneous, which 
> feels pretty weird too and lead me to a suspicion that the problem is at the 
> application side.
> 
> Nevertheless it was not: I just have added an index for the column, and the 
> fetches are ways quicker now (usually below 30 ms).
> 
> What intrigues me and the reason I write this mail, it does not seem to me 
> reasonable that a plain fetch from a table of ~16K rows which yields 
> (considerably) less than 100 result rows, without any join and with a 
> completely trivial condition, could (without an index) take that long. Does 
> it make any sense to you, who understand SQL/FB better than me? Is that 
> normal? There are other fetches from the same table, with considerably more 
> complex conditions, taking at worst a couple tenths of second; that seems 
> normal to me.
> 
> Thanks and all the best,
> OC
> 
> ___
> 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


Re: WOAjaxCollapsibleComponentContent ???

2024-06-27 Thread mailinglists via Webobjects-dev
I agree about the examples - But . . . some are so nondescript that even 
finding out what issue they try to cover is more or less impossible unless you 
already know what you are looking for. It is so fascinating and powerful what 
is available in Wonder and at the same time so frustrating realizing that 
something might be there, finding it and making sense of things.

Time to write a successor to Learning The Wonders. Oh wait, was is “time” ? Is 
that what I am constantly short of ?

---markus---

> On 27 Jun 2024, at 02:20, Aaron Rosenzweig  wrote:
> 
> Hi Markus :-)
> 
> Glad that worked out for you. I think there is an AjaxExamples project in 
> WOnder which is an app you can run and see a few things. 
> 
> You pick up on things after toiling with it for a while. 
> 
> 
>> On Jun 26, 2024, at 7:34 AM, mailinglists  wrote:
>> 
>> Thanks Aaron, works perfectly. 
>> 
>> Other than looking at the code how would one discover what AjaxHyperlink and 
>> friends can do? The documentation / JavaDoc is not very revealing.
>> 
>> ---markus---
>> 
>>> On 23 Jun 2024, at 17:43, Aaron Rosenzweig  wrote:
>>> 
>>> Hi Markus, 
>>> 
>>> To use  like you envision you need to add some 
>>> scaffolding. 
>>> 
>>> Realize that the ajax link and the ajax submit button can be given a named 
>>> function. When you do that, they don’t render, put provide a name you can 
>>> call on the client side that will do a round trip to the server. So you 
>>> need to consider if you have a form (or not) and if you want to synchronize 
>>> bindings (or not) to choose between them. But let’s assume you just want a 
>>> “click” without form values going across. You’ll need to place an element 
>>> like this near your :
>>> 
>>> >> ERXWOContext.safeIdentifierName(context(), true /*willCache*/);
>>>  }
>>>  return _toggleFunctionName;
>>> }
>>> 
>>> public WOActionResults toggle() {
>>>  setIsOpen( ! isOpen());
>>>  return null;
>>> }
>>> 
>>> 
>>> Then you’ll need to build your summary tag as a container element and 
>>> listen to click events like so:
>>> 
>>> >>  return code;
>>> }
>>> 
>>> Or if there is a lot of complex stuff going on and race conditions with JS 
>>> events maybe you need a hack to invoke Ajax on a delay
>>> public String onclickJavascript(){
>>>  String code = "setTimeout(" + toggleFunctionName() + ", 500); return 
>>> true;";
>>>  return code;
>>> }
>>> 
>>> Notice that there is no update container specified on the AjaxHyperlink. 
>>> That’s because you don’t need to refresh anything, you only need to tell 
>>> the server the state of open/close. 
>>> 
>>> 
 On Jun 23, 2024, at 7:28 AM, mailinglists via Webobjects-dev 
  wrote:
 
 Anyone using this component? It has bindings that seem not to be used.  
 Does this work at all? I cannot make sense of it.
 
 Alternatively has anyone made proper use of the html construct 
 ? It works nicely but I cannot preserve “open” state 
 when updating an enclosing container because I have not found a way to 
 call back into the server when the summary is clicked to open/close. This 
 action is pure client side performed by the browser itself. Any way to tap 
 into it?
 
 Any other usable component around for such a hide/reveal functionality?
 
 Thanks for your ideas
 ---markus---
 
 
 ___
 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/aaron%40chatnbike.com
 
 This email sent to aa...@chatnbike.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: WOAjaxCollapsibleComponentContent ???

2024-06-26 Thread Aaron Rosenzweig via Webobjects-dev
Hi Markus :-)

Glad that worked out for you. I think there is an AjaxExamples project in 
WOnder which is an app you can run and see a few things. 

You pick up on things after toiling with it for a while. 


> On Jun 26, 2024, at 7:34 AM, mailinglists  wrote:
> 
> Thanks Aaron, works perfectly. 
> 
> Other than looking at the code how would one discover what AjaxHyperlink and 
> friends can do? The documentation / JavaDoc is not very revealing.
> 
> ---markus---
> 
>> On 23 Jun 2024, at 17:43, Aaron Rosenzweig  wrote:
>> 
>> Hi Markus, 
>> 
>> To use  like you envision you need to add some 
>> scaffolding. 
>> 
>> Realize that the ajax link and the ajax submit button can be given a named 
>> function. When you do that, they don’t render, put provide a name you can 
>> call on the client side that will do a round trip to the server. So you need 
>> to consider if you have a form (or not) and if you want to synchronize 
>> bindings (or not) to choose between them. But let’s assume you just want a 
>> “click” without form values going across. You’ll need to place an element 
>> like this near your :
>> 
>> > ERXWOContext.safeIdentifierName(context(), true /*willCache*/);
>>   }
>>   return _toggleFunctionName;
>> }
>> 
>> public WOActionResults toggle() {
>>   setIsOpen( ! isOpen());
>>   return null;
>> }
>> 
>> 
>> Then you’ll need to build your summary tag as a container element and listen 
>> to click events like so:
>> 
>> >   return code;
>> }
>> 
>> Or if there is a lot of complex stuff going on and race conditions with JS 
>> events maybe you need a hack to invoke Ajax on a delay
>> public String onclickJavascript(){
>>   String code = "setTimeout(" + toggleFunctionName() + ", 500); return 
>> true;";
>>   return code;
>> }
>> 
>> Notice that there is no update container specified on the AjaxHyperlink. 
>> That’s because you don’t need to refresh anything, you only need to tell the 
>> server the state of open/close. 
>> 
>> 
>>> On Jun 23, 2024, at 7:28 AM, mailinglists via Webobjects-dev 
>>>  wrote:
>>> 
>>> Anyone using this component? It has bindings that seem not to be used.  
>>> Does this work at all? I cannot make sense of it.
>>> 
>>> Alternatively has anyone made proper use of the html construct 
>>> ? It works nicely but I cannot preserve “open” state when 
>>> updating an enclosing container because I have not found a way to call back 
>>> into the server when the summary is clicked to open/close. This action is 
>>> pure client side performed by the browser itself. Any way to tap into it?
>>> 
>>> Any other usable component around for such a hide/reveal functionality?
>>> 
>>> Thanks for your ideas
>>> ---markus---
>>> 
>>> 
>>> ___
>>> 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/aaron%40chatnbike.com
>>> 
>>> This email sent to aa...@chatnbike.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: WOAjaxCollapsibleComponentContent ???

2024-06-26 Thread mailinglists via Webobjects-dev
Thanks Aaron, works perfectly. 

Other than looking at the code how would one discover what AjaxHyperlink and 
friends can do? The documentation / JavaDoc is not very revealing.

---markus---

> On 23 Jun 2024, at 17:43, Aaron Rosenzweig  wrote:
> 
> Hi Markus, 
> 
> To use  like you envision you need to add some scaffolding. 
> 
> Realize that the ajax link and the ajax submit button can be given a named 
> function. When you do that, they don’t render, put provide a name you can 
> call on the client side that will do a round trip to the server. So you need 
> to consider if you have a form (or not) and if you want to synchronize 
> bindings (or not) to choose between them. But let’s assume you just want a 
> “click” without form values going across. You’ll need to place an element 
> like this near your :
> 
>  ERXWOContext.safeIdentifierName(context(), true /*willCache*/);
>}
>return _toggleFunctionName;
> }
> 
> public WOActionResults toggle() {
>setIsOpen( ! isOpen());
>return null;
> }
> 
> 
> Then you’ll need to build your summary tag as a container element and listen 
> to click events like so:
> 
> return code;
> }
> 
> Or if there is a lot of complex stuff going on and race conditions with JS 
> events maybe you need a hack to invoke Ajax on a delay
> public String onclickJavascript(){
>String code = "setTimeout(" + toggleFunctionName() + ", 500); return 
> true;";
>return code;
> }
> 
> Notice that there is no update container specified on the AjaxHyperlink. 
> That’s because you don’t need to refresh anything, you only need to tell the 
> server the state of open/close. 
> 
> 
>> On Jun 23, 2024, at 7:28 AM, mailinglists via Webobjects-dev 
>>  wrote:
>> 
>> Anyone using this component? It has bindings that seem not to be used.  Does 
>> this work at all? I cannot make sense of it.
>> 
>> Alternatively has anyone made proper use of the html construct 
>> ? It works nicely but I cannot preserve “open” state when 
>> updating an enclosing container because I have not found a way to call back 
>> into the server when the summary is clicked to open/close. This action is 
>> pure client side performed by the browser itself. Any way to tap into it?
>> 
>> Any other usable component around for such a hide/reveal functionality?
>> 
>> Thanks for your ideas
>> ---markus---
>> 
>> 
>> ___
>> 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/aaron%40chatnbike.com
>> 
>> This email sent to aa...@chatnbike.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: WOAjaxCollapsibleComponentContent ???

2024-06-23 Thread Aaron Rosenzweig via Webobjects-dev
Hi Markus, 

To use  like you envision you need to add some scaffolding. 

Realize that the ajax link and the ajax submit button can be given a named 
function. When you do that, they don’t render, put provide a name you can call 
on the client side that will do a round trip to the server. So you need to 
consider if you have a form (or not) and if you want to synchronize bindings 
(or not) to choose between them. But let’s assume you just want a “click” 
without form values going across. You’ll need to place an element like this 
near your :

 On Jun 23, 2024, at 7:28 AM, mailinglists via Webobjects-dev 
>  wrote:
> 
> Anyone using this component? It has bindings that seem not to be used.  Does 
> this work at all? I cannot make sense of it.
> 
> Alternatively has anyone made proper use of the html construct 
> ? It works nicely but I cannot preserve “open” state when 
> updating an enclosing container because I have not found a way to call back 
> into the server when the summary is clicked to open/close. This action is 
> pure client side performed by the browser itself. Any way to tap into it?
> 
> Any other usable component around for such a hide/reveal functionality?
> 
> Thanks for your ideas
> ---markus---
> 
> 
> ___
> 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/aaron%40chatnbike.com
> 
> This email sent to aa...@chatnbike.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: Amazon Linux 2023

2024-06-21 Thread Paul Hoadley via Webobjects-dev
Hi John,

On 21 Jun 2024, at 17:33, John Pollard  wrote:

> Also Paul, what instance type are you using; Amazon offer their own Graviton 
> instance types more cheaply and with higher performance, but I am on 
> t3.xlarge currently. Should I be looking at graviton versions? Is there a WO 
> adaptor built for them that can be grabbed? Any other considerations in 
> deploying to Graviton?

We use really only the T3 family—haven't looked into using Graviton. Building 
the WO adaptor from source is very straightforward, though.


-- 
Paul Hoadley
https://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


Re: Amazon Linux 2023

2024-06-21 Thread John Pollard via Webobjects-dev
Also Paul, what instance type are you using; Amazon offer their own Graviton 
instance types more cheaply and with higher performance, but I am on t3.xlarge 
currently. Should I be looking at graviton versions? Is there a WO adaptor 
built for them that can be grabbed? Any other considerations in deploying to 
Graviton?

Thanks
John

> On 19 Jun 2024, at 10:05, John Pollard via Webobjects-dev 
>  wrote:
> 
> Thanks again Paul
> I use Java Web Start, so I don’t think corretto will work for me.
> I do use cron yes.
> John
> 
>> On 19 Jun 2024, at 00:34, Paul Hoadley via Webobjects-dev 
>>  wrote:
>> 
>> Hi John,
>> 
>> On 18 Jun 2024, at 19:15, John Pollard  wrote:
>> 
>>> Thanks Paul, that’s really helpful.
>>> 
>>> java -version
>>> openjdk version "1.8.0_402"
>>> OpenJDK Runtime Environment (build 1.8.0_402-b06)
>>> OpenJDK 64-Bit Server VM (build 25.402-b06, mixed mode)
>>> 
>>> Will I need to change to corretto?
>> 
>> Short answer is: I don't know. Corretto is certainly the easiest way to get 
>> a JRE/JDK for Amazon Linux, and it should be a drop-in replacement for 
>> anything else you're using.
>> 
>>> Sounds like I will need to look into cronie, thanks for the heads up.
>> 
>> Only if you need cron. We use it to periodically post some measurements to 
>> CloudWatch in some circumstances. If not, don't worry about it.
>> 
>>> Is the WO apache adaptor going to work as is?
>> 
>> Yep.
>> 
>>> And wotaskd and javamonitor should be fine I guess as just java apps.
>> 
>> And yep.
>> 
>> 
>> -- 
>> Paul Hoadley
>> https://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/john%40pollardweb.com
>> 
>> This email sent to j...@pollardweb.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/john%40pollardweb.com
> 
> This email sent to j...@pollardweb.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: Amazon Linux 2023

2024-06-19 Thread John Pollard via Webobjects-dev
Thanks again Paul
I use Java Web Start, so I don’t think corretto will work for me.
I do use cron yes.
John

> On 19 Jun 2024, at 00:34, Paul Hoadley via Webobjects-dev 
>  wrote:
> 
> Hi John,
> 
> On 18 Jun 2024, at 19:15, John Pollard  wrote:
> 
>> Thanks Paul, that’s really helpful.
>> 
>> java -version
>> openjdk version "1.8.0_402"
>> OpenJDK Runtime Environment (build 1.8.0_402-b06)
>> OpenJDK 64-Bit Server VM (build 25.402-b06, mixed mode)
>> 
>> Will I need to change to corretto?
> 
> Short answer is: I don't know. Corretto is certainly the easiest way to get a 
> JRE/JDK for Amazon Linux, and it should be a drop-in replacement for anything 
> else you're using.
> 
>> Sounds like I will need to look into cronie, thanks for the heads up.
> 
> Only if you need cron. We use it to periodically post some measurements to 
> CloudWatch in some circumstances. If not, don't worry about it.
> 
>> Is the WO apache adaptor going to work as is?
> 
> Yep.
> 
>> And wotaskd and javamonitor should be fine I guess as just java apps.
> 
> And yep.
> 
> 
> -- 
> Paul Hoadley
> https://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/john%40pollardweb.com
> 
> This email sent to j...@pollardweb.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: Amazon Linux 2023

2024-06-18 Thread Paul Hoadley via Webobjects-dev
Hi John,

On 18 Jun 2024, at 19:15, John Pollard  wrote:

> Thanks Paul, that’s really helpful.
> 
> java -version
> openjdk version "1.8.0_402"
> OpenJDK Runtime Environment (build 1.8.0_402-b06)
> OpenJDK 64-Bit Server VM (build 25.402-b06, mixed mode)
> 
> Will I need to change to corretto?

Short answer is: I don't know. Corretto is certainly the easiest way to get a 
JRE/JDK for Amazon Linux, and it should be a drop-in replacement for anything 
else you're using.

> Sounds like I will need to look into cronie, thanks for the heads up.

Only if you need cron. We use it to periodically post some measurements to 
CloudWatch in some circumstances. If not, don't worry about it.

> Is the WO apache adaptor going to work as is?

Yep.

> And wotaskd and javamonitor should be fine I guess as just java apps.

And yep.


-- 
Paul Hoadley
https://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


Re: Amazon Linux 2023

2024-06-18 Thread John Pollard via Webobjects-dev
Thanks Paul, that’s really helpful.

java -version
openjdk version "1.8.0_402"
OpenJDK Runtime Environment (build 1.8.0_402-b06)
OpenJDK 64-Bit Server VM (build 25.402-b06, mixed mode)

Will I need to change to corretto?

Sounds like I will need to look into cronie, thanks for the heads up.

Is the WO apache adaptor going to work as is?
And wotaskd and javamonitor should be fine I guess as just java apps.

John

> On 18 Jun 2024, at 00:25, Paul Hoadley via Webobjects-dev 
>  wrote:
> 
> Hi John,
> 
> On 17 Jun 2024, at 20:09, John Pollard via Webobjects-dev 
>  wrote:
> 
>> I am deployed to Amazon Linux 2 and need to move to Amazon Linux 2023 by 
>> March 2025.
>> 
>> Was anyone else in this boat / has already done this migration?
>> 
>> If so, is there anything I should be aware of before I start, or smooth 
>> sailing?
> 
> On the whole, smooth sailing. Looking at the changes to our appserver setup 
> script here, I can see:
> 
> * Change in how to install JREs: the "amazon-linux-extras" step has gone, 
> looks like Corretto JREs are available immediately using yum.
> 
> * Looks like postfix is no longer started automatically: our script used to 
> kill this, and no longer does.
> 
> * Looks like cron is no longer provided, and we're installing cronie.
> 
> Obviously whether or not any of these are relevant to you will depend on how 
> you set up your appservers.
> 
> 
> -- 
> Paul Hoadley
> https://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/john%40pollardweb.com
> 
> This email sent to j...@pollardweb.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: Amazon Linux 2023

2024-06-17 Thread Paul Hoadley via Webobjects-dev
Hi John,

On 17 Jun 2024, at 20:09, John Pollard via Webobjects-dev 
 wrote:

> I am deployed to Amazon Linux 2 and need to move to Amazon Linux 2023 by 
> March 2025.
> 
> Was anyone else in this boat / has already done this migration?
> 
> If so, is there anything I should be aware of before I start, or smooth 
> sailing?

On the whole, smooth sailing. Looking at the changes to our appserver setup 
script here, I can see:

* Change in how to install JREs: the "amazon-linux-extras" step has gone, looks 
like Corretto JREs are available immediately using yum.

* Looks like postfix is no longer started automatically: our script used to 
kill this, and no longer does.

* Looks like cron is no longer provided, and we're installing cronie.

Obviously whether or not any of these are relevant to you will depend on how 
you set up your appservers.


-- 
Paul Hoadley
https://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


Re: Amazon Linux 2023

2024-06-17 Thread Jesse Tayler via Webobjects-dev
I’ve been using containers which are helpful in controlling the administration 
without need of knowing much about the host environment.



> On Jun 17, 2024, at 6:39 AM, John Pollard via Webobjects-dev 
>  wrote:
> 
> Hello,
> 
> I am deployed to Amazon Linux 2 and need to move to Amazon Linux 2023 by 
> March 2025.
> 
> Was anyone else in this boat / has already done this migration?
> 
> If so, is there anything I should be aware of before I start, or smooth 
> sailing?
> 
> I have a very manual deployment, but have extensive notes from moving between 
> AL1 and AL2 so hoping that should help.
> 
> Many thanks,
> John
> 
> 
> John Pollard
> 077 4221 0024
> 
> 
> ___
> 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/jtayler%40oeinc.com
> 
> This email sent to jtay...@oeinc.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: [POSSIBLY SOLVED]: Cannot obtain globalId for an object which is registered in an other than the databaseContext's active editingContext

2024-06-09 Thread OCsite via Webobjects-dev
Just a quick followup: I've tested further, and alas, looks like the very same 
problem may happen regardless the fetchTimestamp due to inverse flattened M:N 
relationships.

Test case same as below, just without 1/4, but with a flattened M:N two-side 
relationship; culprit in (vii) very slightly different — the original 
relationship gets filled from the snapshot without any problem, but the inverse 
may (quite probably) need to be fetched, with precisely the same outcome. Sigh.

> On 9. 6. 2024, at 2:46, ocs--- via Webobjects-dev 
>  wrote:
> 
> Hi there again,
> 
> I was eventually able to repeat the problem and it sort of stinks by a bug in 
> EOF (or I am doing something wrong, of course, as so often :)) My test code 
> is just a wee bit at the convoluted side, based on my own model and besides 
> written in Groovy, thus there's no point in quoting it; but the gist is this:
> 
> 1. create an EC1, assign it a fetchTimestamp in future (something like 
> System.currentTimeMillis()+1500 should suffice)
> 2. lock EC1
> 3. fetch into EC1 an object with a :N relationship and change that 
> relationship, not saving the changes
> 4. wait until the fetchTimestamp expires
> 5. in a separate thread with its own EC2 (locked) change the same 
> relationship of the same object (localInstanceIn(EC2) of course)
> 6. save the changes in EC2
> 7. back in the original thread, wait until the thread with steps 5 and 6 
> ends. Then unlock EC1
> 8. finally, in an unrelated EC3 insert some unrelated new object and 
> saveChanges...
> 
> ... and at least at my side, I get “Cannot obtain globalId for an object 
> which is registered in an other than the databaseContext's active 
> editingContext“ exception all right!
> 
> I believe the steps above are completely valid and should not cause problems, 
> or do I overlook something here?
> 
> I might be wrong, it is a bit at the complex side, but I think this is what 
> happens under the hood:
> (i) EC3 saveChanges of step 8 just calls 
> EOObjectStoreCoordinator.saveChangesInEditingContext ...
> (ii) which first makes sure there's a proper source (happens to be 
> EODatabaseContext) for each inserted object in its _sources; this 
> EODatabaseContext happens to be the only shared EODatabaseContext a simple 
> application like this one uses (no more OSCs, no concurrent DB access)
> (iii) each _source gets _willPrepareForSave and then each _source gets 
> prepareForSaveWithCoordinator — and this sets its _editingContext to EC3!
> (iv) furthermore each _source gets recordChangesInEditingContext, 
> performChanges, and eventually commitChanges
> (v) inside of commitChanges, EODatabaseContext finds that some changes really 
> happened and posts EOGlobalIDChangedNotification
> (vi) EC1, which up to this moment was dormant, observes this notification and 
> through _globalIDChanged, _sendOrEnqueueNotification, yadda yadda, eventually 
> gets to merge the change into its own object
> (vii) which change includes checking the current relationship value. Since 
> the fetchTimestamp is already in the past, this involves re-fetching the 
> relationship in EC1 ...
> (viii) ... which goes through the one and only shared EODatabaseContext we 
> have. That EODatabaseContext though still has its _editingContext set to EC3 
> from the step (iii))!
> 
> Hilarity ensues, the “Cannot obtain globalId for an object which is 
> registered in an other...” exception gets thrown (if this did not happen, the 
> EODatabaseContext's _editingContext would get nulled at the very end of 
> commitChanges, too late for us).
> 
> Do I overlook something of importance? Seems me not to; I guess anyone can 
> repeat the test code 1-8 outlined above (just beware logs — they might fire 
> the fault prematurely; also I've found essentially each localInstanceIn locks 
> ECs and thus disrupts the normal processing — best to prepare all the ECs and 
> all their local instances at the very start, around the step 1).
> 
> What would be the best fix/work-around? I can't see any simple one; and I 
> would rather not override and re-implement the complete and rather 
> non-trivial commitChanges method.
> 
> Thanks and all the best,
> OC
> 
>> On 8. 6. 2024, at 4:38, ocs--- via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>> Hi there,
>> 
>> again in about 2 years the $subject did happen:
>> 
>> “Cannot obtain globalId for an object which is registered in an other than 
>> the databaseContext's active editingContext, object: 
>> [USER#1000175@EC:34ea315d/OSC:77b7ffa4], databaseContext: 
>> com.webobjects.eoaccess.EODatabaseContext@512d92b, object's editingContext: 
>> EC:34ea315d/OSC:77b7ffa4, databaseC

Re: re/store context somehow? (OCsite)

2024-05-19 Thread Paul Hoadley via Webobjects-dev
On 19 May 2024, at 5:55 am, o...@ocs.cz wrote:

> Hmmm... can you recall please some scenarios, which lead to the spectacular 
> failure?

I'm talking only about ERPersistentSessionStorage.framework, and runtime 
failures occur whenever it hits something in the object graph rooted at your 
Session that isn't Java-serializable for any reason (including EOs, components, 
objects from Wonder, objects from your codebase). The most recent thread on 
this seems to be "WOSession serialisation redux" started by me on 19 May 2015. 
Ramsey thought at the time that he'd made Wonder-side fixes to bring it all 
"about 95% there". Of course, there's now 9 years of additional commits and 
bit-rot, but maybe it's still around that mark. Then there's your code, 
everything in your Sessions, EOs, and components. You can always give it a try 
and see what happens, but if you're only "about 95% there", that's a lot of 
unrecoverable, runtime failures to store your sessions.

I wasn't talking about anything you're doing below.

> Based on the ER source code and some Ramsey suggestionst (thanks again!) I've 
> found a way which so far, tested just for a short time only at my side, seems 
> to work reasonably well — here's the gist, without error checking, logging 
> and other cosmetics:
> 
> ===
> class OCSSession extends ERXSession {
> WOContext lastContext
> void sleep {
> if (context.page) lastContext=context.clone()
> super.sleep()
> }
> }
> 
> class OCSDirectAction extends ERXDirectAction {
> WOActionResults restorePreviousStateAction {
> Session ss=session()
> if (ss.lastContext) { // code essentially stolen from 
> ERD2WDirectAction
> String cid=ss.lastContext.request.stringFormValueForKey('__cid')
> if (cid) return ss.restorePageForContextID(cid)
> if (ss.lastContext.page) return ss.lastContext.page
> }
> pageWithName(MainPage.class.name)
> }
> }
> ===
> 
> If you can foresee case(s) when it would fail, I'd be grateful for some 
> hints, so that I test them here and update my code appropriately.
> 
> Thanks again and all the best,
> OC


-- 
Paul Hoadley
https://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


Re: re/store context somehow? (OCsite)

2024-05-18 Thread ocs--- via Webobjects-dev
Thanks a lot, also to all others!

> On 18. 5. 2024, at 4:06, Paul Hoadley via Webobjects-dev 
>  wrote:
> On 18 May 2024, at 6:26 am, Amedeo Mantica via Webobjects-dev 
> mailto:webobjects-dev@lists.apple.com>> 
> wrote:
>> I no longer use WO but I recall this framework in wonder: 
>> ERPersistentSessionStorage
> 
> That framework is a fantastic proof of concept, but in practice the approach 
> can be quite brittle. It works by Java-serializing the object graph rooted at 
> the WOSession, so if any object in that graph isn't serializable, it's game 
> over for that session. By all means try it out, but in our experience (and 
> we've sunk many hours into experimentation with it), it works brilliantly 
> right up until it fails spectacularly.

Hmmm... can you recall please some scenarios, which lead to the spectacular 
failure?

Based on the ER source code and some Ramsey suggestionst (thanks again!) I've 
found a way which so far, tested just for a short time only at my side, seems 
to work reasonably well — here's the gist, without error checking, logging and 
other cosmetics:

===
class OCSSession extends ERXSession {
WOContext lastContext
void sleep {
if (context.page) lastContext=context.clone()
super.sleep()
}
}

class OCSDirectAction extends ERXDirectAction {
WOActionResults restorePreviousStateAction {
Session ss=session()
if (ss.lastContext) { // code essentially stolen from ERD2WDirectAction
String cid=ss.lastContext.request.stringFormValueForKey('__cid')
if (cid) return ss.restorePageForContextID(cid)
if (ss.lastContext.page) return ss.lastContext.page
}
pageWithName(MainPage.class.name)
}
}
===

If you can foresee case(s) when it would fail, I'd be grateful for some hints, 
so that I test them here and update my code appropriately.

Thanks again and all the best,
OC

 ___
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: re/store context somehow? (OCsite)

2024-05-17 Thread Paul Hoadley via Webobjects-dev
On 18 May 2024, at 6:26 am, Amedeo Mantica via Webobjects-dev 
 wrote:

> I no longer use WO but I recall this framework in wonder: 
> ERPersistentSessionStorage

That framework is a fantastic proof of concept, but in practice the approach 
can be quite brittle. It works by Java-serializing the object graph rooted at 
the WOSession, so if any object in that graph isn't serializable, it's game 
over for that session. By all means try it out, but in our experience (and 
we've sunk many hours into experimentation with it), it works brilliantly right 
up until it fails spectacularly.


-- 
Paul Hoadley
https://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


Re: re/store context somehow? (OCsite)

2024-05-17 Thread Aaron Rosenzweig via Webobjects-dev
Your best bet is likely to store the entire WOComponent as an ivar in the 
session. You can get it from context().page()

That way wen they return and the session is still alive you can return that 
ivar to render where they were and what they were doing. 

So you’ll need to store it in the session in something like the end of 
appendToResponse() and then maybe have a link in the top left corner to 
“restore prior page"

> On May 17, 2024, at 4:56 PM, Amedeo Mantica via Webobjects-dev 
>  wrote:
> 
> I no longer use WO but I recall this framework in wonder: 
> ERPersistentSessionStorage
> 
> Amedeo
> 
> 
>> On 17 May 2024, at 22:01, Martino Limido via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>> Hi there,
>> 
>> it’s important to note that the `WOContext` object in WebObjects ends with 
>> the lifecycle of the request and response. This means that simply storing 
>> the `WOContext` object is not feasible as it will no longer be available 
>> after the request is completed.
>> 
>> ### Possibility of Implementation:
>> 
>> 1. **Context Serialization**:
>>  - While WebObjects does not natively support serializing the entire 
>> `WOContext`, it is possible to manually serialize the essential parts of the 
>> context. This includes capturing the state of components, user inputs, and 
>> any relevant session information.
>>  - You can use `context().clone()` in `Session.sleep()` to clone the context 
>> state. However, ensure that all referenced objects within the context are 
>> serializable. This might involve customizing the serialization process for 
>> complex objects.
>> 
>> 2. **State Storage**:
>>  - Store the serialized state in a persistent format, such as a database or 
>> a session file. The storage mechanism should be robust enough to handle the 
>> complexity of the serialized data and ensure it can be accurately retrieved 
>> later.
>> 
>> 3. **State Restoration**:
>>  - In the `restorePreviousAction` DirectAction, implement a mechanism to 
>> deserialize and reintegrate the previously saved state. This involves 
>> reconstructing the `WOContext` and ensuring all components and user states 
>> are accurately restored.
>>  - This might require a custom deserialization logic to handle complex 
>> objects and ensure they are correctly linked within the session.
>> 
>> ### Challenges:
>> - **Complexity**: Serializing complex objects and managing cross-references 
>> can significantly increase code complexity. WebObjects' inherent 
>> statefulness and deep object graph make this particularly challenging.
>> - **Data Integrity**: Ensuring data consistency during the serialization and 
>> deserialization process is critical. Any mismatch can lead to errors or 
>> inconsistent application states.
>> - **Performance**: Serialization and deserialization can impact performance, 
>> especially if the context is large or complex. It’s important to optimize 
>> this process to minimize the performance overhead.
>> 
>> ### Recommendation:
>> Given the complexities and potential issues with this approach, it might be 
>> better to rethink the application design. Consider structuring the 
>> application to use DirectActions with simpler states that are easier to 
>> restore. This could involve:
>> - Breaking down complex states into smaller, more manageable parts that can 
>> be easily serialized and deserialized.
>> - Ensuring that each DirectAction has a well-defined and minimal state that 
>> can be captured and restored without requiring the entire context.
>> - Leveraging stateless designs where possible, and using session storage 
>> judiciously to maintain essential state information.
>> 
>> ### Conclusion:
>> Implementing this functionality is technically possible but requires 
>> significant effort and a deep understanding of the object lifecycle in 
>> WebObjects. Given that the `WOContext` object ends with the request/response 
>> cycle, manually serializing and restoring its state is complex and 
>> potentially error-prone.
>> 
>> 
>> Best regards,  
>> Martino
>> 
>>> Il giorno 17 mag 2024, alle ore 21:00, webobjects-dev-
>>> 
>>> 1. re/store context somehow? (OCsite)
>>> 
>>> 
>>> --
>>> 
>>> Message: 1
>>> Date: Thu, 16 May 2024 21:14:39 +0200
>>> From: OCsite 
>>> To: OCsite via Webobjects-dev 
>>> Subject: re/store context somehow?

Re: re/store context somehow? (OCsite)

2024-05-17 Thread Amedeo Mantica via Webobjects-dev
I no longer use WO but I recall this framework in wonder: 
ERPersistentSessionStorage

Amedeo


> On 17 May 2024, at 22:01, Martino Limido via Webobjects-dev 
>  wrote:
> 
> Hi there,
> 
> it’s important to note that the `WOContext` object in WebObjects ends with 
> the lifecycle of the request and response. This means that simply storing the 
> `WOContext` object is not feasible as it will no longer be available after 
> the request is completed.
> 
> ### Possibility of Implementation:
> 
> 1. **Context Serialization**:
>   - While WebObjects does not natively support serializing the entire 
> `WOContext`, it is possible to manually serialize the essential parts of the 
> context. This includes capturing the state of components, user inputs, and 
> any relevant session information.
>   - You can use `context().clone()` in `Session.sleep()` to clone the context 
> state. However, ensure that all referenced objects within the context are 
> serializable. This might involve customizing the serialization process for 
> complex objects.
> 
> 2. **State Storage**:
>   - Store the serialized state in a persistent format, such as a database or 
> a session file. The storage mechanism should be robust enough to handle the 
> complexity of the serialized data and ensure it can be accurately retrieved 
> later.
> 
> 3. **State Restoration**:
>   - In the `restorePreviousAction` DirectAction, implement a mechanism to 
> deserialize and reintegrate the previously saved state. This involves 
> reconstructing the `WOContext` and ensuring all components and user states 
> are accurately restored.
>   - This might require a custom deserialization logic to handle complex 
> objects and ensure they are correctly linked within the session.
> 
> ### Challenges:
> - **Complexity**: Serializing complex objects and managing cross-references 
> can significantly increase code complexity. WebObjects' inherent statefulness 
> and deep object graph make this particularly challenging.
> - **Data Integrity**: Ensuring data consistency during the serialization and 
> deserialization process is critical. Any mismatch can lead to errors or 
> inconsistent application states.
> - **Performance**: Serialization and deserialization can impact performance, 
> especially if the context is large or complex. It’s important to optimize 
> this process to minimize the performance overhead.
> 
> ### Recommendation:
> Given the complexities and potential issues with this approach, it might be 
> better to rethink the application design. Consider structuring the 
> application to use DirectActions with simpler states that are easier to 
> restore. This could involve:
> - Breaking down complex states into smaller, more manageable parts that can 
> be easily serialized and deserialized.
> - Ensuring that each DirectAction has a well-defined and minimal state that 
> can be captured and restored without requiring the entire context.
> - Leveraging stateless designs where possible, and using session storage 
> judiciously to maintain essential state information.
> 
> ### Conclusion:
> Implementing this functionality is technically possible but requires 
> significant effort and a deep understanding of the object lifecycle in 
> WebObjects. Given that the `WOContext` object ends with the request/response 
> cycle, manually serializing and restoring its state is complex and 
> potentially error-prone.
> 
> 
> Best regards,  
> Martino
> 
>> Il giorno 17 mag 2024, alle ore 21:00, webobjects-dev-
>> 
>>  1. re/store context somehow? (OCsite)
>> 
>> 
>> --
>> 
>> Message: 1
>> Date: Thu, 16 May 2024 21:14:39 +0200
>> From: OCsite 
>> To: OCsite via Webobjects-dev 
>> Subject: re/store context somehow?
>> Message-ID: <1d450aeb-ded8-4b1a-8438-59039f31b...@ocs.cz>
>> Content-Type: text/plain; charset="utf-8"
>> 
>> Hi there,
>> 
>> my client made a somewhat weird request: wants me to store ?the last context 
>> the user worked in? in his session, and restore it when the user comes to 
>> the application through a specific Direct Action (and the session still 
>> lives).
>> 
>> In other words, suppose the user works in the app for awhile, and then 
>> closes his browser, remembering just the session ID, nothing else.
>> 
>> Next thing he does, he opens 
>> .../OurApp.woa/wa/restorePrevious?wosid=prevSessionID ? and wow, he finds 
>> the browser window in precisely the same state it was when he closed the 
>> browser some time ago. (Far as possible of course, le

Re: re/store context somehow? (OCsite)

2024-05-17 Thread Martino Limido via Webobjects-dev
Hi there,

it’s important to note that the `WOContext` object in WebObjects ends with the 
lifecycle of the request and response. This means that simply storing the 
`WOContext` object is not feasible as it will no longer be available after the 
request is completed.

### Possibility of Implementation:

1. **Context Serialization**:
   - While WebObjects does not natively support serializing the entire 
`WOContext`, it is possible to manually serialize the essential parts of the 
context. This includes capturing the state of components, user inputs, and any 
relevant session information.
   - You can use `context().clone()` in `Session.sleep()` to clone the context 
state. However, ensure that all referenced objects within the context are 
serializable. This might involve customizing the serialization process for 
complex objects.

2. **State Storage**:
   - Store the serialized state in a persistent format, such as a database or a 
session file. The storage mechanism should be robust enough to handle the 
complexity of the serialized data and ensure it can be accurately retrieved 
later.

3. **State Restoration**:
   - In the `restorePreviousAction` DirectAction, implement a mechanism to 
deserialize and reintegrate the previously saved state. This involves 
reconstructing the `WOContext` and ensuring all components and user states are 
accurately restored.
   - This might require a custom deserialization logic to handle complex 
objects and ensure they are correctly linked within the session.

### Challenges:
- **Complexity**: Serializing complex objects and managing cross-references can 
significantly increase code complexity. WebObjects' inherent statefulness and 
deep object graph make this particularly challenging.
- **Data Integrity**: Ensuring data consistency during the serialization and 
deserialization process is critical. Any mismatch can lead to errors or 
inconsistent application states.
- **Performance**: Serialization and deserialization can impact performance, 
especially if the context is large or complex. It’s important to optimize this 
process to minimize the performance overhead.

### Recommendation:
Given the complexities and potential issues with this approach, it might be 
better to rethink the application design. Consider structuring the application 
to use DirectActions with simpler states that are easier to restore. This could 
involve:
- Breaking down complex states into smaller, more manageable parts that can be 
easily serialized and deserialized.
- Ensuring that each DirectAction has a well-defined and minimal state that can 
be captured and restored without requiring the entire context.
- Leveraging stateless designs where possible, and using session storage 
judiciously to maintain essential state information.

### Conclusion:
Implementing this functionality is technically possible but requires 
significant effort and a deep understanding of the object lifecycle in 
WebObjects. Given that the `WOContext` object ends with the request/response 
cycle, manually serializing and restoring its state is complex and potentially 
error-prone.


Best regards,  
Martino

> Il giorno 17 mag 2024, alle ore 21:00, webobjects-dev-
> 
>   1. re/store context somehow? (OCsite)
> 
> 
> --
> 
> Message: 1
> Date: Thu, 16 May 2024 21:14:39 +0200
> From: OCsite 
> To: OCsite via Webobjects-dev 
> Subject: re/store context somehow?
> Message-ID: <1d450aeb-ded8-4b1a-8438-59039f31b...@ocs.cz>
> Content-Type: text/plain; charset="utf-8"
> 
> Hi there,
> 
> my client made a somewhat weird request: wants me to store ?the last context 
> the user worked in? in his session, and restore it when the user comes to the 
> application through a specific Direct Action (and the session still lives).
> 
> In other words, suppose the user works in the app for awhile, and then closes 
> his browser, remembering just the session ID, nothing else.
> 
> Next thing he does, he opens 
> .../OurApp.woa/wa/restorePrevious?wosid=prevSessionID ? and wow, he finds the 
> browser window in precisely the same state it was when he closed the browser 
> some time ago. (Far as possible of course, let's assume for simplicity the 
> internal app/session/DB state did not change meantime.)
> 
> I guess most probably I need to save context().clone() into session each time 
> in Session.sleep(), that's not difficult. But then in my 
> DirectAction.restorePreviousAction I need to resurrect the saved context 
> somehow, but I can't find a way to do that. Does anybody know how to?
> 
> Thanks!
 ___
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/store context somehow?

2024-05-16 Thread OCsite via Webobjects-dev
Hi there,

my client made a somewhat weird request: wants me to store “the last context 
the user worked in” in his session, and restore it when the user comes to the 
application through a specific Direct Action (and the session still lives).

In other words, suppose the user works in the app for awhile, and then closes 
his browser, remembering just the session ID, nothing else.

Next thing he does, he opens 
.../OurApp.woa/wa/restorePrevious?wosid=prevSessionID — and wow, he finds the 
browser window in precisely the same state it was when he closed the browser 
some time ago. (Far as possible of course, let's assume for simplicity the 
internal app/session/DB state did not change meantime.)

I guess most probably I need to save context().clone() into session each time 
in Session.sleep(), that's not difficult. But then in my 
DirectAction.restorePreviousAction I need to resurrect the saved context 
somehow, but I can't find a way to do that. Does anybody know how to?

Thanks!
OC ___
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: Wonder-slim

2024-05-04 Thread Hugi Thordarson via Webobjects-dev
Hi Francois!

> On May 3, 2024, at 20:57, Francois BIENTZ  wrote:
> 
> Hi Hugi
> 
> Ah yes the missing "natures" alert  can be stopped in the Eclipses 
> preferences .

Ah, excellent. I guess we should really just fix that thing with WO requiring 
that nature… I somehow doubt cease-and-desist orders will start streaming in 
from Apple if we decompile NSStandardProjectBundle in ERFoundation, change that 
nature string and just drop it into Wonder.

> I have to learn lots of things from maven before being able to use your 
> Wonder-slim.

Don't hesitate to ask if you hit problems. The transition has usually been 
easy, and I think the community has already bumped into all the potentially 
sharp corners and knows the solutions. Here's a transition guide that Paul has 
contributed as well (and that's been on it's way to the Wiki for years now).
https://gist.github.com/hugithordarson/3c269a3196d0c4f2da486f1109c16d42


> Thank you for your new link to "Let’s set it up". 
> 
> If I understand well , you use Wonder-slim (Wo and Wonder parts) for the web 
> parts  and Cayenne replaces EOF.  

Yes, I use WO/Slim for all web work. And if I need to speak to a DB and can 
choose the library to use, I usually use Cayenne.

Cheers,
- hugi


> 
> Francois 
> 
>> Le 1 mai 2024 à 23:38, Francois BIENTZ  a écrit :
>> 
>> Hi Hugi
>> 
>> Thank you
>> When I import wonder-slim in eclipse I get the "your IDE is missing natures 
>> to properly support your project "
>> In your wonder-slim README the link after "Let’s set it up" seems broken. 
>> May be is something wrong in my Wo / Maven configuration.
>> I can’t find the testapp in the repository to "play around ".
>> 
>> Francois
>> 
>>> Le 1 mai 2024 à 16:31, Hugi Thordarson via Webobjects-dev 
>>>  a écrit :
>>> 
>>> Hi Ricardo,
>>> 
>>> https://github.com/undur/wonder-slim
>>> 
>>> in short, it's a fork of Wonder that removes everything except 
>>> ERExtensions, WOOGNL and JavaWOExtensions (which are all combined in a 
>>> single framework, since they're usually all required and present in WO 
>>> projects) plus Ajax.framework. So basically, a small subset of Project 
>>> Wonder.
>>> 
>>> It also:
>>> 
>>> * Has >a lot< of stuff removed, reorganized, refactored and cleaned up to 
>>> make it cleaner, nicer and easier to understand and maintain
>>> * Based on JDK 21
>>> * Has all logging moved to slf4j-api and log4j specific stuff moved to a 
>>> separate framework (which replaces log4j with reload4j).
>>> * Replaces proprietary APIs and library usage with the standard methods 
>>> we've gained from modern JDKs (so the only 3rd party dependency it pulls in 
>>> is slf4j-api)
>>> * Assumes it's running on the last released version of WO (5.4.3), removing 
>>> workarounds for older versions
>>> * And a lot more… That's just off the top of my head
>>> 
>>> I initially started it mostly as an experiment to learn Wonder's insides, 
>>> see how it could be cleaned up, better organized and even split up, 
>>> planning to eventually backport some of the cleanup work. But eventually it 
>>> just got out of hand and I now just use it in all of my projects :).
>>> 
>>> A point to keep in mind is that it also removes everything related to EOF, 
>>> since in my world EOF is legacy (and yes, please don't be insulted, I'm 
>>> well aware that that's a subjective view from a Cayenne user. For actual 
>>> EOF users I know EOF is fine and in full use). But that means — if you're 
>>> currently using Wonder/EOF in your projects, I would not recommend Slim 
>>> since you're probably dependent on both Wonder's APIs, patches and fixes to 
>>> EOF.
>>> 
>>> A side project was splitting off the deployment tools into a separate 
>>> project (where I haven't done as much work yet, but that's soon to come). 
>>> Just feels like these tools deserve their own effort.
>>> 
>>> https://github.com/undur/wonder-deployment
>>> 
>>> All in all, this is really something of a niche project and I wouldn't 
>>> consider it essential for anyone currently using Wonder. But for someone 
>>> like me, who uses WO only for it's web framework features, and just wants 
>>> some of the basics and fixes Wonder adds in that area, it's turned out nice.
>>> 
>>> Cheers,
>>> - hugi
>>> 
>>> 
> On May 1, 2024, at 13:54, Ricardo Parada  wrote:
 
 Hi all,
 
 I’m just curious, what is Wonder-slim?
 
 Thanks
 Ricardo
 
 
>> On Apr 29, 2024, at 4:57 PM, Hugi Thordarson via Webobjects-dev 
>>  wrote:
> 
> Hi Francois,
> I'm pretty sure I'm the only one using it at the moment :). If you're 
> considering using it, I'd be more than happy to start making actual 
> releases. As the only user, I've been lazy enough to just work from 
> snapshot releases which is pretty far from best practice, so it's about 
> time.
> 
> Cheers,
> - hugi
> 
> 
>> On Apr 28, 2024, at 22:06, Francois BIENTZ via Webobjects-dev 
>>  wrote:
>> 
>> 

Re: WoCommunity list

2024-05-02 Thread Paul Hoadley via Webobjects-dev
Hi Francois,

On 3 May 2024, at 01:29, Francois BIENTZ via Webobjects-dev 
 wrote:

> Howto subscribe to 
> https://lists.wocommunity.org/Lists/webobjects-dev/List.html ? 

There are several subscribe links right at the bottom of that page.


-- 
Paul Hoadley
https://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


Re: Wonder-slim

2024-05-02 Thread Francois BIENTZ via Webobjects-dev
Thank you Hugi 
 ___
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: Wonder-slim

2024-05-01 Thread Hugi Thordarson via Webobjects-dev
> On May 1, 2024, at 21:37, Francois BIENTZ  wrote:
> 
> Hi Hugi
> 
> Thank you 
> When I import wonder-slim in eclipse I get the "your IDE is missing natures 
> to properly support your project "

Ah, just tried importing in a new Eclipse worksoace and I get the same message. 
It seems to be complaining about the "org.maven.ide.eclipse.maven2Nature", so 
just click "Cancel" and you should be fine. That project nature is deprecated 
and is in there only for WO, so it won't matter to you or Eclipse. (the project 
also has the modern equivalent nature "org.eclipse.m2e.core.maven2Nature" which 
is for Eclipse).

> In your wonder-slim README the link after "Let’s set it up" seems broken. May 
> be is something wrong in my Wo / Maven configuration.

Ah, sorry — haven't looked at that README in ages :). I've corrected the URL, 
it's https://gist.github.com/hugithordarson/d2ba6da9e4942f4ece95d7a721159cd1 .


> I can’t find the testapp in the repository to "play around ".

I probably deleted that app pretty early on. It was really just an empty 
application I think, so you can achieve the same by creating one of those (or 
adding wonder-slim to one of your existing projects).

Cheers,
- hugi



> 
> Francois 
> 
>> Le 1 mai 2024 à 16:31, Hugi Thordarson via Webobjects-dev 
>>  a écrit :
>> 
>> Hi Ricardo,
>> 
>> https://github.com/undur/wonder-slim
>> 
>> in short, it's a fork of Wonder that removes everything except ERExtensions, 
>> WOOGNL and JavaWOExtensions (which are all combined in a single framework, 
>> since they're usually all required and present in WO projects) plus 
>> Ajax.framework. So basically, a small subset of Project Wonder.
>> 
>> It also:
>> 
>> * Has >a lot< of stuff removed, reorganized, refactored and cleaned up to 
>> make it cleaner, nicer and easier to understand and maintain
>> * Based on JDK 21
>> * Has all logging moved to slf4j-api and log4j specific stuff moved to a 
>> separate framework (which replaces log4j with reload4j).
>> * Replaces proprietary APIs and library usage with the standard methods 
>> we've gained from modern JDKs (so the only 3rd party dependency it pulls in 
>> is slf4j-api)
>> * Assumes it's running on the last released version of WO (5.4.3), removing 
>> workarounds for older versions
>> * And a lot more… That's just off the top of my head
>> 
>> I initially started it mostly as an experiment to learn Wonder's insides, 
>> see how it could be cleaned up, better organized and even split up, planning 
>> to eventually backport some of the cleanup work. But eventually it just got 
>> out of hand and I now just use it in all of my projects :).
>> 
>> A point to keep in mind is that it also removes everything related to EOF, 
>> since in my world EOF is legacy (and yes, please don't be insulted, I'm well 
>> aware that that's a subjective view from a Cayenne user. For actual EOF 
>> users I know EOF is fine and in full use). But that means — if you're 
>> currently using Wonder/EOF in your projects, I would not recommend Slim 
>> since you're probably dependent on both Wonder's APIs, patches and fixes to 
>> EOF.
>> 
>> A side project was splitting off the deployment tools into a separate 
>> project (where I haven't done as much work yet, but that's soon to come). 
>> Just feels like these tools deserve their own effort.
>> 
>> https://github.com/undur/wonder-deployment
>> 
>> All in all, this is really something of a niche project and I wouldn't 
>> consider it essential for anyone currently using Wonder. But for someone 
>> like me, who uses WO only for it's web framework features, and just wants 
>> some of the basics and fixes Wonder adds in that area, it's turned out nice.
>> 
>> Cheers,
>> - hugi
>> 
>> 
>>> On May 1, 2024, at 13:54, Ricardo Parada  wrote:
>>> 
>>> Hi all,
>>> 
>>> I’m just curious, what is Wonder-slim?
>>> 
>>> Thanks
>>> Ricardo
>>> 
>>> 
> On Apr 29, 2024, at 4:57 PM, Hugi Thordarson via Webobjects-dev 
>  wrote:
 
 Hi Francois,
 I'm pretty sure I'm the only one using it at the moment :). If you're 
 considering using it, I'd be more than happy to start making actual 
 releases. As the only user, I've been lazy enough to just work from 
 snapshot releases which is pretty far from best practice, so it's about 
 time.
 
 Cheers,
 - hugi
 
 
> On Apr 28, 2024, at 22:06, Francois BIENTZ via Webobjects-dev 
>  wrote:
> 
> Someone using Wonder-slim ?
> ___
> 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/hugi%40karlmenn.is
> 
> This email sent to h...@karlmenn.is
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing 

Re: Wonder-slim

2024-05-01 Thread Francois BIENTZ via Webobjects-dev
Hi Hugi

Thank you 
When I import wonder-slim in eclipse I get the "your IDE is missing natures to 
properly support your project "
In your wonder-slim README the link after "Let’s set it up" seems broken. May 
be is something wrong in my Wo / Maven configuration. 
I can’t find the testapp in the repository to "play around ". 

Francois 

> Le 1 mai 2024 à 16:31, Hugi Thordarson via Webobjects-dev 
>  a écrit :
> 
> Hi Ricardo,
> 
> https://github.com/undur/wonder-slim
> 
> in short, it's a fork of Wonder that removes everything except ERExtensions, 
> WOOGNL and JavaWOExtensions (which are all combined in a single framework, 
> since they're usually all required and present in WO projects) plus 
> Ajax.framework. So basically, a small subset of Project Wonder.
> 
> It also:
> 
> * Has >a lot< of stuff removed, reorganized, refactored and cleaned up to 
> make it cleaner, nicer and easier to understand and maintain
> * Based on JDK 21
> * Has all logging moved to slf4j-api and log4j specific stuff moved to a 
> separate framework (which replaces log4j with reload4j).
> * Replaces proprietary APIs and library usage with the standard methods we've 
> gained from modern JDKs (so the only 3rd party dependency it pulls in is 
> slf4j-api)
> * Assumes it's running on the last released version of WO (5.4.3), removing 
> workarounds for older versions
> * And a lot more… That's just off the top of my head
> 
> I initially started it mostly as an experiment to learn Wonder's insides, see 
> how it could be cleaned up, better organized and even split up, planning to 
> eventually backport some of the cleanup work. But eventually it just got out 
> of hand and I now just use it in all of my projects :).
> 
> A point to keep in mind is that it also removes everything related to EOF, 
> since in my world EOF is legacy (and yes, please don't be insulted, I'm well 
> aware that that's a subjective view from a Cayenne user. For actual EOF users 
> I know EOF is fine and in full use). But that means — if you're currently 
> using Wonder/EOF in your projects, I would not recommend Slim since you're 
> probably dependent on both Wonder's APIs, patches and fixes to EOF.
> 
> A side project was splitting off the deployment tools into a separate project 
> (where I haven't done as much work yet, but that's soon to come). Just feels 
> like these tools deserve their own effort.
> 
> https://github.com/undur/wonder-deployment
> 
> All in all, this is really something of a niche project and I wouldn't 
> consider it essential for anyone currently using Wonder. But for someone like 
> me, who uses WO only for it's web framework features, and just wants some of 
> the basics and fixes Wonder adds in that area, it's turned out nice.
> 
> Cheers,
> - hugi
> 
> 
>> On May 1, 2024, at 13:54, Ricardo Parada  wrote:
>> 
>> Hi all,
>> 
>> I’m just curious, what is Wonder-slim?
>> 
>> Thanks
>> Ricardo
>> 
>> 
 On Apr 29, 2024, at 4:57 PM, Hugi Thordarson via Webobjects-dev 
  wrote:
>>> 
>>> Hi Francois,
>>> I'm pretty sure I'm the only one using it at the moment :). If you're 
>>> considering using it, I'd be more than happy to start making actual 
>>> releases. As the only user, I've been lazy enough to just work from 
>>> snapshot releases which is pretty far from best practice, so it's about 
>>> time.
>>> 
>>> Cheers,
>>> - hugi
>>> 
>>> 
 On Apr 28, 2024, at 22:06, Francois BIENTZ via Webobjects-dev 
  wrote:
 
 Someone using Wonder-slim ?
 ___
 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/hugi%40karlmenn.is
 
 This email sent to h...@karlmenn.is
>>> 
>>> ___
>>> 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/rparada%40mac.com
>>> 
>>> This email sent to 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/f.bientz%40laposte.net
> 
> This email sent to f.bie...@laposte.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: Wonder-slim

2024-05-01 Thread Hugi Thordarson via Webobjects-dev
Hi Ricardo,

https://github.com/undur/wonder-slim

in short, it's a fork of Wonder that removes everything except ERExtensions, 
WOOGNL and JavaWOExtensions (which are all combined in a single framework, 
since they're usually all required and present in WO projects) plus 
Ajax.framework. So basically, a small subset of Project Wonder.

It also:

* Has >a lot< of stuff removed, reorganized, refactored and cleaned up to make 
it cleaner, nicer and easier to understand and maintain
* Based on JDK 21
* Has all logging moved to slf4j-api and log4j specific stuff moved to a 
separate framework (which replaces log4j with reload4j).
* Replaces proprietary APIs and library usage with the standard methods we've 
gained from modern JDKs (so the only 3rd party dependency it pulls in is 
slf4j-api)
* Assumes it's running on the last released version of WO (5.4.3), removing 
workarounds for older versions
* And a lot more… That's just off the top of my head

I initially started it mostly as an experiment to learn Wonder's insides, see 
how it could be cleaned up, better organized and even split up, planning to 
eventually backport some of the cleanup work. But eventually it just got out of 
hand and I now just use it in all of my projects :). 

A point to keep in mind is that it also removes everything related to EOF, 
since in my world EOF is legacy (and yes, please don't be insulted, I'm well 
aware that that's a subjective view from a Cayenne user. For actual EOF users I 
know EOF is fine and in full use). But that means — if you're currently using 
Wonder/EOF in your projects, I would not recommend Slim since you're probably 
dependent on both Wonder's APIs, patches and fixes to EOF.

A side project was splitting off the deployment tools into a separate project 
(where I haven't done as much work yet, but that's soon to come). Just feels 
like these tools deserve their own effort.

https://github.com/undur/wonder-deployment

All in all, this is really something of a niche project and I wouldn't consider 
it essential for anyone currently using Wonder. But for someone like me, who 
uses WO only for it's web framework features, and just wants some of the basics 
and fixes Wonder adds in that area, it's turned out nice.

Cheers,
- hugi


> On May 1, 2024, at 13:54, Ricardo Parada  wrote:
> 
> Hi all,
> 
> I’m just curious, what is Wonder-slim?
> 
> Thanks
> Ricardo
> 
> 
>> On Apr 29, 2024, at 4:57 PM, Hugi Thordarson via Webobjects-dev 
>>  wrote:
>> 
>> Hi Francois,
>> I'm pretty sure I'm the only one using it at the moment :). If you're 
>> considering using it, I'd be more than happy to start making actual 
>> releases. As the only user, I've been lazy enough to just work from snapshot 
>> releases which is pretty far from best practice, so it's about time.
>> 
>> Cheers,
>> - hugi
>> 
>> 
>>> On Apr 28, 2024, at 22:06, Francois BIENTZ via Webobjects-dev 
>>>  wrote:
>>> 
>>> Someone using Wonder-slim ?
>>> ___
>>> 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/hugi%40karlmenn.is
>>> 
>>> This email sent to h...@karlmenn.is
>> 
>> ___
>> 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/rparada%40mac.com
>> 
>> This email sent to 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


Re: Wonder-slim

2024-05-01 Thread Ricardo Parada via Webobjects-dev
Hi all,

I’m just curious, what is Wonder-slim?

Thanks
Ricardo


> On Apr 29, 2024, at 4:57 PM, Hugi Thordarson via Webobjects-dev 
>  wrote:
> 
> Hi Francois,
> I'm pretty sure I'm the only one using it at the moment :). If you're 
> considering using it, I'd be more than happy to start making actual releases. 
> As the only user, I've been lazy enough to just work from snapshot releases 
> which is pretty far from best practice, so it's about time.
> 
> Cheers,
> - hugi
> 
> 
>> On Apr 28, 2024, at 22:06, Francois BIENTZ via Webobjects-dev 
>>  wrote:
>> 
>> Someone using Wonder-slim ?
>> ___
>> 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/hugi%40karlmenn.is
>> 
>> This email sent to h...@karlmenn.is
> 
> ___
> 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/rparada%40mac.com
> 
> This email sent to 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


Re: Wonder-slim

2024-04-29 Thread Hugi Thordarson via Webobjects-dev
Hi Francois,
I'm pretty sure I'm the only one using it at the moment :). If you're 
considering using it, I'd be more than happy to start making actual releases. 
As the only user, I've been lazy enough to just work from snapshot releases 
which is pretty far from best practice, so it's about time.

Cheers,
- hugi


> On Apr 28, 2024, at 22:06, Francois BIENTZ via Webobjects-dev 
>  wrote:
> 
> Someone using Wonder-slim ?
> ___
> 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/hugi%40karlmenn.is
> 
> This email sent to h...@karlmenn.is

 ___
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: Debug frameworks with maven project

2024-04-27 Thread Hugi Thordarson via Webobjects-dev
So, a little late addendum to this discussion...

While posting a video on YouTube yesterday I noticed a video I created last 
year (and had totally forgotten about) that illustrates this exact issue:

https://www.youtube.com/watch?v=c2-YxVDYu_8

In short, the reason I'm not having problems with linking between projects is 
that for a long time I've been running my WO applications as plain java 
applications, not as WOApplications. The reason I did this initially is that 
WOApplication launch configurations generate a totally botched class path for 
maven projects, as described here: 
https://github.com/wocommunity/wolips/issues/153.

So, yeah... If you're using maven and want a correct classpath and proper 
inter-project relationships, run your applications as Java applications, not 
WOApplications.

Cheers,
- hugi


> On Apr 16, 2024, at 05:28, Hugi Thordarson via Webobjects-dev 
>  wrote:
> 
> I don't think I've ever had to attach sources of maven projects manually in 
> Eclipse (although I recall hitting something like this in a far past). And 
> given the second problem, it kind of sounds like the link between the app 
> project and the libraries/frameworks is completely broken.
> 
> Paul's suggestions are good, also, if you close all your projects and then 
> open the main (application) project, does Eclipse offer to open "related 
> projects" and open them for you?
> 
> Cheers,
> - hugi
> 
> 
>> On Apr 16, 2024, at 02:16, Paul Hoadley via Webobjects-dev 
>>  wrote:
>> 
>> Hi Samuel,
>> 
>> On 11 Apr 2024, at 03:45, Samuel Pelletier via Webobjects-dev 
>>  wrote:
>> 
>>> I created a new workspace with the latest Eclipse to migrate my project to 
>>> maven. My projects run and I can debug the application code (set 
>>> breakpoint, click on exception stack trace to open project source) but all 
>>> debug functions are not working for frameworks. I set breakpoint in code 
>>> but Eclipse open class from a jar instead of my source.
>> 
>> I hadn't noticed this before, but you're right. You need to tell Eclipse 
>> where to find the source. See:
>> 
>> https://stackoverflow.com/a/22934568/18493
>> 
>>> Also, I have to restart the app to test for my code change in frameworks 
>>> even with an hot swap enable JRE. Seems Eclipse does not figure out the 
>>> maven dependencies code is in the current workspace.
>> 
>> This I cannot reproduce. Possible explanations:
>> 
>> 1. Maven versions have to match precisely, obviously. That is, the version 
>> your application POM is asking for must match the version the project open 
>> in the workspace is providing.
>> 
>> 2. You have to launch the app using "Debug As...".
>> 
>> 3. There are certain changes that hot code replacement won't allow, though 
>> these are usually flagged by Eclipse when you try. What type of change were 
>> you making?
>> 
>> 
>> -- 
>> Paul Hoadley
>> https://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/hugi%40karlmenn.is
>> 
>> This email sent to h...@karlmenn.is
> 
> ___
> 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/hugi%40karlmenn.is
> 
> This email sent to h...@karlmenn.is

 ___
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: action in a sub-component?

2024-04-26 Thread ocs--- via Webobjects-dev
Hugi,

thanks, works like a charm!

(So far I bumped into no problem without setCurrentComponent( parent() ). 
Somewhat weird, but well, far as it works... :))

Thanks and all the best,
OC

> On 26. 4. 2024, at 22:19, Hugi Thordarson via Webobjects-dev 
>  wrote:
> 
> I've never done this, but it's such a nice brain-teaser I had to try :). And 
> what I did _seems_ to work.
> 
> https://gist.github.com/hugithordarson/37d03336de17cfcf3ac399f6325e0ff2
> 
> The key is making the child component non-synchronizing, otherwise the parent 
> action will get invoked during the pulling of binding values. And it should 
> be quite OK if the action method returns null, that just means the same as 
> returning null from any action invocation, i.e. "I'm working within and 
> returning the current page instance".
> 
> I'm thinking… It kind of feels like one would have to setCurrentComponent( 
> parent() ) in the child before performing the action invocation and then 
> reset it back to itself afterwards (since we're really invoking an action 
> within the context of the parent component), but I might be wrong, this seems 
> to work without it.
> 
> Cheers,
> - hugi
> 
> 
> 
>> On Apr 26, 2024, at 19:47, ocs--- via Webobjects-dev 
>>  wrote:
>> 
>> Hi there,
>> 
>> I've got a sub-component which uses performParentAction; the appropriate 
>> binding is something like . Works 
>> perfectly.
>> 
>> Purely for aesthetic reasons (and, well, for consistency), I would prefer if 
>> I could use the sub-component precisely same way one uses wo:hyperlink, 
>> i.e., like this: 
>> 
>> Is there a trick to achieve that? Looks like in this case when I try 
>> valueForBinding('action'), I get NULL :(
>> 
>> Thanks,
>> OC
>> 
>> ___
>> 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/hugi%40karlmenn.is
>> 
>> This email sent to h...@karlmenn.is
> 
> ___
> 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/ocs%40ocs.cz
> 
> This email sent to o...@ocs.cz

 ___
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: action in a sub-component?

2024-04-26 Thread Hugi Thordarson via Webobjects-dev
I've never done this, but it's such a nice brain-teaser I had to try :). And 
what I did _seems_ to work.

https://gist.github.com/hugithordarson/37d03336de17cfcf3ac399f6325e0ff2

The key is making the child component non-synchronizing, otherwise the parent 
action will get invoked during the pulling of binding values. And it should be 
quite OK if the action method returns null, that just means the same as 
returning null from any action invocation, i.e. "I'm working within and 
returning the current page instance".

I'm thinking… It kind of feels like one would have to setCurrentComponent( 
parent() ) in the child before performing the action invocation and then reset 
it back to itself afterwards (since we're really invoking an action within the 
context of the parent component), but I might be wrong, this seems to work 
without it.

Cheers,
- hugi



> On Apr 26, 2024, at 19:47, ocs--- via Webobjects-dev 
>  wrote:
> 
> Hi there,
> 
> I've got a sub-component which uses performParentAction; the appropriate 
> binding is something like . Works 
> perfectly.
> 
> Purely for aesthetic reasons (and, well, for consistency), I would prefer if 
> I could use the sub-component precisely same way one uses wo:hyperlink, i.e., 
> like this: 
> 
> Is there a trick to achieve that? Looks like in this case when I try 
> valueForBinding('action'), I get NULL :(
> 
> Thanks,
> OC
> 
> ___
> 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/hugi%40karlmenn.is
> 
> This email sent to h...@karlmenn.is

 ___
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: enumerating sessions?

2024-04-26 Thread Samuel Pelletier via Webobjects-dev
Hi,

As Hugi wrote, you can access the list via the session store.

Be careful with access to objects inside those sessions, especially EOs since 
you are outside their normal RR loop request.

I have a standard way to list active users and keep track of last access inside 
session by adding those attributes:
private long lastSleepDate;
private long lastUserRequestDate;
private boolean isRequestFromUser;

and adding those overrides...

@Override
public void awake() {
super.awake();

isRequestFromUser = true;
}

@Override
public void sleep() {
lastSleepDate = System.currentTimeMillis();
if (isRequestFromUser) {
lastUserRequestDate = lastSleepDate;
}
super.sleep();
}

public void setRequestIsPing() {
isRequestFromUser = false;
}


The setRequestIsPing is to discriminate auto refresh ping request in my page 
wrapper use to keep session alive when the app is displayed. I have this in the 
template:


And this in the component java class:

public String pingString() {
if (ERXApplication.isAjaxRequest(context().request())) {
session().setRequestIsPing();
}
return null;
}

And this to list active sessions (SessionInfo is  POJO):

WOServerSessionStore sessionStore = (WOServerSessionStore) 
WOApplication.application().sessionStore();
@SuppressWarnings("unchecked")
NSArray sessions = 
sessionStore._sessions().allValues();

NSMutableArray sessionInfos = new 
NSMutableArray<>();
for (Session session : sessions) {
SessionInfo info = new SessionInfo();
info.hashCode = session.hashCode();
info.lastSleepDatetime = session.lastSleepDatetime();
info.lastUserRequestDate = 
session.lastUserRequestDate();
info.timeOut = session.timeOutMillis();
info.usager = session.userAccessService().currentUser();
sessionInfos.add(info);
}
new 
ERXKey("lastUserRequestDate").desc().sort(sessionInfos);

Regards,

Samuel


> Le 26 avr. 2024 à 08:48, Hugi Thordarson via Webobjects-dev 
>  a écrit :
> 
> Hi,
> if you're using WO's standard session store (WOServerSessionStore) you should 
> be able to access the active sessions using:
> 
> ((WOServerSessionStore)WOApplication.application().sessionStore())._sessions()
> 
> It will return a dictionary consisting of sessionID -> Session.
> 
> Not using it though, I'm achieving this myself by using the notifications 
> posted by session management (SessionDidRestoreNotification, 
> SessionDidCreateNotification and SessionDidTimeOutNotification), so I can 
> keep track of more info (like when the session was last touched).
> 
> Cheers,
> - hugi
> 
> 
>> On Apr 26, 2024, at 12:33, OCsite via Webobjects-dev 
>>  wrote:
>> 
>> Hi there,
>> 
>> is there a way to enumerate sessions which are alive inside of a 
>> WO/ERXApplication?
>> 
>> I guess I can create such a list myself, adding new ones in session.awake, 
>> keeping it weak not to prevent old sessions to be destroyed (or perhaps 
>> storing just session IDs), yadda yadda, but it would be much easier and less 
>> error-prone just to use a WO/nder service, if there's one.
>> 
>> The purpose is that we need to allow an app administrator to list all the 
>> normal users which are currently logged in, and be able to force-logout 
>> selected ones.
>> 
>> Thanks!
>> OC
>> ___
>> 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/hugi%40karlmenn.is
>> 
>> This email sent to h...@karlmenn.is
> 
> ___
> 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


Re: enumerating sessions?

2024-04-26 Thread Hugi Thordarson via Webobjects-dev
Hi,
if you're using WO's standard session store (WOServerSessionStore) you should 
be able to access the active sessions using:

((WOServerSessionStore)WOApplication.application().sessionStore())._sessions()

It will return a dictionary consisting of sessionID -> Session.

Not using it though, I'm achieving this myself by using the notifications 
posted by session management (SessionDidRestoreNotification, 
SessionDidCreateNotification and SessionDidTimeOutNotification), so I can keep 
track of more info (like when the session was last touched).

Cheers,
- hugi


> On Apr 26, 2024, at 12:33, OCsite via Webobjects-dev 
>  wrote:
> 
> Hi there,
> 
> is there a way to enumerate sessions which are alive inside of a 
> WO/ERXApplication?
> 
> I guess I can create such a list myself, adding new ones in session.awake, 
> keeping it weak not to prevent old sessions to be destroyed (or perhaps 
> storing just session IDs), yadda yadda, but it would be much easier and less 
> error-prone just to use a WO/nder service, if there's one.
> 
> The purpose is that we need to allow an app administrator to list all the 
> normal users which are currently logged in, and be able to force-logout 
> selected ones.
> 
> Thanks!
> OC
> ___
> 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/hugi%40karlmenn.is
> 
> This email sent to h...@karlmenn.is

 ___
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: enumerating sessions?

2024-04-26 Thread Jesse Tayler via Webobjects-dev
Off the top of my head? I’d not use sessions for that — I’ve done some bank 
apps where only one session is allowed and some other stuff, but we avoided 
relying on or tracking sessions, rather we build a login scheme that tracked 
this concept specifically and we let session and cookies stuff be.

Keep us posted.

> On Apr 26, 2024, at 8:33 AM, OCsite via Webobjects-dev 
>  wrote:
> 
> Hi there,
> 
> is there a way to enumerate sessions which are alive inside of a 
> WO/ERXApplication?
> 
> I guess I can create such a list myself, adding new ones in session.awake, 
> keeping it weak not to prevent old sessions to be destroyed (or perhaps 
> storing just session IDs), yadda yadda, but it would be much easier and less 
> error-prone just to use a WO/nder service, if there's one.
> 
> The purpose is that we need to allow an app administrator to list all the 
> normal users which are currently logged in, and be able to force-logout 
> selected ones.
> 
> Thanks!
> OC
> ___
> 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/jtayler%40oeinc.com
> 
> This email sent to jtay...@oeinc.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Debug frameworks with maven project

2024-04-15 Thread Hugi Thordarson via Webobjects-dev
I don't think I've ever had to attach sources of maven projects manually in 
Eclipse (although I recall hitting something like this in a far past). And 
given the second problem, it kind of sounds like the link between the app 
project and the libraries/frameworks is completely broken.

Paul's suggestions are good, also, if you close all your projects and then open 
the main (application) project, does Eclipse offer to open "related projects" 
and open them for you?

Cheers,
- hugi


> On Apr 16, 2024, at 02:16, Paul Hoadley via Webobjects-dev 
>  wrote:
> 
> Hi Samuel,
> 
> On 11 Apr 2024, at 03:45, Samuel Pelletier via Webobjects-dev 
>  wrote:
> 
>> I created a new workspace with the latest Eclipse to migrate my project to 
>> maven. My projects run and I can debug the application code (set breakpoint, 
>> click on exception stack trace to open project source) but all debug 
>> functions are not working for frameworks. I set breakpoint in code but 
>> Eclipse open class from a jar instead of my source.
> 
> I hadn't noticed this before, but you're right. You need to tell Eclipse 
> where to find the source. See:
> 
> https://stackoverflow.com/a/22934568/18493
> 
>> Also, I have to restart the app to test for my code change in frameworks 
>> even with an hot swap enable JRE. Seems Eclipse does not figure out the 
>> maven dependencies code is in the current workspace.
> 
> This I cannot reproduce. Possible explanations:
> 
> 1. Maven versions have to match precisely, obviously. That is, the version 
> your application POM is asking for must match the version the project open in 
> the workspace is providing.
> 
> 2. You have to launch the app using "Debug As...".
> 
> 3. There are certain changes that hot code replacement won't allow, though 
> these are usually flagged by Eclipse when you try. What type of change were 
> you making?
> 
> 
> -- 
> Paul Hoadley
> https://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/hugi%40karlmenn.is
> 
> This email sent to h...@karlmenn.is

 ___
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: Debug frameworks with maven project

2024-04-15 Thread Paul Hoadley via Webobjects-dev
Hi Samuel,

On 11 Apr 2024, at 03:45, Samuel Pelletier via Webobjects-dev 
 wrote:

> I created a new workspace with the latest Eclipse to migrate my project to 
> maven. My projects run and I can debug the application code (set breakpoint, 
> click on exception stack trace to open project source) but all debug 
> functions are not working for frameworks. I set breakpoint in code but 
> Eclipse open class from a jar instead of my source.

I hadn't noticed this before, but you're right. You need to tell Eclipse where 
to find the source. See:

https://stackoverflow.com/a/22934568/18493
Eclipse java debugging: source not found
stackoverflow.com

> Also, I have to restart the app to test for my code change in frameworks even 
> with an hot swap enable JRE. Seems Eclipse does not figure out the maven 
> dependencies code is in the current workspace.

This I cannot reproduce. Possible explanations:

1. Maven versions have to match precisely, obviously. That is, the version your 
application POM is asking for must match the version the project open in the 
workspace is providing.

2. You have to launch the app using "Debug As...".

3. There are certain changes that hot code replacement won't allow, though 
these are usually flagged by Eclipse when you try. What type of change were you 
making?


-- 
Paul Hoadley
https://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


Re: Debug frameworks with maven project

2024-04-10 Thread Paul Hoadley via Webobjects-dev
Hi Samuel,

On 11 Apr 2024, at 3:45 am, Samuel Pelletier via Webobjects-dev 
 wrote:

> I created a new workspace with the latest Eclipse to migrate my project to 
> maven. My projects run and I can debug the application code (set breakpoint, 
> click on exception stack trace to open project source) but all debug 
> functions are not working for frameworks. I set breakpoint in code but 
> Eclipse open class from a jar instead of my source.
> 
> Also, I have to restart the app to test for my code change in frameworks even 
> with an hot swap enable JRE. Seems Eclipse does not figure out the maven 
> dependencies code is in the current workspace.

The first thing you should do is confirm that you've got an exact version match 
between what your application's POM is asking for and what your framework code 
in the workspace is showing. I don't recall running into either of these 
issues, but I'll test it out later in the morning.


-- 
Paul Hoadley
https://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


Re: wolifecycle-maven-plugin configuration options

2024-04-06 Thread D Tim Cummings via Webobjects-dev

Hi Samuel

Yes. "flattenComponents" is the correct way of doing this. I can't think 
of a reason not to set this.


For migration notes I use 
https://gist.github.com/hugithordarson/3c269a3196d0c4f2da486f1109c16d42


Regards

Tim

On 7/4/24 06:00, Samuel Pelletier via Webobjects-dev wrote:

Hi,

My journey to Maven is going well, I ported 2 shared frameworks I use on every projects 
and my first app. There is many subtle details to go pass a "Hello world !" app.

My last discovery is a problem with component template in sub directory that 
are not found when deployed. I always use directories to group components, my 
app have 10s of them, one with 213...

After some digging, I found a configuration in wolifecycle-maven-plugin that 
resolved this situation.


true


There are some others options available including flattenResources and 
readPatternsets with a basic explanation but no real way to know if they are 
required or desirable and the defaults are disabled.

Is my fix is the correct way to use components in sub directory ?

Is there a reason to have this option disabled by default and in the new 
projects templates ?

Should I also enable flattenResources and readPatternsets ?

BTW, I use the migrations script with few modification from  
https://github.com/getsharp/womavenmigration.

Regards,

Samuel


  ___
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/tim%40triptera.com.au

This email sent to t...@triptera.com.au

___
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: [EXTERNAL] Re: Java upgrade question

2024-04-05 Thread Morris, Mark via Webobjects-dev
Hi Paul,

Thanks, that’s great to hear! There was some concern expressed a while back 
that it might be impossible to move past Java 8 because of a change to the way 
classes are loaded. I’m definitely glad that turned out not to be the case!

Take care,
Mark

From: Paul Hoadley via Webobjects-dev 
Date: Friday, April 5, 2024 at 4:26 PM
To: webobjects-dev@lists.apple.com , 
webobjects-...@wocommunity.org 
Subject: [EXTERNAL] Re: Java upgrade question
Hi Mark, On 6 Apr 2024, at 6: 55 am, Morris, Mark via Webobjects-dev 
 wrote: I’ve been trying to research (old 
messages, Google, etc. ), but I don’t think I’ve found anything definitive. I 
know at least at

Hi Mark,

On 6 Apr 2024, at 6:55 am, Morris, Mark via Webobjects-dev 
mailto:webobjects-dev@lists.apple.com>> wrote:

I’ve been trying to research (old messages, Google, etc.), but I don’t think 
I’ve found anything definitive.

I know at least at one point there was an issue migrating past Java 8, due to 
the way WOnder patches/extends Apple’s frameworks. Has that been resolved or 
worked around? We would like to totally get rid of Java 8, and move to Java 11 
(or 17, or 21…).

Plenty of people have moved beyond Java 8. We've been using Java 21 since soon 
after it was released. About the only thing you'll need to do is add some JVM 
options in 
build.properties<https://urldefense.com/v3/__http:/build.properties__;!!MfzFaTml5A!kVqrmx58oqFRWdQNqzkgLBMqSjN9BNTffYpBV39CThLDnVveU0G69UQ1s-GThu7W_bSsufTI2G1LRfZyhX0cDO0ULtrRVWo$>,
 such as:

jvmOptions=--add-exports java.base/sun.security.action=ALL-UNNAMED 
--add-exports java.base/sun.util.calendar=ALL-UNNAMED

I'm struggling to think of much else that was required. It was certainly an 
easier transition than I thought it was going to be.


--
Paul Hoadley
https://logicsquad.net/<https://urldefense.com/v3/__https:/logicsquad.net/__;!!MfzFaTml5A!kVqrmx58oqFRWdQNqzkgLBMqSjN9BNTffYpBV39CThLDnVveU0G69UQ1s-GThu7W_bSsufTI2G1LRfZyhX0cDO0UsW_UjCk$>
https://www.linkedin.com/company/logic-squad/<https://urldefense.com/v3/__https:/www.linkedin.com/company/logic-squad/__;!!MfzFaTml5A!kVqrmx58oqFRWdQNqzkgLBMqSjN9BNTffYpBV39CThLDnVveU0G69UQ1s-GThu7W_bSsufTI2G1LRfZyhX0cDO0Ur76lVjQ$>

 ___
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: Java upgrade question

2024-04-05 Thread Paul Hoadley via Webobjects-dev
Hi Mark,

On 6 Apr 2024, at 6:55 am, Morris, Mark via Webobjects-dev 
 wrote:

> I’ve been trying to research (old messages, Google, etc.), but I don’t think 
> I’ve found anything definitive.
>  
> I know at least at one point there was an issue migrating past Java 8, due to 
> the way WOnder patches/extends Apple’s frameworks. Has that been resolved or 
> worked around? We would like to totally get rid of Java 8, and move to Java 
> 11 (or 17, or 21…).

Plenty of people have moved beyond Java 8. We've been using Java 21 since soon 
after it was released. About the only thing you'll need to do is add some JVM 
options in build.properties, such as:

jvmOptions=--add-exports java.base/sun.security.action=ALL-UNNAMED 
--add-exports java.base/sun.util.calendar=ALL-UNNAMED

I'm struggling to think of much else that was required. It was certainly an 
easier transition than I thought it was going to be.


-- 
Paul Hoadley
https://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


Re: Wocommunity wiki

2024-04-04 Thread Theodore Petrosky via Webobjects-dev
Oh good

Theodore Petrosky | IT/Finance Director 
AgencySacks 




On 4/4/24, 5:19 PM, "Francois BIENTZ via Webobjects-dev" 
mailto:webobjects-dev@lists.apple.com>> wrote:


Thank you 
The wiki is back 
Franc 


> Le 4 avr. 2024 à 14:31, Francois BIENTZ  > a écrit :
> 
> Hi All
> 
> Is the wocommunity wiki broken ?
> 
> Franc


___
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/tpetrosky%40agencysacks.com
 



This email sent to tpetro...@agencysacks.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: Wocommunity wiki

2024-04-04 Thread Francois BIENTZ via Webobjects-dev
Thank you 
The wiki is back 
Franc 

> Le 4 avr. 2024 à 14:31, Francois BIENTZ  a écrit :
> 
> Hi All
> 
> Is the wocommunity wiki  broken ?
> 
> Franc

 ___
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: Maven follow up

2024-04-01 Thread Paul Hoadley via Webobjects-dev
Hi Samuel,

On 2 Apr 2024, at 08:23, Samuel Pelletier via Webobjects-dev 
 wrote:

> Why Eclipse always complain about missing nature, the maven stuff is already 
> there and working, I always click cancel but the prompt comes back from time 
> to time. Is there a way to get rid of this alert ?

As Tim mentioned, you need to have both of these in your .project file:

  org.maven.ide.eclipse.maven2Nature
  org.eclipse.m2e.core.maven2Nature

The latter is the correct name for the Eclipse "nature". The former is a 
historical name for the same thing, but unfortunately it's hard-coded in the 
depths of ERFoundation.jar to determine the bundle format to use at runtime, so 
you need to include it. Recent versions of Eclipse have started complaining 
about it, as you noted, but I see you found a way to turn it off.

> In the maven pom editor, the search function does not works, even for maven 
> central libraries... This search seems a time saver tool I would like to use 
> instead of copy paste from maven central...

I've never tried this—can't help.

> I ported a frameworks but when I want to use it's component (TimeField here), 
> I have this error: "Cannot find class or component named 'TimeField" in 
> runtime or in a loadable bundle"
> 
> BTW, I did "mvn install" to have the framework in my local maven repository 
> and it's sources are in my current workspace.

Hmm... not sure. Make sure the version you've nominated in the application's 
POM matches the version in the framework POM—otherwise, Eclipse will go looking 
for a JAR in ~/.m2/repository, though that usually only affects loading 
WebServerResources in my experience, and you say you've installed the framework 
JAR anyway. Oh, and I see you've fixed it anyway:

On 2 Apr 2024, at 12:40, Samuel Pelletier via Webobjects-dev 
 wrote:

> Follow up on my component problem, I just found the solution for with my 
> framework component, it was related to the order of dependencies declaration, 
> like ant, original WebObjects packages need to be after wonder ERExtensions...

> Is there a way inside Eclipse to do mvn install ?

I don't know.

> I still have not figured out how to build and deploy the app (replace the ant 
> install and manual rsync to server I actually do)

You have some options:

1. Run 'mvn package' locally, then you'll find the usual build products 
App.woapplication.tar.gz and App.wowebserverresources.tar.gz in the target 
directory. If your previous process was manual, this gets you to basically the 
same place as local usage of Ant would.

2. Better, but more complicated: set up your own repository using an app like 
Artifactory. It takes some one-off work, but you then 'mvn deploy' to that 
repository, and over on your appserver you can use Artifactory's API to pull 
down the build products and install them.

3. Even better, but even more complicated: set up CI/buildserver between your 
Git repo and Artifactory. You push to the Git repo, then your buildserver runs 
Maven to build, test and deploy to Artifactory.

All of this involves quite a bit of work, but on the upside you only need to 
invest the time once.


-- 
Paul Hoadley
https://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


Re: Maven follow up

2024-04-01 Thread D Tim Cummings via Webobjects-dev

Hi Samuel

I suspect it takes a while for eclipse to download the index before 
searching will work. I have heard it can be about 6GB.


To build and deploy the app I link my maven to an ant build script. Then 
I can install with a command like "mvn clean package -Dinstall_optiplex"




MMddHHmm 





${project.artifactId}${maven.build.timestamp}



maven-antrun-plugin

3.1.0





install-actions

package























run









My build.xml looks like





xmlns:if="ant:if" xmlns:unless="ant:unless">




















value="/var/lib/webobjects/htdocs/WebObjects" />




















value="${remote.host}:Documents/${build.app.name}.woapplication.tar.gz" />








value="${remote.host}:Documents/${build.app.name}.wowebserverresources.tar.gz" 
/>




















































value="${remote.local.root}/${remote.dest.dir}/${build.app.name}.woa" />









On 2/4/24 12:10, Samuel Pelletier wrote:

Tim,

Thank for the reply. I tried the download index on startup but still 
no search.


I do not understand the nature thing but found a preference in Eclipse 
that disable the annoying dialog : "Automatically detect missing 
natures and propose IDE extensions from Marketplace".


Follow up on my component problem, I just found the solution for with 
my framework component, it was related to the order of dependencies 
declaration, like ant, original WebObjects packages need to be after 
wonder ERExtensions...


Is there a way inside Eclipse to do mvn install ?

I still have not figured out how to build and deploy the app (replace 
the ant install and manual rsync to server I actually do)


Regards,

Samuel



Le 1 avr. 2024 à 20:32, D Tim Cummings via Webobjects-dev 
 a écrit :


Hi Samuel

Apparently we need to have the nature 
org.maven.ide.eclipse.maven2Nature in our .project file because it is 
hard-coded in the original WebObjects. I think we should add into 
WOLips that it also needs this nature and then eclipse would stop 
complaining that no plugins are referencing this nature. 
Unfortunately I don't know enough about eclipse plugin development to 
program this.


I don't use search in maven pom editor myself but does this option 
help "Download repository index updates on startup"?





I haven't used maven with my own frameworks so can't help you there.

Tim


On 2/4/24 07:53, Samuel Pelletier via Webobjects-dev wrote:

Hi all,

Sorry for long time since last message, my maven switch had to be postponed.

I manages to set up the basic and create a frameworks and an app.

I have few questions with my current setup.

Why Eclipse always complain about missing nature, the maven stuff is already 
there and working, I always click cancel but the prompt comes back from time to 
time. Is there a way to get rid of this alert ?

In the maven pom editor, the search function does not works, even for maven 
central libraries... This search seems a time saver tool I would like to use 
instead of copy paste from maven central...

I ported a frameworks but when I want to use it's component (TimeField here), I have this 
error: "Cannot find class or component named 'TimeField" in runtime or in a loadable 
bundle"

BTW, I did "mvn install" to have the framework in my local maven repository and 
it's sources are in my current workspace.

Thank in advance for help!

Samuel



  ___
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/tim%40triptera.com.au

This email sent to...@triptera.com.au

___
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


Re: Maven follow up

2024-04-01 Thread Samuel Pelletier via Webobjects-dev
Tim,

Thank for the reply. I tried the download index on startup but still no search.

I do not understand the nature thing but found a preference in Eclipse that 
disable the annoying dialog : "Automatically detect missing natures and propose 
IDE extensions from Marketplace".

Follow up on my component problem, I just found the solution for with my 
framework component, it was related to the order of dependencies declaration, 
like ant, original WebObjects packages need to be after wonder ERExtensions...

Is there a way inside Eclipse to do mvn install ?

I still have not figured out how to build and deploy the app (replace the ant 
install and manual rsync to server I actually do)

Regards,

Samuel



> Le 1 avr. 2024 à 20:32, D Tim Cummings via Webobjects-dev 
>  a écrit :
> 
> Hi Samuel
> 
> Apparently we need to have the nature org.maven.ide.eclipse.maven2Nature in 
> our .project file because it is hard-coded in the original WebObjects. I 
> think we should add into WOLips that it also needs this nature and then 
> eclipse would stop complaining that no plugins are referencing this nature. 
> Unfortunately I don't know enough about eclipse plugin development to program 
> this.
> 
> I don't use search in maven pom editor myself but does this option help 
> "Download repository index updates on startup"?
> 
> 
> 
> 
> 
> I haven't used maven with my own frameworks so can't help you there.
> 
> Tim
> 
> 
> 
> On 2/4/24 07:53, Samuel Pelletier via Webobjects-dev wrote:
>> Hi all,
>> 
>> Sorry for long time since last message, my maven switch had to be postponed.
>> 
>> I manages to set up the basic and create a frameworks and an app. 
>> 
>> I have few questions with my current setup. 
>> 
>> Why Eclipse always complain about missing nature, the maven stuff is already 
>> there and working, I always click cancel but the prompt comes back from time 
>> to time. Is there a way to get rid of this alert ?
>> 
>> In the maven pom editor, the search function does not works, even for maven 
>> central libraries... This search seems a time saver tool I would like to use 
>> instead of copy paste from maven central...
>> 
>> I ported a frameworks but when I want to use it's component (TimeField 
>> here), I have this error: "Cannot find class or component named 'TimeField" 
>> in runtime or in a loadable bundle"
>> 
>> BTW, I did "mvn install" to have the framework in my local maven repository 
>> and it's sources are in my current workspace.
>> 
>> Thank in advance for help!
>> 
>> Samuel
>> 
>> 
>> 
>>  ___
>> 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/tim%40triptera.com.au
>> 
>> This email sent to t...@triptera.com.au 
> ___
> 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


Re: Maven follow up

2024-04-01 Thread D Tim Cummings via Webobjects-dev

Hi Samuel

Apparently we need to have the nature org.maven.ide.eclipse.maven2Nature 
in our .project file because it is hard-coded in the original 
WebObjects. I think we should add into WOLips that it also needs this 
nature and then eclipse would stop complaining that no plugins are 
referencing this nature. Unfortunately I don't know enough about eclipse 
plugin development to program this.


I don't use search in maven pom editor myself but does this option help 
"Download repository index updates on startup"?



I haven't used maven with my own frameworks so can't help you there.

Tim


On 2/4/24 07:53, Samuel Pelletier via Webobjects-dev wrote:

Hi all,

Sorry for long time since last message, my maven switch had to be postponed.

I manages to set up the basic and create a frameworks and an app.

I have few questions with my current setup.

Why Eclipse always complain about missing nature, the maven stuff is already 
there and working, I always click cancel but the prompt comes back from time to 
time. Is there a way to get rid of this alert ?

In the maven pom editor, the search function does not works, even for maven 
central libraries... This search seems a time saver tool I would like to use 
instead of copy paste from maven central...

I ported a frameworks but when I want to use it's component (TimeField here), I have this 
error: "Cannot find class or component named 'TimeField" in runtime or in a loadable 
bundle"

BTW, I did "mvn install" to have the framework in my local maven repository and 
it's sources are in my current workspace.

Thank in advance for help!

Samuel



  ___
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/tim%40triptera.com.au

This email sent to...@triptera.com.au ___
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: RDS [was: Re: WOLips Update]

2024-03-18 Thread Steve Peery via Webobjects-dev
I don’t know the details of how to do that. I have someone that helps me with AWS. I plan to start by installing a local copy of the new MySQL version on my development machine to see if my apps work there. On Mar 18, 2024, at 9:31 AM, Jesse Tayler  wrote:sigh.Seems the easiest thing is to set up a new database, migrate data and test wtih a new adaptor?Can you create new RDS alongside the old? Rather than hitting this update button I can just push things over to the new database?On Mar 17, 2024, at 10:55 PM, Steve Peery  wrote:MySQL is retiring a major version and AWS is requiring an upgrade. For now they will charge extra to support the retired version if you don’t upgrade.  I have some old apps nearing end-of-life.  I tried the upgrade and they didn’t work, so I had to revert it all. Total pain. I’m just paying the extra charge for now. The newer version has some minor security change that made it so the old driver could not connect. Definitely make sure your app will work with the major version of MySQL before converting RDS.  On Mar 17, 2024, at 9:52 PM, Jesse Tayler  wrote:Oh? I figured nobody changed that adaptor since forever ago — Maybe I should download that first before updating?On Mar 17, 2024, at 9:45 PM, Steve Peery  wrote:Make sure the MySQL driver in your app is new enough to work with the new version of SQL! I tried to upgrade and my apps would not connect.Steve On Mar 16, 2024, at 9:27 PM, Paul Hoadley via Webobjects-dev  wrote:Hi Jesse,On 17 Mar 2024, at 11:12 am, Jesse Tayler  wrote:I’m upgrading from a rather old MySQL, this is basically a button press and I suppose I should dump the data in case something goes awry but I cannot see why my boring EO Model would have any trouble using an updated version even if the jump is — well, at least like…I dunno - ten years? You mean you're already on RDS and just need to upgrade? I've certainly never encountered any problems, though I'm surprised you could get a decade behind. RDS is more aggressive than that with PostgreSQL, at least, forcing major version updates from time to time.
-- Paul Hoadleyhttps://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/speery%40me.comThis 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


Re: RDS [was: Re: WOLips Update]

2024-03-17 Thread Steve Peery via Webobjects-dev
MySQL is retiring a major version and AWS is requiring an upgrade. For now they will charge extra to support the retired version if you don’t upgrade.  I have some old apps nearing end-of-life.  I tried the upgrade and they didn’t work, so I had to revert it all. Total pain. I’m just paying the extra charge for now. The newer version has some minor security change that made it so the old driver could not connect. Definitely make sure your app will work with the major version of MySQL before converting RDS.  On Mar 17, 2024, at 9:52 PM, Jesse Tayler  wrote:Oh? I figured nobody changed that adaptor since forever ago — Maybe I should download that first before updating?On Mar 17, 2024, at 9:45 PM, Steve Peery  wrote:Make sure the MySQL driver in your app is new enough to work with the new version of SQL! I tried to upgrade and my apps would not connect.Steve On Mar 16, 2024, at 9:27 PM, Paul Hoadley via Webobjects-dev  wrote:Hi Jesse,On 17 Mar 2024, at 11:12 am, Jesse Tayler  wrote:I’m upgrading from a rather old MySQL, this is basically a button press and I suppose I should dump the data in case something goes awry but I cannot see why my boring EO Model would have any trouble using an updated version even if the jump is — well, at least like…I dunno - ten years? You mean you're already on RDS and just need to upgrade? I've certainly never encountered any problems, though I'm surprised you could get a decade behind. RDS is more aggressive than that with PostgreSQL, at least, forcing major version updates from time to time.
-- Paul Hoadleyhttps://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/speery%40me.comThis 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


Re: RDS [was: Re: WOLips Update]

2024-03-17 Thread Jesse Tayler via Webobjects-dev
Oh? I figured nobody changed that adaptor since forever ago — 

Maybe I should download that first before updating?

> On Mar 17, 2024, at 9:45 PM, Steve Peery  wrote:
> 
> Make sure the MySQL driver in your app is new enough to work with the new 
> version of SQL! I tried to upgrade and my apps would not connect.
> 
> Steve 
> 
>> On Mar 16, 2024, at 9:27 PM, Paul Hoadley via Webobjects-dev 
>>  wrote:
>> 
>> Hi Jesse,
>> 
>> On 17 Mar 2024, at 11:12 am, Jesse Tayler > > wrote:
>> 
>>> I’m upgrading from a rather old MySQL, this is basically a button press and 
>>> I suppose I should dump the data in case something goes awry but I cannot 
>>> see why my boring EO Model would have any trouble using an updated version 
>>> even if the jump is — well, at least like…I dunno - ten years? 
>> 
>> You mean you're already on RDS and just need to upgrade? I've certainly 
>> never encountered any problems, though I'm surprised you could get a decade 
>> behind. RDS is more aggressive than that with PostgreSQL, at least, forcing 
>> major version updates from time to time.
>> 
>> 
>> -- 
>> Paul Hoadley
>> https://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/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


Re: RDS [was: Re: WOLips Update]

2024-03-17 Thread Steve Peery via Webobjects-dev
Make sure the MySQL driver in your app is new enough to work with the new version of SQL! I tried to upgrade and my apps would not connect.Steve On Mar 16, 2024, at 9:27 PM, Paul Hoadley via Webobjects-dev  wrote:Hi Jesse,On 17 Mar 2024, at 11:12 am, Jesse Tayler  wrote:I’m upgrading from a rather old MySQL, this is basically a button press and I suppose I should dump the data in case something goes awry but I cannot see why my boring EO Model would have any trouble using an updated version even if the jump is — well, at least like…I dunno - ten years? You mean you're already on RDS and just need to upgrade? I've certainly never encountered any problems, though I'm surprised you could get a decade behind. RDS is more aggressive than that with PostgreSQL, at least, forcing major version updates from time to time.
-- Paul Hoadleyhttps://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/speery%40me.comThis 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


Re: RDS [was: Re: WOLips Update]

2024-03-16 Thread Paul Hoadley via Webobjects-dev
Hi Jesse,

On 17 Mar 2024, at 11:12 am, Jesse Tayler  wrote:

> I’m upgrading from a rather old MySQL, this is basically a button press and I 
> suppose I should dump the data in case something goes awry but I cannot see 
> why my boring EO Model would have any trouble using an updated version even 
> if the jump is — well, at least like…I dunno - ten years? 

You mean you're already on RDS and just need to upgrade? I've certainly never 
encountered any problems, though I'm surprised you could get a decade behind. 
RDS is more aggressive than that with PostgreSQL, at least, forcing major 
version updates from time to time.


-- 
Paul Hoadley
https://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


Re: RDS [was: Re: WOLips Update]

2024-03-16 Thread Jesse Tayler via Webobjects-dev
I’m upgrading from a rather old MySQL, this is basically a button press and I 
suppose I should dump the data in case something goes awry but I cannot see why 
my boring EO Model would have any trouble using an updated version even if the 
jump is — well, at least like…I dunno - ten years? 

The database doesn’t get a lot of touching!

But this version is out of date, so I figure people would have reported if 
there were ever some trouble encountered.



> On Mar 16, 2024, at 8:14 PM, Paul Hoadley  wrote:
> 
> On 17 Mar 2024, at 1:20 am, Jesse Tayler via Webobjects-dev 
> mailto:webobjects-dev@lists.apple.com>> 
> wrote:
> 
>> Does anyone use RDS on AWS?
> 
> We've been using PostgreSQL on RDS for years. Is there anything you want to 
> know?
> 
> 
> -- 
> Paul Hoadley
> https://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


RDS [was: Re: WOLips Update]

2024-03-16 Thread Paul Hoadley via Webobjects-dev
On 17 Mar 2024, at 1:20 am, Jesse Tayler via Webobjects-dev 
 wrote:

> Does anyone use RDS on AWS?

We've been using PostgreSQL on RDS for years. Is there anything you want to 
know?


-- 
Paul Hoadley
https://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


Re: WOLips Update

2024-03-16 Thread Jesse Tayler via Webobjects-dev
Does anyone use RDS on AWS?

I’m updating and just figure MySQL will not care about whatever simple EOF 
stuff I’m using…

I’m still on an old Eclipse but it sounds like WOLips is working on the most 
recent?

> On Mar 16, 2024, at 4:28 AM, Hugi Thordarson via Webobjects-dev 
>  wrote:
> 
> "All" is just Ralf. I opened Eclipse 2024-03 for the first time, only to get 
> that error.
> Within minutes, my mail client said "bing!" and it was a notification about 
> Ralf's fix PR.
> So I tested the fork a bit, worked fine, just merged. So thanks Ralf! Perfect 
> timing :)
> 
> - hugi
> 
> 
>> On Mar 15, 2024, at 10:01, Michael Schmiedgen via Webobjects-dev 
>>  wrote:
>> 
>> Hi :)
>> 
>> Wow, that [1] was fast, thank you all!
>> 
>> 
>> [1] https://github.com/wocommunity/wolips/commits/master/
>> ___
>> 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/hugi%40karlmenn.is
>> 
>> This email sent to h...@karlmenn.is
> 
> ___
> 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/jtayler%40oeinc.com
> 
> This email sent to jtay...@oeinc.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: WOLips Update

2024-03-16 Thread Hugi Thordarson via Webobjects-dev
"All" is just Ralf. I opened Eclipse 2024-03 for the first time, only to get 
that error.
Within minutes, my mail client said "bing!" and it was a notification about 
Ralf's fix PR.
So I tested the fork a bit, worked fine, just merged. So thanks Ralf! Perfect 
timing :)

- hugi


> On Mar 15, 2024, at 10:01, Michael Schmiedgen via Webobjects-dev 
>  wrote:
> 
> Hi :)
> 
> Wow, that [1] was fast, thank you all!
> 
> 
> [1] https://github.com/wocommunity/wolips/commits/master/
> ___
> 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/hugi%40karlmenn.is
> 
> This email sent to h...@karlmenn.is

 ___
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: Thanks Stefan! (mod_proxy)

2024-03-08 Thread Aaron Rosenzweig via Webobjects-dev
Hi Michael, 

I don’t know the future of mod_WebObjects. Last updates were two years ago but 
they were fairly significant, fixing a security exploit. 

Thanks for mentioning MPM-event issues as I wasn’t aware until you mentioned 
them. Perhaps that is what we were experiencing. 

To give an update, we got stuck deploying to production environment last night 
and gave up but we kept looking into it and deployed mod_proxy today and 
preliminary reports show people are happy. 

We had missed the part about adding a header: x-webobjects-adaptor-version

We had it in staging but overlooked it in production. 

So if you have a java instance running and direct-connect disabled, you can’t 
do something like this:
curl localhost:9001/cgi-bin/WebObjects/app.woa

If you do you’ll get a: (52) Empty reply from server

So how would mod_proxy or mod_WebObjects connect to it then? Well they give 
that header I mentioned above. So you’d need to do this with curl: 
curl localhost:9001/cgi-bin/WebObjects/app.woa -H 
'x-webobjects-adaptor-version: mod_proxy’

You need to have this line in your Apache config files:
RequestHeader append x-webobjects-adaptor-version “mod_proxy"

While we like this solution we aren’t quite where we want to be yet. Our app 
shows the instance number as “-1” no matter which app is responding. We know 
it’s doing round-robin but we don’t have the instance number in the request 
like WO expects it. Small stuff like that… but the stability and performance 
improvements are huge. So far so good :-)

Thanks everyone,
— Aaron

> On Mar 8, 2024, at 9:15 AM, Michael Schmiedgen  wrote:
> 
> 
> On 3/8/2024 1:55 AM, Aaron Rosenzweig via Webobjects-dev wrote:
>> Thank you Stefan, Johann, and the community for making the switch from 
>> mod_Webobjects.so adaptor to the built-in Apache mod_proxy module.
>> It helped us out this week to dig up Stefan’s 2015 video presentation on 
>> this topic, utilize the ERXApplication cookie generation, and the migration 
>> tab in Java Monitor.
>> The reason for us to make the switch was because Apache had become unstable. 
>> It was having numerous segmentation faults. We were using the latest 
>> available Apache 2.4.x for Amazon Linux along with freshly compiled from 
>> source WO Adaptor taken from latest WOnder repo. Whenever httpd wet-the-bed, 
>> we’d lose communication with an app instance. It seems there was no rhyme or 
>> reason to what was causing it to crash. It did seem that when we downloaded 
>> user files (passed from disk to web browser through fileInputStreams) that 
>> we’d be more likely to see a segmentation fault anywhere from 5 to 7 
>> request-response loops later (navigating the app, clicking links). File 
>> sizes ranged from somewhat small like 4 megs up to about 250 megs.
>> It was almost as if the WO adaptor was getting corrupted. Apache would give 
>> errors about unreadable headers that looked like a stream of binary data and 
>> then shortly after segmentation fault.
> 
> 
> Some Linux distros do not configure Apache with MPM-prefork anymore
> these days. We observed major problems with MPM-event / MPM-multithread
> in combination with WO module, including httpd process crashes. We
> switched back to prefork and that solved the issue.
> 
> But clearly, mod_proxy seems to be the better option here, we are
> looking forward to this.
> 
> Whats the 'official' state of mod_WebObjects? Will it become legacy
> or get abandoned? Are there any plans?
> 
> Thank you all,
>  Michael
> 
> 
> 
> -- 
> ___
> 
> Michael Schmiedgen, BSc
> Senior Software Engineer
> 
> Takwa GmbH
> Friedrich-List-Str. 15
> 99096 Erfurt GERMANY
> 
> Tel  +49 361 6534096
> Fax  +49 361 6534097
> Mail schmied...@takwa.de
> Web  http://www.takwa.de/
> ___
> 
> 
> Amtsgericht Jena HRB 112964
> Geschäftsführung: Ingo Buchholz

 ___
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: Thanks Stefan! (mod_proxy)

2024-03-08 Thread Michael Schmiedgen via Webobjects-dev


On 3/8/2024 1:55 AM, Aaron Rosenzweig via Webobjects-dev wrote:

Thank you Stefan, Johann, and the community for making the switch from 
mod_Webobjects.so adaptor to the built-in Apache mod_proxy module.

It helped us out this week to dig up Stefan’s 2015 video presentation on this 
topic, utilize the ERXApplication cookie generation, and the migration tab in 
Java Monitor.

The reason for us to make the switch was because Apache had become unstable. It 
was having numerous segmentation faults. We were using the latest available 
Apache 2.4.x for Amazon Linux along with freshly compiled from source WO 
Adaptor taken from latest WOnder repo. Whenever httpd wet-the-bed, we’d lose 
communication with an app instance. It seems there was no rhyme or reason to 
what was causing it to crash. It did seem that when we downloaded user files 
(passed from disk to web browser through fileInputStreams) that we’d be more 
likely to see a segmentation fault anywhere from 5 to 7 request-response loops 
later (navigating the app, clicking links). File sizes ranged from somewhat 
small like 4 megs up to about 250 megs.

It was almost as if the WO adaptor was getting corrupted. Apache would give 
errors about unreadable headers that looked like a stream of binary data and 
then shortly after segmentation fault.



Some Linux distros do not configure Apache with MPM-prefork anymore
these days. We observed major problems with MPM-event / MPM-multithread
in combination with WO module, including httpd process crashes. We
switched back to prefork and that solved the issue.

But clearly, mod_proxy seems to be the better option here, we are
looking forward to this.

Whats the 'official' state of mod_WebObjects? Will it become legacy
or get abandoned? Are there any plans?

Thank you all,
  Michael



--
___

Michael Schmiedgen, BSc
Senior Software Engineer

Takwa GmbH
Friedrich-List-Str. 15
99096 Erfurt GERMANY

Tel  +49 361 6534096
Fax  +49 361 6534097
Mail schmied...@takwa.de
Web  http://www.takwa.de/
___


Amtsgericht Jena HRB 112964
Geschäftsführung: Ingo Buchholz
___
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: loooong saveChanges prep-stage

2024-02-01 Thread Ramsey Gurley via Webobjects-dev
I'm not sure where the OSC locking and unlocking happens off the top of my 
head, but if it's waiting on a lock, it could still be the database. You can 
set up database monitoring on cpu/ram/io just to rule that out as a culprit. 
Otherwise, if it is your app, you might find the problem running your app 
through a profiler.

Also, you can check to see if your app is not returning stats on javamonitor. 
That usually indicates a deadlock. If you're running multiple instances, you 
could be failing over to a new instance after a timeout due to the instance 
being deadlocked. If you see your instances deadlocking, you can configure jmx 
and then use something like jstat to detect where your deadlock is happening. 
It was a bit of a pain setting that up on my prod apps, but it was definitely 
worth it. You can see all kinds of useful info on your running prod apps and 
find problems you didn't even know you had.

Also, set up monitoring on your app server. It might just be you're being 
hammered by a botnet and that's bogging down all your network IO you use for 
your DB. Or you could have a rouge application eating all your app server cpu.

Whenever you're stuck, just set up more and more monitoring. :) It's never a 
waste of time, and you can often find your problem that way.

From: OCsite 
Sent: Thursday, February 1, 2024 7:39 PM
To: OCsite via Webobjects-dev 
Cc: Jérémy DE ROYER ; Ramsey Gurley 

Subject: Re: lng saveChanges prep-stage

You don't often get email from o...@ocs.cz. Learn why this is 
important<https://aka.ms/LearnAboutSenderIdentification>
Thanks again!

Though I do not really think the database would be the culprit. Does actually 
EOF do anything with the DB when saving changes before 
DatabaseContextDelegate.databaseContextWillPerformAdaptorOperations is called? 
I might be wrong as so often, but I don't think so; I believe it contacts the 
DB for the first time only after that.

Thanks and all the best,
OC

On 1. 2. 2024, at 6:12, Ramsey Gurley  wrote:

Are you hosting your database? If so, don't rule out a problem outside your 
application and in your database. It could be low memory. If you can't fit all 
the tables/indexes into memory, you fall off a performance cliff by going to 
disk. It could also be an antivirus scanner that kicked off on your DB's data 
directory. Once it starts scanning and locking files, it can ruin performance. 
If you can catch it during these slow periods, ssh into the box and check with 
top and iostat. Look for something on the machine tying up resources. It could 
be a poorly tuned database too, your box has plenty of memory, but your 
database isn't configured correctly to use it. For example, if you're using 
Postgres:
https://pgtune.leopard.in.ua/

It could even be below your database config and in your OS config. On linux, 
it's highly dependent on which file system you are using (ext4, btrfs, xfs, 
etc), but maybe you have insufficent read-ahead, or some other filesystem 
setting. Even if you're not using Postgres, you should probably get a copy of 
Postgresql High Performance and read the first few chapters which covers 
hardware tuning below the database.

It could also be your database is busy reindexing or freeing up table space. On 
postgres, vacuuming and reindexing can lock tables until the job is done. This 
can take several minutes or more depending on the size of your table. It could 
be the autovacuum doing it. If you're not vacuuming/reindexing, that can hurt 
your performance too, since indexes will grow to exceed your available memory 
and drop you off the performance cliff. You can do the maintenance and get 
around the locking problems using something like pg_repack.

From: OCsite 
Sent: Wednesday, January 31, 2024 7:59 PM
To: OCsite via Webobjects-dev 
Cc: Jérémy DE ROYER ; Ramsey Gurley 

Subject: Re: lng saveChanges prep-stage

You don't often get email from o...@ocs.cz. Learn why this is 
important<https://aka.ms/LearnAboutSenderIdentification>
Thanks, guys!

I am pretty sure though the problem can't be a background process either 
reading for a long time or saving for a long time, for I do use the 
ERXAdaptorChannelDelegate.trace logs and through 
DatabaseContextDelegate.databaseContextWillPerformAdaptorOperations I log each 
save — and there's nothing like that in the log in the vicinity of those long 
saveChanges, alas. Thus the culprit must be something else.

Perhaps indeed something locks the OSC pretty often and for a long time, but 
that something is neither a long SELECT which would log through 
ERXAdaptorChannelDelegate.trace, nor another unrelated save, which would log 
through DatabaseContextDelegate.databaseContextWillPerformAdaptorOperations.

Besides, it does not really feel like OSC locks caused by another thread. 
Meantime, I've rigged an awk script to compute how long each saveChanges takes, 
and it looks like this:
- for a lo

Re: loooong saveChanges prep-stage

2024-02-01 Thread OCsite via Webobjects-dev
Thanks again!

Though I do not really think the database would be the culprit. Does actually 
EOF do anything with the DB when saving changes before 
DatabaseContextDelegate.databaseContextWillPerformAdaptorOperations is called? 
I might be wrong as so often, but I don't think so; I believe it contacts the 
DB for the first time only after that.

Thanks and all the best,
OC

> On 1. 2. 2024, at 6:12, Ramsey Gurley  wrote:
> 
> Are you hosting your database? If so, don't rule out a problem outside your 
> application and in your database. It could be low memory. If you can't fit 
> all the tables/indexes into memory, you fall off a performance cliff by going 
> to disk. It could also be an antivirus scanner that kicked off on your DB's 
> data directory. Once it starts scanning and locking files, it can ruin 
> performance. If you can catch it during these slow periods, ssh into the box 
> and check with top and iostat. Look for something on the machine tying up 
> resources. It could be a poorly tuned database too, your box has plenty of 
> memory, but your database isn't configured correctly to use it. For example, 
> if you're using Postgres:
> https://pgtune.leopard.in.ua/
> 
> It could even be below your database config and in your OS config. On linux, 
> it's highly dependent on which file system you are using (ext4, btrfs, xfs, 
> etc), but maybe you have insufficent read-ahead, or some other filesystem 
> setting. Even if you're not using Postgres, you should probably get a copy of 
> Postgresql High Performance and read the first few chapters which covers 
> hardware tuning below the database.
> 
> It could also be your database is busy reindexing or freeing up table space. 
> On postgres, vacuuming and reindexing can lock tables until the job is done. 
> This can take several minutes or more depending on the size of your table. It 
> could be the autovacuum doing it. If you're not vacuuming/reindexing, that 
> can hurt your performance too, since indexes will grow to exceed your 
> available memory and drop you off the performance cliff. You can do the 
> maintenance and get around the locking problems using something like 
> pg_repack.
> From: OCsite 
> Sent: Wednesday, January 31, 2024 7:59 PM
> To: OCsite via Webobjects-dev 
> Cc: Jérémy DE ROYER ; Ramsey Gurley 
> 
> Subject: Re: lng saveChanges prep-stage
>  
> You don't often get email from o...@ocs.cz. Learn why this is important 
> <https://aka.ms/LearnAboutSenderIdentification>   
> Thanks, guys!
> 
> I am pretty sure though the problem can't be a background process either 
> reading for a long time or saving for a long time, for I do use the 
> ERXAdaptorChannelDelegate.trace logs and through 
> DatabaseContextDelegate.databaseContextWillPerformAdaptorOperations I log 
> each save — and there's nothing like that in the log in the vicinity of those 
> long saveChanges, alas. Thus the culprit must be something else.
> 
> Perhaps indeed something locks the OSC pretty often and for a long time, but 
> that something is neither a long SELECT which would log through 
> ERXAdaptorChannelDelegate.trace, nor another unrelated save, which would log 
> through DatabaseContextDelegate.databaseContextWillPerformAdaptorOperations.
> 
> Besides, it does not really feel like OSC locks caused by another thread. 
> Meantime, I've rigged an awk script to compute how long each saveChanges 
> takes, and it looks like this:
> - for a long time, all is OK
> - when the save times begin to grow, they keep consistently long (e.g., about 
> 30 s each, or about 50 s each) for each save for awhile (a quarter or half an 
> hour), before things get back to normal
> 
> If another thread locked OSC, it would most probably mean some saveChanges 
> would be long, but some quick; it does not seem probable a background thread 
> would consistently keep OSC locked so that each saveChanges takes roughly the 
> same (long) time.
> 
> This rather feels by something at the beginning of saveChanges becomes slow. 
> This would most probably happen under the OSC lock, and given the way it 
> works, does not seem really plausible that it is simply waiting to acquire 
> the lock itself.
> 
> For the moment, I'm rather outta ideas :(
> 
> Thanks again and all the best,
> OC
> Confidentiality Notice: This email, including all attachments and replies 
> thereto, are covered by the Electronic Communications Privacy Act, 18 U.S.C. 
> Sections 2510-2521 and are legally privileged. This information is 
> confidential, and intended only for the use of the individuals or entities 
> named above. If you are not the intended recipient, you are hereby notified 
> that any disclosure, copying, distribution or the taking of any action in 
> rel

Re: loooong saveChanges prep-stage

2024-01-31 Thread Ramsey Gurley via Webobjects-dev
Are you hosting your database? If so, don't rule out a problem outside your 
application and in your database. It could be low memory. If you can't fit all 
the tables/indexes into memory, you fall off a performance cliff by going to 
disk. It could also be an antivirus scanner that kicked off on your DB's data 
directory. Once it starts scanning and locking files, it can ruin performance. 
If you can catch it during these slow periods, ssh into the box and check with 
top and iostat. Look for something on the machine tying up resources. It could 
be a poorly tuned database too, your box has plenty of memory, but your 
database isn't configured correctly to use it. For example, if you're using 
Postgres:
https://pgtune.leopard.in.ua/

It could even be below your database config and in your OS config. On linux, 
it's highly dependent on which file system you are using (ext4, btrfs, xfs, 
etc), but maybe you have insufficent read-ahead, or some other filesystem 
setting. Even if you're not using Postgres, you should probably get a copy of 
Postgresql High Performance and read the first few chapters which covers 
hardware tuning below the database.

It could also be your database is busy reindexing or freeing up table space. On 
postgres, vacuuming and reindexing can lock tables until the job is done. This 
can take several minutes or more depending on the size of your table. It could 
be the autovacuum doing it. If you're not vacuuming/reindexing, that can hurt 
your performance too, since indexes will grow to exceed your available memory 
and drop you off the performance cliff. You can do the maintenance and get 
around the locking problems using something like pg_repack.

From: OCsite 
Sent: Wednesday, January 31, 2024 7:59 PM
To: OCsite via Webobjects-dev 
Cc: Jérémy DE ROYER ; Ramsey Gurley 

Subject: Re: lng saveChanges prep-stage

You don't often get email from o...@ocs.cz. Learn why this is 
important<https://aka.ms/LearnAboutSenderIdentification>
Thanks, guys!

I am pretty sure though the problem can't be a background process either 
reading for a long time or saving for a long time, for I do use the 
ERXAdaptorChannelDelegate.trace logs and through 
DatabaseContextDelegate.databaseContextWillPerformAdaptorOperations I log each 
save — and there's nothing like that in the log in the vicinity of those long 
saveChanges, alas. Thus the culprit must be something else.

Perhaps indeed something locks the OSC pretty often and for a long time, but 
that something is neither a long SELECT which would log through 
ERXAdaptorChannelDelegate.trace, nor another unrelated save, which would log 
through DatabaseContextDelegate.databaseContextWillPerformAdaptorOperations.

Besides, it does not really feel like OSC locks caused by another thread. 
Meantime, I've rigged an awk script to compute how long each saveChanges takes, 
and it looks like this:
- for a long time, all is OK
- when the save times begin to grow, they keep consistently long (e.g., about 
30 s each, or about 50 s each) for each save for awhile (a quarter or half an 
hour), before things get back to normal

If another thread locked OSC, it would most probably mean some saveChanges 
would be long, but some quick; it does not seem probable a background thread 
would consistently keep OSC locked so that each saveChanges takes roughly the 
same (long) time.

This rather feels by something at the beginning of saveChanges becomes slow. 
This would most probably happen under the OSC lock, and given the way it works, 
does not seem really plausible that it is simply waiting to acquire the lock 
itself.

For the moment, I'm rather outta ideas :(

Thanks again and all the best,
OC

Confidentiality Notice: This email, including all attachments and replies 
thereto, are covered by the Electronic Communications Privacy Act, 18 U.S.C. 
Sections 2510-2521 and are legally privileged. This information is 
confidential, and intended only for the use of the individuals or entities 
named above. If you are not the intended recipient, you are hereby notified 
that any disclosure, copying, distribution or the taking of any action in 
reliance on the contents of this transmitted information is strictly 
prohibited. Please notify us if you have received this transmission in error. 
Thank you.
 ___
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: loooong saveChanges prep-stage

2024-01-31 Thread Aaron Rosenzweig via Webobjects-dev
Check your "willUpdate()" logic and similar things such as "didUpdate()".
It may be doing lots of calculations in certain situations that is almost
but not quite an infinite loop.

On Wed, Jan 31, 2024 at 5:59 AM OCsite via Webobjects-dev <
webobjects-dev@lists.apple.com> wrote:

> Thanks, guys!
>
> I am pretty sure though the problem can't be a background process either
> reading for a long time or saving for a long time, for I do use the
> *ERXAdaptorChannelDelegate.trace* logs and through
> *DatabaseContextDelegate.databaseContextWillPerformAdaptorOperations* I
> log each save — and there's nothing like that in the log in the vicinity of
> those long *saveChanges*, alas. Thus the culprit must be something else.
>
> Perhaps indeed *something* locks the OSC pretty often and for a long
> time, but that something is neither a long *SELECT* which would log
> through *ERXAdaptorChannelDelegate.trace*, nor another unrelated save,
> which would log through
> *DatabaseContextDelegate.databaseContextWillPerformAdaptorOperations*.
>
> Besides, it does not really feel like OSC locks caused by another thread.
> Meantime, I've rigged an awk script to compute how long each *saveChanges* 
> takes,
> and it looks like this:
> - for a long time, all is OK
> - when the save times begin to grow, they keep consistently long (e.g.,
> about 30 s each, or about 50 s each) for each save for awhile (a quarter or
> half an hour), before things get back to normal
>
> If another thread locked OSC, it would most probably mean some
> *saveChanges* would be long, but some quick; it does not seem probable a
> background thread would *consistently* keep OSC locked so that *each*
> *saveChanges* takes roughly the same (long) time.
>
> This rather feels by something at the beginning of *saveChanges* becomes
> slow. This would most probably happen under the OSC lock, and given the way
> it works, does not seem really plausible that it is simply waiting to
> acquire the lock itself.
>
> For the moment, I'm rather outta ideas :(
>
> Thanks again and all the best,
> OC
>  ___
> 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/aaron%40chatnbike.com
>
> This email sent to aa...@chatnbike.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: loooong saveChanges prep-stage

2024-01-31 Thread OCsite via Webobjects-dev
Thanks, guys!

I am pretty sure though the problem can't be a background process either 
reading for a long time or saving for a long time, for I do use the 
ERXAdaptorChannelDelegate.trace logs and through 
DatabaseContextDelegate.databaseContextWillPerformAdaptorOperations I log each 
save — and there's nothing like that in the log in the vicinity of those long 
saveChanges, alas. Thus the culprit must be something else.

Perhaps indeed something locks the OSC pretty often and for a long time, but 
that something is neither a long SELECT which would log through 
ERXAdaptorChannelDelegate.trace, nor another unrelated save, which would log 
through DatabaseContextDelegate.databaseContextWillPerformAdaptorOperations.

Besides, it does not really feel like OSC locks caused by another thread. 
Meantime, I've rigged an awk script to compute how long each saveChanges takes, 
and it looks like this:
- for a long time, all is OK
- when the save times begin to grow, they keep consistently long (e.g., about 
30 s each, or about 50 s each) for each save for awhile (a quarter or half an 
hour), before things get back to normal

If another thread locked OSC, it would most probably mean some saveChanges 
would be long, but some quick; it does not seem probable a background thread 
would consistently keep OSC locked so that each saveChanges takes roughly the 
same (long) time.

This rather feels by something at the beginning of saveChanges becomes slow. 
This would most probably happen under the OSC lock, and given the way it works, 
does not seem really plausible that it is simply waiting to acquire the lock 
itself.

For the moment, I'm rather outta ideas :(

Thanks again and all the best,
OC ___
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: loooong saveChanges prep-stage

2024-01-31 Thread Jérémy DE ROYER via Webobjects-dev
Hi,

That’s why for big or background processes, I create dedicated 
ObjectStoreCoordinator using :

ERXObjectStoreCoordinator _tmpObjectStoreCoordinator = new 
ERXObjectStoreCoordinator(true);

WOSession _localSession = new WOSession(_tmpObjectStoreCoordinator);
_localSession.setSelectedUtilisateur(_localSession.getUtilisateurSystem());
_localSession.defaultEditingContext().setUndoManager(null);
_localSession.defaultEditingContext().lock();

and opening with :

_localSession.defaultEditingContext().unlock();
_localSession.defaultEditingContext().dispose();
_localSession.terminate();

_tmpObjectStoreCoordinator.dispose();

It’s perfect for analysis and export ; for updates, don’t forget to refresh 
updated objects in DefaultEOObjectStore

Have a nice day,

Jérémy

Le 30 janv. 2024 à 17:27, OCsite via Webobjects-dev 
 a écrit :

Hi guys,

I've got logs from one of our installations with a pretty weird problem.

We just happen to log immediately before ec.saveChanges() gets called; and we 
happen to have a 
DatabaseContextDelegate.databaseContextWillPerformAdaptorOperations, which logs 
out soon as it is called.

In this one log, the delay betw. those two logs — ie., the time saveChanges 
spends before the delegate method is called — repeatedly grows up to almost a 
minute (!) After some time the problem disappears and saving works normally; 
and then it occurs again. There's no other log around (most other threads wait 
on the OSC lock anyway), and with our app it so happens there's only one item 
in the adaptor op array to be inserted or updated.

Once or twice there even has been nothing to save at all (ie., no changes in 
the EC when saveChanges was called), but even so, saveChanges took almost a 
minute before it returned. Can't be 100 % sure, but most probably, it was the 
very same problem; it is highly probable thus it does not depend on the 
enterprise objects being saved, but on something else.

It never happened in any other installation of the same application, including 
my development one and our test one.

Have you ever bumped into something like that? Any idea what might be the 
culprit and how to hunt the bug?

Thanks a lot,
OC

___
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


Re: loooong saveChanges prep-stage

2024-01-30 Thread Ramsey Gurley via Webobjects-dev
Since by default WO uses a single ObjectStoreCoordinator/db connection, if you 
have concurrent request handling enabled, a long running query on one session 
can impact the time spent on other queries. If you want to see if this is your 
problem, you can log all your database activity everywhere with a few 
properties.

# ERExtensions
# Transaction - Switching this to debug will start the sql ouputting.
log4j.logger.er.transaction.adaptor.EOAdaptorDebugEnabled=INFO

## Enable delegate to emit SQL debugging info. The Logger used is
## log4j.category.er.extensions.ERXAdaptorChannelDelegate.sqlLogging
er.extensions.ERXAdaptorChannelDelegate.enabled=true

## How long a statement must run to cause a log message. Messages with longer 
than
## error also emit a stack-trace
er.extensions.ERXAdaptorChannelDelegate.trace.milliSeconds.debug=0
er.extensions.ERXAdaptorChannelDelegate.trace.milliSeconds.info=100
er.extensions.ERXAdaptorChannelDelegate.trace.milliSeconds.warn=2000
er.extensions.ERXAdaptorChannelDelegate.trace.milliSeconds.error=15000

## MaxLength of the message
er.extensions.ERXAdaptorChannelDelegate.trace.maxLength = 3000

## What entities to watch
er.extensions.ERXAdaptorChannelDelegate.trace.entityMatchPattern = .*

## Actually set the log level
log4j.logger.er.extensions.ERXAdaptorChannelDelegate.sqlLogging=info

From: OCsite via Webobjects-dev 
Sent: Wednesday, January 31, 2024 1:27 AM
To: OCsite via Webobjects-dev 
Subject: lng saveChanges prep-stage

Hi guys,

I've got logs from one of our installations with a pretty weird problem.

We just happen to log immediately before ec.saveChanges() gets called; and we 
happen to have a 
DatabaseContextDelegate.databaseContextWillPerformAdaptorOperations, which logs 
out soon as it is called.

In this one log, the delay betw. those two logs — ie., the time saveChanges 
spends before the delegate method is called — repeatedly grows up to almost a 
minute (!) After some time the problem disappears and saving works normally; 
and then it occurs again. There's no other log around (most other threads wait 
on the OSC lock anyway), and with our app it so happens there's only one item 
in the adaptor op array to be inserted or updated.

Once or twice there even has been nothing to save at all (ie., no changes in 
the EC when saveChanges was called), but even so, saveChanges took almost a 
minute before it returned. Can't be 100 % sure, but most probably, it was the 
very same problem; it is highly probable thus it does not depend on the 
enterprise objects being saved, but on something else.

It never happened in any other installation of the same application, including 
my development one and our test one.

Have you ever bumped into something like that? Any idea what might be the 
culprit and how to hunt the bug?

Thanks a lot,
OC


Confidentiality Notice: This email, including all attachments and replies 
thereto, are covered by the Electronic Communications Privacy Act, 18 U.S.C. 
Sections 2510-2521 and are legally privileged. This information is 
confidential, and intended only for the use of the individuals or entities 
named above. If you are not the intended recipient, you are hereby notified 
that any disclosure, copying, distribution or the taking of any action in 
reliance on the contents of this transmitted information is strictly 
prohibited. Please notify us if you have received this transmission in error. 
Thank you.
 ___
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: Maven "Quick Start" [was: Re: Meetup maybe? Or call me maybe?]

2023-12-25 Thread Theodore Petrosky via Webobjects-dev
Is the xWiki down?

https://wiki.wocommunity.org/

I can’t get on!

Ted

> On Dec 25, 2023, at 03:30, Paul Hoadley via Webobjects-dev 
>  wrote:
> 
> On 25 Dec 2023, at 08:38, Paul Hoadley via Webobjects-dev 
> mailto:webobjects-dev@lists.apple.com>> 
> wrote:
> 
>> Hugi and I will fix the documentation on the Wiki. Going from zero to Hello 
>> World should take anyone about 10 minutes (modulo some artefact download 
>> time). Converting an existing project might take 20 minutes.
> 
> I've just updated the Maven "Quick Start" page here:
> 
> https://wiki.wocommunity.org/xwiki/bin/view/WOL/Home/WOProject-Maven/Quick%20Start/
> 
> It's a re-write from scratch: some of the existing information was helpful 10 
> years ago, but a lot of it was stale and fragmented. I've tested it myself, 
> and it should work. My claim is that even a non-Mavenite should be able to go 
> from zero to Maven-Hello-World in about 10 minutes. Please try it out, 
> especially the New-Mavenites and Maven-Curious:
> 
> * Does it work from start to finish? If not, let me know where it failed and 
> I'll fix it.
> * How long did it take?
> 
> 
> -- 
> Paul Hoadley
> https://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/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


Maven "Quick Start" [was: Re: Meetup maybe? Or call me maybe?]

2023-12-25 Thread Paul Hoadley via Webobjects-dev
On 25 Dec 2023, at 08:38, Paul Hoadley via Webobjects-dev 
 wrote:

> Hugi and I will fix the documentation on the Wiki. Going from zero to Hello 
> World should take anyone about 10 minutes (modulo some artefact download 
> time). Converting an existing project might take 20 minutes.

I've just updated the Maven "Quick Start" page here:

https://wiki.wocommunity.org/xwiki/bin/view/WOL/Home/WOProject-Maven/Quick%20Start/
 
<https://wiki.wocommunity.org/xwiki/bin/view/WOL/Home/WOProject-Maven/Quick%20Start/>

It's a re-write from scratch: some of the existing information was helpful 10 
years ago, but a lot of it was stale and fragmented. I've tested it myself, and 
it should work. My claim is that even a non-Mavenite should be able to go from 
zero to Maven-Hello-World in about 10 minutes. Please try it out, especially 
the New-Mavenites and Maven-Curious:

* Does it work from start to finish? If not, let me know where it failed and 
I'll fix it.
* How long did it take?


-- 
Paul Hoadley
https://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


Re: Meetup maybe? Or call me maybe?

2023-12-24 Thread Paul Hoadley via Webobjects-dev
Hi everyone,

On 24 Dec 2023, at 2:14 am, Hugi Thordarson via Webobjects-dev 
 wrote:

> Samuel; the maven info on the WOCommunity wiki is very outdated, to the point 
> that I think a lot of it should just be deleted and replaced with more modern 
> info. I've been kind of shy to do that (i.e. fudging around with other 
> peoples' hard work), but it's probably time to just … do it? I'm excited to 
> play around with that new wiki software Maik has set up!

It is definitely time to just do it.

> In the last couple of years, I've put my guides into gists, so here are a 
> couple; one showing how to do a fresh setup of a WO maven development 
> environment, and another one showing how to port an existing Fluffy Bunny 
> project to maven (which Paul has also added to):
> 
> https://gist.github.com/hugithordarson/d2ba6da9e4942f4ece95d7a721159cd1 
> 
> https://gist.github.com/hugithordarson/3c269a3196d0c4f2da486f1109c16d42 
> 

This is mine:

https://gist.github.com/paulhoadley/cd15b90c94eb8c640fddd9ac3fbbc6dc

I really don't know whose is better or more current, or even why I forked 
Hugi's in the first place.

On Dec 21, 2023, at 7:14 AM, Samuel Pelletier via Webobjects-dev 
 wrote:

> If you managed to create a new project, you where able to go far beyond my 
> achievements !
> 
> I tried to switch to maven few times in the last years and just gave up each 
> time after few hours and never managed to create a new project without error 
> that build ever after reading and trying to understand the 3-4 page on the 
> subject I found.
> 
> If someone familiar with the matter can create or update an existing page 
> with a step by step procedure starting from a totally clean user account, it 
> would be great.
> 
> Creating new Wonder project would be sufficient but also having some 
> instructions to migrate a project using an BusinessLogic framework would be a 
> dream.

This is disappointing to hear—we should have been able to get Samuel over the 
line. It's not hard at all—we get even non-Java people to set up WebObjects 
projects from time to time. Hugi and I will fix the documentation on the Wiki. 
Going from zero to Hello World should take anyone about 10 minutes (modulo some 
artefact download time). Converting an existing project might take 20 minutes.


-- 
Paul Hoadley
https://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


Re: Meetup maybe? Or call me maybe?

2023-12-23 Thread Theodore Petrosky via Webobjects-dev
Samuel,

I found this really worked as written and it is great! If you want to 
schedule a TeamViewer session to work with someone that just got it working, 
let me know. I am hanging around with nothing to do……

Ted

> https://gist.github.com/hugithordarson/d2ba6da9e4942f4ece95d7a721159cd1




> On Dec 23, 2023, at 10:44, Hugi Thordarson  wrote:
> 
> Hi guys,
> just seeing this now, sorry! The whole family apart from me decided to go 
> sick last week, so I've assumed the duties of shopping, wrapping and 
> otherwise preparing the holidays alongside work :).
> 
> But I like Ted's idea of "sharing the love". If there's interest, I'd love to 
> have an open online session to introduce maven and help with transition where 
> required. However, I'll have very little free time for maven stuff until 
> after new years' eve, since in the next few days, I'll need to catch up on 
> work while keeping the family alive. But Ted, I'm certainly free for some 
> quick help — hit me up on Slack!
> 
> Samuel; the maven info on the WOCommunity wiki is very outdated, to the point 
> that I think a lot of it should just be deleted and replaced with more modern 
> info. I've been kind of shy to do that (i.e. fudging around with other 
> peoples' hard work), but it's probably time to just … do it? I'm excited to 
> play around with that new wiki software Maik has set up!
> 
> In the last couple of years, I've put my guides into gists, so here are a 
> couple; one showing how to do a fresh setup of a WO maven development 
> environment, and another one showing how to port an existing Fluffy Bunny 
> project to maven (which Paul has also added to):
> 
> https://gist.github.com/hugithordarson/d2ba6da9e4942f4ece95d7a721159cd1
> https://gist.github.com/hugithordarson/3c269a3196d0c4f2da486f1109c16d42
> 
> Merry christmas to you all!
> - hugi
> 
> 
>> On Dec 21, 2023, at 15:21, Theodore Petrosky via Webobjects-dev 
>>  wrote:
>> 
>> Samuel,
>> 
>> Hugi and I had a session and he showed me what to do. I can create a new 
>> Wonder app as well as a D2W app with maven. 
>> 
>> I am trying to reconnect with him and when I do, we can do a Zoom meeting 
>> and invite anyone that is interested.
>> 
>> Are you interested in joining this session?
>> 
>> Ted
>> 
>>> On Dec 21, 2023, at 7:14 AM, Samuel Pelletier via Webobjects-dev 
>>>  wrote:
>>> 
>>> Hi,
>>> 
>>> If you managed to create a new project, you where able to go far beyond my 
>>> achievements !
>>> 
>>> I tried to switch to maven few times in the last years and just gave up 
>>> each time after few hours and never managed to create a new project without 
>>> error that build ever after reading and trying to understand the 3-4 page 
>>> on the subject I found.
>>> 
>>> If someone familiar with the matter can create or update an existing page 
>>> with a step by step procedure starting from a totally clean user account, 
>>> it would be great.
>>> 
>>> Creating new Wonder project would be sufficient but also having some 
>>> instructions to migrate a project using an BusinessLogic framework would be 
>>> a dream.
>>> 
>>> Merry Christmas to everyone on the list,
>>> 
>>> Samuel
>>> 
>>> 
 Le 20 déc. 2023 à 20:34, Theodore Petrosky via Webobjects-dev 
 mailto:webobjects-dev@lists.apple.com>> a 
 écrit :
 
 Is there any interest in a Zoom meeting to discuss maven. I really don’t 
 care about the technology Hugi and I worked out TeamViewer (my office has 
 an account so there is no time limit)
 
 Hugi are the documents you shared with me available on the WOCommunity 
 xWiki? I did have some problems converting my app. New D2W projects run.
 
 How can we get together again?
 
 Ted
 
 I have a Zoom account, and TeamViewer.
 ___
 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/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/hugi%40karlmenn.is
>> 
>> This email sent to h...@karlmenn.is
> 

 

Re: Meetup maybe? Or call me maybe?

2023-12-23 Thread Hugi Thordarson via Webobjects-dev
Hi guys,
just seeing this now, sorry! The whole family apart from me decided to go sick 
last week, so I've assumed the duties of shopping, wrapping and otherwise 
preparing the holidays alongside work :).

But I like Ted's idea of "sharing the love". If there's interest, I'd love to 
have an open online session to introduce maven and help with transition where 
required. However, I'll have very little free time for maven stuff until after 
new years' eve, since in the next few days, I'll need to catch up on work while 
keeping the family alive. But Ted, I'm certainly free for some quick help — hit 
me up on Slack!

Samuel; the maven info on the WOCommunity wiki is very outdated, to the point 
that I think a lot of it should just be deleted and replaced with more modern 
info. I've been kind of shy to do that (i.e. fudging around with other peoples' 
hard work), but it's probably time to just … do it? I'm excited to play around 
with that new wiki software Maik has set up!

In the last couple of years, I've put my guides into gists, so here are a 
couple; one showing how to do a fresh setup of a WO maven development 
environment, and another one showing how to port an existing Fluffy Bunny 
project to maven (which Paul has also added to):

https://gist.github.com/hugithordarson/d2ba6da9e4942f4ece95d7a721159cd1
https://gist.github.com/hugithordarson/3c269a3196d0c4f2da486f1109c16d42

Merry christmas to you all!
- hugi


> On Dec 21, 2023, at 15:21, Theodore Petrosky via Webobjects-dev 
>  wrote:
> 
> Samuel,
> 
> Hugi and I had a session and he showed me what to do. I can create a new 
> Wonder app as well as a D2W app with maven. 
> 
> I am trying to reconnect with him and when I do, we can do a Zoom meeting and 
> invite anyone that is interested.
> 
> Are you interested in joining this session?
> 
> Ted
> 
>> On Dec 21, 2023, at 7:14 AM, Samuel Pelletier via Webobjects-dev 
>>  wrote:
>> 
>> Hi,
>> 
>> If you managed to create a new project, you where able to go far beyond my 
>> achievements !
>> 
>> I tried to switch to maven few times in the last years and just gave up each 
>> time after few hours and never managed to create a new project without error 
>> that build ever after reading and trying to understand the 3-4 page on the 
>> subject I found.
>> 
>> If someone familiar with the matter can create or update an existing page 
>> with a step by step procedure starting from a totally clean user account, it 
>> would be great.
>> 
>> Creating new Wonder project would be sufficient but also having some 
>> instructions to migrate a project using an BusinessLogic framework would be 
>> a dream.
>> 
>> Merry Christmas to everyone on the list,
>> 
>> Samuel
>> 
>> 
>>> Le 20 déc. 2023 à 20:34, Theodore Petrosky via Webobjects-dev 
>>> mailto:webobjects-dev@lists.apple.com>> a 
>>> écrit :
>>> 
>>> Is there any interest in a Zoom meeting to discuss maven. I really don’t 
>>> care about the technology Hugi and I worked out TeamViewer (my office has 
>>> an account so there is no time limit)
>>> 
>>> Hugi are the documents you shared with me available on the WOCommunity 
>>> xWiki? I did have some problems converting my app. New D2W projects run.
>>> 
>>> How can we get together again?
>>> 
>>> Ted
>>> 
>>> I have a Zoom account, and TeamViewer.
>>> ___
>>> 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/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/hugi%40karlmenn.is
> 
> This email sent to h...@karlmenn.is

 ___
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: Meetup maybe? Or call me maybe?

2023-12-21 Thread Theodore Petrosky via Webobjects-dev
Samuel,

Hugi and I had a session and he showed me what to do. I can create a new Wonder 
app as well as a D2W app with maven. 

I am trying to reconnect with him and when I do, we can do a Zoom meeting and 
invite anyone that is interested.

Are you interested in joining this session?

Ted

> On Dec 21, 2023, at 7:14 AM, Samuel Pelletier via Webobjects-dev 
>  wrote:
> 
> Hi,
> 
> If you managed to create a new project, you where able to go far beyond my 
> achievements !
> 
> I tried to switch to maven few times in the last years and just gave up each 
> time after few hours and never managed to create a new project without error 
> that build ever after reading and trying to understand the 3-4 page on the 
> subject I found.
> 
> If someone familiar with the matter can create or update an existing page 
> with a step by step procedure starting from a totally clean user account, it 
> would be great.
> 
> Creating new Wonder project would be sufficient but also having some 
> instructions to migrate a project using an BusinessLogic framework would be a 
> dream.
> 
> Merry Christmas to everyone on the list,
> 
> Samuel
> 
> 
>> Le 20 déc. 2023 à 20:34, Theodore Petrosky via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> a 
>> écrit :
>> 
>> Is there any interest in a Zoom meeting to discuss maven. I really don’t 
>> care about the technology Hugi and I worked out TeamViewer (my office has an 
>> account so there is no time limit)
>> 
>> Hugi are the documents you shared with me available on the WOCommunity 
>> xWiki? I did have some problems converting my app. New D2W projects run.
>> 
>> How can we get together again?
>> 
>> Ted
>> 
>> I have a Zoom account, and TeamViewer.
>> ___
>> 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/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


Re: Meetup maybe? Or call me maybe?

2023-12-21 Thread Samuel Pelletier via Webobjects-dev
Hi,

If you managed to create a new project, you where able to go far beyond my 
achievements !

I tried to switch to maven few times in the last years and just gave up each 
time after few hours and never managed to create a new project without error 
that build ever after reading and trying to understand the 3-4 page on the 
subject I found.

If someone familiar with the matter can create or update an existing page with 
a step by step procedure starting from a totally clean user account, it would 
be great.

Creating new Wonder project would be sufficient but also having some 
instructions to migrate a project using an BusinessLogic framework would be a 
dream.

Merry Christmas to everyone on the list,

Samuel


> Le 20 déc. 2023 à 20:34, Theodore Petrosky via Webobjects-dev 
>  a écrit :
> 
> Is there any interest in a Zoom meeting to discuss maven. I really don’t care 
> about the technology Hugi and I worked out TeamViewer (my office has an 
> account so there is no time limit)
> 
> Hugi are the documents you shared with me available on the WOCommunity xWiki? 
> I did have some problems converting my app. New D2W projects run.
> 
> How can we get together again?
> 
> Ted
> 
> I have a Zoom account, and TeamViewer.
> ___
> 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


Re: New Install On Sonoma 4.1.2

2023-12-10 Thread Jérémy DE ROYER via Webobjects-dev
Hi Theodore,

I’m still using eclipse 2023-03 because there were errors using greater 
versions.

I don’t know if these errors has been fixed since.

Jérémy

> Le 9 déc. 2023 à 13:37, Theodore Petrosky via Webobjects-dev 
>  a écrit :
> 
> 
> I have a new computer with Sonoma 14.1.2  Eclipse Version: 2023-09 (4.29.0) 
> Build id: 20230907-1323
> 
> I created a new Wonder App and tried to debug it by selecting the 
> application.java and right clicking to debug a WOApplication
> 
> it crashes with this error:
> 
> 
> java.lang.NullPointerException: Cannot invoke 
> "er.extensions.appserver.ERXApplication.getIsTerminating()" because the 
> return value of "er.extensions.appserver.ERXApplication.erxApplication()" is 
> null
> at er.extensions.appserver.ERXShutdownHook$1.run(ERXShutdownHook.java:64)
> 
> I need some help here!!!
> ___
> 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


Re: Forbidden - You don't have permission to access this resource.

2023-12-04 Thread Theodore Petrosky via Webobjects-dev
I tried to Edit a page and I received a message "Failed to Lock Page”



> On Dec 4, 2023, at 8:32 AM, Maik Musall  wrote:
> 
> Hi Ted,
> 
> no thanks, we’re still sitting on some funds for WOLips and feel bad that all 
> our attemps so far to pay someone to improve that have failed…
> 
> Maik
> 
> 
>> Am 04.12.2023 um 14:03 schrieb Theodore Petrosky :
>> 
>> Maik,
>> 
>> Fantastik!!!  You are great!   Password reset worked perfectly….
>> 
>> Should we talk about paying a fee to offset the license fee?
>> 
>> Ted
>> 
>>> On Dec 4, 2023, at 6:19 AM, Maik Musall  wrote:
>>> 
>>> Hi everyone,
>>> 
>>> the wiki is back up again at https://wiki.wocommunity.org 
>>> . We migrated the Confluence stuff to Xwiki 
>>> and are sponsoring the required “Pro Macros” license (350 EUR per year). 
>>> Please report any problems you encounter.
>>> 
>>> There were more than 1000 user accounts, which we deleted most of, along 
>>> with unused groups that don’t make sense any more. Left are 61 accounts 
>>> that are associated with actual content. If you want to make use of yours, 
>>> please use the “reset password” function to assign yourself a password, as 
>>> only the account names and email addresses were migrated, but no passwords.
>>> 
>>> Thanks for your patience, and thanks to my colleague Yana for doing the 
>>> migration
>>> Maik
>> 
> 

 ___
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: Forbidden - You don't have permission to access this resource.

2023-12-04 Thread Maik Musall via Webobjects-dev
Hi Ted,

no thanks, we’re still sitting on some funds for WOLips and feel bad that all 
our attemps so far to pay someone to improve that have failed…

Maik


> Am 04.12.2023 um 14:03 schrieb Theodore Petrosky :
> 
> Maik,
> 
> Fantastik!!!  You are great!   Password reset worked perfectly….
> 
> Should we talk about paying a fee to offset the license fee?
> 
> Ted
> 
>> On Dec 4, 2023, at 6:19 AM, Maik Musall  wrote:
>> 
>> Hi everyone,
>> 
>> the wiki is back up again at https://wiki.wocommunity.org 
>> . We migrated the Confluence stuff to Xwiki 
>> and are sponsoring the required “Pro Macros” license (350 EUR per year). 
>> Please report any problems you encounter.
>> 
>> There were more than 1000 user accounts, which we deleted most of, along 
>> with unused groups that don’t make sense any more. Left are 61 accounts that 
>> are associated with actual content. If you want to make use of yours, please 
>> use the “reset password” function to assign yourself a password, as only the 
>> account names and email addresses were migrated, but no passwords.
>> 
>> Thanks for your patience, and thanks to my colleague Yana for doing the 
>> migration
>> Maik
> 

 ___
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: Forbidden - You don't have permission to access this resource.

2023-12-04 Thread Theodore Petrosky via Webobjects-dev
Maik,

Fantastik!!!  You are great!   Password reset worked perfectly….

Should we talk about paying a fee to offset the license fee?

Ted

> On Dec 4, 2023, at 6:19 AM, Maik Musall  wrote:
> 
> Hi everyone,
> 
> the wiki is back up again at https://wiki.wocommunity.org 
> . We migrated the Confluence stuff to Xwiki 
> and are sponsoring the required “Pro Macros” license (350 EUR per year). 
> Please report any problems you encounter.
> 
> There were more than 1000 user accounts, which we deleted most of, along with 
> unused groups that don’t make sense any more. Left are 61 accounts that are 
> associated with actual content. If you want to make use of yours, please use 
> the “reset password” function to assign yourself a password, as only the 
> account names and email addresses were migrated, but no passwords.
> 
> Thanks for your patience, and thanks to my colleague Yana for doing the 
> migration
> Maik

 ___
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: Forbidden - You don't have permission to access this resource.

2023-12-04 Thread Maik Musall via Webobjects-dev
Hi everyone,

the wiki is back up again at https://wiki.wocommunity.org 
. We migrated the Confluence stuff to Xwiki and 
are sponsoring the required “Pro Macros” license (350 EUR per year). Please 
report any problems you encounter.

There were more than 1000 user accounts, which we deleted most of, along with 
unused groups that don’t make sense any more. Left are 61 accounts that are 
associated with actual content. If you want to make use of yours, please use 
the “reset password” function to assign yourself a password, as only the 
account names and email addresses were migrated, but no passwords.

Thanks for your patience, and thanks to my colleague Yana for doing the 
migration
Maik ___
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: Forbidden - You don't have permission to access this resource.

2023-12-03 Thread Theodore Petrosky via Webobjects-dev
I forgot about this. It is really fantastic. Buy the book It is a great 
reference to have. I also have it on my Kindle account….

Ted

> On Dec 3, 2023, at 7:13 AM, mailinglists via Webobjects-dev 
>  wrote:
> 
> Hi Kenji, 
> you should be able to follow the instructions on 
> https://learningthewonders.com 
> Site looks a bit outdated but nothing has changed in the recent years so I 
> did not bother to update its wordings (I am the author of the book “Learning 
> The Wonders” which is available from amazon in print as well as 
> electronically)
> 
> Have fun and come back with any question!
> ---markus---
> 
> 
>> On 3 Dec 2023, at 00:04, TsuruponKenny via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>> Hi All,
>> 
>> I'm WebObjecs, WOLisp beginner for several  years in very slow pace.   When 
>> I  install apples new OSX then install WOLisp ( WebObjects ) using Ant base 
>> with vintage document “Webobjects Tutorial “ .
>> 
>> I install Sonoma and to try to install normal WOF base but,  I could not 
>> find  very important web page : WOCommunity Web Page! 
>> 
>> I forgot  how to install the WebObjects  5.4.3  sepecial way.
>> 
>> Please   reopen the WebObjects web pages or send me archived home page 
>> documents( WOCommunity Developments and Deployments ).   
>>
>> Kenji Tsurumi 
>> 
>> Japan 
>> 
>>  
>> 
>> 
>> https://github.com/wocommunity___
>> 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/mailinglists%40kataputt.com
>> 
>> This email sent to mailingli...@kataputt.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/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


Re: Forbidden - You don't have permission to access this resource.

2023-12-03 Thread mailinglists via Webobjects-dev
Hi Kenji, 
you should be able to follow the instructions on https://learningthewonders.com 

Site looks a bit outdated but nothing has changed in the recent years so I did 
not bother to update its wordings (I am the author of the book “Learning The 
Wonders” which is available from amazon in print as well as electronically)

Have fun and come back with any question!
---markus---


> On 3 Dec 2023, at 00:04, TsuruponKenny via Webobjects-dev 
>  wrote:
> 
> Hi All,
> 
> I'm WebObjecs, WOLisp beginner for several  years in very slow pace.   When I 
>  install apples new OSX then install WOLisp ( WebObjects ) using Ant base 
> with vintage document “Webobjects Tutorial “ .
> 
> I install Sonoma and to try to install normal WOF base but,  I could not find 
>  very important web page : WOCommunity Web Page! 
> 
> I forgot  how to install the WebObjects  5.4.3  sepecial way.
> 
> Please   reopen the WebObjects web pages or send me archived home page 
> documents( WOCommunity Developments and Deployments ).   
>
> Kenji Tsurumi 
> 
> Japan 
> 
>  
> 
> 
> https://github.com/wocommunity___
> 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/mailinglists%40kataputt.com
> 
> This email sent to mailingli...@kataputt.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: Forbidden - You don't have permission to access this resource.

2023-12-02 Thread Theodore Petrosky via Webobjects-dev
The wocommunity wiki is temporarily down.

Hopefully, it will come back up soon.

Ted

> On Dec 2, 2023, at 6:04 PM, TsuruponKenny via Webobjects-dev 
>  wrote:
> 
> Hi All,
> 
> I'm WebObjecs, WOLisp beginner for several  years in very slow pace.   When I 
>  install apples new OSX then install WOLisp ( WebObjects ) using Ant base 
> with vintage document “Webobjects Tutorial “ .
> 
> I install Sonoma and to try to install normal WOF base but,  I could not find 
>  very important web page : WOCommunity Web Page! 
> 
> I forgot  how to install the WebObjects  5.4.3  sepecial way.
> 
> Please   reopen the WebObjects web pages or send me archived home page 
> documents( WOCommunity Developments and Deployments ).   
>
> Kenji Tsurumi 
> 
> Japan 
> 
>  
> 
> 
> https://github.com/wocommunity___
> 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/archive%40mail-archive.com

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


Re: FORBIDDEN

2023-12-02 Thread Paul Hoadley via Webobjects-dev
Thanks Maik. We all really appreciate the work.

> On 2 Dec 2023, at 6:36 am, Maik Musall via Webobjects-dev 
>  wrote:
> 
> Hi all,
> 
> sorry we didn’t make it yet. An OS update somehow messed up the document 
> space, and there are thousands of residual user accounts we need to clean 
> out, otherwise we would need to buy a very expensive license for a macro 
> plugin. Hang on.
> 
> Maik


-- 
Paul Hoadley
https://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


Re: FORBIDDEN

2023-12-01 Thread Theodore Petrosky via Webobjects-dev

Thank you


> On Nov 28, 2023, at 5:29 PM, Maik Musall  wrote:
> 
> Hi Ted,
> 
> I’m sorry I wrote this only in the Slack channel: we have xWiki up and 
> running, but there are a few quirks left to sort out. We aim to have it back 
> up until the end of the week.
> 
> Maik
> 
> 
>> Am 28.11.2023 um 21:35 schrieb Theodore Petrosky via Webobjects-dev 
>> :
>> 
>> Do we have any idea when the wiki can come back online?  
>> 
>> I have a new install one a Mac running Sonoma 14.1.1 that will not compile 
>> apps and as it is basically a new install, I would like to go over the 
>> install and see where I went wrong….. before I start asking for help…
>> 
>> Ted
>> 
>>> On Nov 18, 2023, at 4:50 PM, D Tim Cummings via Webobjects-dev 
>>>  wrote:
>>> 
>>> https://jenkins.wocommunity.org/job/WOLips_master/lastSuccessfulBuild/artifact/temp/dist/
>>> 
>>> 
>>> On 19/11/23 04:31, Theodore Petrosky via Webobjects-dev wrote:
 What are you using as the URL to update/install WOLips?
 
 
 
> On Nov 18, 2023, at 1:25 PM, Jesse Tayler  
>  wrote:
> 
> Yes, the wiki is DOWN — I noticed that literally yesterday or the day 
> before and forgot to mention —
> 
> Who’s hosting it?
> 
> 
> 
>> On Nov 18, 2023, at 12:19 PM, Theodore Petrosky via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>> I am trying to set ups new computer and I am getting a
>> 
>> Forbidden
>> 
>> You don't have permission to access this resource.
>> 
>> At this URL
>> 
>> https://wiki.wocommunity.org/display/documentation/How-tos
>> 
>> Help please!!
>> ___
>> 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/jtayler%40oeinc.com
>> 
>> This email sent to jtay...@oeinc.com 
 
 
  ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
 )
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/tim%40triptera.com.au
 
 This email sent to t...@triptera.com.au 
>>> ___
>>> 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/maik%40selbstdenker.ag
>> 
>> This email sent to m...@selbstdenker.ag
> 

 ___
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: FORBIDDEN

2023-12-01 Thread Maik Musall via Webobjects-dev
Hi all,

sorry we didn’t make it yet. An OS update somehow messed up the document space, 
and there are thousands of residual user accounts we need to clean out, 
otherwise we would need to buy a very expensive license for a macro plugin. 
Hang on.

Maik


> Am 28.11.2023 um 23:29 schrieb Maik Musall via Webobjects-dev 
> :
> 
> Hi Ted,
> 
> I’m sorry I wrote this only in the Slack channel: we have xWiki up and 
> running, but there are a few quirks left to sort out. We aim to have it back 
> up until the end of the week.
> 
> Maik
> 
> 
>> Am 28.11.2023 um 21:35 schrieb Theodore Petrosky via Webobjects-dev 
>> :
>> 
>> Do we have any idea when the wiki can come back online?  
>> 
>> I have a new install one a Mac running Sonoma 14.1.1 that will not compile 
>> apps and as it is basically a new install, I would like to go over the 
>> install and see where I went wrong….. before I start asking for help…
>> 
>> Ted
>> 
>>> On Nov 18, 2023, at 4:50 PM, D Tim Cummings via Webobjects-dev 
>>>  wrote:
>>> 
>>> https://jenkins.wocommunity.org/job/WOLips_master/lastSuccessfulBuild/artifact/temp/dist/
>>> 
>>> 
>>> On 19/11/23 04:31, Theodore Petrosky via Webobjects-dev wrote:
 What are you using as the URL to update/install WOLips?
 
 
 
> On Nov 18, 2023, at 1:25 PM, Jesse Tayler  
>  wrote:
> 
> Yes, the wiki is DOWN — I noticed that literally yesterday or the day 
> before and forgot to mention —
> 
> Who’s hosting it?
> 
> 
> 
>> On Nov 18, 2023, at 12:19 PM, Theodore Petrosky via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>> I am trying to set ups new computer and I am getting a
>> 
>> Forbidden
>> 
>> You don't have permission to access this resource.
>> 
>> At this URL
>> 
>> https://wiki.wocommunity.org/display/documentation/How-tos
>> 
>> Help please!!
>> ___
>> 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/jtayler%40oeinc.com
>> 
>> This email sent to jtay...@oeinc.com 
 
 
  ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
 )
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/tim%40triptera.com.au
 
 This email sent to t...@triptera.com.au 
>>> ___
>>> 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/maik%40selbstdenker.ag
>> 
>> This email sent to m...@selbstdenker.ag
> 
> ___
> 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/maik%40selbstdenker.ag
> 
> This email sent to m...@selbstdenker.ag

 ___
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: FORBIDDEN

2023-11-28 Thread Maik Musall via Webobjects-dev
Hi Ted,

I’m sorry I wrote this only in the Slack channel: we have xWiki up and running, 
but there are a few quirks left to sort out. We aim to have it back up until 
the end of the week.

Maik


> Am 28.11.2023 um 21:35 schrieb Theodore Petrosky via Webobjects-dev 
> :
> 
> Do we have any idea when the wiki can come back online?  
> 
> I have a new install one a Mac running Sonoma 14.1.1 that will not compile 
> apps and as it is basically a new install, I would like to go over the 
> install and see where I went wrong….. before I start asking for help…
> 
> Ted
> 
>> On Nov 18, 2023, at 4:50 PM, D Tim Cummings via Webobjects-dev 
>>  wrote:
>> 
>> https://jenkins.wocommunity.org/job/WOLips_master/lastSuccessfulBuild/artifact/temp/dist/
>> 
>> 
>> On 19/11/23 04:31, Theodore Petrosky via Webobjects-dev wrote:
>>> What are you using as the URL to update/install WOLips?
>>> 
>>> 
>>> 
 On Nov 18, 2023, at 1:25 PM, Jesse Tayler  
  wrote:
 
 Yes, the wiki is DOWN — I noticed that literally yesterday or the day 
 before and forgot to mention —
 
 Who’s hosting it?
 
 
 
> On Nov 18, 2023, at 12:19 PM, Theodore Petrosky via Webobjects-dev 
> mailto:webobjects-dev@lists.apple.com>> 
> wrote:
> 
> I am trying to set ups new computer and I am getting a
> 
> Forbidden
> 
> You don't have permission to access this resource.
> 
> At this URL
> 
> https://wiki.wocommunity.org/display/documentation/How-tos
> 
> Help please!!
> ___
> 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/jtayler%40oeinc.com
> 
> This email sent to jtay...@oeinc.com 
>>> 
>>> 
>>>  ___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>>> )
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/tim%40triptera.com.au
>>> 
>>> This email sent to t...@triptera.com.au 
>> ___
>> 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/maik%40selbstdenker.ag
> 
> This email sent to m...@selbstdenker.ag

 ___
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: FORBIDDEN

2023-11-28 Thread Theodore Petrosky via Webobjects-dev
Do we have any idea when the wiki can come back online?  

I have a new install one a Mac running Sonoma 14.1.1 that will not compile apps 
and as it is basically a new install, I would like to go over the install and 
see where I went wrong….. before I start asking for help…

Ted

> On Nov 18, 2023, at 4:50 PM, D Tim Cummings via Webobjects-dev 
>  wrote:
> 
> https://jenkins.wocommunity.org/job/WOLips_master/lastSuccessfulBuild/artifact/temp/dist/
> 
> 
> On 19/11/23 04:31, Theodore Petrosky via Webobjects-dev wrote:
>> What are you using as the URL to update/install WOLips?
>> 
>> 
>> 
>>> On Nov 18, 2023, at 1:25 PM, Jesse Tayler  
>>>  wrote:
>>> 
>>> Yes, the wiki is DOWN — I noticed that literally yesterday or the day 
>>> before and forgot to mention —
>>> 
>>> Who’s hosting it?
>>> 
>>> 
>>> 
 On Nov 18, 2023, at 12:19 PM, Theodore Petrosky via Webobjects-dev 
 mailto:webobjects-dev@lists.apple.com>> 
 wrote:
 
 I am trying to set ups new computer and I am getting a
 
 Forbidden
 
 You don't have permission to access this resource.
 
 At this URL
 
 https://wiki.wocommunity.org/display/documentation/How-tos
 
 Help please!!
 ___
 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/jtayler%40oeinc.com
 
 This email sent to jtay...@oeinc.com 
>> 
>> 
>>  ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> )
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/tim%40triptera.com.au
>> 
>> This email sent to t...@triptera.com.au 
> ___
> 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/archive%40mail-archive.com

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


Re: FORBIDDEN

2023-11-18 Thread D Tim Cummings via Webobjects-dev

https://jenkins.wocommunity.org/job/WOLips_master/lastSuccessfulBuild/artifact/temp/dist/

On 19/11/23 04:31, Theodore Petrosky via Webobjects-dev wrote:

What are you using as the URL to update/install WOLips?




On Nov 18, 2023, at 1:25 PM, Jesse Tayler  wrote:

Yes, the wiki is DOWN — I noticed that literally yesterday or the day 
before and forgot to mention —


Who’s hosting it?



On Nov 18, 2023, at 12:19 PM, Theodore Petrosky via Webobjects-dev 
 wrote:


I am trying to set ups new computer and I am getting a


  Forbidden

You don't have permission to access this resource.

At this URL

https://wiki.wocommunity.org/display/documentation/How-tos

Help please!!
___
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/jtayler%40oeinc.com

This email sent tojtay...@oeinc.com



  ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/tim%40triptera.com.au

This email sent to...@triptera.com.au ___
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: FORBIDDEN (WO Wiki)

2023-11-18 Thread Stephan Fürnrohr via Webobjects-dev
Hello everyone, 

we (Selbstdenker AG) are hosting it.

I think my colleague Mail at least posted it in the Slack channel:
Due to Atlassian's recent massive security issues in Confluence, we are in the 
process of migrating the WO Wiki from Confluence to XWiki.

In the meantime, we have restricted public access to the wiki.

I hope it will be back online in a few days.

We apologise for any inconvenience, but ultimately the constant need for 
emergency Confluence updates has led us to this decision.

Best regards,
Stephan


> Am 18.11.2023 um 19:25 schrieb Jesse Tayler via Webobjects-dev 
> :
> 
> Yes, the wiki is DOWN — I noticed that literally yesterday or the day before 
> and forgot to mention —
> 
> Who’s hosting it?
> 
> 
> 
>> On Nov 18, 2023, at 12:19 PM, Theodore Petrosky via Webobjects-dev 
>>  wrote:
>> 
>> I am trying to set ups new computer and I am getting a
>> 
>> Forbidden
>> 
>> You don't have permission to access this resource.
>> 
>> At this URL
>> 
>> https://wiki.wocommunity.org/display/documentation/How-tos
>> 
>> Help please!!
>> ___
>> 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/jtayler%40oeinc.com
>> 
>> This email sent to jtay...@oeinc.com
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/stephan%40selbstdenker.ag
> 
> This email sent to step...@selbstdenker.ag

 ___
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: FORBIDDEN

2023-11-18 Thread Jesse Tayler via Webobjects-dev
Hmmm…not sure where I got it, my dev setup is I think about three or five years 
old — 

> On Nov 18, 2023, at 1:31 PM, Theodore Petrosky  wrote:
> 
> What are you using as the URL to update/install WOLips?
> 
> 
> 
>> On Nov 18, 2023, at 1:25 PM, Jesse Tayler  wrote:
>> 
>> Yes, the wiki is DOWN — I noticed that literally yesterday or the day before 
>> and forgot to mention —
>> 
>> Who’s hosting it?
>> 
>> 
>> 
>>> On Nov 18, 2023, at 12:19 PM, Theodore Petrosky via Webobjects-dev 
>>> mailto:webobjects-dev@lists.apple.com>> 
>>> wrote:
>>> 
>>> I am trying to set ups new computer and I am getting a
>>> 
>>> Forbidden
>>> 
>>> You don't have permission to access this resource.
>>> 
>>> At this URL
>>> 
>>> https://wiki.wocommunity.org/display/documentation/How-tos
>>> 
>>> Help please!!
>>> ___
>>> 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/jtayler%40oeinc.com
>>> 
>>> This email sent to jtay...@oeinc.com 

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: FORBIDDEN

2023-11-18 Thread Theodore Petrosky via Webobjects-dev
What are you using as the URL to update/install WOLips?



> On Nov 18, 2023, at 1:25 PM, Jesse Tayler  wrote:
> 
> Yes, the wiki is DOWN — I noticed that literally yesterday or the day before 
> and forgot to mention —
> 
> Who’s hosting it?
> 
> 
> 
>> On Nov 18, 2023, at 12:19 PM, Theodore Petrosky via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>> I am trying to set ups new computer and I am getting a
>> 
>> Forbidden
>> 
>> You don't have permission to access this resource.
>> 
>> At this URL
>> 
>> https://wiki.wocommunity.org/display/documentation/How-tos
>> 
>> Help please!!
>> ___
>> 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/jtayler%40oeinc.com
>> 
>> This email sent to jtay...@oeinc.com 
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: FORBIDDEN

2023-11-18 Thread Jesse Tayler via Webobjects-dev
Yes, the wiki is DOWN — I noticed that literally yesterday or the day before 
and forgot to mention —

Who’s hosting it?



> On Nov 18, 2023, at 12:19 PM, Theodore Petrosky via Webobjects-dev 
>  wrote:
> 
> I am trying to set ups new computer and I am getting a
> 
> Forbidden
> 
> You don't have permission to access this resource.
> 
> At this URL
> 
> https://wiki.wocommunity.org/display/documentation/How-tos
> 
> Help please!!
> ___
> 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/jtayler%40oeinc.com
> 
> This email sent to jtay...@oeinc.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Replay request

2023-11-14 Thread Aaron Rosenzweig via Webobjects-dev
Excellent André, 

Glad you found an alternate way than trying to replay requests which would be 
brittle if you could get it to work. Your new way is much better with the 
lambdas. It’s basically blocks (like in Smalltalk) that you can execute when 
you want. Javascript does this quite a bit to with functions passed as 
variables. Thanks for sharing your pseudo-code :-)

> On Nov 14, 2023, at 12:01 PM, André Rothe  wrote:
> 
> Hi Aaron,
> 
> Thank you for your reply. That is a nice idea. At the end I have solved it 
> with Lambdas. The action on (3) contains not only a pageWithName(), it 
> initializes also the new component by calling some public method. So I moved 
> that stuff into a Lambda and store it within a class member field of the 
> current page.
> 
> 
> @FunctionalInterface
> public interface ConfirmedAction {
>  WOActionResults perform();
> }
> 
> public class MyPage extends WOComponent {
> 
> private ConfirmedAction userAction = null;
> 
> public WOActionResults myActionMethod() {
>   userAction = () -> {
>  MyNextPage nextPage = pageWithName(MyNextPage.class.getName())
>  nextPage.initSomething();
>  nextPage.initSomeOtherThings()
>  return nextPage;
>   };
>   return validateMyPage() ? userAction.perform() : this;
> }
> 
> // some further similar action methods...
> }
> 
> If the validation returns true, it executes the Lambda immediately, otherwise 
> it returns "this", but during the validation the condition for the waring 
> dialog overlay has been set (5b). So the dialog will be visible now.
> 
> On (7b) the user clicks "Proceed" within the dialog, which executes another 
> action method:
> 
> public WOActionResults proceedAction() {
>   hideDialog()
>   fixValidationProblem();
>   return userAction != null ? userAction.perform() : this;
> }
> 
> This will set the dialog condition to false, so the dialog will be removed on 
> the next page refresh, it fixes the validation problem and stores the changes 
> on the EC and will perform the stored action (i.e. the one from 
> myActionMethod) if available. In all other cases it goes to "this" again.
> 
> If I move the fixValidationProblem() also into a Lambda, I can reuse the code 
> structure for different warnings/validation problems. In the validateMyPage() 
> I can set specific "fix me" Lambdas for every problem that will be found.
> 
> Seems to work. Thanks for idea.
> André
> 
> Am 12.11.2023 03:01, schrieb Aaron Rosenzweig:
>> Hi André,
>> At step 3 can you store a variable that remembers the page the user
>> intends to go to?
>> maybe you can make an enum with all the possible pages they could go
>> to on the next step and the variable would be one of those values.
>> Then, in 7b, you can reference that variable and create the page to
>> send them to.
>>> On Nov 11, 2023, at 5:33 PM, André Rothe  wrote:
>>> Hi Aaron,
>>> Thank you for your answer. Here the more detailled workflow:
>>> 1. User goes to page A.
>>> 2. User clicks there on an element which submits the HTML
>>>  form and should show i.e. page B later (there are a
>>>  lot of possible things the user can do on page A which
>>>  submit the form and forwards the user to different pages).
>>> 3. Server executes the associated action method on the
>>>  PageAComponent.
>>> 4. Action method calls validateSomeThings().
>>> 5a. If validateSomeThings() returns true, the action
>>>   method will return i.e. page B as ActionResults.
>>> 5b. If validateSomeThings() returns false, the action
>>>   method will set a condition and returns page A again.
>>> 6. Because of the condition, the warning dialog (with two
>>>  buttons) will be shown on page A (as an overlay div).
>>> 7a. If the user clicks on "cancel" within the warning dialog,
>>>   a further action method on PageAComponent will be called.
>>>   It sets the condition back to false and returns
>>>   PageAComponent again as ActionResults.
>>> 7b. If the user clicks on "proceed" within the warning dialog,
>>>   a further action method on PageAComponent will be called.
>>>   It fixes the validation problem, sets the condition back
>>>   to false and should return i.e. PageBComponent.
>>> The problem is, that I don't know, which action method has been called on 
>>> (3) and which will be the next page, that should be shown on (7b). 
>>> Therefore I try to replay the initial request from (2) on (7b) to simulate 
>>> the initial action of the user.
>>> I can return PageAComponent on (7b) only, but then the user must repeat his 
>>> action on page A (which will not show the warning dialog this time). But 
>>> this is ugly.
>>> The question is, how I can solve that?
>>> Thanks!
>>> André
>>> Am 11.11.2023 01:46, schrieb Aaron Rosenzweig:
 Hi André,
 I didn’t fully understand but it sounds like maybe you are working too
 hard. It’s easier to hold onto WOComponents than it is to hold onto
 contexts. If you have an “old page” hold onto it and just return the
 page. If you don’t have the outermost page 

Re: Replay request

2023-11-14 Thread André Rothe via Webobjects-dev

Hi Aaron,

Thank you for your reply. That is a nice idea. At the end I have solved 
it with Lambdas. The action on (3) contains not only a pageWithName(), 
it initializes also the new component by calling some public method. So 
I moved that stuff into a Lambda and store it within a class member 
field of the current page.



@FunctionalInterface
public interface ConfirmedAction {
  WOActionResults perform();
}

public class MyPage extends WOComponent {

private ConfirmedAction userAction = null;

 public WOActionResults myActionMethod() {
   userAction = () -> {
  MyNextPage nextPage = pageWithName(MyNextPage.class.getName())
  nextPage.initSomething();
  nextPage.initSomeOtherThings()
  return nextPage;
   };
   return validateMyPage() ? userAction.perform() : this;
 }

 // some further similar action methods...
}

If the validation returns true, it executes the Lambda immediately, 
otherwise it returns "this", but during the validation the condition for 
the waring dialog overlay has been set (5b). So the dialog will be 
visible now.


On (7b) the user clicks "Proceed" within the dialog, which executes 
another action method:


public WOActionResults proceedAction() {
   hideDialog()
   fixValidationProblem();
   return userAction != null ? userAction.perform() : this;
}

This will set the dialog condition to false, so the dialog will be 
removed on the next page refresh, it fixes the validation problem and 
stores the changes on the EC and will perform the stored action (i.e. 
the one from myActionMethod) if available. In all other cases it goes to 
"this" again.


If I move the fixValidationProblem() also into a Lambda, I can reuse the 
code structure for different warnings/validation problems. In the 
validateMyPage() I can set specific "fix me" Lambdas for every problem 
that will be found.


Seems to work. Thanks for idea.
André

Am 12.11.2023 03:01, schrieb Aaron Rosenzweig:

Hi André,

At step 3 can you store a variable that remembers the page the user
intends to go to?

maybe you can make an enum with all the possible pages they could go
to on the next step and the variable would be one of those values.

Then, in 7b, you can reference that variable and create the page to
send them to.

On Nov 11, 2023, at 5:33 PM, André Rothe  
wrote:


Hi Aaron,

Thank you for your answer. Here the more detailled workflow:

1. User goes to page A.
2. User clicks there on an element which submits the HTML
  form and should show i.e. page B later (there are a
  lot of possible things the user can do on page A which
  submit the form and forwards the user to different pages).
3. Server executes the associated action method on the
  PageAComponent.
4. Action method calls validateSomeThings().
5a. If validateSomeThings() returns true, the action
   method will return i.e. page B as ActionResults.
5b. If validateSomeThings() returns false, the action
   method will set a condition and returns page A again.
6. Because of the condition, the warning dialog (with two
  buttons) will be shown on page A (as an overlay div).
7a. If the user clicks on "cancel" within the warning dialog,
   a further action method on PageAComponent will be called.
   It sets the condition back to false and returns
   PageAComponent again as ActionResults.
7b. If the user clicks on "proceed" within the warning dialog,
   a further action method on PageAComponent will be called.
   It fixes the validation problem, sets the condition back
   to false and should return i.e. PageBComponent.

The problem is, that I don't know, which action method has been called 
on (3) and which will be the next page, that should be shown on (7b). 
Therefore I try to replay the initial request from (2) on (7b) to 
simulate the initial action of the user.


I can return PageAComponent on (7b) only, but then the user must 
repeat his action on page A (which will not show the warning dialog 
this time). But this is ugly.


The question is, how I can solve that?

Thanks!
André


Am 11.11.2023 01:46, schrieb Aaron Rosenzweig:

Hi André,
I didn’t fully understand but it sounds like maybe you are working 
too

hard. It’s easier to hold onto WOComponents than it is to hold onto
contexts. If you have an “old page” hold onto it and just return the
page. If you don’t have the outermost page you can find that quickly
by doing “context().page()”
Hope that helps,
— Aaron
On Nov 10, 2023, at 3:09 AM, André Rothe via Webobjects-dev 
 wrote:

Hi,
I try to replay an old WORequest after some other 
request/response-loops, but I don't know, how it could work.
My application validates some values after the user clickes 
somewhere on a page. In the validation routine I don't know, which 
action the user has executed exactly. But the validation can be 
wrong, so I display another page (an overlay dialog over the current 
page), where the user can decide between "Cancel" and "Proceed". On 
"Cancel" I return the current page without the overlay, on "Proceed" 
I fix the 

Re: AjaxAutoComplete

2023-11-12 Thread Stavros Panidis via Webobjects-dev
No problem at all Tim. I will try a little bit more.

Thanks to all!

Stavros

> On 12 Nov 2023, at 3:56 AM, webobjects-dev-requ...@lists.apple.com wrote:
> 
> Send Webobjects-dev mailing list submissions to
>   webobjects-dev@lists.apple.com
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>   https://lists.apple.com/mailman/listinfo/webobjects-dev
> or, via email, send a message with subject or body 'help' to
>   webobjects-dev-requ...@lists.apple.com
> 
> You can reach the person managing the list at
>   webobjects-dev-ow...@lists.apple.com
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Webobjects-dev digest..."
> 
> 
> Today's Topics:
> 
>   1. Re: AjaxAutoComplete (D Tim Cummings)
>   2. Re: AjaxAutoComplete (Samuel Pelletier)
>   3. Re: Replay request (Andr? Rothe)
>   4. Re: AjaxAutoComplete (Aaron Rosenzweig)
> 
> 
> --
> 
> Message: 1
> Date: Sun, 12 Nov 2023 07:34:24 +1000
> From: D Tim Cummings 
> To: webobjects-dev@lists.apple.com
> Subject: Re: AjaxAutoComplete
> Message-ID: 
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
> 
> Hi Stavros
> 
> Sorry to mislead you. I thought you were looking for the behaviour of 
> AjaxObserveField to send updated data back to the server immediately 
> rather than updating a container on the current page. There may be a way 
> to do what you ask but I have never tried it. Maybe you could put some 
> javascript in afterUpdateElement to update a different field which is in 
> an AjaxObserveField.
> 
> Regards
> 
> Tim
> 
> On 10/11/23 20:55, Stavros Panidis wrote:
>> Tim,
>> 
>> Sorry!. I could not put it to work. I am sure that I am making 
>> something wrong.
>> 
>> My AjaxAutocomplete is
>> 
>> > class = "form-control" list = "$currentValuesForCustomers" selection = 
>> "$global" value = "$value" item = "$currentValue" />
>> 
>> And then I have a AjaxObserveField as follows
>> 
>> 
>> > "invoiceslist" action = "$customerSelected">
>> 
>> Can you see what I am doing wrong?
>> 
>> Stavros
>> 
>> 
>> 
>>> On 9 Nov 2023, at 10:00?PM, webobjects-dev-requ...@lists.apple.com wrote:
>>> 
>>> Send Webobjects-dev mailing list submissions to
>>> webobjects-dev@lists.apple.com
>>> 
>>> To subscribe or unsubscribe via the World Wide Web, visit
>>> https://lists.apple.com/mailman/listinfo/webobjects-dev
>>> or, via email, send a message with subject or body 'help' to
>>> webobjects-dev-requ...@lists.apple.com
>>> 
>>> You can reach the person managing the list at
>>> webobjects-dev-ow...@lists.apple.com
>>> 
>>> When replying, please edit your Subject line so it is more specific
>>> than "Re: Contents of Webobjects-dev digest..."
>>> 
>>> 
>>> Today's Topics:
>>> 
>>> ??1. AjaxAutoComplete (Stavros Panidis)
>>> ??2. Re: AjaxAutoComplete (D Tim Cummings)
>>> ??3. Re: AjaxAutoComplete (Jesse Tayler)
>>> 
>>> 
>>> --
>>> 
>>> Message: 1
>>> Date: Thu, 9 Nov 2023 09:54:40 +0200
>>> From: Stavros Panidis 
>>> To: webobjects-dev@lists.apple.com
>>> Subject: AjaxAutoComplete
>>> Message-ID: 
>>> Content-Type: text/plain;charset=us-ascii
>>> 
>>> Hi,
>>> 
>>> Is there any trick available to make AjaxAutoComplete field 
>>> observable (by AjaxAobserveField) ?
>>> 
>>> Many thanks in advance for your help
>>> 
>>> Stavros
>>> 
>>> --
>>> 
>>> Message: 2
>>> Date: Thu, 9 Nov 2023 20:00:33 +1000
>>> From: D Tim Cummings 
>>> To: webobjects-dev@lists.apple.com
>>> Subject: Re: AjaxAutoComplete
>>> Message-ID: 
>>> Content-Type: text/plain; charset=UTF-8; format=flowed
>>> 
>>> Set parameter afterUpdateElement to "observe" and it will behave like it
>>> is in an AjaxObserveField
>>> 
>>> >> "$theCustomerName" afterUpdateElement = "observe" />
>>> 
>>> Tim
>>> 
>>> On 9/11/23 17:54, Stavros Panidis via Webobjects-dev wrote:
>>>> Hi,
>>>> 
>

Re: Replay request

2023-11-11 Thread Aaron Rosenzweig via Webobjects-dev
Hi André,

At step 3 can you store a variable that remembers the page the user intends to 
go to? 

maybe you can make an enum with all the possible pages they could go to on the 
next step and the variable would be one of those values. 

Then, in 7b, you can reference that variable and create the page to send them 
to. 

> On Nov 11, 2023, at 5:33 PM, André Rothe  wrote:
> 
> Hi Aaron,
> 
> Thank you for your answer. Here the more detailled workflow:
> 
> 1. User goes to page A.
> 2. User clicks there on an element which submits the HTML
>   form and should show i.e. page B later (there are a
>   lot of possible things the user can do on page A which
>   submit the form and forwards the user to different pages).
> 3. Server executes the associated action method on the
>   PageAComponent.
> 4. Action method calls validateSomeThings().
> 5a. If validateSomeThings() returns true, the action
>method will return i.e. page B as ActionResults.
> 5b. If validateSomeThings() returns false, the action
>method will set a condition and returns page A again.
> 6. Because of the condition, the warning dialog (with two
>   buttons) will be shown on page A (as an overlay div).
> 7a. If the user clicks on "cancel" within the warning dialog,
>a further action method on PageAComponent will be called.
>It sets the condition back to false and returns
>PageAComponent again as ActionResults.
> 7b. If the user clicks on "proceed" within the warning dialog,
>a further action method on PageAComponent will be called.
>It fixes the validation problem, sets the condition back
>to false and should return i.e. PageBComponent.
> 
> The problem is, that I don't know, which action method has been called on (3) 
> and which will be the next page, that should be shown on (7b). Therefore I 
> try to replay the initial request from (2) on (7b) to simulate the initial 
> action of the user.
> 
> I can return PageAComponent on (7b) only, but then the user must repeat his 
> action on page A (which will not show the warning dialog this time). But this 
> is ugly.
> 
> The question is, how I can solve that?
> 
> Thanks!
> André
> 
> 
> Am 11.11.2023 01:46, schrieb Aaron Rosenzweig:
>> Hi André,
>> I didn’t fully understand but it sounds like maybe you are working too
>> hard. It’s easier to hold onto WOComponents than it is to hold onto
>> contexts. If you have an “old page” hold onto it and just return the
>> page. If you don’t have the outermost page you can find that quickly
>> by doing “context().page()”
>> Hope that helps,
>> — Aaron
>>> On Nov 10, 2023, at 3:09 AM, André Rothe via Webobjects-dev 
>>>  wrote:
>>> Hi,
>>> I try to replay an old WORequest after some other request/response-loops, 
>>> but I don't know, how it could work.
>>> My application validates some values after the user clickes somewhere on a 
>>> page. In the validation routine I don't know, which action the user has 
>>> executed exactly. But the validation can be wrong, so I display another 
>>> page (an overlay dialog over the current page), where the user can decide 
>>> between "Cancel" and "Proceed". On "Cancel" I return the current page 
>>> without the overlay, on "Proceed" I fix the problem in the validation and 
>>> now I can go back to the current page too, but the user has to execute his 
>>> action again.
>>> Can I automatically execute the previous request? I can store the 
>>> context-Id of the source page (before overlay) like:
>>> String oldCtxId = context().contextId();
>>> WORequest oldReq = context().request();
>>> and after the data fixes (user has clicked on "Proceed", WO calls the 
>>> associated action like proceedChangeAction() on my page component) I could 
>>> restore the source page from the cache:
>>> WOComponent oldPage = session().restorePageForContextID(oldCtxId);
>>> And now I could send the "oldReq" to the component "oldPage". How can I do 
>>> that, to solve the problem?
>>> Thanks a lot
>>> André
>>> ___
>>> 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/aaron%40chatnbike.com
>>> This email sent to aa...@chatnbike.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: AjaxAutoComplete

2023-11-11 Thread Aaron Rosenzweig via Webobjects-dev
That’s clever Samuel. Using the components as building blocks to piggy back 
from each other. Bravo :-)

> On Nov 11, 2023, at 5:12 PM, Samuel Pelletier via Webobjects-dev 
>  wrote:
> 
> Hi,
> 
> I managed to achieve your goal in my apps using this pattern :
>   - Create a submit js function using an AjaxSubmitButton
>   - Use the created function in afterUpdateElement on AjaxAutoComplete. 
> 
>  "addLigneAvecFormat" action = "$selectionnerProduit" />
> 
> 
> Regards,
> 
> Samuel
> 
> 
>> Le 10 nov. 2023 à 05:55, Stavros Panidis via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> a 
>> écrit :
>> 
>> Tim,
>> 
>> Sorry!. I could not put it to work. I am sure that I am making something 
>> wrong.
>> 
>> My AjaxAutocomplete is
>> 
>> > "form-control" list = "$currentValuesForCustomers" selection = "$global" 
>> value = "$value" item = "$currentValue" />
>> 
>> And then I have a AjaxObserveField as follows
>> 
>> 
>> > "invoiceslist" action = "$customerSelected">
>> 
>> 
>> Can you see what I am doing wrong?
>> 
>> Stavros
>> 
>> 
>> 
>>> On 9 Nov 2023, at 10:00 PM, webobjects-dev-requ...@lists.apple.com wrote:
>>> 
>>> Send Webobjects-dev mailing list submissions to
>>> webobjects-dev@lists.apple.com
>>> 
>>> To subscribe or unsubscribe via the World Wide Web, visit
>>> https://lists.apple.com/mailman/listinfo/webobjects-dev
>>> or, via email, send a message with subject or body 'help' to
>>> webobjects-dev-requ...@lists.apple.com
>>> 
>>> You can reach the person managing the list at
>>> webobjects-dev-ow...@lists.apple.com
>>> 
>>> When replying, please edit your Subject line so it is more specific
>>> than "Re: Contents of Webobjects-dev digest..."
>>> 
>>> 
>>> Today's Topics:
>>> 
>>>   1. AjaxAutoComplete (Stavros Panidis)
>>>   2. Re: AjaxAutoComplete (D Tim Cummings)
>>>   3. Re: AjaxAutoComplete (Jesse Tayler)
>>> 
>>> 
>>> --
>>> 
>>> Message: 1
>>> Date: Thu, 9 Nov 2023 09:54:40 +0200
>>> From: Stavros Panidis 
>>> To: webobjects-dev@lists.apple.com
>>> Subject: AjaxAutoComplete
>>> Message-ID: 
>>> Content-Type: text/plain;   charset=us-ascii
>>> 
>>> Hi,
>>> 
>>> Is there any trick available to make AjaxAutoComplete field observable (by 
>>> AjaxAobserveField) ?
>>> 
>>> Many thanks in advance for your help
>>> 
>>> Stavros
>>> 
>>> --
>>> 
>>> Message: 2
>>> Date: Thu, 9 Nov 2023 20:00:33 +1000
>>> From: D Tim Cummings 
>>> To: webobjects-dev@lists.apple.com
>>> Subject: Re: AjaxAutoComplete
>>> Message-ID: 
>>> Content-Type: text/plain; charset=UTF-8; format=flowed
>>> 
>>> Set parameter afterUpdateElement to "observe" and it will behave like it 
>>> is in an AjaxObserveField
>>> 
>>> >> "$theCustomerName" afterUpdateElement = "observe" />
>>> 
>>> Tim
>>> 
>>> On 9/11/23 17:54, Stavros Panidis via Webobjects-dev wrote:
>>>> Hi,
>>>> 
>>>> Is there any trick available to make AjaxAutoComplete field observable (by 
>>>> AjaxAobserveField) ?
>>>> 
>>>> Many thanks in advance for your help
>>>> 
>>>> Stavros
>>>>  ___
>>>> 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/tim%40triptera.com.au
>>>> 
>>>> This email sent to t...@triptera.com.au
>>> 
>>> 
>>> --
>>> 
>>> Message: 3
>>> Date: Thu, 9 Nov 2023 12:00:52 -0500
>>> From: Jesse Tayler 
>>> To: D Tim Cummings 
>>> Cc: webobjects-dev@lists.apple.com
>>> Subject: Re: AjaxAutoComplete
>>> Message-ID: <48f21de2-2301-4c1f-a473-25d1850a4...@oeinc.com>
>>> Conte

Re: Replay request

2023-11-11 Thread André Rothe via Webobjects-dev

Hi Aaron,

Thank you for your answer. Here the more detailled workflow:

1. User goes to page A.
2. User clicks there on an element which submits the HTML
   form and should show i.e. page B later (there are a
   lot of possible things the user can do on page A which
   submit the form and forwards the user to different pages).
3. Server executes the associated action method on the
   PageAComponent.
4. Action method calls validateSomeThings().
5a. If validateSomeThings() returns true, the action
method will return i.e. page B as ActionResults.
5b. If validateSomeThings() returns false, the action
method will set a condition and returns page A again.
6. Because of the condition, the warning dialog (with two
   buttons) will be shown on page A (as an overlay div).
7a. If the user clicks on "cancel" within the warning dialog,
a further action method on PageAComponent will be called.
It sets the condition back to false and returns
PageAComponent again as ActionResults.
7b. If the user clicks on "proceed" within the warning dialog,
a further action method on PageAComponent will be called.
It fixes the validation problem, sets the condition back
to false and should return i.e. PageBComponent.

The problem is, that I don't know, which action method has been called 
on (3) and which will be the next page, that should be shown on (7b). 
Therefore I try to replay the initial request from (2) on (7b) to 
simulate the initial action of the user.


I can return PageAComponent on (7b) only, but then the user must repeat 
his action on page A (which will not show the warning dialog this time). 
But this is ugly.


The question is, how I can solve that?

Thanks!
André


Am 11.11.2023 01:46, schrieb Aaron Rosenzweig:

Hi André,

I didn’t fully understand but it sounds like maybe you are working too
hard. It’s easier to hold onto WOComponents than it is to hold onto
contexts. If you have an “old page” hold onto it and just return the
page. If you don’t have the outermost page you can find that quickly
by doing “context().page()”

Hope that helps,
— Aaron

On Nov 10, 2023, at 3:09 AM, André Rothe via Webobjects-dev 
 wrote:


Hi,

I try to replay an old WORequest after some other 
request/response-loops, but I don't know, how it could work.


My application validates some values after the user clickes somewhere 
on a page. In the validation routine I don't know, which action the 
user has executed exactly. But the validation can be wrong, so I 
display another page (an overlay dialog over the current page), where 
the user can decide between "Cancel" and "Proceed". On "Cancel" I 
return the current page without the overlay, on "Proceed" I fix the 
problem in the validation and now I can go back to the current page 
too, but the user has to execute his action again.


Can I automatically execute the previous request? I can store the 
context-Id of the source page (before overlay) like:


String oldCtxId = context().contextId();
WORequest oldReq = context().request();

and after the data fixes (user has clicked on "Proceed", WO calls the 
associated action like proceedChangeAction() on my page component) I 
could restore the source page from the cache:


WOComponent oldPage = session().restorePageForContextID(oldCtxId);

And now I could send the "oldReq" to the component "oldPage". How can 
I do that, to solve the problem?


Thanks a lot
André
___
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/aaron%40chatnbike.com

This email sent to aa...@chatnbike.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: AjaxAutoComplete

2023-11-11 Thread Samuel Pelletier via Webobjects-dev
Hi,

I managed to achieve your goal in my apps using this pattern :
- Create a submit js function using an AjaxSubmitButton
- Use the created function in afterUpdateElement on AjaxAutoComplete. 




Regards,

Samuel


> Le 10 nov. 2023 à 05:55, Stavros Panidis via Webobjects-dev 
>  a écrit :
> 
> Tim,
> 
> Sorry!. I could not put it to work. I am sure that I am making something 
> wrong.
> 
> My AjaxAutocomplete is
> 
>  "form-control" list = "$currentValuesForCustomers" selection = "$global" 
> value = "$value" item = "$currentValue" />
> 
> And then I have a AjaxObserveField as follows
> 
> 
>  "invoiceslist" action = "$customerSelected">
> 
> 
> Can you see what I am doing wrong?
> 
> Stavros
> 
> 
> 
>> On 9 Nov 2023, at 10:00 PM, webobjects-dev-requ...@lists.apple.com wrote:
>> 
>> Send Webobjects-dev mailing list submissions to
>>  webobjects-dev@lists.apple.com
>> 
>> To subscribe or unsubscribe via the World Wide Web, visit
>>  https://lists.apple.com/mailman/listinfo/webobjects-dev
>> or, via email, send a message with subject or body 'help' to
>>  webobjects-dev-requ...@lists.apple.com
>> 
>> You can reach the person managing the list at
>>  webobjects-dev-ow...@lists.apple.com
>> 
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Webobjects-dev digest..."
>> 
>> 
>> Today's Topics:
>> 
>>   1. AjaxAutoComplete (Stavros Panidis)
>>   2. Re: AjaxAutoComplete (D Tim Cummings)
>>   3. Re: AjaxAutoComplete (Jesse Tayler)
>> 
>> 
>> --
>> 
>> Message: 1
>> Date: Thu, 9 Nov 2023 09:54:40 +0200
>> From: Stavros Panidis 
>> To: webobjects-dev@lists.apple.com
>> Subject: AjaxAutoComplete
>> Message-ID: 
>> Content-Type: text/plain;charset=us-ascii
>> 
>> Hi,
>> 
>> Is there any trick available to make AjaxAutoComplete field observable (by 
>> AjaxAobserveField) ?
>> 
>> Many thanks in advance for your help
>> 
>> Stavros
>> 
>> --
>> 
>> Message: 2
>> Date: Thu, 9 Nov 2023 20:00:33 +1000
>> From: D Tim Cummings 
>> To: webobjects-dev@lists.apple.com
>> Subject: Re: AjaxAutoComplete
>> Message-ID: 
>> Content-Type: text/plain; charset=UTF-8; format=flowed
>> 
>> Set parameter afterUpdateElement to "observe" and it will behave like it 
>> is in an AjaxObserveField
>> 
>> > "$theCustomerName" afterUpdateElement = "observe" />
>> 
>> Tim
>> 
>> On 9/11/23 17:54, Stavros Panidis via Webobjects-dev wrote:
>>> Hi,
>>> 
>>> Is there any trick available to make AjaxAutoComplete field observable (by 
>>> AjaxAobserveField) ?
>>> 
>>> Many thanks in advance for your help
>>> 
>>> Stavros
>>>  ___
>>> 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/tim%40triptera.com.au
>>> 
>>> This email sent to t...@triptera.com.au
>> 
>> 
>> --
>> 
>> Message: 3
>> Date: Thu, 9 Nov 2023 12:00:52 -0500
>> From: Jesse Tayler 
>> To: D Tim Cummings 
>> Cc: webobjects-dev@lists.apple.com
>> Subject: Re: AjaxAutoComplete
>> Message-ID: <48f21de2-2301-4c1f-a473-25d1850a4...@oeinc.com>
>> Content-Type: text/plain; charset="utf-8"
>> 
>> I have used Ajax quite easily on a couple of components and for some reason, 
>> implementing even the simplest test was failing on updating a component of a 
>> similar sort.
>> 
>> Before I make a wholly new component ? are there flags or tests aside from 
>> jQuery which seems fine? I don?t readily see why this just isn?t seemingly 
>> observing and updating the way I expect?
>> 
>> Thoughts?
>> 
>>> On Nov 9, 2023, at 5:00 AM, D Tim Cummings via Webobjects-dev 
>>>  wrote:
>>> 
>>> Set parameter afterUpdateElement to "observe" and it will behave like it is 
>>> in an AjaxObserveField
>>> 
>>> >> "$theCustomerName" afterUpdateElement = "ob

Re: AjaxAutoComplete

2023-11-11 Thread D Tim Cummings via Webobjects-dev

Hi Stavros

Sorry to mislead you. I thought you were looking for the behaviour of 
AjaxObserveField to send updated data back to the server immediately 
rather than updating a container on the current page. There may be a way 
to do what you ask but I have never tried it. Maybe you could put some 
javascript in afterUpdateElement to update a different field which is in 
an AjaxObserveField.


Regards

Tim

On 10/11/23 20:55, Stavros Panidis wrote:

Tim,

Sorry!. I could not put it to work. I am sure that I am making 
something wrong.


My AjaxAutocomplete is

class = "form-control" list = "$currentValuesForCustomers" selection = 
"$global" value = "$value" item = "$currentValue" />


And then I have a AjaxObserveField as follows


"invoiceslist" action = "$customerSelected">


Can you see what I am doing wrong?

Stavros




On 9 Nov 2023, at 10:00 PM, webobjects-dev-requ...@lists.apple.com wrote:

Send Webobjects-dev mailing list submissions to
webobjects-dev@lists.apple.com

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.apple.com/mailman/listinfo/webobjects-dev
or, via email, send a message with subject or body 'help' to
webobjects-dev-requ...@lists.apple.com

You can reach the person managing the list at
webobjects-dev-ow...@lists.apple.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Webobjects-dev digest..."


Today's Topics:

  1. AjaxAutoComplete (Stavros Panidis)
  2. Re: AjaxAutoComplete (D Tim Cummings)
  3. Re: AjaxAutoComplete (Jesse Tayler)


--

Message: 1
Date: Thu, 9 Nov 2023 09:54:40 +0200
From: Stavros Panidis 
To: webobjects-dev@lists.apple.com
Subject: AjaxAutoComplete
Message-ID: 
Content-Type: text/plain;charset=us-ascii

Hi,

Is there any trick available to make AjaxAutoComplete field 
observable (by AjaxAobserveField) ?


Many thanks in advance for your help

Stavros

--

Message: 2
Date: Thu, 9 Nov 2023 20:00:33 +1000
From: D Tim Cummings 
To: webobjects-dev@lists.apple.com
Subject: Re: AjaxAutoComplete
Message-ID: 
Content-Type: text/plain; charset=UTF-8; format=flowed

Set parameter afterUpdateElement to "observe" and it will behave like it
is in an AjaxObserveField



Tim

On 9/11/23 17:54, Stavros Panidis via Webobjects-dev wrote:

Hi,

Is there any trick available to make AjaxAutoComplete field 
observable (by AjaxAobserveField) ?


Many thanks in advance for your help

Stavros
 ___
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/tim%40triptera.com.au

This email sent to t...@triptera.com.au



--

Message: 3
Date: Thu, 9 Nov 2023 12:00:52 -0500
From: Jesse Tayler 
To: D Tim Cummings 
Cc: webobjects-dev@lists.apple.com
Subject: Re: AjaxAutoComplete
Message-ID: <48f21de2-2301-4c1f-a473-25d1850a4...@oeinc.com>
Content-Type: text/plain; charset="utf-8"

I have used Ajax quite easily on a couple of components and for some 
reason, implementing even the simplest test was failing on updating a 
component of a similar sort.


Before I make a wholly new component ? are there flags or tests aside 
from jQuery which seems fine? I don?t readily see why this just isn?t 
seemingly observing and updating the way I expect?


Thoughts?

On Nov 9, 2023, at 5:00 AM, D Tim Cummings via Webobjects-dev 
 wrote:


Set parameter afterUpdateElement to "observe" and it will behave 
like it is in an AjaxObserveField


"$theCustomerName" afterUpdateElement = "observe" />


Tim

On 9/11/23 17:54, Stavros Panidis via Webobjects-dev wrote:

Hi,

Is there any trick available to make AjaxAutoComplete field 
observable (by AjaxAobserveField) ?


Many thanks in advance for your help

Stavros
___
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/tim%40triptera.com.au

This email sent to t...@triptera.com.au

___
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/jtayler%40oeinc.com

This email sent to jtay...@oeinc.com


-- next part --
An HTML attachment was scrubbed...
URL: 
<https://lists.apple.com/archives/webobjects-dev/attachments/20231109/a4ce1245/attachment.htm>


-

Re: Replay request

2023-11-10 Thread Aaron Rosenzweig via Webobjects-dev
Hi André,

I didn’t fully understand but it sounds like maybe you are working too hard. 
It’s easier to hold onto WOComponents than it is to hold onto contexts. If you 
have an “old page” hold onto it and just return the page. If you don’t have the 
outermost page you can find that quickly by doing “context().page()”

Hope that helps,
— Aaron

> On Nov 10, 2023, at 3:09 AM, André Rothe via Webobjects-dev 
>  wrote:
> 
> Hi,
> 
> I try to replay an old WORequest after some other request/response-loops, but 
> I don't know, how it could work.
> 
> My application validates some values after the user clickes somewhere on a 
> page. In the validation routine I don't know, which action the user has 
> executed exactly. But the validation can be wrong, so I display another page 
> (an overlay dialog over the current page), where the user can decide between 
> "Cancel" and "Proceed". On "Cancel" I return the current page without the 
> overlay, on "Proceed" I fix the problem in the validation and now I can go 
> back to the current page too, but the user has to execute his action again.
> 
> Can I automatically execute the previous request? I can store the context-Id 
> of the source page (before overlay) like:
> 
> String oldCtxId = context().contextId();
> WORequest oldReq = context().request();
> 
> and after the data fixes (user has clicked on "Proceed", WO calls the 
> associated action like proceedChangeAction() on my page component) I could 
> restore the source page from the cache:
> 
> WOComponent oldPage = session().restorePageForContextID(oldCtxId);
> 
> And now I could send the "oldReq" to the component "oldPage". How can I do 
> that, to solve the problem?
> 
> Thanks a lot
> André
> ___
> 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/aaron%40chatnbike.com
> 
> This email sent to aa...@chatnbike.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: AjaxAutoComplete

2023-11-09 Thread Jesse Tayler via Webobjects-dev
I have used Ajax quite easily on a couple of components and for some reason, 
implementing even the simplest test was failing on updating a component of a 
similar sort.

Before I make a wholly new component — are there flags or tests aside from 
jQuery which seems fine? I don’t readily see why this just isn’t seemingly 
observing and updating the way I expect?

Thoughts?

> On Nov 9, 2023, at 5:00 AM, D Tim Cummings via Webobjects-dev 
>  wrote:
> 
> Set parameter afterUpdateElement to "observe" and it will behave like it is 
> in an AjaxObserveField
> 
>  "$theCustomerName" afterUpdateElement = "observe" />
> 
> Tim
> 
> On 9/11/23 17:54, Stavros Panidis via Webobjects-dev wrote:
>> Hi,
>> 
>> Is there any trick available to make AjaxAutoComplete field observable (by 
>> AjaxAobserveField) ?
>> 
>> Many thanks in advance for your help
>> 
>> Stavros
>>  ___
>> 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/tim%40triptera.com.au
>> 
>> This email sent to t...@triptera.com.au
> ___
> 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/jtayler%40oeinc.com
> 
> This email sent to jtay...@oeinc.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: AjaxAutoComplete

2023-11-09 Thread D Tim Cummings via Webobjects-dev
Set parameter afterUpdateElement to "observe" and it will behave like it 
is in an AjaxObserveField


"$theCustomerName" afterUpdateElement = "observe" />


Tim

On 9/11/23 17:54, Stavros Panidis via Webobjects-dev wrote:

Hi,

Is there any trick available to make AjaxAutoComplete field observable (by 
AjaxAobserveField) ?

Many thanks in advance for your help

Stavros
  ___
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/tim%40triptera.com.au

This email sent to t...@triptera.com.au

___
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   3   4   5   6   7   8   9   10   >