Enabling HTTP Content-Security-Policy (CSP) in WebObjects/WOnder-Ajax based applications?

2023-03-08 Thread René Bock via Webobjects-dev
Hi,

has anybody ever successfully enabled the HTTP Content-Security-Policy in a 
WOnder application – especially when the Ajax-Framework is heavily used?

From my point of view, there are three main challenges to overcome when 
implementing the CSP:

* inline script code
* DOM event handlers as HTML attributes 
* evals 


Especially when using the 'unsafe-inline', 'unsafe-eval' etc. keywords are not 
an option.



Regards

René


--
Phone: +49 69 650096 18
salient GmbH // Lindleystraße 12 // 60314 Frankfurt
Amtsgericht Frankfurt am Main // salient GmbH HRB 48693

 ___
Do not post admin requests to the list. They will 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: Headers and AJAX?

2020-10-05 Thread Samuel Pelletier via Webobjects-dev
Jesse,

I had to dig in the past to find out where I had this situation to handle.

There are few http headers to add on the server where the function are called.

Access-Control-Allow-Origin: origin addresses allowed to call the functions //

Access-Control-Allow-Credentials: true  // if you need to have cookies 
previously set.

Access-Control-Allow-Headers : headerList // Headers accepted in request (from 
the javascript to server code)

Access-Control-Expose-Headers : headerList // Headers returned in responses 
(from the server to javascript)

Regards,

Samuel



https://web.kaviju.com"; />






> Le 3 oct. 2020 à 12:06, Jesse Tayler  a écrit :
> 
> Right, so CORS is basically a browser thing and thus my command line or 
> mobile app requests have all worked
> 
> So, I added in my virtual host apache configuration
> 
>   Header set Access-Control-Allow-Origin "*"
> 
> But I’m not sure that’s allowing the headers through still?
> 
> Imagine a node.js server will just hit an API->JSON and I need to get a Key 
> privately from that request
> 
> I realize I’m just using those javascript fiddle editor things like postman 
> or whatever which I suppose isn’t entirely the same as a node.js request from 
> a server since I guess the request is coming out of the web page/browser in 
> those cases.
> 
> hmm…
> 
> 
>> On Oct 3, 2020, at 11:46 AM, Samuel Pelletier > <mailto:sam...@samkar.com>> wrote:
>> 
>> Hi Jesee,
>> 
>> If your queries are crossing origins, you need to add CORS headers in your 
>> responses or on your server configuration.
>> 
>> Those includes rules for allowed cookies and headers.
>> 
>> I do not think they are required for same origin requests but this may be 
>> something added lately.
>> 
>> Regards,
>> 
>> Samuel
>> 
>>> Le 3 oct. 2020 à 08:18, Jesse Tayler via Webobjects-dev 
>>> mailto:webobjects-dev@lists.apple.com>> a 
>>> écrit :
>>> 
>>> 
>>> I have relied on passing auth keys in headers from mobile apps and scripts.
>>> 
>>> I can even stuff a header into a curl statement
>>> 
>>> curl -H "Authorization: MY_PRIVATE_KEY"
>>> 
>>> In WO I can simply ask
>>> 
>>> request().headerForKey("Authorization”);
>>> 
>>> And I get that key,  always works as I’d expect
>>> 
>>> now I’m testing some AJAX and I see a few things
>>> 
>>> 1. It makes my header lowercase?
>>> 2. I can print out all headers and all keys from WO and I can see my header 
>>> listed but I’m never able to read it? Even if I use lowercase or change 
>>> keys I never get a header in WO when I send it from AJAX
>>> 
>>> How could this be?
>>> 
>>> Is this some OTHER form of header or something?
>>> 
>>> 
>>> I try a few ways to insert headers all to the same effect
>>> 
>>> 
>>> 
>>> beforeSend: function (xhr) {
>>> xhr.setRequestHeader ("Authorization", "MY_PRIVATE_KEY”);
>>> },
>>> 
>>> 
>>> 
>>> 
>>> Or--
>>> 
>>> 
>>> 
>>> headers: {
>>>  "Authorization": "MY_PRIVATE_KEY”,
>>> "my-second-header": "second value”
>>> },
>>> 
>>> 
>>> ___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>>> <mailto:Webobjects-dev@lists.apple.com>)
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com 
>>> <https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com>
>>> 
>>> This email sent to sam...@samkar.com
>> 
> 

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

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


Re: Headers and AJAX?

2020-10-03 Thread Jesse Tayler via Webobjects-dev
Right, so CORS is basically a browser thing and thus my command line or mobile 
app requests have all worked

So, I added in my virtual host apache configuration

Header set Access-Control-Allow-Origin "*"

But I’m not sure that’s allowing the headers through still?

Imagine a node.js server will just hit an API->JSON and I need to get a Key 
privately from that request

I realize I’m just using those javascript fiddle editor things like postman or 
whatever which I suppose isn’t entirely the same as a node.js request from a 
server since I guess the request is coming out of the web page/browser in those 
cases.

hmm…


> On Oct 3, 2020, at 11:46 AM, Samuel Pelletier  wrote:
> 
> Hi Jesee,
> 
> If your queries are crossing origins, you need to add CORS headers in your 
> responses or on your server configuration.
> 
> Those includes rules for allowed cookies and headers.
> 
> I do not think they are required for same origin requests but this may be 
> something added lately.
> 
> Regards,
> 
> Samuel
> 
>> Le 3 oct. 2020 à 08:18, Jesse Tayler via Webobjects-dev 
>>  a écrit :
>> 
>> 
>> I have relied on passing auth keys in headers from mobile apps and scripts.
>> 
>> I can even stuff a header into a curl statement
>> 
>>  curl -H "Authorization: MY_PRIVATE_KEY"
>> 
>> In WO I can simply ask
>> 
>>  request().headerForKey("Authorization”);
>> 
>> And I get that key,  always works as I’d expect
>> 
>> now I’m testing some AJAX and I see a few things
>> 
>> 1. It makes my header lowercase?
>> 2. I can print out all headers and all keys from WO and I can see my header 
>> listed but I’m never able to read it? Even if I use lowercase or change keys 
>> I never get a header in WO when I send it from AJAX
>> 
>> How could this be?
>> 
>> Is this some OTHER form of header or something?
>> 
>> 
>> I try a few ways to insert headers all to the same effect
>> 
>> 
>> 
>>  beforeSend: function (xhr) {
>>  xhr.setRequestHeader ("Authorization", "MY_PRIVATE_KEY”);
>>  },
>> 
>> 
>> 
>> 
>> Or--
>> 
>> 
>> 
>>  headers: {
>>   "Authorization": "MY_PRIVATE_KEY”,
>>  "my-second-header": "second value”
>>  },
>> 
>> 
>> ___
>> Do not post admin requests to the list. They will 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: Headers and AJAX?

2020-10-03 Thread Samuel Pelletier via Webobjects-dev
Hi Jesee,

If your queries are crossing origins, you need to add CORS headers in your 
responses or on your server configuration.

Those includes rules for allowed cookies and headers.

I do not think they are required for same origin requests but this may be 
something added lately.

Regards,

Samuel

> Le 3 oct. 2020 à 08:18, Jesse Tayler via Webobjects-dev 
>  a écrit :
> 
> 
> I have relied on passing auth keys in headers from mobile apps and scripts.
> 
> I can even stuff a header into a curl statement
> 
>   curl -H "Authorization: MY_PRIVATE_KEY"
> 
> In WO I can simply ask
> 
>   request().headerForKey("Authorization”);
> 
> And I get that key,  always works as I’d expect
> 
> now I’m testing some AJAX and I see a few things
> 
> 1. It makes my header lowercase?
> 2. I can print out all headers and all keys from WO and I can see my header 
> listed but I’m never able to read it? Even if I use lowercase or change keys 
> I never get a header in WO when I send it from AJAX
> 
> How could this be?
> 
> Is this some OTHER form of header or something?
> 
> 
> I try a few ways to insert headers all to the same effect
> 
> 
> 
>   beforeSend: function (xhr) {
>   xhr.setRequestHeader ("Authorization", "MY_PRIVATE_KEY”);
>   },
> 
> 
> 
> 
> Or--
> 
> 
> 
>   headers: {
>"Authorization": "MY_PRIVATE_KEY”,
>   "my-second-header": "second value”
>   },
> 
> 
> ___
> Do not post admin requests to the list. They will 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


Headers and AJAX?

2020-10-03 Thread Jesse Tayler via Webobjects-dev

I have relied on passing auth keys in headers from mobile apps and scripts.

I can even stuff a header into a curl statement

curl -H "Authorization: MY_PRIVATE_KEY"

In WO I can simply ask

request().headerForKey("Authorization”);

And I get that key,  always works as I’d expect

now I’m testing some AJAX and I see a few things

1. It makes my header lowercase?
2. I can print out all headers and all keys from WO and I can see my header 
listed but I’m never able to read it? Even if I use lowercase or change keys I 
never get a header in WO when I send it from AJAX

How could this be?

Is this some OTHER form of header or something?


I try a few ways to insert headers all to the same effect



beforeSend: function (xhr) {
xhr.setRequestHeader ("Authorization", "MY_PRIVATE_KEY”);
},




Or--



headers: {
 "Authorization": "MY_PRIVATE_KEY”,
"my-second-header": "second value”
},


 ___
Do not post admin requests to the list. They will 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: Custom Ajax Component parent page re rendereing

2020-02-01 Thread Samuel Pelletier via Webobjects-dev
Hi Michael,

If processing an AjaxRequest, you should not see the entire page rerendered. 
You may verify by adding a break point on the main page appendToResponse method.

If you wonder why getters on your main component are called like list for a 
repetition, this is required to find out the child component that should 
process the request.

It may be confusing but the WebObject component request handling magic will 
reconstruct the WOElement tree on each request. This is why repetition list 
should be bound to array you are sure cannot change between requests (it can 
usually safely change during action handling and in append to response)

Regards,

Samuel

> Le 27 janv. 2020 à 18:06, Michael Kondratov via Webobjects-dev 
>  a écrit :
> 
> I am working on a small Ajax Component that would save current scroller 
> position. Everything is working except I just noticed that AjaxComponent 
> actually re-renders entire page while generating a small Ajax response. Is 
> that a normal behavior? 
> 
> 
> Michael
> 
> ___
> Do not post admin requests to the list. They will 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: Custom Ajax Component parent page re rendereing

2020-01-27 Thread Jérémy DE ROYER via Webobjects-dev
Hi Michael,

I had the same using WOSubmitButton instead of AjaxSubmitButton

If it may help,

Jérémy

> Le 28 janv. 2020 à 00:06, Michael Kondratov via Webobjects-dev 
>  a écrit :
> 
> I am working on a small Ajax Component that would save current scroller 
> position. Everything is working except I just noticed that AjaxComponent 
> actually re-renders entire page while generating a small Ajax response. Is 
> that a normal behavior? 
> 
> 
> Michael
> 
> ___
> Do not post admin requests to the list. They will 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


Custom Ajax Component parent page re rendereing

2020-01-27 Thread Michael Kondratov via Webobjects-dev
I am working on a small Ajax Component that would save current scroller 
position. Everything is working except I just noticed that AjaxComponent 
actually re-renders entire page while generating a small Ajax response. Is that 
a normal behavior? 


Michael

 ___
Do not post admin requests to the list. They will 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: There was an old thread about Ajax...

2019-11-02 Thread Jérémy DE ROYER via Webobjects-dev
Indeed.

Couldn’t we make a survey with ?

a) if you’re still using WebObjects, what are you waiting for (improve wonder 
and why ? find a new open-source way and why ?)

b) if you’re no more using WebObjects (for new projects I mean), what are you 
using ? are you satisfied why that ? do you need something other ?

Maybe it could help us to have a clear vision of the wo-future

Jérémy

Le 2 nov. 2019 à 08:01, Hugi Thordarson via Webobjects-dev 
mailto:webobjects-dev@lists.apple.com>> a écrit 
:

I believe TreasureBoat used Apple's leaked WO sources so I don't find it likely 
they'll ever participate in anything that can be considered "open", be it 
source or discourse. That project might be suitable for some, and these folks 
should definitely pursue it.,

As far as I'm concerned, that project doesn't exist. The reasons should be 
obvious.

As for the rest of us… We're not "stuck in the mud". We're free to do our own 
thing and there's whole universe of web development ahead of us :).

- hugi



On 1 Nov 2019, at 15:45, Jesse Tayler 
mailto:jtay...@oeinc.com>> wrote:

I looked into TreasureBoat with Paul and it was great - accepting the lic. was 
not open-source, so it couldn’t be mixed with Wonder

For those of us who need an open-source codebase we are stuck in the mud.

Perhaps it is possible to engage TreasureBoat knowledge and effort to re-write 
the Ajax related frameworks using new tools but I still think that retrofitting 
that stuff is going to be very difficult.



On Oct 31, 2019, at 10:05 PM, Hugi Thordarson 
mailto:h...@karlmenn.is>> wrote:

Yeah, that's helpful. Sorry we're not aware of that secret work on TreasureBoat.

- hugi



On 29 Oct 2019, at 15:13, Paul Yu via Webobjects-dev 
mailto:webobjects-dev@lists.apple.com>> wrote:

The tough work has already been done by Ken on the TreasureBoat.

But as they say, you can lead a horse to water, but you can’t make it drink.

Paul


On Oct 29, 2019, at 9:27 AM, Jesse Tayler via Webobjects-dev 
mailto:webobjects-dev@lists.apple.com>> wrote:

Well, it’s a team job for sure.

There’s tough programming in WO - components, frameworks, inheritance and 
trickery.

There’s tough programming in javascript - not just implementation, but 
identifying the original designs and retrofitting something that seamlessly 
enhances Wonder projects simply by linking to the frameworks…serious wizardry.

There’s tough programming in D2W, stuff that I was shocked to see! The trouble 
was not understanding any particular rule, although there were some (a lot?) 
that I was amazed by — but actually understanding the bigger picture of how 
they FIT these frameworks right into the Wonder stuff - link and unlink and 
magic comes and goes.

So, if it were to be done, it would have to be US that does it!

It’s a really hard task…

I wish I had a suggestion, because I believe it is THAT important.



On Oct 29, 2019, at 9:18 AM, Theodore Petrosky 
mailto:tedp...@yahoo.com>> wrote:

do you think it would be possible to find someone that CAN do the work, and 
then set up a fund me instance so we could pay him/her?

I would put money into this if I thought there were others that would also add 
funds!

Ted

On Oct 29, 2019, at 9:08 AM, Jesse Tayler via Webobjects-dev 
mailto:webobjects-dev@lists.apple.com>> wrote:

Yes, I recall something about show/hide but it’s fuzzy now.

I did however, conclude that we are all hosed!

The value of things like the AJAX list panel that can load up new batches or a 
tab panel that reloads like magic?

These old Ajax frameworks have tricks to override rules in D2W so simply adding 
the framework inserts itself into the interface frameworks beautifully.

Then I went into the AJAX frameworks to trace the code and found the group of 
them to be deeply intertwined, and the code depends on long hierarchies of 
those too-long-inheritance chains that we’ve all seen arise over time. You just 
keep going into superviews and different WOD bindings until you are lost.

I strongly sense we’d have to quite literally rewrite a batch of related 
frameworks -- and we’d have to be able to use the same code/D2W trickery to 
make the new frameworks ride on top of our apps seamlessly.

However, it IS possible to do!

I wish I had a solution to this problem.





On Oct 29, 2019, at 8:57 AM, René Bock 
mailto:b...@salient-doremus.de>> wrote:

Well, you may use both frameworks,  prototyps.js and jQuery if you use jQuery 
in non-conflict mode (because both frameworks defines the variable $ as 
shortcut)

We had some additional issues when using the bootstrap framework, as 
prototypes.js add functions like show, hide, toggle to each element.

Am 29.10.2019 um 12:55 schrieb Jesse Tayler via Webobjects-dev 
mailto:webobjects-dev@lists.apple.com>>:

I have trouble with this as well, the older code conflicts with newer jQuery 
based stuff.

So bad, th

Re: There was an old thread about Ajax...

2019-11-02 Thread Hugi Thordarson via Webobjects-dev
I believe TreasureBoat used Apple's leaked WO sources so I don't find it likely 
they'll ever participate in anything that can be considered "open", be it 
source or discourse. That project might be suitable for some, and these folks 
should definitely pursue it.,

As far as I'm concerned, that project doesn't exist. The reasons should be 
obvious.

As for the rest of us… We're not "stuck in the mud". We're free to do our own 
thing and there's whole universe of web development ahead of us :).

- hugi



> On 1 Nov 2019, at 15:45, Jesse Tayler  wrote:
> 
> I looked into TreasureBoat with Paul and it was great - accepting the lic. 
> was not open-source, so it couldn’t be mixed with Wonder
> 
> For those of us who need an open-source codebase we are stuck in the mud.
> 
> Perhaps it is possible to engage TreasureBoat knowledge and effort to 
> re-write the Ajax related frameworks using new tools but I still think that 
> retrofitting that stuff is going to be very difficult.
> 
> 
> 
>> On Oct 31, 2019, at 10:05 PM, Hugi Thordarson  wrote:
>> 
>> Yeah, that's helpful. Sorry we're not aware of that secret work on 
>> TreasureBoat.
>> 
>> - hugi
>> 
>> 
>> 
>>> On 29 Oct 2019, at 15:13, Paul Yu via Webobjects-dev 
>>>  wrote:
>>> 
>>> The tough work has already been done by Ken on the TreasureBoat.
>>> 
>>> But as they say, you can lead a horse to water, but you can’t make it drink.
>>> 
>>> Paul
>>> 
>>> 
>>>> On Oct 29, 2019, at 9:27 AM, Jesse Tayler via Webobjects-dev 
>>>>  wrote:
>>>> 
>>>> Well, it’s a team job for sure.
>>>> 
>>>> There’s tough programming in WO - components, frameworks, inheritance and 
>>>> trickery.
>>>> 
>>>> There’s tough programming in javascript - not just implementation, but 
>>>> identifying the original designs and retrofitting something that 
>>>> seamlessly enhances Wonder projects simply by linking to the 
>>>> frameworks…serious wizardry.
>>>> 
>>>> There’s tough programming in D2W, stuff that I was shocked to see! The 
>>>> trouble was not understanding any particular rule, although there were 
>>>> some (a lot?) that I was amazed by — but actually understanding the bigger 
>>>> picture of how they FIT these frameworks right into the Wonder stuff - 
>>>> link and unlink and magic comes and goes.
>>>> 
>>>> So, if it were to be done, it would have to be US that does it!
>>>> 
>>>> It’s a really hard task…
>>>> 
>>>> I wish I had a suggestion, because I believe it is THAT important.
>>>> 
>>>> 
>>>> 
>>>>> On Oct 29, 2019, at 9:18 AM, Theodore Petrosky  wrote:
>>>>> 
>>>>> do you think it would be possible to find someone that CAN do the work, 
>>>>> and then set up a fund me instance so we could pay him/her?
>>>>> 
>>>>> I would put money into this if I thought there were others that would 
>>>>> also add funds!
>>>>> 
>>>>> Ted
>>>>> 
>>>>>> On Oct 29, 2019, at 9:08 AM, Jesse Tayler via Webobjects-dev 
>>>>>>  wrote:
>>>>>> 
>>>>>> Yes, I recall something about show/hide but it’s fuzzy now.
>>>>>> 
>>>>>> I did however, conclude that we are all hosed!
>>>>>> 
>>>>>> The value of things like the AJAX list panel that can load up new 
>>>>>> batches or a tab panel that reloads like magic?
>>>>>> 
>>>>>> These old Ajax frameworks have tricks to override rules in D2W so simply 
>>>>>> adding the framework inserts itself into the interface frameworks 
>>>>>> beautifully.
>>>>>> 
>>>>>> Then I went into the AJAX frameworks to trace the code and found the 
>>>>>> group of them to be deeply intertwined, and the code depends on long 
>>>>>> hierarchies of those too-long-inheritance chains that we’ve all seen 
>>>>>> arise over time. You just keep going into superviews and different WOD 
>>>>>> bindings until you are lost.
>>>>>> 
>>>>>> I strongly sense we’d have to quite literally rewrite a batch of related 
>>>>>> frameworks -- and we’d have to be able to use the same code/D2W

Re: There was an old thread about Ajax...

2019-11-01 Thread Jesse Tayler via Webobjects-dev
I looked into TreasureBoat with Paul and it was great - accepting the lic. was 
not open-source, so it couldn’t be mixed with Wonder

For those of us who need an open-source codebase we are stuck in the mud.

Perhaps it is possible to engage TreasureBoat knowledge and effort to re-write 
the Ajax related frameworks using new tools but I still think that retrofitting 
that stuff is going to be very difficult.



> On Oct 31, 2019, at 10:05 PM, Hugi Thordarson  wrote:
> 
> Yeah, that's helpful. Sorry we're not aware of that secret work on 
> TreasureBoat.
> 
> - hugi
> 
> 
> 
>> On 29 Oct 2019, at 15:13, Paul Yu via Webobjects-dev 
>>  wrote:
>> 
>> The tough work has already been done by Ken on the TreasureBoat.
>> 
>> But as they say, you can lead a horse to water, but you can’t make it drink.
>> 
>> Paul
>> 
>> 
>>> On Oct 29, 2019, at 9:27 AM, Jesse Tayler via Webobjects-dev 
>>>  wrote:
>>> 
>>> Well, it’s a team job for sure.
>>> 
>>> There’s tough programming in WO - components, frameworks, inheritance and 
>>> trickery.
>>> 
>>> There’s tough programming in javascript - not just implementation, but 
>>> identifying the original designs and retrofitting something that seamlessly 
>>> enhances Wonder projects simply by linking to the frameworks…serious 
>>> wizardry.
>>> 
>>> There’s tough programming in D2W, stuff that I was shocked to see! The 
>>> trouble was not understanding any particular rule, although there were some 
>>> (a lot?) that I was amazed by — but actually understanding the bigger 
>>> picture of how they FIT these frameworks right into the Wonder stuff - link 
>>> and unlink and magic comes and goes.
>>> 
>>> So, if it were to be done, it would have to be US that does it!
>>> 
>>> It’s a really hard task…
>>> 
>>> I wish I had a suggestion, because I believe it is THAT important.
>>> 
>>> 
>>> 
>>>> On Oct 29, 2019, at 9:18 AM, Theodore Petrosky  wrote:
>>>> 
>>>> do you think it would be possible to find someone that CAN do the work, 
>>>> and then set up a fund me instance so we could pay him/her?
>>>> 
>>>> I would put money into this if I thought there were others that would also 
>>>> add funds!
>>>> 
>>>> Ted
>>>> 
>>>>> On Oct 29, 2019, at 9:08 AM, Jesse Tayler via Webobjects-dev 
>>>>>  wrote:
>>>>> 
>>>>> Yes, I recall something about show/hide but it’s fuzzy now.
>>>>> 
>>>>> I did however, conclude that we are all hosed!
>>>>> 
>>>>> The value of things like the AJAX list panel that can load up new batches 
>>>>> or a tab panel that reloads like magic?
>>>>> 
>>>>> These old Ajax frameworks have tricks to override rules in D2W so simply 
>>>>> adding the framework inserts itself into the interface frameworks 
>>>>> beautifully.
>>>>> 
>>>>> Then I went into the AJAX frameworks to trace the code and found the 
>>>>> group of them to be deeply intertwined, and the code depends on long 
>>>>> hierarchies of those too-long-inheritance chains that we’ve all seen 
>>>>> arise over time. You just keep going into superviews and different WOD 
>>>>> bindings until you are lost.
>>>>> 
>>>>> I strongly sense we’d have to quite literally rewrite a batch of related 
>>>>> frameworks -- and we’d have to be able to use the same code/D2W trickery 
>>>>> to make the new frameworks ride on top of our apps seamlessly.
>>>>> 
>>>>> However, it IS possible to do!
>>>>> 
>>>>> I wish I had a solution to this problem.
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>>> On Oct 29, 2019, at 8:57 AM, René Bock  wrote:
>>>>>> 
>>>>>> Well, you may use both frameworks,  prototyps.js and jQuery if you use 
>>>>>> jQuery in non-conflict mode (because both frameworks defines the 
>>>>>> variable $ as shortcut)
>>>>>> 
>>>>>> We had some additional issues when using the bootstrap framework, as 
>>>>>> prototypes.js add functions like show, hide, toggle to each element. 
>>>>>> 
>>>>>>> Am 29.10.201

Re: There was an old thread about Ajax...

2019-10-31 Thread Hugi Thordarson via Webobjects-dev
Yeah, that's helpful. Sorry we're not aware of that secret work on TreasureBoat.

- hugi



> On 29 Oct 2019, at 15:13, Paul Yu via Webobjects-dev 
>  wrote:
> 
> The tough work has already been done by Ken on the TreasureBoat.
> 
> But as they say, you can lead a horse to water, but you can’t make it drink.
> 
> Paul
> 
> 
>> On Oct 29, 2019, at 9:27 AM, Jesse Tayler via Webobjects-dev 
>>  wrote:
>> 
>> Well, it’s a team job for sure.
>> 
>> There’s tough programming in WO - components, frameworks, inheritance and 
>> trickery.
>> 
>> There’s tough programming in javascript - not just implementation, but 
>> identifying the original designs and retrofitting something that seamlessly 
>> enhances Wonder projects simply by linking to the frameworks…serious 
>> wizardry.
>> 
>> There’s tough programming in D2W, stuff that I was shocked to see! The 
>> trouble was not understanding any particular rule, although there were some 
>> (a lot?) that I was amazed by — but actually understanding the bigger 
>> picture of how they FIT these frameworks right into the Wonder stuff - link 
>> and unlink and magic comes and goes.
>> 
>> So, if it were to be done, it would have to be US that does it!
>> 
>> It’s a really hard task…
>> 
>> I wish I had a suggestion, because I believe it is THAT important.
>> 
>> 
>> 
>>> On Oct 29, 2019, at 9:18 AM, Theodore Petrosky  wrote:
>>> 
>>> do you think it would be possible to find someone that CAN do the work, and 
>>> then set up a fund me instance so we could pay him/her?
>>> 
>>> I would put money into this if I thought there were others that would also 
>>> add funds!
>>> 
>>> Ted
>>> 
>>>> On Oct 29, 2019, at 9:08 AM, Jesse Tayler via Webobjects-dev 
>>>>  wrote:
>>>> 
>>>> Yes, I recall something about show/hide but it’s fuzzy now.
>>>> 
>>>> I did however, conclude that we are all hosed!
>>>> 
>>>> The value of things like the AJAX list panel that can load up new batches 
>>>> or a tab panel that reloads like magic?
>>>> 
>>>> These old Ajax frameworks have tricks to override rules in D2W so simply 
>>>> adding the framework inserts itself into the interface frameworks 
>>>> beautifully.
>>>> 
>>>> Then I went into the AJAX frameworks to trace the code and found the group 
>>>> of them to be deeply intertwined, and the code depends on long hierarchies 
>>>> of those too-long-inheritance chains that we’ve all seen arise over time. 
>>>> You just keep going into superviews and different WOD bindings until you 
>>>> are lost.
>>>> 
>>>> I strongly sense we’d have to quite literally rewrite a batch of related 
>>>> frameworks -- and we’d have to be able to use the same code/D2W trickery 
>>>> to make the new frameworks ride on top of our apps seamlessly.
>>>> 
>>>> However, it IS possible to do!
>>>> 
>>>> I wish I had a solution to this problem.
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>>> On Oct 29, 2019, at 8:57 AM, René Bock  wrote:
>>>>> 
>>>>> Well, you may use both frameworks,  prototyps.js and jQuery if you use 
>>>>> jQuery in non-conflict mode (because both frameworks defines the variable 
>>>>> $ as shortcut)
>>>>> 
>>>>> We had some additional issues when using the bootstrap framework, as 
>>>>> prototypes.js add functions like show, hide, toggle to each element. 
>>>>> 
>>>>>> Am 29.10.2019 um 12:55 schrieb Jesse Tayler via Webobjects-dev 
>>>>>> :
>>>>>> 
>>>>>> I have trouble with this as well, the older code conflicts with newer 
>>>>>> jQuery based stuff.
>>>>>> 
>>>>>> So bad, that it will eventually stop your work because some bugs are 
>>>>>> critical and you’ll not be able to work around them.
>>>>>> 
>>>>>> I’ve found that the code way back in those Ajax frameworks is indeed 
>>>>>> amazing but also unreadable and unmaintainable.
>>>>>> 
>>>>>> In fact, I believe there is no way with our current resources that WO 
>>>>>> folks will overcome this critical issue — our legacy is dragging us down.
>>>>&g

Re: There was an old thread about Ajax...

2019-10-29 Thread Jérémy DE ROYER via Webobjects-dev
Hi,

All our new ui improvments are based on jQuery (more without than with 
bootstrap) that’s why I’m looking for a new lighter way, as Google is more and 
more attentive to the speed of websites.

Yesterday, I tried to rewrite AjaxModalDialog using both AjaxUpdateContainer 
and jQuery ui dialog in order to reduce the subset of ajax components we use.

So far it work’s well and the users are saying it’s faster.

Maybe it’s a way to follow to gently migrate...

Jérémy

Le 30 oct. 2019 à 01:28, Paul Hoadley 
mailto:pa...@logicsquad.net>> a écrit :

Hi Jérémy,

On 29 Oct 2019, at 17:48, Jérémy DE ROYER via Webobjects-dev 
mailto:webobjects-dev@lists.apple.com>> wrote:

To deal with ajax-back-end-requests, we currently use :
- AjaxModaDialog
- AjaxUpdateContainer
- AjaxUpdateLink
- AjaxObserveField
- AjaxSubmitButton
- AjaxLongResponse

How do you deal with Ajax ? Still use wonder with prototype ? Any new idea ?

We use a slightly different subset of components from Ajax.framework, probably 
more like this:

* AjaxUpdateContainer
* AjaxUpdateLink
* AjaxSubmitButton
* AjaxFlickrBatchNavigation
* AjaxObserveField

We then use a bit of jQuery, and so always call jQuery.noConflict(). Some 
projects require a workaround to play nicely with Bootstrap.

So we're using quite a limited subset of components, and no D2W, but we do mix 
in jQuery and sometimes Bootstrap. I can't recall the last time we hit an issue 
that couldn't be solved or worked around.


--
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: There was an old thread about Ajax...

2019-10-29 Thread Paul Hoadley via Webobjects-dev
Hi Jérémy,

On 29 Oct 2019, at 17:48, Jérémy DE ROYER via Webobjects-dev 
 wrote:

> To deal with ajax-back-end-requests, we currently use :
> - AjaxModaDialog
> - AjaxUpdateContainer
> - AjaxUpdateLink
> - AjaxObserveField
> - AjaxSubmitButton
> - AjaxLongResponse
> 
> How do you deal with Ajax ? Still use wonder with prototype ? Any new idea ?

We use a slightly different subset of components from Ajax.framework, probably 
more like this:

* AjaxUpdateContainer
* AjaxUpdateLink
* AjaxSubmitButton
* AjaxFlickrBatchNavigation
* AjaxObserveField

We then use a bit of jQuery, and so always call jQuery.noConflict(). Some 
projects require a workaround to play nicely with Bootstrap.

So we're using quite a limited subset of components, and no D2W, but we do mix 
in jQuery and sometimes Bootstrap. I can't recall the last time we hit an issue 
that couldn't be solved or worked around.


-- 
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: There was an old thread about Ajax...

2019-10-29 Thread Paul Yu via Webobjects-dev
 The tough work has already been done by Ken on the TreasureBoat.

But as they say, you can lead a horse to water, but you can’t make it drink.

Paul


> On Oct 29, 2019, at 9:27 AM, Jesse Tayler via Webobjects-dev 
>  wrote:
> 
> Well, it’s a team job for sure.
> 
> There’s tough programming in WO - components, frameworks, inheritance and 
> trickery.
> 
> There’s tough programming in javascript - not just implementation, but 
> identifying the original designs and retrofitting something that seamlessly 
> enhances Wonder projects simply by linking to the frameworks…serious wizardry.
> 
> There’s tough programming in D2W, stuff that I was shocked to see! The 
> trouble was not understanding any particular rule, although there were some 
> (a lot?) that I was amazed by — but actually understanding the bigger picture 
> of how they FIT these frameworks right into the Wonder stuff - link and 
> unlink and magic comes and goes.
> 
> So, if it were to be done, it would have to be US that does it!
> 
> It’s a really hard task…
> 
> I wish I had a suggestion, because I believe it is THAT important.
> 
> 
> 
>> On Oct 29, 2019, at 9:18 AM, Theodore Petrosky  wrote:
>> 
>> do you think it would be possible to find someone that CAN do the work, and 
>> then set up a fund me instance so we could pay him/her?
>> 
>> I would put money into this if I thought there were others that would also 
>> add funds!
>> 
>> Ted
>> 
>>> On Oct 29, 2019, at 9:08 AM, Jesse Tayler via Webobjects-dev 
>>>  wrote:
>>> 
>>> Yes, I recall something about show/hide but it’s fuzzy now.
>>> 
>>> I did however, conclude that we are all hosed!
>>> 
>>> The value of things like the AJAX list panel that can load up new batches 
>>> or a tab panel that reloads like magic?
>>> 
>>> These old Ajax frameworks have tricks to override rules in D2W so simply 
>>> adding the framework inserts itself into the interface frameworks 
>>> beautifully.
>>> 
>>> Then I went into the AJAX frameworks to trace the code and found the group 
>>> of them to be deeply intertwined, and the code depends on long hierarchies 
>>> of those too-long-inheritance chains that we’ve all seen arise over time. 
>>> You just keep going into superviews and different WOD bindings until you 
>>> are lost.
>>> 
>>> I strongly sense we’d have to quite literally rewrite a batch of related 
>>> frameworks -- and we’d have to be able to use the same code/D2W trickery to 
>>> make the new frameworks ride on top of our apps seamlessly.
>>> 
>>> However, it IS possible to do!
>>> 
>>> I wish I had a solution to this problem.
>>> 
>>> 
>>> 
>>> 
>>> 
>>>> On Oct 29, 2019, at 8:57 AM, René Bock  wrote:
>>>> 
>>>> Well, you may use both frameworks,  prototyps.js and jQuery if you use 
>>>> jQuery in non-conflict mode (because both frameworks defines the variable 
>>>> $ as shortcut)
>>>> 
>>>> We had some additional issues when using the bootstrap framework, as 
>>>> prototypes.js add functions like show, hide, toggle to each element. 
>>>> 
>>>>> Am 29.10.2019 um 12:55 schrieb Jesse Tayler via Webobjects-dev 
>>>>> :
>>>>> 
>>>>> I have trouble with this as well, the older code conflicts with newer 
>>>>> jQuery based stuff.
>>>>> 
>>>>> So bad, that it will eventually stop your work because some bugs are 
>>>>> critical and you’ll not be able to work around them.
>>>>> 
>>>>> I’ve found that the code way back in those Ajax frameworks is indeed 
>>>>> amazing but also unreadable and unmaintainable.
>>>>> 
>>>>> In fact, I believe there is no way with our current resources that WO 
>>>>> folks will overcome this critical issue — our legacy is dragging us down.
>>>>> 
>>>>> If anyone can figure this out, or even has ideas or wants to try — I’m up 
>>>>> for it, but I’ve found myself that the weight is impossibly heavy.
>>>>> 
>>>>> 
>>>>> 
>>>>>> On Oct 29, 2019, at 3:18 AM, Jérémy DE ROYER via Webobjects-dev 
>>>>>>  wrote:
>>>>>> 
>>>>>> Hello,
>>>>>> 
>>>>>> Log time ago (10/2014), there was an old thread around migrating ajax 
>>>>>> fro

Re: There was an old thread about Ajax...

2019-10-29 Thread Jesse Tayler via Webobjects-dev
Well, it’s a team job for sure.

There’s tough programming in WO - components, frameworks, inheritance and 
trickery.

There’s tough programming in javascript - not just implementation, but 
identifying the original designs and retrofitting something that seamlessly 
enhances Wonder projects simply by linking to the frameworks…serious wizardry.

There’s tough programming in D2W, stuff that I was shocked to see! The trouble 
was not understanding any particular rule, although there were some (a lot?) 
that I was amazed by — but actually understanding the bigger picture of how 
they FIT these frameworks right into the Wonder stuff - link and unlink and 
magic comes and goes.

So, if it were to be done, it would have to be US that does it!

It’s a really hard task…

I wish I had a suggestion, because I believe it is THAT important.



> On Oct 29, 2019, at 9:18 AM, Theodore Petrosky  wrote:
> 
> do you think it would be possible to find someone that CAN do the work, and 
> then set up a fund me instance so we could pay him/her?
> 
> I would put money into this if I thought there were others that would also 
> add funds!
> 
> Ted
> 
>> On Oct 29, 2019, at 9:08 AM, Jesse Tayler via Webobjects-dev 
>>  wrote:
>> 
>> Yes, I recall something about show/hide but it’s fuzzy now.
>> 
>> I did however, conclude that we are all hosed!
>> 
>> The value of things like the AJAX list panel that can load up new batches or 
>> a tab panel that reloads like magic?
>> 
>> These old Ajax frameworks have tricks to override rules in D2W so simply 
>> adding the framework inserts itself into the interface frameworks 
>> beautifully.
>> 
>> Then I went into the AJAX frameworks to trace the code and found the group 
>> of them to be deeply intertwined, and the code depends on long hierarchies 
>> of those too-long-inheritance chains that we’ve all seen arise over time. 
>> You just keep going into superviews and different WOD bindings until you are 
>> lost.
>> 
>> I strongly sense we’d have to quite literally rewrite a batch of related 
>> frameworks -- and we’d have to be able to use the same code/D2W trickery to 
>> make the new frameworks ride on top of our apps seamlessly.
>> 
>> However, it IS possible to do!
>> 
>> I wish I had a solution to this problem.
>> 
>> 
>> 
>> 
>> 
>>> On Oct 29, 2019, at 8:57 AM, René Bock  wrote:
>>> 
>>> Well, you may use both frameworks,  prototyps.js and jQuery if you use 
>>> jQuery in non-conflict mode (because both frameworks defines the variable $ 
>>> as shortcut)
>>> 
>>> We had some additional issues when using the bootstrap framework, as 
>>> prototypes.js add functions like show, hide, toggle to each element. 
>>> 
>>>> Am 29.10.2019 um 12:55 schrieb Jesse Tayler via Webobjects-dev 
>>>> :
>>>> 
>>>> I have trouble with this as well, the older code conflicts with newer 
>>>> jQuery based stuff.
>>>> 
>>>> So bad, that it will eventually stop your work because some bugs are 
>>>> critical and you’ll not be able to work around them.
>>>> 
>>>> I’ve found that the code way back in those Ajax frameworks is indeed 
>>>> amazing but also unreadable and unmaintainable.
>>>> 
>>>> In fact, I believe there is no way with our current resources that WO 
>>>> folks will overcome this critical issue — our legacy is dragging us down.
>>>> 
>>>> If anyone can figure this out, or even has ideas or wants to try — I’m up 
>>>> for it, but I’ve found myself that the weight is impossibly heavy.
>>>> 
>>>> 
>>>> 
>>>>> On Oct 29, 2019, at 3:18 AM, Jérémy DE ROYER via Webobjects-dev 
>>>>>  wrote:
>>>>> 
>>>>> Hello,
>>>>> 
>>>>> Log time ago (10/2014), there was an old thread around migrating ajax 
>>>>> from prototype to jquery as :
>>>>> - prototype is out of date
>>>>> - we « all » use jQuery to deal with ajax-front-end-requests
>>>>> 
>>>>> There was a link to the work made by johnny miller 
>>>>> https://github.com/johnnykahalawai/wonder
>>>>> 
>>>>> To deal with ajax-back-end-requests, we currently use :
>>>>> - AjaxModaDialog
>>>>> - AjaxUpdateContainer
>>>>> - AjaxUpdateLink
>>>>> - AjaxObserveField
>>>>> - AjaxSubmitButton
>>>>> - AjaxLongResponse
>>&g

Re: There was an old thread about Ajax...

2019-10-29 Thread Jérémy DE ROYER via Webobjects-dev
We are interested in too.

I’ve just lost one day looking for a bug in tiny mce… that I solved using 
AjaxUpdateContainer + jQuery dialog instead of AjaxModalDialog…

I think we will have more and more issues like that.

But yes, is it possible to find someone that can do that...

Jérémy

> Le 29 oct. 2019 à 14:18, Theodore Petrosky via Webobjects-dev 
>  a écrit :
> 
> do you think it would be possible to find someone that CAN do the work, and 
> then set up a fund me instance so we could pay him/her?
> 
> I would put money into this if I thought there were others that would also 
> add funds!
> 
> Ted
> 
>> On Oct 29, 2019, at 9:08 AM, Jesse Tayler via Webobjects-dev 
>>  wrote:
>> 
>> Yes, I recall something about show/hide but it’s fuzzy now.
>> 
>> I did however, conclude that we are all hosed!
>> 
>> The value of things like the AJAX list panel that can load up new batches or 
>> a tab panel that reloads like magic?
>> 
>> These old Ajax frameworks have tricks to override rules in D2W so simply 
>> adding the framework inserts itself into the interface frameworks 
>> beautifully.
>> 
>> Then I went into the AJAX frameworks to trace the code and found the group 
>> of them to be deeply intertwined, and the code depends on long hierarchies 
>> of those too-long-inheritance chains that we’ve all seen arise over time. 
>> You just keep going into superviews and different WOD bindings until you are 
>> lost.
>> 
>> I strongly sense we’d have to quite literally rewrite a batch of related 
>> frameworks -- and we’d have to be able to use the same code/D2W trickery to 
>> make the new frameworks ride on top of our apps seamlessly.
>> 
>> However, it IS possible to do!
>> 
>> I wish I had a solution to this problem.
>> 
>> 
>> 
>> 
>> 
>>> On Oct 29, 2019, at 8:57 AM, René Bock  wrote:
>>> 
>>> Well, you may use both frameworks,  prototyps.js and jQuery if you use 
>>> jQuery in non-conflict mode (because both frameworks defines the variable $ 
>>> as shortcut)
>>> 
>>> We had some additional issues when using the bootstrap framework, as 
>>> prototypes.js add functions like show, hide, toggle to each element. 
>>> 
>>>> Am 29.10.2019 um 12:55 schrieb Jesse Tayler via Webobjects-dev 
>>>> :
>>>> 
>>>> I have trouble with this as well, the older code conflicts with newer 
>>>> jQuery based stuff.
>>>> 
>>>> So bad, that it will eventually stop your work because some bugs are 
>>>> critical and you’ll not be able to work around them.
>>>> 
>>>> I’ve found that the code way back in those Ajax frameworks is indeed 
>>>> amazing but also unreadable and unmaintainable.
>>>> 
>>>> In fact, I believe there is no way with our current resources that WO 
>>>> folks will overcome this critical issue — our legacy is dragging us down.
>>>> 
>>>> If anyone can figure this out, or even has ideas or wants to try — I’m up 
>>>> for it, but I’ve found myself that the weight is impossibly heavy.
>>>> 
>>>> 
>>>> 
>>>>> On Oct 29, 2019, at 3:18 AM, Jérémy DE ROYER via Webobjects-dev 
>>>>>  wrote:
>>>>> 
>>>>> Hello,
>>>>> 
>>>>> Log time ago (10/2014), there was an old thread around migrating ajax 
>>>>> from prototype to jquery as :
>>>>> - prototype is out of date
>>>>> - we « all » use jQuery to deal with ajax-front-end-requests
>>>>> 
>>>>> There was a link to the work made by johnny miller 
>>>>> https://github.com/johnnykahalawai/wonder
>>>>> 
>>>>> To deal with ajax-back-end-requests, we currently use :
>>>>> - AjaxModaDialog
>>>>> - AjaxUpdateContainer
>>>>> - AjaxUpdateLink
>>>>> - AjaxObserveField
>>>>> - AjaxSubmitButton
>>>>> - AjaxLongResponse
>>>>> 
>>>>> How do you deal with Ajax ? Still use wonder with prototype ? Any new 
>>>>> idea ?
>>>>> 
>>>>> Jérémy
>>>>> ___
>>>>> Do not post admin requests to the list. They will be ignored.
>>>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>>>>> Help/Unsubscribe/Update your Subscription:
>>>>> https://lists.apple.com/mailman

Re: There was an old thread about Ajax...

2019-10-29 Thread Theodore Petrosky via Webobjects-dev
do you think it would be possible to find someone that CAN do the work, and 
then set up a fund me instance so we could pay him/her?

I would put money into this if I thought there were others that would also add 
funds!

Ted

> On Oct 29, 2019, at 9:08 AM, Jesse Tayler via Webobjects-dev 
>  wrote:
> 
> Yes, I recall something about show/hide but it’s fuzzy now.
> 
> I did however, conclude that we are all hosed!
> 
> The value of things like the AJAX list panel that can load up new batches or 
> a tab panel that reloads like magic?
> 
> These old Ajax frameworks have tricks to override rules in D2W so simply 
> adding the framework inserts itself into the interface frameworks beautifully.
> 
> Then I went into the AJAX frameworks to trace the code and found the group of 
> them to be deeply intertwined, and the code depends on long hierarchies of 
> those too-long-inheritance chains that we’ve all seen arise over time. You 
> just keep going into superviews and different WOD bindings until you are lost.
> 
> I strongly sense we’d have to quite literally rewrite a batch of related 
> frameworks -- and we’d have to be able to use the same code/D2W trickery to 
> make the new frameworks ride on top of our apps seamlessly.
> 
> However, it IS possible to do!
> 
> I wish I had a solution to this problem.
> 
> 
> 
> 
> 
>> On Oct 29, 2019, at 8:57 AM, René Bock  wrote:
>> 
>> Well, you may use both frameworks,  prototyps.js and jQuery if you use 
>> jQuery in non-conflict mode (because both frameworks defines the variable $ 
>> as shortcut)
>> 
>> We had some additional issues when using the bootstrap framework, as 
>> prototypes.js add functions like show, hide, toggle to each element. 
>> 
>>> Am 29.10.2019 um 12:55 schrieb Jesse Tayler via Webobjects-dev 
>>> :
>>> 
>>> I have trouble with this as well, the older code conflicts with newer 
>>> jQuery based stuff.
>>> 
>>> So bad, that it will eventually stop your work because some bugs are 
>>> critical and you’ll not be able to work around them.
>>> 
>>> I’ve found that the code way back in those Ajax frameworks is indeed 
>>> amazing but also unreadable and unmaintainable.
>>> 
>>> In fact, I believe there is no way with our current resources that WO folks 
>>> will overcome this critical issue — our legacy is dragging us down.
>>> 
>>> If anyone can figure this out, or even has ideas or wants to try — I’m up 
>>> for it, but I’ve found myself that the weight is impossibly heavy.
>>> 
>>> 
>>> 
>>>> On Oct 29, 2019, at 3:18 AM, Jérémy DE ROYER via Webobjects-dev 
>>>>  wrote:
>>>> 
>>>> Hello,
>>>> 
>>>> Log time ago (10/2014), there was an old thread around migrating ajax from 
>>>> prototype to jquery as :
>>>> - prototype is out of date
>>>> - we « all » use jQuery to deal with ajax-front-end-requests
>>>> 
>>>> There was a link to the work made by johnny miller 
>>>> https://github.com/johnnykahalawai/wonder
>>>> 
>>>> To deal with ajax-back-end-requests, we currently use :
>>>> - AjaxModaDialog
>>>> - AjaxUpdateContainer
>>>> - AjaxUpdateLink
>>>> - AjaxObserveField
>>>> - AjaxSubmitButton
>>>> - AjaxLongResponse
>>>> 
>>>> How do you deal with Ajax ? Still use wonder with prototype ? Any new idea 
>>>> ?
>>>> 
>>>> Jérémy
>>>> ___
>>>> Do not post admin requests to the list. They will 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/bock%40salient-doremus.de
>>> 
>>> This email sent to b...@salient-doremus.de
>> 
>> Mit freundlichen Grüßen 
>> 
>> René Bock
>> 
>> --
>> Telefon: +49 69 650096 18
>> 
>> salient GmbH, Lindleystraße 12, 60314 Frankfurt
>> Telefon Zentrale: 069 / 65 00 96 - 0  |  www.salient-doremus.de
>> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/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: There was an old thread about Ajax...

2019-10-29 Thread Jesse Tayler via Webobjects-dev
Yes, I recall something about show/hide but it’s fuzzy now.

I did however, conclude that we are all hosed!

The value of things like the AJAX list panel that can load up new batches or a 
tab panel that reloads like magic?

These old Ajax frameworks have tricks to override rules in D2W so simply adding 
the framework inserts itself into the interface frameworks beautifully.

Then I went into the AJAX frameworks to trace the code and found the group of 
them to be deeply intertwined, and the code depends on long hierarchies of 
those too-long-inheritance chains that we’ve all seen arise over time. You just 
keep going into superviews and different WOD bindings until you are lost.

I strongly sense we’d have to quite literally rewrite a batch of related 
frameworks -- and we’d have to be able to use the same code/D2W trickery to 
make the new frameworks ride on top of our apps seamlessly.

However, it IS possible to do!

I wish I had a solution to this problem.





> On Oct 29, 2019, at 8:57 AM, René Bock  wrote:
> 
> Well, you may use both frameworks,  prototyps.js and jQuery if you use jQuery 
> in non-conflict mode (because both frameworks defines the variable $ as 
> shortcut)
> 
> We had some additional issues when using the bootstrap framework, as 
> prototypes.js add functions like show, hide, toggle to each element. 
> 
>> Am 29.10.2019 um 12:55 schrieb Jesse Tayler via Webobjects-dev 
>> :
>> 
>> I have trouble with this as well, the older code conflicts with newer jQuery 
>> based stuff.
>> 
>> So bad, that it will eventually stop your work because some bugs are 
>> critical and you’ll not be able to work around them.
>> 
>> I’ve found that the code way back in those Ajax frameworks is indeed amazing 
>> but also unreadable and unmaintainable.
>> 
>> In fact, I believe there is no way with our current resources that WO folks 
>> will overcome this critical issue — our legacy is dragging us down.
>> 
>> If anyone can figure this out, or even has ideas or wants to try — I’m up 
>> for it, but I’ve found myself that the weight is impossibly heavy.
>> 
>> 
>> 
>>> On Oct 29, 2019, at 3:18 AM, Jérémy DE ROYER via Webobjects-dev 
>>>  wrote:
>>> 
>>> Hello,
>>> 
>>> Log time ago (10/2014), there was an old thread around migrating ajax from 
>>> prototype to jquery as :
>>> - prototype is out of date
>>> - we « all » use jQuery to deal with ajax-front-end-requests
>>> 
>>> There was a link to the work made by johnny miller 
>>> https://github.com/johnnykahalawai/wonder
>>> 
>>> To deal with ajax-back-end-requests, we currently use :
>>> - AjaxModaDialog
>>> - AjaxUpdateContainer
>>> - AjaxUpdateLink
>>> - AjaxObserveField
>>> - AjaxSubmitButton
>>> - AjaxLongResponse
>>> 
>>> How do you deal with Ajax ? Still use wonder with prototype ? Any new idea ?
>>> 
>>> Jérémy
>>> ___
>>> Do not post admin requests to the list. They will 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/bock%40salient-doremus.de
>> 
>> This email sent to b...@salient-doremus.de
> 
> Mit freundlichen Grüßen 
> 
> René Bock
> 
> --
> Telefon: +49 69 650096 18
> 
> salient GmbH, Lindleystraße 12, 60314 Frankfurt
> Telefon Zentrale: 069 / 65 00 96 - 0  |  www.salient-doremus.de
> 

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

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


Re: There was an old thread about Ajax...

2019-10-29 Thread René Bock via Webobjects-dev
Well, you may use both frameworks,  prototyps.js and jQuery if you use jQuery 
in non-conflict mode (because both frameworks defines the variable $ as 
shortcut)

We had some additional issues when using the bootstrap framework, as 
prototypes.js add functions like show, hide, toggle to each element.

Am 29.10.2019 um 12:55 schrieb Jesse Tayler via Webobjects-dev 
mailto:webobjects-dev@lists.apple.com>>:

I have trouble with this as well, the older code conflicts with newer jQuery 
based stuff.

So bad, that it will eventually stop your work because some bugs are critical 
and you’ll not be able to work around them.

I’ve found that the code way back in those Ajax frameworks is indeed amazing 
but also unreadable and unmaintainable.

In fact, I believe there is no way with our current resources that WO folks 
will overcome this critical issue — our legacy is dragging us down.

If anyone can figure this out, or even has ideas or wants to try — I’m up for 
it, but I’ve found myself that the weight is impossibly heavy.



On Oct 29, 2019, at 3:18 AM, Jérémy DE ROYER via Webobjects-dev 
mailto:webobjects-dev@lists.apple.com>> wrote:

Hello,

Log time ago (10/2014), there was an old thread around migrating ajax from 
prototype to jquery as :
- prototype is out of date
- we « all » use jQuery to deal with ajax-front-end-requests

There was a link to the work made by johnny miller 
https://github.com/johnnykahalawai/wonder

To deal with ajax-back-end-requests, we currently use :
- AjaxModaDialog
- AjaxUpdateContainer
- AjaxUpdateLink
- AjaxObserveField
- AjaxSubmitButton
- AjaxLongResponse

How do you deal with Ajax ? Still use wonder with prototype ? Any new idea ?

Jérémy
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  
(Webobjects-dev@lists.apple.com<mailto:Webobjects-dev@lists.apple.com>)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com

This email sent to jtay...@oeinc.com<mailto:jtay...@oeinc.com>

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

This email sent to b...@salient-doremus.de

Mit freundlichen Grüßen

René Bock

--
Telefon: +49 69 650096 18

salient GmbH, Lindleystraße 12, 60314 Frankfurt
Telefon Zentrale: 069 / 65 00 96 - 0  |  
www.salient-doremus.de<http://www.salient-doremus.de>

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

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


Re: There was an old thread about Ajax...

2019-10-29 Thread Jesse Tayler via Webobjects-dev
I have trouble with this as well, the older code conflicts with newer jQuery 
based stuff.

So bad, that it will eventually stop your work because some bugs are critical 
and you’ll not be able to work around them.

I’ve found that the code way back in those Ajax frameworks is indeed amazing 
but also unreadable and unmaintainable.

In fact, I believe there is no way with our current resources that WO folks 
will overcome this critical issue — our legacy is dragging us down.

If anyone can figure this out, or even has ideas or wants to try — I’m up for 
it, but I’ve found myself that the weight is impossibly heavy.



> On Oct 29, 2019, at 3:18 AM, Jérémy DE ROYER via Webobjects-dev 
>  wrote:
> 
> Hello,
> 
> Log time ago (10/2014), there was an old thread around migrating ajax from 
> prototype to jquery as :
> - prototype is out of date
> - we « all » use jQuery to deal with ajax-front-end-requests
> 
> There was a link to the work made by johnny miller 
> https://github.com/johnnykahalawai/wonder 
> <https://github.com/johnnykahalawai/wonder>
> 
> To deal with ajax-back-end-requests, we currently use :
> - AjaxModaDialog
> - AjaxUpdateContainer
> - AjaxUpdateLink
> - AjaxObserveField
> - AjaxSubmitButton
> - AjaxLongResponse
> 
> How do you deal with Ajax ? Still use wonder with prototype ? Any new idea ?
> 
> Jérémy
> ___
> Do not post admin requests to the list. They will 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


There was an old thread about Ajax...

2019-10-29 Thread Jérémy DE ROYER via Webobjects-dev
Hello,

Log time ago (10/2014), there was an old thread around migrating ajax from 
prototype to jquery as :
- prototype is out of date
- we « all » use jQuery to deal with ajax-front-end-requests

There was a link to the work made by johnny miller 
https://github.com/johnnykahalawai/wonder

To deal with ajax-back-end-requests, we currently use :
- AjaxModaDialog
- AjaxUpdateContainer
- AjaxUpdateLink
- AjaxObserveField
- AjaxSubmitButton
- AjaxLongResponse

How do you deal with Ajax ? Still use wonder with prototype ? Any new idea ?

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

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


RE: Ajax and CSRF vulnerability

2018-12-08 Thread Leigh Kivenko
Just wondering if anyone has ever addressed this in the non-Wonder WOLips 
framework?

Leigh Kivenko | VP, Technology
PortfolioAid
t. 416-479-0523 | e. lei...@portfolioaid.com<mailto:lei...@portfolioaid.com>

This e-mail may be privileged and confidential. If you received this e-mail in 
error, please do not use, copy or distribute it, but advise me immediately (by 
return e-mail or otherwise), and delete the e-mail.

From: Webobjects-dev 
[mailto:webobjects-dev-bounces+dev=portfolioaid@lists.apple.com] On Behalf 
Of Kai Lochbaum
Sent: Thursday, December 06, 2018 10:07 AM
To: GILQUIN Pierre 
Cc: Webobjects-dev@lists.apple.com
Subject: Re: Ajax and CSRF vulnerability


Hi Pierre,



there is a global AjaxOptions.defaultOptions function which is used in all 
Wonder Ajax-Requests where you can hookup such things via JavaScript.



We also use it to send a CSRF token as requestHeader:



if (AjaxOptions && typeof AjaxOptions.defaultOptions === 'function' && 
csrftoken) {

  var originalFn = AjaxOptions.defaultOptions;

  AjaxOptions.defaultOptions = function(additionalOptions) {

Object.extend(additionalOptions, { 'requestHeaders': { csrftoken: 
csrftoken }});

return originalFn(additionalOptions);

  }

}





Then you just need to add some JS to get the csrftoken variable from your 
hidden field and add that JavaScript code after the wonder.js script tag.

For validation you obviously have to check the header in this implementation.





Cheers,

Kai Lochbaum



--



salient GmbH, Lindleystraße 12, 60314 Frankfurt

Telefon Zentrale: 069 / 65 00 96 - 0  |  http://www.salient-doremus.de 
<http://www.salient-doremus.de/>



Am 06.12.18, 15:57 schrieb "GILQUIN Pierre" 
mailto:pierre.gilq...@hcuge.ch>>:



Hi,



1) I used a hidden field wosid for prevent CSRF vulnerability for a 
standard WOnder application ( ) .

I just compare this hidden field with the real sessionID.



Now, I want to used the same protection in some ajaxified components. 
Problem : by default, the http post is partial and wosid is not sent.

« fullSubmit = true » cannot be easily used in this app.



Is there a way to config/adapt the Ajax Wonder framework so that the wosid 
will be always be added to the partial formValues ?



2) This application must be deployed in a Tomcat environment. I have seen a 
cookie with the Tomcat session JSessionID.

Is there a way to access the Tomcat JSessionId in the WOnder app in order 
to compare it with the value in the cookie ?



Thanks for any help

Pierre



 ___

Do not post admin requests to the list. They will be ignored.

Webobjects-dev mailing list  
(Webobjects-dev@lists.apple.com<mailto:Webobjects-dev@lists.apple.com>)

Help/Unsubscribe/Update your Subscription:


https://lists.apple.com/mailman/options/webobjects-dev/lochbaum%40salient-doremus.de



This email sent to 
lochb...@salient-doremus.de<mailto:lochb...@salient-doremus.de>


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

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


Re: Ajax and CSRF vulnerability

2018-12-06 Thread Kai Lochbaum
Hi Pierre,



there is a global AjaxOptions.defaultOptions function which is used in all 
Wonder Ajax-Requests where you can hookup such things via JavaScript.



We also use it to send a CSRF token as requestHeader:



if (AjaxOptions && typeof AjaxOptions.defaultOptions === 'function' && 
csrftoken) {

  var originalFn = AjaxOptions.defaultOptions;

  AjaxOptions.defaultOptions = function(additionalOptions) {

Object.extend(additionalOptions, { 'requestHeaders': { csrftoken: 
csrftoken }});

return originalFn(additionalOptions);

  }

}





Then you just need to add some JS to get the csrftoken variable from your 
hidden field and add that JavaScript code after the wonder.js script tag.

For validation you obviously have to check the header in this implementation.





Cheers,

Kai Lochbaum

--

salient GmbH, Lindleystraße 12, 60314 Frankfurt

Telefon Zentrale: 069 / 65 00 96 - 0  |  http://www.salient-doremus.de 
<http://www.salient-doremus.de/>



Am 06.12.18, 15:57 schrieb "GILQUIN Pierre" :



Hi,



1) I used a hidden field wosid for prevent CSRF vulnerability for a 
standard WOnder application ( ) .

I just compare this hidden field with the real sessionID.



Now, I want to used the same protection in some ajaxified components. 
Problem : by default, the http post is partial and wosid is not sent.

« fullSubmit = true » cannot be easily used in this app.



Is there a way to config/adapt the Ajax Wonder framework so that the wosid 
will be always be added to the partial formValues ?



2) This application must be deployed in a Tomcat environment. I have seen a 
cookie with the Tomcat session JSessionID.

Is there a way to access the Tomcat JSessionId in the WOnder app in order 
to compare it with the value in the cookie ?



Thanks for any help

Pierre



 ___

Do not post admin requests to the list. They will be ignored.

Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)

Help/Unsubscribe/Update your Subscription:


https://lists.apple.com/mailman/options/webobjects-dev/lochbaum%40salient-doremus.de



This email sent to lochb...@salient-doremus.de


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

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


Ajax and CSRF vulnerability

2018-12-06 Thread GILQUIN Pierre
Hi,

1) I used a hidden field wosid for prevent CSRF vulnerability for a standard 
WOnder application ( ) .
I just compare this hidden field with the real sessionID.

Now, I want to used the same protection in some ajaxified components. Problem : 
by default, the http post is partial and wosid is not sent. 
« fullSubmit = true » cannot be easily used in this app. 

Is there a way to config/adapt the Ajax Wonder framework so that the wosid will 
be always be added to the partial formValues ?

2) This application must be deployed in a Tomcat environment. I have seen a 
cookie with the Tomcat session JSessionID.
Is there a way to access the Tomcat JSessionId in the WOnder app in order to 
compare it with the value in the cookie ?

Thanks for any help
Pierre 

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

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


Re: Ajax within an repetition

2018-04-26 Thread Tim Worman
Hi Kenan:

There is a pattern that’s in the Ajax Examples (and some Ajax components in 
Wonder) that is quite good to follow as well.

public String id() {
String id = _id;
if (id == null) {
id = ERXWOContext.safeIdentifierName(context(), true);
_id = id;
}
return id;
}

public String rowUpdateContainer() {
return "rowUpdateContainer_" + id();
}

public String rowDeleteButton() {
return “deletButton" + id();
}

If its a  and it isn’t too large and unwieldy, I have safely had my  
(or other container) elements be AUC’s. Otherwise, I usually retreat to having 
a single surrounding AUC. As you found, it is definitely really important with 
repetitions that all elements in the repetition - buttons, links, text, AUC, 
etc., have their own unique id’s.

Tim
UCLA GSE&IS

> On Apr 26, 2018, at 6:59 AM, Steve Peery  wrote:
> 
> That is a good way to do it. I was just about to respond to your request. 
> Glad you found it on your own.
> 
> Steve
> 
>> On Apr 26, 2018, at 9:54 AM, Kenan Esau  
>> wrote:
>> 
>> OK - I found a solution. 
>> I used the index of the Repetition to build an Id for each AOF and each AUC. 
>> Now everything works fine.
>> 
>> Regards
>> 
>> Kenan
>> 
>>> Am 26.04.2018 um 13:21 schrieb Kenan Esau 
>>> :
>>> 
>>> Hi,
>>> 
>>> I am new to Webobjects. That’s why I asked for an example. 
>>> I have searched the web and didn’t find anything yet. (Only that having 
>>> AUCs or AOFs in a repetition can cause chaos ;-)
>>> 
>>> I am pretty shure that the IDs are the problem — several AUCs and all have 
>>> the same ID, this cannot work!
>>> So is there a good way to e.g. get the position within the repetition and 
>>> use that for creating the IDs of the AUC?
>>> 
>>> Regards
>>> 
>>> Kenan
>>> 
>>> 
>>>> Am 26.04.2018 um 12:34 schrieb René Bock :
>>>> 
>>>> An extra  AUC for every repetition item?  Did assign unique Ids?
>>>> 
>>>> 
>>>>> Am 26.04.2018 um 11:56 schrieb Kenan Esau 
>>>>> :
>>>>> 
>>>>> Hi there,
>>>>> 
>>>>> Is there a way to make Ajax work within a repetition?
>>>>> 
>>>>> If my AjaxUpdateContainer is in a WORepetition only the first element of 
>>>>> the repetition works as expected. I tried to put everything within the 
>>>>> Repetition in its own Component but that did not change anything!?
>>>>> Is there an example for that use-case?
>>>>> 
>>>>> Regards 
>>>>> 
>>>>>   Kenan
>>>>> ___
>>>>> Do not post admin requests to the list. They will be ignored.
>>>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>>>>> Help/Unsubscribe/Update your Subscription:
>>>>> https://lists.apple.com/mailman/options/webobjects-dev/bock%40salient-doremus.de
>>>>> 
>>>>> This email sent to b...@salient-doremus.de
>>>> 
>>>> Mit freundlichen Grüßen 
>>>> 
>>>> René Bock
>>>> 
>>>> --
>>>> Telefon: +49 69 650096 18
>>>> 
>>>> salient GmbH, Lindleystraße 12, 60314 Frankfurt
>>>> Telefon Zentrale: 069 / 65 00 96 - 0  |  www.salient-doremus.de
>>>> 
>>> 
>>> ___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/kenan.esau%40privatesecuredata.com
>>> 
>>> This email sent to kenan.e...@privatesecuredata.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/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/lists%40thetimmy.com
> 
> This email sent to li...@thetimmy.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: Ajax within an repetition

2018-04-26 Thread Kenan Esau
Hi,

It’s maintaining an existing app.
And hey - There’s life in the old dog yet ;-)

> Am 26.04.2018 um 16:33 schrieb Paul Yu :
> 
> Kenan
> 
> Are you writing a new application or maintaining an old WO/WOnder app?
> 
> Not too often do we get a new engineer in WebObjects any more.
> 
> Paul
> 
> Sent from my iPad
> 
> On Apr 26, 2018, at 6:54 AM, Kenan Esau  <mailto:kenan.e...@privatesecuredata.com>> wrote:
> 
>> OK - I found a solution. 
>> I used the index of the Repetition to build an Id for each AOF and each AUC. 
>> Now everything works fine.
>> 
>> Regards
>> 
>> Kenan
>> 
>>> Am 26.04.2018 um 13:21 schrieb Kenan Esau >> <mailto:kenan.e...@privatesecuredata.com>>:
>>> 
>>> Hi,
>>> 
>>> I am new to Webobjects. That’s why I asked for an example. 
>>> I have searched the web and didn’t find anything yet. (Only that having 
>>> AUCs or AOFs in a repetition can cause chaos ;-)
>>> 
>>> I am pretty shure that the IDs are the problem — several AUCs and all have 
>>> the same ID, this cannot work!
>>> So is there a good way to e.g. get the position within the repetition and 
>>> use that for creating the IDs of the AUC?
>>> 
>>> Regards
>>> 
>>> Kenan
>>> 
>>> 
>>>> Am 26.04.2018 um 12:34 schrieb René Bock >>> <mailto:b...@salient-doremus.de>>:
>>>> 
>>>> An extra  AUC for every repetition item?  Did assign unique Ids?
>>>> 
>>>> 
>>>>> Am 26.04.2018 um 11:56 schrieb Kenan Esau 
>>>>> >>>> <mailto:kenan.e...@privatesecuredata.com>>:
>>>>> 
>>>>> Hi there,
>>>>> 
>>>>> Is there a way to make Ajax work within a repetition?
>>>>> 
>>>>> If my AjaxUpdateContainer is in a WORepetition only the first element of 
>>>>> the repetition works as expected. I tried to put everything within the 
>>>>> Repetition in its own Component but that did not change anything!?
>>>>> Is there an example for that use-case?
>>>>> 
>>>>> Regards 
>>>>> 
>>>>>   Kenan
>>>>> ___
>>>>> Do not post admin requests to the list. They will be ignored.
>>>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>>>>> <mailto:Webobjects-dev@lists.apple.com>)
>>>>> Help/Unsubscribe/Update your Subscription:
>>>>> https://lists.apple.com/mailman/options/webobjects-dev/bock%40salient-doremus.de
>>>>>  
>>>>> <https://lists.apple.com/mailman/options/webobjects-dev/bock%40salient-doremus.de>
>>>>> 
>>>>> This email sent to b...@salient-doremus.de 
>>>>> <mailto:b...@salient-doremus.de>
>>>> 
>>>> Mit freundlichen Grüßen 
>>>> 
>>>> René Bock
>>>> 
>>>> --
>>>> Telefon: +49 69 650096 18
>>>> 
>>>> salient GmbH, Lindleystraße 12, 60314 Frankfurt
>>>> Telefon Zentrale: 069 / 65 00 96 - 0  |  www.salient-doremus.de 
>>>> <http://www.salient-doremus.de/>
>>> 
>>> ___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>>> <mailto:Webobjects-dev@lists.apple.com>)
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/kenan.esau%40privatesecuredata.com
>>>  
>>> <https://lists.apple.com/mailman/options/webobjects-dev/kenan.esau%40privatesecuredata.com>
>>> 
>>> This email sent to kenan.e...@privatesecuredata.com 
>>> <mailto:kenan.e...@privatesecuredata.com>
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com 
>> <https://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com>
>> 
>> This email sent to p...@mac.com <mailto:p...@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: Ajax within an repetition

2018-04-26 Thread Paul Yu
Kenan

I normally have a method in my Java class to generate the unique IDs for AUC 
ids.

Also, you would want to be careful of using AUC within table tr repetitions.  
In the past I had unexpected refreshes.

Paul

Sent from my iPad

> On Apr 26, 2018, at 6:59 AM, Steve Peery  wrote:
> 
> That is a good way to do it. I was just about to respond to your request. 
> Glad you found it on your own.
> 
> Steve
> 
>> On Apr 26, 2018, at 9:54 AM, Kenan Esau  
>> wrote:
>> 
>> OK - I found a solution. 
>> I used the index of the Repetition to build an Id for each AOF and each AUC. 
>> Now everything works fine.
>> 
>> Regards
>> 
>> Kenan
>> 
>>> Am 26.04.2018 um 13:21 schrieb Kenan Esau 
>>> :
>>> 
>>> Hi,
>>> 
>>> I am new to Webobjects. That’s why I asked for an example. 
>>> I have searched the web and didn’t find anything yet. (Only that having 
>>> AUCs or AOFs in a repetition can cause chaos ;-)
>>> 
>>> I am pretty shure that the IDs are the problem — several AUCs and all have 
>>> the same ID, this cannot work!
>>> So is there a good way to e.g. get the position within the repetition and 
>>> use that for creating the IDs of the AUC?
>>> 
>>> Regards
>>> 
>>> Kenan
>>> 
>>> 
>>>> Am 26.04.2018 um 12:34 schrieb René Bock :
>>>> 
>>>> An extra  AUC for every repetition item?  Did assign unique Ids?
>>>> 
>>>> 
>>>>> Am 26.04.2018 um 11:56 schrieb Kenan Esau 
>>>>> :
>>>>> 
>>>>> Hi there,
>>>>> 
>>>>> Is there a way to make Ajax work within a repetition?
>>>>> 
>>>>> If my AjaxUpdateContainer is in a WORepetition only the first element of 
>>>>> the repetition works as expected. I tried to put everything within the 
>>>>> Repetition in its own Component but that did not change anything!?
>>>>> Is there an example for that use-case?
>>>>> 
>>>>> Regards 
>>>>> 
>>>>>   Kenan
>>>>> ___
>>>>> Do not post admin requests to the list. They will be ignored.
>>>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>>>>> Help/Unsubscribe/Update your Subscription:
>>>>> https://lists.apple.com/mailman/options/webobjects-dev/bock%40salient-doremus.de
>>>>> 
>>>>> This email sent to b...@salient-doremus.de
>>>> 
>>>> Mit freundlichen Grüßen 
>>>> 
>>>> René Bock
>>>> 
>>>> --
>>>> Telefon: +49 69 650096 18
>>>> 
>>>> salient GmbH, Lindleystraße 12, 60314 Frankfurt
>>>> Telefon Zentrale: 069 / 65 00 96 - 0  |  www.salient-doremus.de
>>>> 
>>> 
>>> ___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/kenan.esau%40privatesecuredata.com
>>> 
>>> This email sent to kenan.e...@privatesecuredata.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/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/pyu%40mac.com
> 
> This email sent to p...@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: Ajax within an repetition

2018-04-26 Thread Steve Peery
That is a good way to do it. I was just about to respond to your request. Glad 
you found it on your own.

Steve

> On Apr 26, 2018, at 9:54 AM, Kenan Esau  
> wrote:
> 
> OK - I found a solution. 
> I used the index of the Repetition to build an Id for each AOF and each AUC. 
> Now everything works fine.
> 
> Regards
> 
> Kenan
> 
>> Am 26.04.2018 um 13:21 schrieb Kenan Esau > <mailto:kenan.e...@privatesecuredata.com>>:
>> 
>> Hi,
>> 
>> I am new to Webobjects. That’s why I asked for an example. 
>> I have searched the web and didn’t find anything yet. (Only that having AUCs 
>> or AOFs in a repetition can cause chaos ;-)
>> 
>> I am pretty shure that the IDs are the problem — several AUCs and all have 
>> the same ID, this cannot work!
>> So is there a good way to e.g. get the position within the repetition and 
>> use that for creating the IDs of the AUC?
>> 
>> Regards
>> 
>> Kenan
>> 
>> 
>>> Am 26.04.2018 um 12:34 schrieb René Bock >> <mailto:b...@salient-doremus.de>>:
>>> 
>>> An extra  AUC for every repetition item?  Did assign unique Ids?
>>> 
>>> 
>>>> Am 26.04.2018 um 11:56 schrieb Kenan Esau 
>>>> >>> <mailto:kenan.e...@privatesecuredata.com>>:
>>>> 
>>>> Hi there,
>>>> 
>>>> Is there a way to make Ajax work within a repetition?
>>>> 
>>>> If my AjaxUpdateContainer is in a WORepetition only the first element of 
>>>> the repetition works as expected. I tried to put everything within the 
>>>> Repetition in its own Component but that did not change anything!?
>>>> Is there an example for that use-case?
>>>> 
>>>> Regards 
>>>> 
>>>>   Kenan
>>>> ___
>>>> Do not post admin requests to the list. They will be ignored.
>>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>>>> <mailto:Webobjects-dev@lists.apple.com>)
>>>> Help/Unsubscribe/Update your Subscription:
>>>> https://lists.apple.com/mailman/options/webobjects-dev/bock%40salient-doremus.de
>>>>  
>>>> <https://lists.apple.com/mailman/options/webobjects-dev/bock%40salient-doremus.de>
>>>> 
>>>> This email sent to b...@salient-doremus.de <mailto:b...@salient-doremus.de>
>>> 
>>> Mit freundlichen Grüßen 
>>> 
>>> René Bock
>>> 
>>> --
>>> Telefon: +49 69 650096 18
>>> 
>>> salient GmbH, Lindleystraße 12, 60314 Frankfurt
>>> Telefon Zentrale: 069 / 65 00 96 - 0  |  www.salient-doremus.de 
>>> <http://www.salient-doremus.de/>
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/kenan.esau%40privatesecuredata.com
>>  
>> <https://lists.apple.com/mailman/options/webobjects-dev/kenan.esau%40privatesecuredata.com>
>> 
>> This email sent to kenan.e...@privatesecuredata.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/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: Ajax within an repetition

2018-04-26 Thread Kenan Esau
OK - I found a solution. 
I used the index of the Repetition to build an Id for each AOF and each AUC. 
Now everything works fine.

Regards

Kenan

> Am 26.04.2018 um 13:21 schrieb Kenan Esau :
> 
> Hi,
> 
> I am new to Webobjects. That’s why I asked for an example. 
> I have searched the web and didn’t find anything yet. (Only that having AUCs 
> or AOFs in a repetition can cause chaos ;-)
> 
> I am pretty shure that the IDs are the problem — several AUCs and all have 
> the same ID, this cannot work!
> So is there a good way to e.g. get the position within the repetition and use 
> that for creating the IDs of the AUC?
> 
> Regards
> 
> Kenan
> 
> 
>> Am 26.04.2018 um 12:34 schrieb René Bock > <mailto:b...@salient-doremus.de>>:
>> 
>> An extra  AUC for every repetition item?  Did assign unique Ids?
>> 
>> 
>>> Am 26.04.2018 um 11:56 schrieb Kenan Esau >> <mailto:kenan.e...@privatesecuredata.com>>:
>>> 
>>> Hi there,
>>> 
>>> Is there a way to make Ajax work within a repetition?
>>> 
>>> If my AjaxUpdateContainer is in a WORepetition only the first element of 
>>> the repetition works as expected. I tried to put everything within the 
>>> Repetition in its own Component but that did not change anything!?
>>> Is there an example for that use-case?
>>> 
>>> Regards 
>>> 
>>>   Kenan
>>> ___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>>> <mailto:Webobjects-dev@lists.apple.com>)
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/bock%40salient-doremus.de
>>>  
>>> <https://lists.apple.com/mailman/options/webobjects-dev/bock%40salient-doremus.de>
>>> 
>>> This email sent to b...@salient-doremus.de <mailto:b...@salient-doremus.de>
>> 
>> Mit freundlichen Grüßen 
>> 
>> René Bock
>> 
>> --
>> Telefon: +49 69 650096 18
>> 
>> salient GmbH, Lindleystraße 12, 60314 Frankfurt
>> Telefon Zentrale: 069 / 65 00 96 - 0  |  www.salient-doremus.de 
>> <http://www.salient-doremus.de/>
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/kenan.esau%40privatesecuredata.com
> 
> This email sent to kenan.e...@privatesecuredata.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: Ajax within an repetition

2018-04-26 Thread Kenan Esau
Hi,

I am new to Webobjects. That’s why I asked for an example. 
I have searched the web and didn’t find anything yet. (Only that having AUCs or 
AOFs in a repetition can cause chaos ;-)

I am pretty shure that the IDs are the problem — several AUCs and all have the 
same ID, this cannot work!
So is there a good way to e.g. get the position within the repetition and use 
that for creating the IDs of the AUC?

Regards

Kenan


> Am 26.04.2018 um 12:34 schrieb René Bock :
> 
> An extra  AUC for every repetition item?  Did assign unique Ids?
> 
> 
>> Am 26.04.2018 um 11:56 schrieb Kenan Esau > <mailto:kenan.e...@privatesecuredata.com>>:
>> 
>> Hi there,
>> 
>> Is there a way to make Ajax work within a repetition?
>> 
>> If my AjaxUpdateContainer is in a WORepetition only the first element of the 
>> repetition works as expected. I tried to put everything within the 
>> Repetition in its own Component but that did not change anything!?
>> Is there an example for that use-case?
>> 
>> Regards 
>> 
>>   Kenan
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/bock%40salient-doremus.de
>>  
>> <https://lists.apple.com/mailman/options/webobjects-dev/bock%40salient-doremus.de>
>> 
>> This email sent to b...@salient-doremus.de
> 
> Mit freundlichen Grüßen 
> 
> René Bock
> 
> --
> Telefon: +49 69 650096 18
> 
> salient GmbH, Lindleystraße 12, 60314 Frankfurt
> Telefon Zentrale: 069 / 65 00 96 - 0  |  www.salient-doremus.de 
> <http://www.salient-doremus.de/>

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

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


Ajax within an repetition

2018-04-26 Thread Kenan Esau
Hi there,

Is there a way to make Ajax work within a repetition?

If my AjaxUpdateContainer is in a WORepetition only the first element of the 
repetition works as expected. I tried to put everything within the Repetition 
in its own Component but that did not change anything!?
Is there an example for that use-case?

Regards 

   Kenan
 ___
Do not post admin requests to the list. They will 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: Fighting with Ajax Modal Dialogs et.al.

2017-12-13 Thread Markus Ruggiero
Samuel,

thanks a lot for your offer re. TeamViewer.

I was finally able to make things work with all the replies and the help of a 
collegue as sparring partner for discussion. AjaxFramework is really great just 
lacking in conceptual documentation. I intend to write up something eventually, 
maybe update the examples with conceptual info.

Again thanks to all who responded. Be assured there will be more questions to 
come 😇.

And it shows that as small as our community has become, it still is a great 
community!

---markus---


> On 13 Dec 2017, at 15:05, Samuel Pelletier  wrote:
> 
> Hi Markus,
> 
> If you are willing, we may try a short TeamViewer or screen sharing session 
> on your projet.
> 
> You can iMessage me at [removed Samuel's iMessage address] 
> 
> I am in Eastern Canada timezone so 6 hour behind you based on your email 
> header.
> 
> Regards,
> 
> Samuel
> 
>> Le 13 déc. 2017 à 03:43, Markus Ruggiero > <mailto:mailingli...@kataputt.com>> a écrit :
>> 
>> Ok, textfield vs. string, no issue here. If I know how to "get back the 
>> selected values" I can certainly do something with it. Of course I would 
>> prefer to update things right on the server. So when the user picks an 
>> address an action on the server should fire. This action needs to know the 
>> context (e.g. the currentObject) and at the end remove the dialog and 
>> refresh the display. That's my problem right now. I can show the dialog, but 
>> I cannot trigger the pickAction and clean up afterwards. Knowing the 
>> currentObject is possible when the dialog stuff is part of the main page. 
>> How could I pass this information to a separate component that renders the 
>> contents of the dialog?
>> 
>> AjaxUpdateContainer and AjaxObserveField are know to me and I use them often 
>> for "cascading" hierarchical popups.
>> 
>> I am lacking the grand picture and the concepts of the Ajax Framework.
>> 
>> Thanks for enlightening me.
>> 
>> ---markus---
>> 
>>> On 12 Dec 2017, at 21:27, Samuel Pelletier >> <mailto:sam...@samkar.com>> wrote:
>>> 
>>> Markus,
>>> 
>>> I think you just stick too much on the textfield part... Suppose you just 
>>> want to display the selected address in a string instead (and then replace 
>>> the string by a textfield).
>>> 
>>> The tricky part is to refresh the form with the selected address 
>>> information added to it. You could do some javascript or update the server 
>>> state and refresh the form. I prefer to update the server and refresh. Are 
>>> you familiar with AjaxUpdateContainer and AjaxObserveField ? In my recent 
>>> apps, I tend to autosave almost everything on each field update so users 
>>> never loose change because a save button was forgot.
>>> 
>>> Samuel
>>> 
>>> 
>>>> Le 12 déc. 2017 à 12:22, Markus Ruggiero >>> <mailto:mailingli...@kataputt.com>> a écrit :
>>>> 
>>>> Samuel,
>>>> 
>>>> can you imagine? I am even more confused right now because I think I 
>>>> understand what you're telling me --- but then I am not able to make sense 
>>>> of it and adapt it to my problem.
>>>> 
>>>> Can you/someone else create a minimalistic complete demo that shows 
>>>> exactly how to do the following:
>>>> 
>>>> in html:
>>>> 
>>>> <... wo form ... >
>>>> .
>>>>  [button or link here to 
>>>> open a modal dialog]
>>>> 
>>>> <... end wo form ... >
>>>> 
>>>> 
>>>> in wod:
>>>> shippingAddressTextfield : WOTextField { value = currentObject.address; }
>>>> 
>>>> 
>>>> The modal dialog shows a tablular list of ShippingAddresses, each 
>>>> ShippingAddress has additional fields to help the user pick the right one. 
>>>> There is a button or link besides each row to pick that particular one.
>>>> The contents of the dialog should preferably be generated by a separate 
>>>> component, but I can also do it right inside the main component if that 
>>>> was simpler to do.
>>>> 
>>>> When the user picks one of the address rows the dialog should close and 
>>>> the address string should be put into the text field (possibly just 
>>>> putting it there as if the user had typed it himself)
>>>> There should be a way to dismiss the dialog wit

Re: Fighting with Ajax Modal Dialogs et.al.

2017-12-13 Thread Markus Ruggiero
Ok, textfield vs. string, no issue here. If I know how to "get back the 
selected values" I can certainly do something with it. Of course I would prefer 
to update things right on the server. So when the user picks an address an 
action on the server should fire. This action needs to know the context (e.g. 
the currentObject) and at the end remove the dialog and refresh the display. 
That's my problem right now. I can show the dialog, but I cannot trigger the 
pickAction and clean up afterwards. Knowing the currentObject is possible when 
the dialog stuff is part of the main page. How could I pass this information to 
a separate component that renders the contents of the dialog?

AjaxUpdateContainer and AjaxObserveField are know to me and I use them often 
for "cascading" hierarchical popups.

I am lacking the grand picture and the concepts of the Ajax Framework.

Thanks for enlightening me.

---markus---

> On 12 Dec 2017, at 21:27, Samuel Pelletier  wrote:
> 
> Markus,
> 
> I think you just stick too much on the textfield part... Suppose you just 
> want to display the selected address in a string instead (and then replace 
> the string by a textfield).
> 
> The tricky part is to refresh the form with the selected address information 
> added to it. You could do some javascript or update the server state and 
> refresh the form. I prefer to update the server and refresh. Are you familiar 
> with AjaxUpdateContainer and AjaxObserveField ? In my recent apps, I tend to 
> autosave almost everything on each field update so users never loose change 
> because a save button was forgot.
> 
> Samuel
> 
> 
>> Le 12 déc. 2017 à 12:22, Markus Ruggiero > <mailto:mailingli...@kataputt.com>> a écrit :
>> 
>> Samuel,
>> 
>> can you imagine? I am even more confused right now because I think I 
>> understand what you're telling me --- but then I am not able to make sense 
>> of it and adapt it to my problem.
>> 
>> Can you/someone else create a minimalistic complete demo that shows exactly 
>> how to do the following:
>> 
>> in html:
>> 
>> <... wo form ... >
>> .
>>  [button or link here to open 
>> a modal dialog]
>> 
>> <... end wo form ... >
>> 
>> 
>> in wod:
>> shippingAddressTextfield : WOTextField { value = currentObject.address; }
>> 
>> 
>> The modal dialog shows a tablular list of ShippingAddresses, each 
>> ShippingAddress has additional fields to help the user pick the right one. 
>> There is a button or link besides each row to pick that particular one.
>> The contents of the dialog should preferably be generated by a separate 
>> component, but I can also do it right inside the main component if that was 
>> simpler to do.
>> 
>> When the user picks one of the address rows the dialog should close and the 
>> address string should be put into the text field (possibly just putting it 
>> there as if the user had typed it himself)
>> There should be a way to dismiss the dialog without picking anything.
>> When the user selects a ShippingAddress the textfiels should not be editable 
>> anymore
>> Particularly great would be to not only show the selected address but do a 
>> currentObject.addObjectToBothSidesOfRelationshipWithKey(selectedShippingAddress,
>>  CustomerRequest.SHIPPING_ADDRESS_KEY); This would require the dialog 
>> component to have the currentObject passed to it somehow. How to do this?
>> 
>> I know how to do some of these things with plain javascript but then I have 
>> no idea how to integrate with WO. So I started to look into Ajax.framework 
>> and studied the AjaxExamples. This didn't help but confuses me even more as 
>> the examples just show how some components are being used but there is no 
>> explanation of the underlying concepts and how to solve a problem with these 
>> things.
>> 
>> Thanks a lot
>> ---markus---
>> 
>> 
>>> On 12 Dec 2017, at 13:32, Samuel Pelletier >> <mailto:sam...@samkar.com>> wrote:
>>> 
>>> Markus,
>>> 
>>> I have a very similar implementation is an app where a new user is added by 
>>> selecting a contact.
>>> 
>>> In my UsagerList component where I have the new user function I have this 
>>> in my html file:
>>> 
>>> >> width = "800" title = "$localizer.UsagerList.button.ajouterUsager" class = 
>>> "tiny button" style = "margin-bottom:0;">
>>> >> "$addUsager"/>
>>> 
>>> 
>>> >> act

Re: Fighting with Ajax Modal Dialogs et.al.

2017-12-13 Thread Markus Ruggiero
ngContext();
>>> Usager usager = Usager.fetchUsager(ec, 
>>> Usager.CONTACT.eq(selectedContact().localInstanceIn(ec)));
>>> if (usager != null) {
>>> setEditedItem(usager);
>>> AjaxModalDialog.open(context(), "usagerEditor", 
>>> localizer().localizedStringForKeyWithDefault("UsagerList.text.editerUsager"));
>>> }
>>> else {
>>> Usager newUsager = Usager.createUsager(ec);
>>> 
>>> newUsager.setContact(newUsager.localInstanceOf(selectedContact()));
>>> newUsager.setUserName(selectedContact().email());
>>> setEditedItem(newUsager);
>>> AjaxModalDialog.open(context(), "usagerEditor");
>>> }
>>> return null;
>>> }
>>> 
>>> The ContactSelector component needs to be non synchronizing, either by 
>>> extending ERXNonSynchronizingComponent or by overriding the 
>>> synchronizesVariablesWithBindings method.
>>> 
>>> Here is the selectContact method in ContactSelector:
>>> public WOActionResults selectContact() {
>>> EOEditingContext ec = (EOEditingContext) 
>>> valueForBinding(EditingContextBindingName);
>>> if (ec == null) {
>>> setValueForBinding(item(), SelectedContactBindingName);
>>> }
>>> else {
>>> setValueForBinding(item().localInstanceIn(ec), 
>>> SelectedContactBindingName);
>>> }
>>> return (WOActionResults) valueForBinding(SelectActionBindingName);
>>> }
>>> 
>>> Samuel
>>> 
>>> 
>>> 
>>>> Le 12 déc. 2017 à 05:59, Markus Ruggiero >>> <mailto:mailingli...@kataputt.com>> a écrit :
>>>> 
>>>> Hi Samuel,
>>>> 
>>>> thanks for your help, but there are some things still not clear.
>>>> 
>>>> I have that WOTextField I want to populate. Next to the text field I need 
>>>> a clickable element (link, button, whatever) that the user user can use to 
>>>> call up an overlay modal dialog. This dialog gets a list of addresss from 
>>>> the database. The user can then click one of the addresses (a link or a 
>>>> button) to pick the one he needs. This selection action should close the 
>>>> dialog and put the selected address string into the text field.
>>>> 
>>>> I already have a component that retrieves the possible addresses and lists 
>>>> them in tabular form. It also shows a [pick this] link. 
>>>> 
>>>> That's as far as I got. Currently the dialog opener displays the "Select 
>>>> Address" link (should eventually replace the Address Index button. What do 
>>>> I do in that yellow component when the user clicks one of the select 
>>>> buttons? And how can I pass values to the ShippingAddressSelection 
>>>> component? It ought to know the object being edited on the main form, but 
>>>> it is called up by the componentName binding on the dialog, no way to bind 
>>>> anything.
>>>> 
>>>> I must miss something very simple. The Ajax Examples are not of help here 
>>>> (or I just don't get it), as they show some things but actually do not 
>>>> give an answer to a "how do I do this..." type of question.
>>>> 
>>>> Thanks for bearing with me.
>>>> ---markus---
>>>> 
>>>> addressSelectionDialogOpener : AjaxModalDialogOpener {
>>>>dialogId = "selectAddressDialog";
>>>>linkTitle = "Select Address";
>>>>label = "Select Address";
>>>> }
>>>> 
>>>> selectAddressDialog : AjaxModalDialog {
>>>>pageName = "ShippingAddressSelection";
>>>>id = "selectAddressDialog";
>>>>title = "Select Shipping Address";
>>>>centerVertically = true;
>>>>locked = true;
>>>>width = 630;
>>>>height = 320;
>>>>overlayOpacity = "0.5";
>>>>overlayDuration = "0.1";
>>>>slideDownDuration = "0.1";
>>>>slideUpDuration = "0.1";
>>>>closeUpdateContainerID = "shippingAddressUpdateContainer";
>>>> }
>>>> 
>>>> 
>>>> 
>>>>> On 11 Dec 2017, at 21:59, Samuel Pelletier >>>> <mail

Re: Fighting with Ajax Modal Dialogs et.al.

2017-12-12 Thread Samuel Pelletier
xt.editerUsager"));
>>  }
>>  else {
>>  Usager newUsager = Usager.createUsager(ec);
>>  
>> newUsager.setContact(newUsager.localInstanceOf(selectedContact()));
>>  newUsager.setUserName(selectedContact().email());
>>  setEditedItem(newUsager);
>>  AjaxModalDialog.open(context(), "usagerEditor");
>>  }
>>  return null;
>> }
>> 
>> The ContactSelector component needs to be non synchronizing, either by 
>> extending ERXNonSynchronizingComponent or by overriding the 
>> synchronizesVariablesWithBindings method.
>> 
>> Here is the selectContact method in ContactSelector:
>> public WOActionResults selectContact() {
>>  EOEditingContext ec = (EOEditingContext) 
>> valueForBinding(EditingContextBindingName);
>>  if (ec == null) {
>>  setValueForBinding(item(), SelectedContactBindingName);
>>  }
>>  else {
>>  setValueForBinding(item().localInstanceIn(ec), 
>> SelectedContactBindingName);
>>  }
>>  return (WOActionResults) valueForBinding(SelectActionBindingName);
>> }
>> 
>> Samuel
>> 
>> 
>> 
>>> Le 12 déc. 2017 à 05:59, Markus Ruggiero >> <mailto:mailingli...@kataputt.com>> a écrit :
>>> 
>>> Hi Samuel,
>>> 
>>> thanks for your help, but there are some things still not clear.
>>> 
>>> I have that WOTextField I want to populate. Next to the text field I need a 
>>> clickable element (link, button, whatever) that the user user can use to 
>>> call up an overlay modal dialog. This dialog gets a list of addresss from 
>>> the database. The user can then click one of the addresses (a link or a 
>>> button) to pick the one he needs. This selection action should close the 
>>> dialog and put the selected address string into the text field.
>>> 
>>> I already have a component that retrieves the possible addresses and lists 
>>> them in tabular form. It also shows a [pick this] link. 
>>> 
>>> That's as far as I got. Currently the dialog opener displays the "Select 
>>> Address" link (should eventually replace the Address Index button. What do 
>>> I do in that yellow component when the user clicks one of the select 
>>> buttons? And how can I pass values to the ShippingAddressSelection 
>>> component? It ought to know the object being edited on the main form, but 
>>> it is called up by the componentName binding on the dialog, no way to bind 
>>> anything.
>>> 
>>> I must miss something very simple. The Ajax Examples are not of help here 
>>> (or I just don't get it), as they show some things but actually do not give 
>>> an answer to a "how do I do this..." type of question.
>>> 
>>> Thanks for bearing with me.
>>> ---markus---
>>> 
>>> addressSelectionDialogOpener : AjaxModalDialogOpener {
>>> dialogId = "selectAddressDialog";
>>> linkTitle = "Select Address";
>>> label = "Select Address";
>>> }
>>> 
>>> selectAddressDialog : AjaxModalDialog {
>>> pageName = "ShippingAddressSelection";
>>> id = "selectAddressDialog";
>>> title = "Select Shipping Address";
>>> centerVertically = true;
>>> locked = true;
>>> width = 630;
>>> height = 320;
>>> overlayOpacity = "0.5";
>>> overlayDuration = "0.1";
>>> slideDownDuration = "0.1";
>>> slideUpDuration = "0.1";
>>> closeUpdateContainerID = "shippingAddressUpdateContainer";
>>> }
>>> 
>>> 
>>> 
>>>> On 11 Dec 2017, at 21:59, Samuel Pelletier >>> <mailto:sam...@samkar.com>> wrote:
>>>> 
>>>> Hi Markus,
>>>> 
>>>> If I understand your requirement correctly, you want a modal that allows 
>>>> selecting some value(s) for a form field and want the selection be visible 
>>>> in the displayed form after the modal close.
>>>> 
>>>> The trick is to define an AjaxUpdateContainer around the zone to be 
>>>> updated after the modal close. If you use AjaxObserveFields on your form, 
>>>> you can have a large section refreshed safely.
>>>> 
>>>> You also need to define the AjaxModalDialog with it's id and add the 
>&g

Re: Fighting with Ajax Modal Dialogs et.al.

2017-12-12 Thread Markus Ruggiero
Name);
> }
> 
> Samuel
> 
> 
> 
>> Le 12 déc. 2017 à 05:59, Markus Ruggiero > <mailto:mailingli...@kataputt.com>> a écrit :
>> 
>> Hi Samuel,
>> 
>> thanks for your help, but there are some things still not clear.
>> 
>> I have that WOTextField I want to populate. Next to the text field I need a 
>> clickable element (link, button, whatever) that the user user can use to 
>> call up an overlay modal dialog. This dialog gets a list of addresss from 
>> the database. The user can then click one of the addresses (a link or a 
>> button) to pick the one he needs. This selection action should close the 
>> dialog and put the selected address string into the text field.
>> 
>> I already have a component that retrieves the possible addresses and lists 
>> them in tabular form. It also shows a [pick this] link. 
>> 
>> That's as far as I got. Currently the dialog opener displays the "Select 
>> Address" link (should eventually replace the Address Index button. What do I 
>> do in that yellow component when the user clicks one of the select buttons? 
>> And how can I pass values to the ShippingAddressSelection component? It 
>> ought to know the object being edited on the main form, but it is called up 
>> by the componentName binding on the dialog, no way to bind anything.
>> 
>> I must miss something very simple. The Ajax Examples are not of help here 
>> (or I just don't get it), as they show some things but actually do not give 
>> an answer to a "how do I do this..." type of question.
>> 
>> Thanks for bearing with me.
>> ---markus---
>> 
>> addressSelectionDialogOpener : AjaxModalDialogOpener {
>>  dialogId = "selectAddressDialog";
>>  linkTitle = "Select Address";
>>  label = "Select Address";
>> }
>> 
>> selectAddressDialog : AjaxModalDialog {
>>  pageName = "ShippingAddressSelection";
>>  id = "selectAddressDialog";
>>  title = "Select Shipping Address";
>>  centerVertically = true;
>>  locked = true;
>>  width = 630;
>>  height = 320;
>>  overlayOpacity = "0.5";
>>  overlayDuration = "0.1";
>>  slideDownDuration = "0.1";
>>  slideUpDuration = "0.1";
>>  closeUpdateContainerID = "shippingAddressUpdateContainer";
>> }
>> 
>> 
>> 
>>> On 11 Dec 2017, at 21:59, Samuel Pelletier >> <mailto:sam...@samkar.com>> wrote:
>>> 
>>> Hi Markus,
>>> 
>>> If I understand your requirement correctly, you want a modal that allows 
>>> selecting some value(s) for a form field and want the selection be visible 
>>> in the displayed form after the modal close.
>>> 
>>> The trick is to define an AjaxUpdateContainer around the zone to be updated 
>>> after the modal close. If you use AjaxObserveFields on your form, you can 
>>> have a large section refreshed safely.
>>> 
>>> You also need to define the AjaxModalDialog with it's id and add the 
>>> closeUpdateContainerID binding to specify the AjaxUpdateContainer to update 
>>> when the dialog close.
>>> 
>>> >> "selectValueDialogId" ...
>>> 
>>> And lastly, put the link to open the dialog on your form...
>>> 
>>> 
>>> 
>>> Samuel
>>> 
>>> 
>>> 
>>>> Le 11 déc. 2017 à 11:41, Markus Ruggiero >>> <mailto:mailingli...@kataputt.com>> a écrit :
>>>> 
>>>> it always the same ... not using these things often results in utter 
>>>> confusion when finally I need to do this.
>>>> 
>>>> I have a standard page with a large form.
>>>> On that page there is a text field that the user can ...
>>>>- enter an value directly
>>>>- depending on previously made selections further up in the form the 
>>>> value is already set and cannot be changed
>>>>- depending on previously made selections further up in the form there 
>>>> is a button/link next to the text field that should open a modal dialog 
>>>> with a list of strings to pick from (the field is not editable direcly).
>>>> My problem is that 3rd option.
>>>> 
>>>> I already have a small component that loads the available strings from the 
>>>> database and shows them in a table. The user can then click a [pick thi

Re: Fighting with Ajax Modal Dialogs et.al.

2017-12-12 Thread Samuel Pelletier
Markus,

I have a very similar implementation is an app where a new user is added by 
selecting a contact.

In my UsagerList component where I have the new user function I have this in my 
html file:





Éditer

The add button open the modal that display my ContactSelector component with 2 
bindings. The selectedContact will contain the selected contact (an object of 
my Contact entity) and the selectAction will be performed upon selection.

In my UsagerList java class, I have a   public WOActionResults addUsager() 
method that create or edit a user for this contact in a modal dialog. In your 
case, just put the value in the desired attribute of your edited object and 
close the displayed modal dialog by calling AjaxModalDialog.close(context()); 
For your situation, I would add the to the closeUpdateContainerID = "editor" 
AjaxModalDialog bindings to refresh the form and show the selection to the user.


public WOActionResults addUsager() {
EOEditingContext ec = ERXEC.newEditingContext();
Usager usager = Usager.fetchUsager(ec, 
Usager.CONTACT.eq(selectedContact().localInstanceIn(ec)));
if (usager != null) {
setEditedItem(usager);
AjaxModalDialog.open(context(), "usagerEditor", 
localizer().localizedStringForKeyWithDefault("UsagerList.text.editerUsager"));
}
else {
Usager newUsager = Usager.createUsager(ec);

newUsager.setContact(newUsager.localInstanceOf(selectedContact()));
newUsager.setUserName(selectedContact().email());
setEditedItem(newUsager);
AjaxModalDialog.open(context(), "usagerEditor");
}
return null;
}

The ContactSelector component needs to be non synchronizing, either by 
extending ERXNonSynchronizingComponent or by overriding the 
synchronizesVariablesWithBindings method.

Here is the selectContact method in ContactSelector:
public WOActionResults selectContact() {
EOEditingContext ec = (EOEditingContext) 
valueForBinding(EditingContextBindingName);
if (ec == null) {
setValueForBinding(item(), SelectedContactBindingName);
}
else {
setValueForBinding(item().localInstanceIn(ec), 
SelectedContactBindingName);
}
return (WOActionResults) valueForBinding(SelectActionBindingName);
}

Samuel



> Le 12 déc. 2017 à 05:59, Markus Ruggiero  a écrit :
> 
> Hi Samuel,
> 
> thanks for your help, but there are some things still not clear.
> 
> I have that WOTextField I want to populate. Next to the text field I need a 
> clickable element (link, button, whatever) that the user user can use to call 
> up an overlay modal dialog. This dialog gets a list of addresss from the 
> database. The user can then click one of the addresses (a link or a button) 
> to pick the one he needs. This selection action should close the dialog and 
> put the selected address string into the text field.
> 
> I already have a component that retrieves the possible addresses and lists 
> them in tabular form. It also shows a [pick this] link. 
> 
> That's as far as I got. Currently the dialog opener displays the "Select 
> Address" link (should eventually replace the Address Index button. What do I 
> do in that yellow component when the user clicks one of the select buttons? 
> And how can I pass values to the ShippingAddressSelection component? It ought 
> to know the object being edited on the main form, but it is called up by the 
> componentName binding on the dialog, no way to bind anything.
> 
> I must miss something very simple. The Ajax Examples are not of help here (or 
> I just don't get it), as they show some things but actually do not give an 
> answer to a "how do I do this..." type of question.
> 
> Thanks for bearing with me.
> ---markus---
> 
> addressSelectionDialogOpener : AjaxModalDialogOpener {
>   dialogId = "selectAddressDialog";
>   linkTitle = "Select Address";
>   label = "Select Address";
> }
> 
> selectAddressDialog : AjaxModalDialog {
>   pageName = "ShippingAddressSelection";
>   id = "selectAddressDialog";
>   title = "Select Shipping Address";
>   centerVertically = true;
>   locked = true;
>   width = 630;
>   height = 320;
>   overlayOpacity = "0.5";
>   overlayDuration = "0.1";
>   slideDownDuration = "0.1";
>   slideUpDuration = "0.1";
>   closeUpdateContainerID = "shippingAddressUpdateContainer";
> }
> 
> 
> 
>> On 11 Dec 2017, at 21:59, Samuel Pelletier > <mailto:sam...@samkar.com>> wrote:
>> 
>> Hi Markus,
>>

Re: Fighting with Ajax Modal Dialogs et.al.

2017-12-11 Thread Samuel Pelletier
Hi Markus,

If I understand your requirement correctly, you want a modal that allows 
selecting some value(s) for a form field and want the selection be visible in 
the displayed form after the modal close.

The trick is to define an AjaxUpdateContainer around the zone to be updated 
after the modal close. If you use AjaxObserveFields on your form, you can have 
a large section refreshed safely.

You also need to define the AjaxModalDialog with it's id and add the 
closeUpdateContainerID binding to specify the AjaxUpdateContainer to update 
when the dialog close.




Samuel



> Le 11 déc. 2017 à 11:41, Markus Ruggiero  a écrit :
> 
> it always the same ... not using these things often results in utter 
> confusion when finally I need to do this.
> 
> I have a standard page with a large form.
> On that page there is a text field that the user can ...
>   - enter an value directly
>   - depending on previously made selections further up in the form the 
> value is already set and cannot be changed
>   - depending on previously made selections further up in the form there 
> is a button/link next to the text field that should open a modal dialog with 
> a list of strings to pick from (the field is not editable direcly).
> My problem is that 3rd option.
> 
> I already have a small component that loads the available strings from the 
> database and shows them in a table. The user can then click a [pick this] - 
> hyperlink next to an entry (or close the selection box without picking 
> anything. The picked 
> value should be put into the text field.
> 
> I succeeded partially with the help of the Ajax Examples. Tried 
> AjaxModalDialog as well as AjaxModalUpdate. I can show a dialog with both 
> elements and the correct data, but from there? . I am lost.
> 
> Which one to use, AjaxModalDialog or AjaxModalUpdate?
> How do I get the selected String back / put it into the underlying 
> object-to-be-edited, update the display and close the dialog.
> 
> Can anyone provide me with a simple example? 
> 
> Thanks a lot
> ---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/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


Fighting with Ajax Modal Dialogs et.al.

2017-12-11 Thread Markus Ruggiero
it always the same ... not using these things often results in utter confusion 
when finally I need to do this.

I have a standard page with a large form.
On that page there is a text field that the user can ...
- enter an value directly
- depending on previously made selections further up in the form the 
value is already set and cannot be changed
- depending on previously made selections further up in the form there 
is a button/link next to the text field that should open a modal dialog with a 
list of strings to pick from (the field is not editable direcly).
My problem is that 3rd option.

I already have a small component that loads the available strings from the 
database and shows them in a table. The user can then click a [pick this] - 
hyperlink next to an entry (or close the selection box without picking 
anything. The picked 
value should be put into the text field.

I succeeded partially with the help of the Ajax Examples. Tried AjaxModalDialog 
as well as AjaxModalUpdate. I can show a dialog with both elements and the 
correct data, but from there? . I am lost.

Which one to use, AjaxModalDialog or AjaxModalUpdate?
How do I get the selected String back / put it into the underlying 
object-to-be-edited, update the display and close the dialog.

Can anyone provide me with a simple example? 

Thanks a lot
---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/archive%40mail-archive.com

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


Re: D2W and Ajax oh my!

2017-03-02 Thread Flavio Donadio
Ted,


For sure, it helps… I’ll try it myself and will post my results here.


Cheers,
Flavio

> On 2 Mar 2017, at 17:15, Theodore Petrosky  wrote:
> 
> I was trying to find the project that I needed this in.
> 
> No luck, however, I seem to recall that I created a custom component that had 
> an ajax in place editor. you could have a button that needs to be clicked or 
> when you leave the text area it fires the method.
> 
> does that help?
> 
> 
> 
>> On Mar 2, 2017, at 2:05 PM, Flavio Donadio  wrote:
>> 
>> Ted,
>> 
>> 
>> I was searching the list for a solution like this and found this message 
>> from 2014!
>> 
>> Only difference is that I need this behavior in a subtask 
>> (EditRelationship), but shouldn’t be very different.
>> 
>> Did you ever get this working? How did you do it?
>> 
>> 
>> Cheers,
>> Flavio
>> 
>> 
>>> On 11 Feb 2014, at 17:48, Theodore Petrosky  wrote:
>>> 
>>> I am trying to add a custom component to a ListPage. I am showing a normal 
>>> list (ERMODListPage) and I want the user to be able to edit an attribute by 
>>> clicking on the cell and use an AjaxInPlace to edit the text.
>>> 
>>> I have everything working except the refresh when the user clicks the 
>>> 'save' button. I am hoping the answer is simple. If I were not using D2W, I 
>>> would wrap the table in an AjaxUpdateContainer and just fire that update 
>>> after I did a saveChanges(). 
>>> 
>>> Before I start subclassing ERMODListPage to add an UpdateContainer, is 
>>> there a rule or two that will do this. Or am I working too hard.
>>> 
>>> I would love to find something like:
>>> 
>>> updateContainerID = d2wContext.idForParentMainContainer;
>>> 
>>> Ted
> 


 ___
Do not post admin requests to the list. They will 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: D2W and Ajax oh my!

2017-03-02 Thread Flavio Donadio
Ted,


I was searching the list for a solution like this and found this message from 
2014!

Only difference is that I need this behavior in a subtask (EditRelationship), 
but shouldn’t be very different.

Did you ever get this working? How did you do it?


Cheers,
Flavio


> On 11 Feb 2014, at 17:48, Theodore Petrosky  wrote:
> 
> I am trying to add a custom component to a ListPage. I am showing a normal 
> list (ERMODListPage) and I want the user to be able to edit an attribute by 
> clicking on the cell and use an AjaxInPlace to edit the text.
> 
> I have everything working except the refresh when the user clicks the 'save' 
> button. I am hoping the answer is simple. If I were not using D2W, I would 
> wrap the table in an AjaxUpdateContainer and just fire that update after I 
> did a saveChanges(). 
> 
> Before I start subclassing ERMODListPage to add an UpdateContainer, is there 
> a rule or two that will do this. Or am I working too hard.
> 
> I would love to find something like:
> 
> updateContainerID = d2wContext.idForParentMainContainer;
> 
> Ted

 ___
Do not post admin requests to the list. They will 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: Slow partial ajax requests (and perhaps a solution)

2017-01-21 Thread Jean-François Veillette
I was only thinking out loud, not thinking thoroughly, don’t take it as a 
strong suggestion but only something else to think about.
But yes, one way would be to send data through RPC for the server to save 
instead of the usual form submission.

jfv



> On Jan 20, 2017, at 09:45, René Bock  wrote:
> 
> Hi Jean-François,
> 
> so you suggest using RPC to circumvent takeValuesFromRequest and invokeAction 
> triggered by the AjaxSubmitButton?  
> 
> 
>> Am 20.01.2017 um 14:46 schrieb Jean-François Veillette 
>> :
>> 
>> Thinking about it  …
>> It seems the problem partly come from having a repetition or some kind or a 
>> form of sequential access to your textfield bindings.
>> Maybe you could avoid that by pointing directly to it by means of RPC?  So 
>> use an AjaxProxy object, that talk to your server-side controller object, 
>> this object most likely have direct access to the object/attribute you are 
>> referring without having to go through the loop or some kind of sequential 
>> access.
>> 
>> So you would most likely have to write a JS object that will take care of 
>> validations on your page, responsible for communicating (RPC) with server 
>> and validating values.  Place the AjaxProxy object early in the components 
>> tree so that it would be found quickly (not nested inside a loop, or at 
>> least found early in a loop).
>> 
>> just some thought,
>> 
>> jfv
>> 
>> 
>>> On Jan 19, 2017, at 10:32, René Bock  wrote:
>>> 
>>> Hi list,
>>> 
>>> In our framework, we are using partial ajax requests to validate input 
>>> field as soon as the user leaves the text field.
>>> 
>>> In a very complex form, we noticed that the response time of the partial 
>>> requests depends on the position of the input field. The validation logic 
>>> is encapsulated in InputFieldComponent, and the form component is mainly a 
>>> WORepetition of these InputFieldComponents.  
>>> 
>>> The range of the measured  response times is something between 60 ms for 
>>> the first component and 1200 ms for the last component in the form.   The 
>>> longest response time is about the  same as I would do a normal form submit.
>>> 
>>> 
>>> Did anybody noticed a similar phenomena?
>>> 
>>> 
>>> Anyway, my questions are:
>>> 
>>> 1. Why does the position of a field make a difference at all?  
>>> 2. Is there a possibility to speed up things?
>>> 
>>> 
>>> Here my observations:
>>> 
>>> A profiling session reveals, that a lot of time is spent in 
>>> takeFormValuesFromRequest and invokeAction.
>>> 
>>> 
>>> Answer for #1: As soon as ajaxSubmitButton which triggered the request is 
>>> found, invokeAction is somehow "interrupted".  (see 
>>> ERXAjaxContext.wasFormSubmitted...)  
>>> 
>>> 
>>> As it is possible to eliminate unnecessary component tree traversal after 
>>> the right ajaxSubmitButton.action is found,  it should also be possible to 
>>> ignore the other irrelevant childComponents.
>>> 
>>> 
>>> ASSUMPTION: 
>>> a) for partial submits, we get only one form value (i.e the 
>>> partialFormSenderID).  
>>> b) the partialFormSenderID is the path of the sender component in the 
>>> overall component hierarchy.
>>> 
>>> IDEA:  for the component hierarchy tree traversal, we may ignore child 
>>> components not on the path to the partialFormSender.
>>> 
>>> 
>>> Solution (proof of concept) for #2: In ERXWORepetition, I changed 
>>> takeFormValuesFromRequest and invokeAction as follows:
>>> 
>>> 
>>> public void takeValuesFromRequest(WORequest worequest, WOContext wocontext) 
>>> {
>>> WOComponent wocomponent = wocontext.component();
>>> String partialFormSenderID = 
>>> ERXAjaxApplication.partialFormSenderID(worequest); 
>>> 
>>> Context context = createContext(wocomponent);
>>> 
>>> int count = _count(context, wocomponent);
>>> boolean checkHashCodes = checkHashCodes(wocomponent);
>>> 
>>> for (int index = 0; index < count; index++) {
>>> _prepareForIterationWithIndex(context, index, wocontext, wocomponent, 
>>> checkHashCodes);
>>> if(partialFormSenderID == null || 
>>> partialFormSenderID.startsWith(wocontext.elementID())) {  // NO RECURSION 
>>> if component[index] does not match senderID 

Re: Slow partial ajax requests (and perhaps a solution)

2017-01-20 Thread René Bock
Hi Jean-François,

so you suggest using RPC to circumvent takeValuesFromRequest and invokeAction 
triggered by the AjaxSubmitButton?  

  
> Am 20.01.2017 um 14:46 schrieb Jean-François Veillette 
> :
> 
> Thinking about it  …
> It seems the problem partly come from having a repetition or some kind or a 
> form of sequential access to your textfield bindings.
> Maybe you could avoid that by pointing directly to it by means of RPC?  So 
> use an AjaxProxy object, that talk to your server-side controller object, 
> this object most likely have direct access to the object/attribute you are 
> referring without having to go through the loop or some kind of sequential 
> access.
> 
> So you would most likely have to write a JS object that will take care of 
> validations on your page, responsible for communicating (RPC) with server and 
> validating values.  Place the AjaxProxy object early in the components tree 
> so that it would be found quickly (not nested inside a loop, or at least 
> found early in a loop).
> 
> just some thought,
> 
> jfv
> 
> 
>> On Jan 19, 2017, at 10:32, René Bock  wrote:
>> 
>> Hi list,
>> 
>> In our framework, we are using partial ajax requests to validate input field 
>> as soon as the user leaves the text field.
>> 
>> In a very complex form, we noticed that the response time of the partial 
>> requests depends on the position of the input field. The validation logic is 
>> encapsulated in InputFieldComponent, and the form component is mainly a 
>> WORepetition of these InputFieldComponents.  
>> 
>> The range of the measured  response times is something between 60 ms for the 
>> first component and 1200 ms for the last component in the form.   The 
>> longest response time is about the  same as I would do a normal form submit.
>> 
>> 
>> Did anybody noticed a similar phenomena?
>> 
>> 
>> Anyway, my questions are:
>> 
>> 1. Why does the position of a field make a difference at all?  
>> 2. Is there a possibility to speed up things?
>> 
>> 
>> Here my observations:
>> 
>> A profiling session reveals, that a lot of time is spent in 
>> takeFormValuesFromRequest and invokeAction.
>> 
>> 
>> Answer for #1: As soon as ajaxSubmitButton which triggered the request is 
>> found, invokeAction is somehow "interrupted".  (see 
>> ERXAjaxContext.wasFormSubmitted...)  
>> 
>> 
>> As it is possible to eliminate unnecessary component tree traversal after 
>> the right ajaxSubmitButton.action is found,  it should also be possible to 
>> ignore the other irrelevant childComponents.
>> 
>> 
>> ASSUMPTION: 
>> a) for partial submits, we get only one form value (i.e the 
>> partialFormSenderID).  
>> b) the partialFormSenderID is the path of the sender component in the 
>> overall component hierarchy.
>> 
>> IDEA:  for the component hierarchy tree traversal, we may ignore child 
>> components not on the path to the partialFormSender.
>> 
>> 
>> Solution (proof of concept) for #2: In ERXWORepetition, I changed 
>> takeFormValuesFromRequest and invokeAction as follows:
>> 
>> 
>> public void takeValuesFromRequest(WORequest worequest, WOContext wocontext) {
>> WOComponent wocomponent = wocontext.component();
>> String partialFormSenderID = 
>> ERXAjaxApplication.partialFormSenderID(worequest); 
>> 
>> Context context = createContext(wocomponent);
>> 
>> int count = _count(context, wocomponent);
>> boolean checkHashCodes = checkHashCodes(wocomponent);
>> 
>> for (int index = 0; index < count; index++) {
>> _prepareForIterationWithIndex(context, index, wocontext, wocomponent, 
>> checkHashCodes);
>>  if(partialFormSenderID == null || 
>> partialFormSenderID.startsWith(wocontext.elementID())) {  // NO RECURSION if 
>> component[index] does not match senderID 
>> super.takeValuesFromRequest(worequest, wocontext);
>> }
>> }
>> if (count > 0) {
>> _cleanupAfterIteration(count, wocontext, wocomponent);
>> }
>> }
>> 
>> invokeAction is patched in similar way.
>> 
>> The result is, that the ajax request at the bottom of the page takes now 60 
>> ms instead of 1200ms :-)
>> Unfortunately, this is not a general solution. There are scenarios, there 
>> invokeAction will not invoke any actions at all :-(
>> 
>> Has anybody an idea for a general solution?  Maybe a completely different 
>> approach?
>> 
>> 
>> 
>> Best regards (and sorry for this long post)
>> 
>> 
&g

Re: Slow partial ajax requests (and perhaps a solution)

2017-01-20 Thread Jean-François Veillette
Thinking about it  …
It seems the problem partly come from having a repetition or some kind or a 
form of sequential access to your textfield bindings.
Maybe you could avoid that by pointing directly to it by means of RPC?  So use 
an AjaxProxy object, that talk to your server-side controller object, this 
object most likely have direct access to the object/attribute you are referring 
without having to go through the loop or some kind of sequential access.

So you would most likely have to write a JS object that will take care of 
validations on your page, responsible for communicating (RPC) with server and 
validating values.  Place the AjaxProxy object early in the components tree so 
that it would be found quickly (not nested inside a loop, or at least found 
early in a loop).

just some thought,

jfv


> On Jan 19, 2017, at 10:32, René Bock  wrote:
> 
> Hi list,
> 
> In our framework, we are using partial ajax requests to validate input field 
> as soon as the user leaves the text field.
> 
> In a very complex form, we noticed that the response time of the partial 
> requests depends on the position of the input field. The validation logic is 
> encapsulated in InputFieldComponent, and the form component is mainly a 
> WORepetition of these InputFieldComponents.  
> 
> The range of the measured  response times is something between 60 ms for the 
> first component and 1200 ms for the last component in the form.   The longest 
> response time is about the  same as I would do a normal form submit.
> 
> 
> Did anybody noticed a similar phenomena?
> 
> 
> Anyway, my questions are:
> 
> 1. Why does the position of a field make a difference at all?  
> 2. Is there a possibility to speed up things?
> 
> 
> Here my observations:
> 
> A profiling session reveals, that a lot of time is spent in 
> takeFormValuesFromRequest and invokeAction.
> 
> 
> Answer for #1: As soon as ajaxSubmitButton which triggered the request is 
> found, invokeAction is somehow "interrupted".  (see 
> ERXAjaxContext.wasFormSubmitted...)  
> 
> 
> As it is possible to eliminate unnecessary component tree traversal after the 
> right ajaxSubmitButton.action is found,  it should also be possible to ignore 
> the other irrelevant childComponents.
> 
> 
> ASSUMPTION: 
> a) for partial submits, we get only one form value (i.e the 
> partialFormSenderID).  
> b) the partialFormSenderID is the path of the sender component in the overall 
> component hierarchy.
> 
> IDEA:  for the component hierarchy tree traversal, we may ignore child 
> components not on the path to the partialFormSender.
> 
> 
> Solution (proof of concept) for #2: In ERXWORepetition, I changed 
> takeFormValuesFromRequest and invokeAction as follows:
> 
> 
> public void takeValuesFromRequest(WORequest worequest, WOContext wocontext) {
> WOComponent wocomponent = wocontext.component();
> String partialFormSenderID = 
> ERXAjaxApplication.partialFormSenderID(worequest); 
> 
> Context context = createContext(wocomponent);
> 
> int count = _count(context, wocomponent);
> boolean checkHashCodes = checkHashCodes(wocomponent);
> 
> for (int index = 0; index < count; index++) {
> _prepareForIterationWithIndex(context, index, wocontext, wocomponent, 
> checkHashCodes);
>   if(partialFormSenderID == null || 
> partialFormSenderID.startsWith(wocontext.elementID())) {  // NO RECURSION if 
> component[index] does not match senderID 
> super.takeValuesFromRequest(worequest, wocontext);
> }
> }
> if (count > 0) {
> _cleanupAfterIteration(count, wocontext, wocomponent);
> }
> }
> 
> invokeAction is patched in similar way.
> 
> The result is, that the ajax request at the bottom of the page takes now 60 
> ms instead of 1200ms :-)
> Unfortunately, this is not a general solution. There are scenarios, there 
> invokeAction will not invoke any actions at all :-(
> 
> Has anybody an idea for a general solution?  Maybe a completely different 
> approach?
> 
> 
> 
> Best regards (and sorry for this long post)
> 
> 
> René Bock
> 
> --
> Phone: +49 69 650096 18
> 
> salient GmbH, Lindleystraße 12, 60314 Frankfurt
> Main: +49 69 65 00 96 0  |  http://www.salient-doremus.de | 
> http://www.openforms.de
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/jean_francois_veillette%40yahoo.ca
> 
> This email sent to jean_francois_veille...@yahoo.ca


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

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

Re: Slow partial ajax requests (and perhaps a solution)

2017-01-20 Thread René Bock
Hi Samuel,

thanks for your answer. I will definitely look at the the bindings those values 
are being computed.



Am 19.01.2017 um 17:57 schrieb Samuel Pelletier 
mailto:sam...@samkar.com>>:

Hi René,

My guest is the InputFieldComponents is doing redundant computations in getter 
methods used in the HTML parsing. If you move all the validation logic and save 
the results in variables in the appendToResponse and make sure the entire 
component is refreshed by the Ajax container, you should have much better 
results.

All getters required during the HTML parsing will be called on each phase of 
the RR loop so it is always a good practice to limit their scope to fast values 
retrieving instead of value computing. BTW, you do not want these values to 
change between append to response call as they may even change the element tree.

Regards,

Samuel


Le 19 janv. 2017 à 10:32, René Bock 
mailto:b...@salient-doremus.de>> a écrit :

Hi list,

In our framework, we are using partial ajax requests to validate input field as 
soon as the user leaves the text field.

In a very complex form, we noticed that the response time of the partial 
requests depends on the position of the input field. The validation logic is 
encapsulated in InputFieldComponent, and the form component is mainly a 
WORepetition of these InputFieldComponents.

The range of the measured  response times is something between 60 ms for the 
first component and 1200 ms for the last component in the form.   The longest 
response time is about the  same as I would do a normal form submit.


Did anybody noticed a similar phenomena?


Anyway, my questions are:

1. Why does the position of a field make a difference at all?
2. Is there a possibility to speed up things?


Here my observations:

A profiling session reveals, that a lot of time is spent in 
takeFormValuesFromRequest and invokeAction.


Answer for #1: As soon as ajaxSubmitButton which triggered the request is 
found, invokeAction is somehow "interrupted".  (see 
ERXAjaxContext.wasFormSubmitted...)


As it is possible to eliminate unnecessary component tree traversal after the 
right ajaxSubmitButton.action is found,  it should also be possible to ignore 
the other irrelevant childComponents.


ASSUMPTION:
a) for partial submits, we get only one form value (i.e the 
partialFormSenderID).
b) the partialFormSenderID is the path of the sender component in the overall 
component hierarchy.

IDEA:  for the component hierarchy tree traversal, we may ignore child 
components not on the path to the partialFormSender.


Solution (proof of concept) for #2: In ERXWORepetition, I changed 
takeFormValuesFromRequest and invokeAction as follows:


public void takeValuesFromRequest(WORequest worequest, WOContext wocontext) {
WOComponent wocomponent = wocontext.component();
String partialFormSenderID = ERXAjaxApplication.partialFormSenderID(worequest);

Context context = createContext(wocomponent);

int count = _count(context, wocomponent);
boolean checkHashCodes = checkHashCodes(wocomponent);

for (int index = 0; index < count; index++) {
_prepareForIterationWithIndex(context, index, wocontext, wocomponent, 
checkHashCodes);
  if(partialFormSenderID == null || 
partialFormSenderID.startsWith(wocontext.elementID())) {  // NO RECURSION if 
component[index] does not match senderID
super.takeValuesFromRequest(worequest, wocontext);
}
}
if (count > 0) {
_cleanupAfterIteration(count, wocontext, wocomponent);
}
}

invokeAction is patched in similar way.

The result is, that the ajax request at the bottom of the page takes now 60 ms 
instead of 1200ms :-)
Unfortunately, this is not a general solution. There are scenarios, there 
invokeAction will not invoke any actions at all :-(

Has anybody an idea for a general solution?  Maybe a completely different 
approach?



Best regards (and sorry for this long post)


René Bock

--
Phone: +49 69 650096 18

salient GmbH, Lindleystraße 12, 60314 Frankfurt
Main: +49 69 65 00 96 0  |  
http://www.salient-doremus.de<http://www.salient-doremus.de/> | 
http://www.openforms.de<http://www.openforms.de/>

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

This email sent to sam...@samkar.com<mailto:sam...@samkar.com>


Mit freundlichen Grüßen

René Bock

--
Telefon: +49 69 650096 18

salient GmbH, Lindleystraße 12, 60314 Frankfurt
Telefon Zentrale: 069 / 65 00 96 - 0  |  
www.salient-doremus.de<http://www.salient-doremus.de>

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscripti

Re: Slow partial ajax requests (and perhaps a solution)

2017-01-19 Thread Samuel Pelletier
Hi René,

My guest is the InputFieldComponents is doing redundant computations in getter 
methods used in the HTML parsing. If you move all the validation logic and save 
the results in variables in the appendToResponse and make sure the entire 
component is refreshed by the Ajax container, you should have much better 
results.

All getters required during the HTML parsing will be called on each phase of 
the RR loop so it is always a good practice to limit their scope to fast values 
retrieving instead of value computing. BTW, you do not want these values to 
change between append to response call as they may even change the element tree.

Regards,

Samuel


> Le 19 janv. 2017 à 10:32, René Bock  a écrit :
> 
> Hi list,
> 
> In our framework, we are using partial ajax requests to validate input field 
> as soon as the user leaves the text field.
> 
> In a very complex form, we noticed that the response time of the partial 
> requests depends on the position of the input field. The validation logic is 
> encapsulated in InputFieldComponent, and the form component is mainly a 
> WORepetition of these InputFieldComponents.  
> 
> The range of the measured  response times is something between 60 ms for the 
> first component and 1200 ms for the last component in the form.   The longest 
> response time is about the  same as I would do a normal form submit.
> 
> 
> Did anybody noticed a similar phenomena?
> 
> 
> Anyway, my questions are:
> 
> 1. Why does the position of a field make a difference at all?  
> 2. Is there a possibility to speed up things?
> 
> 
> Here my observations:
> 
> A profiling session reveals, that a lot of time is spent in 
> takeFormValuesFromRequest and invokeAction.
> 
> 
> Answer for #1: As soon as ajaxSubmitButton which triggered the request is 
> found, invokeAction is somehow "interrupted".  (see 
> ERXAjaxContext.wasFormSubmitted...)  
> 
> 
> As it is possible to eliminate unnecessary component tree traversal after the 
> right ajaxSubmitButton.action is found,  it should also be possible to ignore 
> the other irrelevant childComponents.
> 
> 
> ASSUMPTION: 
> a) for partial submits, we get only one form value (i.e the 
> partialFormSenderID).  
> b) the partialFormSenderID is the path of the sender component in the overall 
> component hierarchy.
> 
> IDEA:  for the component hierarchy tree traversal, we may ignore child 
> components not on the path to the partialFormSender.
> 
> 
> Solution (proof of concept) for #2: In ERXWORepetition, I changed 
> takeFormValuesFromRequest and invokeAction as follows:
> 
> 
> public void takeValuesFromRequest(WORequest worequest, WOContext wocontext) {
> WOComponent wocomponent = wocontext.component();
> String partialFormSenderID = 
> ERXAjaxApplication.partialFormSenderID(worequest); 
> 
> Context context = createContext(wocomponent);
> 
> int count = _count(context, wocomponent);
> boolean checkHashCodes = checkHashCodes(wocomponent);
> 
> for (int index = 0; index < count; index++) {
> _prepareForIterationWithIndex(context, index, wocontext, wocomponent, 
> checkHashCodes);
>   if(partialFormSenderID == null || 
> partialFormSenderID.startsWith(wocontext.elementID())) {  // NO RECURSION if 
> component[index] does not match senderID 
> super.takeValuesFromRequest(worequest, wocontext);
> }
> }
> if (count > 0) {
> _cleanupAfterIteration(count, wocontext, wocomponent);
> }
> }
> 
> invokeAction is patched in similar way.
> 
> The result is, that the ajax request at the bottom of the page takes now 60 
> ms instead of 1200ms :-)
> Unfortunately, this is not a general solution. There are scenarios, there 
> invokeAction will not invoke any actions at all :-(
> 
> Has anybody an idea for a general solution?  Maybe a completely different 
> approach?
> 
> 
> 
> Best regards (and sorry for this long post)
> 
> 
> René Bock
> 
> --
> Phone: +49 69 650096 18
> 
> salient GmbH, Lindleystraße 12, 60314 Frankfurt
> Main: +49 69 65 00 96 0  |  http://www.salient-doremus.de 
> <http://www.salient-doremus.de/> | http://www.openforms.de 
> <http://www.openforms.de/>
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/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


Slow partial ajax requests (and perhaps a solution)

2017-01-19 Thread René Bock
Hi list,

In our framework, we are using partial ajax requests to validate input field as 
soon as the user leaves the text field.

In a very complex form, we noticed that the response time of the partial 
requests depends on the position of the input field. The validation logic is 
encapsulated in InputFieldComponent, and the form component is mainly a 
WORepetition of these InputFieldComponents.

The range of the measured  response times is something between 60 ms for the 
first component and 1200 ms for the last component in the form.   The longest 
response time is about the  same as I would do a normal form submit.


Did anybody noticed a similar phenomena?


Anyway, my questions are:

1. Why does the position of a field make a difference at all?
2. Is there a possibility to speed up things?


Here my observations:

A profiling session reveals, that a lot of time is spent in 
takeFormValuesFromRequest and invokeAction.


Answer for #1: As soon as ajaxSubmitButton which triggered the request is 
found, invokeAction is somehow "interrupted".  (see 
ERXAjaxContext.wasFormSubmitted...)


As it is possible to eliminate unnecessary component tree traversal after the 
right ajaxSubmitButton.action is found,  it should also be possible to ignore 
the other irrelevant childComponents.


ASSUMPTION:
a) for partial submits, we get only one form value (i.e the 
partialFormSenderID).
b) the partialFormSenderID is the path of the sender component in the overall 
component hierarchy.

IDEA:  for the component hierarchy tree traversal, we may ignore child 
components not on the path to the partialFormSender.


Solution (proof of concept) for #2: In ERXWORepetition, I changed 
takeFormValuesFromRequest and invokeAction as follows:


public void takeValuesFromRequest(WORequest worequest, WOContext wocontext) {
WOComponent wocomponent = wocontext.component();
String partialFormSenderID = ERXAjaxApplication.partialFormSenderID(worequest);


Context context = createContext(wocomponent);

int count = _count(context, wocomponent);
boolean checkHashCodes = checkHashCodes(wocomponent);

for (int index = 0; index < count; index++) {
_prepareForIterationWithIndex(context, index, wocontext, wocomponent, 
checkHashCodes);
  if(partialFormSenderID == null || 
partialFormSenderID.startsWith(wocontext.elementID())) {  // NO RECURSION if 
component[index] does not match senderID
super.takeValuesFromRequest(worequest, wocontext);
}
}
if (count > 0) {
_cleanupAfterIteration(count, wocontext, wocomponent);
}
}

invokeAction is patched in similar way.

The result is, that the ajax request at the bottom of the page takes now 60 ms 
instead of 1200ms :-)
Unfortunately, this is not a general solution. There are scenarios, there 
invokeAction will not invoke any actions at all :-(

Has anybody an idea for a general solution?  Maybe a completely different 
approach?



Best regards (and sorry for this long post)


René Bock

--
Phone: +49 69 650096 18

salient GmbH, Lindleystraße 12, 60314 Frankfurt
Main: +49 69 65 00 96 0  |  http://www.salient-doremus.de | 
http://www.openforms.de

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

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


Re: Ajax request, ERXRedirect and ERXThreadStorage

2016-07-14 Thread Jean-François Veillette
On Jul 12, 2016, at 8:52 AM, Paul Hoadley <pa...@logicsquad.net> wrote:Hello,I’m working on an app where some page-level informational messages (such as validation problems) are stored in ERXThreadStorage, and displayed by the page wrapper. This works great for full page loads.In a few places, I’m doing some Ajax submissions with AjaxSubmitButton. In the usual case, nothing goes wrong and an AjaxUpdateContainer displays some new information. I figured that a reasonable way to display validation errors from these Ajax submissions would be to stash the messages in ERXThreadStorage in the usual way, and then use ERXRedirect and its setComponentToPage() to just force a full page reload. This all works except (critically) the _retrieval_ of the messages from ERXThreadStorage—there’s nothing there. Is this expected?It is expected.  The redirect is in fact a new request sent from the browser, it gets queued and processes by a different thread.  Even if you are lucky and get the same thread, the thread storage dictionary info will be fresh and empty (as for any new request). Is the invocation of the action method by the Ajax submission on a different thread?Yes, and with that pattern, the validation information is no longer thread bound but is now multi-request (imagine .css, .js or .jpg requests) bound … or simply session bound.Maybe you can keep it in a « session’s last request validation info object » and clear it at the start of a full-page request.jfv-- Paul Hoadleyhttp://logicsquad.net/


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

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

Re: Ajax request, ERXRedirect and ERXThreadStorage

2016-07-12 Thread Paul Hoadley
On 13 Jul 2016, at 1:28 AM, Lon Varscsak  wrote:

> I believe the the thread storage is reset for each request, and the Ajax 
> request and the redirect are two different requests.

That would explain it. Thanks Lon.


-- 
Paul Hoadley
http://logicsquad.net/




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

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

Re: Ajax request, ERXRedirect and ERXThreadStorage

2016-07-12 Thread Paul Hoadley
On 13 Jul 2016, at 1:41 AM, Chuck Hill  wrote:

> As long as you have more than one worker thread, there is no guarantee which 
> will process which request.

I logged out the thread names, and that didn’t seem to be the problem. The same 
worker thread was involved from the Ajax action through to sending out the 
re-direct.

> Do you have a session you can stash it in?

Yeah, that’s my workaround. It’s awkward, though, because the single R-R 
lifespan of ERXThreadStorage is just perfect for this use case. In fact, I end 
up moving the informational messages into ERXThreadStorage at some point just 
to ensure they disappear at the right time (because they shouldn’t persist into 
the next R-R, they’re just for one-off display). I couldn’t seem to simulate it 
just using the session.


-- 
Paul Hoadley
http://logicsquad.net/



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

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

Re: Ajax request, ERXRedirect and ERXThreadStorage

2016-07-12 Thread Chuck Hill
As long as you have more than one worker thread, there is no guarantee which 
will process which request.  Do you have a session you can stash it in?

Chuck

From:  on behalf of 
Lon Varscsak 
Date: Tuesday, July 12, 2016 at 8:58 AM
To: Paul Hoadley 
Cc: WebObjects-Dev 
Subject: Re: Ajax request, ERXRedirect and ERXThreadStorage

I believe the the thread storage is reset for each request, and the Ajax 
request and the redirect are two different requests.

On Mon, Jul 11, 2016 at 11:52 PM, Paul Hoadley 
mailto:pa...@logicsquad.net>> wrote:
Hello,

I’m working on an app where some page-level informational messages (such as 
validation problems) are stored in ERXThreadStorage, and displayed by the page 
wrapper. This works great for full page loads.

In a few places, I’m doing some Ajax submissions with AjaxSubmitButton. In the 
usual case, nothing goes wrong and an AjaxUpdateContainer displays some new 
information. I figured that a reasonable way to display validation errors from 
these Ajax submissions would be to stash the messages in ERXThreadStorage in 
the usual way, and then use ERXRedirect and its setComponentToPage() to just 
force a full page reload. This all works except (critically) the _retrieval_ of 
the messages from ERXThreadStorage—there’s nothing there. Is this expected? Is 
the invocation of the action method by the Ajax submission on a different 
thread?


--
Paul Hoadley
http://logicsquad.net/





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

This email sent to lon.varsc...@gmail.com<mailto:lon.varsc...@gmail.com>

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

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

Re: Ajax request, ERXRedirect and ERXThreadStorage

2016-07-12 Thread Lon Varscsak
I believe the the thread storage is reset for each request, and the Ajax
request and the redirect are two different requests.

On Mon, Jul 11, 2016 at 11:52 PM, Paul Hoadley  wrote:

> Hello,
>
> I’m working on an app where some page-level informational messages (such
> as validation problems) are stored in ERXThreadStorage, and displayed by
> the page wrapper. This works great for full page loads.
>
> In a few places, I’m doing some Ajax submissions with AjaxSubmitButton. In
> the usual case, nothing goes wrong and an AjaxUpdateContainer displays some
> new information. I figured that a reasonable way to display validation
> errors from these Ajax submissions would be to stash the messages in
> ERXThreadStorage in the usual way, and then use ERXRedirect and
> its setComponentToPage() to just force a full page reload. This all works
> except (critically) the _retrieval_ of the messages from
> ERXThreadStorage—there’s nothing there. Is this expected? Is the invocation
> of the action method by the Ajax submission on a different thread?
>
>
> --
> Paul Hoadley
> http://logicsquad.net/
>
>
>
>
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
>
> https://lists.apple.com/mailman/options/webobjects-dev/lon.varscsak%40gmail.com
>
> This email sent to lon.varsc...@gmail.com
>
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Ajax request, ERXRedirect and ERXThreadStorage

2016-07-11 Thread Paul Hoadley
Hello,

I’m working on an app where some page-level informational messages (such as 
validation problems) are stored in ERXThreadStorage, and displayed by the page 
wrapper. This works great for full page loads.

In a few places, I’m doing some Ajax submissions with AjaxSubmitButton. In the 
usual case, nothing goes wrong and an AjaxUpdateContainer displays some new 
information. I figured that a reasonable way to display validation errors from 
these Ajax submissions would be to stash the messages in ERXThreadStorage in 
the usual way, and then use ERXRedirect and its setComponentToPage() to just 
force a full page reload. This all works except (critically) the _retrieval_ of 
the messages from ERXThreadStorage—there’s nothing there. Is this expected? Is 
the invocation of the action method by the Ajax submission on a different 
thread?


-- 
Paul Hoadley
http://logicsquad.net/



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

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

Ajax SaveAs Component like AjaxFlexibleFileUpload with Wonder?

2016-06-24 Thread Kwasi O-Ahoofe
Has anyone used an Ajax ‘SaveAs’ Component in the same mode as 
AjaxFlexibleFileUpload component in ProjectWonder? Or better yet, is there a 
SaveAs component in ProjectWonder API?  Using Java 8 JFileChooser or FileDialog 
in Wonder/WebObjects App creates instability/inconsistency! Any ideas?

Thanks,

Kwasi O-Ahoofe



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

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

Re: Ajax version of WOActiveImage

2016-05-05 Thread Paul Hoadley
On 6 May 2016, at 5:37 am, Mark Wardle  wrote:

> [see https://twitter.com/mwardle/status/728250997588541441 
>  on how I’m using it].

Very cool Mark.


-- 
Paul Hoadley
http://logicsquad.net/



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

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

Re: Ajax version of WOActiveImage

2016-05-05 Thread Mark Wardle
Ok. I’ve done this using some javascript and a plain ol’ image. If it helps 
anyone else…  [see https://twitter.com/mwardle/status/728250997588541441 on how 
I’m using it]. It only uses the data binding as the image is dynamically 
generated annotated with the clicks saved previously but implementing other 
bindings is left as an exercise to the reader…

Best wishes,

Mark

AjaxActiveImage.html


AjaxActiveImage.wod
Image: WOImage {
class = ^class;
alt = ^alt;
border = ^border;
data = ^data;
mimeType = ^mimeType;
id = safeElementID;
style = ^style;
onclick = onClick;
width = ^width;
height = ^height;
}

AjaxActiveImage.java:
package com.eldrix.news.components;

import com.webobjects.appserver.WOActionResults;
import com.webobjects.appserver.WOComponent;
import com.webobjects.appserver.WOContext;
import com.webobjects.appserver.WORequest;
import com.webobjects.appserver.WOResponse;

import er.ajax.AjaxComponent;
import er.ajax.AjaxUtils;
import er.extensions.foundation.ERXStringUtilities;

public class AjaxActiveImage extends AjaxComponent {
private static final long serialVersionUID = 1L;

public AjaxActiveImage(WOContext context) {
super(context);
}

@Override
protected void addRequiredWebResources(WOResponse response) {
addScriptResourceInHead(response, "prototype.js");
addScriptResourceInHead(response, "effects.js");
addScriptResourceInHead(response, "wonder.js");
}

@Override
public WOActionResults handleRequest(WORequest request, WOContext 
context) {
WOComponent component = context.component();
Integer x = 
ERXStringUtilities.integerWithString((String)request.formValueForKey("x"));
Integer y = 
ERXStringUtilities.integerWithString((String)request.formValueForKey("y"));
setValueForBinding(x, "x");
setValueForBinding(y, "y");
WOActionResults results = (WOActionResults) 
valueForBinding("action", component);
if (results == null) {
String script = (String) 
valueForBinding("onClickServer", component);
if (script != null) {
WOResponse response = 
AjaxUtils.createResponse(request, context);
AjaxUtils.appendScriptHeader(response);
response.appendContentString(script);
AjaxUtils.appendScriptFooter(response);
results = response;
}
}
return results;
}

public String onClick() {
StringBuilder sb = new StringBuilder();
if (!booleanValueForBinding("disabled", false)) {
String actionUrl = 
AjaxUtils.ajaxComponentActionUrl(context());
sb.append("var canvas = document.getElementById('");
sb.append(safeElementID());
sb.append("');var rect = 
canvas.getBoundingClientRect();var x = Math.round((event.clientX - rect.left) / 
(rect.right - rect.left) * canvas.width); var y = Math.round((event.clientY - 
rect.top) / (rect.bottom - rect.top) * canvas.height);");
sb.append("new Ajax.Request('");
sb.append(actionUrl);
sb.append("', ");
sb.append("{method:'post', parameters:{x:x,y:y}");
String onSuccess = (String) 
valueForBinding("onSuccess", context().component());
if (onSuccess != null) {
sb.append(",onSuccess:");
sb.append(onSuccess);
}
sb.append("}");
sb.append("); return false");
String onClick = (String) valueForBinding("onClick", 
context().component());
if (onClick != null) {
sb.append(';');
sb.append(onClick);
}
}
return sb.toString();
}

@Override
public boolean isStateless() {
return true;
}
}
> On 3 May 2016, at 16:02, Mark Wardle  wrote:
> 
> Hi all,
> 
> I would like the functionality of a WOActiveImage but don’t wish to have a 
> full submit. I end up reloading the whole page. Each click adds a coordinate 
> and I manually add a letter to a static PNG to show injections of botulinum 
> toxin treatment but on each click the page scrolls.
> 
> I saw a similar question on the mailing list but there was no solution that I 
> could see in obtaining the X,Y coordinates of the mouse click.
> 
> Many thanks,
> 
> Mark

Ajax version of WOActiveImage

2016-05-03 Thread Mark Wardle
Hi all,

I would like the functionality of a WOActiveImage but don’t wish to have a full 
submit. I end up reloading the whole page. Each click adds a coordinate and I 
manually add a letter to a static PNG to show injections of botulinum toxin 
treatment but on each click the page scrolls.

I saw a similar question on the mailing list but there was no solution that I 
could see in obtaining the X,Y coordinates of the mouse click.

Many thanks,

Mark






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

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

Re: Ajax jQuery

2016-01-09 Thread Troy Lumasag

Hi,
or just replace "$" with "jQuery". proper order of js scripts 
loaded is also to be checked as what Mark said.

--Troy
On 1/8/16 10:24 PM, Daniele Corti wrote:


Hi Mark,

Are you using the jQuery.noConflict() option?

And check the order the js sctipts are loaded in the page. I had lot's 
of troubles caused be them. In a project i had to disable the autoload 
of Ajax libraries, and load them in the pages throught the wrapper 
component.


Hope this help

Il 07/gen/2016 22:40, "Mark Gowdy" <mailto:m...@gowdy.co.uk>> ha scritto:


Hi,

In a nutshell, the Ajax.framework is great, but it causes issues
when you try to use it in tandem with various jQuery libraries and
particularly with the BootStrap themes.
All I really need is a basic Ajax Container, Link and SubmitButton.

I tried ERJQMobile, it sorta worked, but I experienced various
reliability problems with it.
I had a look at ERJQuery, but couldn’t really figure out if it
could do what I needed, or even what it was supposed to do at
all.  Can’t find any examples anywhere.

Can someone please point me in the right direction.

It’s has driven me to beer (well, slightly more beer than normal).

Thanks in advance,

Mark Gowdy



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

This email sent to ilde...@gmail.com <mailto:ilde...@gmail.com>



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

This email sent to tluma...@gmail.com


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

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


Re: Ajax jQuery

2016-01-08 Thread Daniele Corti
Hi Mark,

Are you using the jQuery.noConflict() option?

And check the order the js sctipts are loaded in the page. I had lot's of
troubles caused be them. In a project i had to disable the autoload of Ajax
libraries, and load them in the pages throught the wrapper component.

Hope this help
Il 07/gen/2016 22:40, "Mark Gowdy"  ha scritto:

> Hi,
>
> In a nutshell, the Ajax.framework is great, but it causes issues when you
> try to use it in tandem with various jQuery libraries and particularly with
> the BootStrap themes.
> All I really need is a basic Ajax Container, Link and SubmitButton.
>
> I tried ERJQMobile, it sorta worked, but I experienced various reliability
> problems with it.
> I had a look at ERJQuery, but couldn’t really figure out if it could do
> what I needed, or even what it was supposed to do at all.  Can’t find any
> examples anywhere.
>
> Can someone please point me in the right direction.
>
> It’s has driven me to beer (well, slightly more beer than normal).
>
> Thanks in advance,
>
> Mark Gowdy
>
>
>
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/ildenae%40gmail.com
>
> This email sent to ilde...@gmail.com
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: Ajax jQuery

2016-01-07 Thread Paul Hoadley
Hi Mark,

On 8 Jan 2016, at 8:10 am, Mark Gowdy  wrote:

> In a nutshell, the Ajax.framework is great, but it causes issues when you try 
> to use it in tandem with various jQuery libraries and particularly with the 
> BootStrap themes.
> All I really need is a basic Ajax Container, Link and SubmitButton.

Can you post some specifics about problems you’re running into? We’ve 
successfully combined Ajax.framework, jQuery and Bootstrap in several projects. 
We might be able to help you navigate some edge cases if you can provide 
details of failures.


-- 
Paul Hoadley
http://logicsquad.net/




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

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

Ajax jQuery

2016-01-07 Thread Mark Gowdy
Hi, 

In a nutshell, the Ajax.framework is great, but it causes issues when you try 
to use it in tandem with various jQuery libraries and particularly with the 
BootStrap themes.
All I really need is a basic Ajax Container, Link and SubmitButton.

I tried ERJQMobile, it sorta worked, but I experienced various reliability 
problems with it.
I had a look at ERJQuery, but couldn’t really figure out if it could do what I 
needed, or even what it was supposed to do at all.  Can’t find any examples 
anywhere.

Can someone please point me in the right direction.

It’s has driven me to beer (well, slightly more beer than normal).

Thanks in advance,

Mark Gowdy



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

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

Re: Ajax ?

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

Calven


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

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

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

Re: Ajax ?

2016-01-02 Thread Samuel Pelletier
Hi Calven,

I think the ghosting binding of AjaxDraggable does exactly that. 

Regards,

Samuel

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

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

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

Ajax ?

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

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

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

Calven


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

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

Re: Combination of ERXApplication.replaceApplicationPath, Session-Cookies and Ajax doesn't work

2015-11-08 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hello Samuel,

you saved my day. Thx a lot.

C.U.CW
--
The three great virtues of a programmer are Laziness, Impatience and Hubris. 
(Randal Schwartz)

> On 08.11.2015, at 15:58, Samuel Pelletier  wrote:
> 
> Hi Christoph,
> 
> All my apps are like this. The only things special I see if you need to 
> override domainForIDCookies() in the Session class but I  think it is also 
> required for non Ajax app. Does non Ajax request works ?
> 
> My generic solution is this because of an app that serve multiple domains :
> 
> Add this attribute to the session class:
>   private String cookieDomainID;
> 
> And overide thid method:
>   @Override
>   public String domainForIDCookies() {
>   if (cookieDomainID == null) {
>   cookieDomainID = super.domainForIDCookies();
>   cookieDomainID = 
> application()._rewriteURL(cookieDomainID);
>   log.warn("cookieDomain: "+ cookieDomainID);
>   }
>   return cookieDomainID;
>   }
> 
> 
> Samuel
> 
> 
>> Le 2015-11-07 à 22:09, CHRISTOPH WICK | i4innovation GmbH, Bonn 
>>  a écrit :
>> 
>> Hi list,
>> 
>> has anyone the combination of
>> 
>> - ERXApplication.replaceApplicationPath and
>> - SessionID stored in cookies and
>> - Ajax (from Wonder's Ajax-Framework)
>> 
>> successfully working in combination?
>> 
>> I don't get it up and running on a test-server. In my case each click on a 
>> submit button in a form containing Ajax-Update-Containers is returning to 
>> the "Main"-page. Somewhere in the whole stack, WebObjects forgets the 
>> session and starts as if a new session was created.
>> 
>> And help is welcome.
>> Thx, C.U.CW
>> --
>> The three great virtues of a programmer are Laziness, Impatience and Hubris. 
>> (Randal Schwartz)
>> 
>> ___
>> Do not post admin requests to the list. They will 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
> 



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will 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: Combination of ERXApplication.replaceApplicationPath, Session-Cookies and Ajax doesn't work

2015-11-08 Thread Samuel Pelletier
Hi Christoph,

All my apps are like this. The only things special I see if you need to 
override domainForIDCookies() in the Session class but I  think it is also 
required for non Ajax app. Does non Ajax request works ?

My generic solution is this because of an app that serve multiple domains :

Add this attribute to the session class:
private String cookieDomainID;

And overide thid method:
@Override
public String domainForIDCookies() {
if (cookieDomainID == null) {
cookieDomainID = super.domainForIDCookies();
cookieDomainID = 
application()._rewriteURL(cookieDomainID);
log.warn("cookieDomain: "+ cookieDomainID);
}
return cookieDomainID;
}


Samuel


> Le 2015-11-07 à 22:09, CHRISTOPH WICK | i4innovation GmbH, Bonn 
>  a écrit :
> 
> Hi list,
> 
> has anyone the combination of
> 
> - ERXApplication.replaceApplicationPath and
> - SessionID stored in cookies and
> - Ajax (from Wonder's Ajax-Framework)
> 
> successfully working in combination?
> 
> I don't get it up and running on a test-server. In my case each click on a 
> submit button in a form containing Ajax-Update-Containers is returning to the 
> "Main"-page. Somewhere in the whole stack, WebObjects forgets the session and 
> starts as if a new session was created.
> 
> And help is welcome.
> Thx, C.U.CW
> --
> The three great virtues of a programmer are Laziness, Impatience and Hubris. 
> (Randal Schwartz)
> 
> ___
> Do not post admin requests to the list. They will 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

Combination of ERXApplication.replaceApplicationPath, Session-Cookies and Ajax doesn't work

2015-11-07 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi list,

has anyone the combination of

- ERXApplication.replaceApplicationPath and
- SessionID stored in cookies and
- Ajax (from Wonder's Ajax-Framework)

successfully working in combination?

I don't get it up and running on a test-server. In my case each click on a 
submit button in a form containing Ajax-Update-Containers is returning to the 
"Main"-page. Somewhere in the whole stack, WebObjects forgets the session and 
starts as if a new session was created.

And help is welcome.
Thx, C.U.CW
--
The three great virtues of a programmer are Laziness, Impatience and Hubris. 
(Randal Schwartz)



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

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

Re: Ajax Response Problem

2015-09-02 Thread Henrique Prange
Hi Oscar,

Take a look at the raw Ajax request response. What is the mime-type of the 
response? What do you see in the body of the response?

Cheers,

Henrique

> On 31/08/2015, at 20:35, Oscar González  wrote:
> 
> Hi all,
> I have an application that use ajax, it works well most of the time, but some 
> times the ajax response throws a bunch of weir characters like those in the 
> attached image. I don't know where to look. I'll appreciate any clue.
> 
> Thanks in advance.
> 
> Saludos,
> 
> Oscar.
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
> <mailto:Webobjects-dev@lists.apple.com>)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/hprange%40gmail.com 
> <https://lists.apple.com/mailman/options/webobjects-dev/hprange%40gmail.com>
> 
> This email sent to hpra...@gmail.com <mailto:hpra...@gmail.com>
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: Ajax & Servlet Deployment

2015-05-20 Thread Kevin Hinkson
Hi John,

Thanks for the tip. I tried that and it wasn’t the issue per say. I also tried 
re-ordering the frameworks.

I did finally figure it out. The local development environment used an https 
connection and the ElasticBeanstalk one did not. Combined with the secure 
cookie property being on in Wonder this meant that the session was not 
available to the browser. This seems to have caused the issue.

Thanks for your help.

> On May 20, 2015, at 9:23 AM, John Huss  wrote:
> 
> If you are aren't on a recent version of Wonder, you need to be for this to 
> work - Ajax in servlet. Probably fixed about a year ago.
> On Tue, May 19, 2015 at 4:14 PM Kevin Hinkson  <mailto:k...@coralstone.co>> wrote:
> Hi,
> I am attempting to deploy a web page where the page uses an 
> AjaxFlexibleFileUpload component. This works in the development setup. 
> However, once the page with the AjaxFlexibleFileUpload loads on the server 
> the two XHRs that run come back with 200 responses but they are completely 
> empty of content. This results in no file dialog appearing when a user 
> attempts to select an image for upload.
> 
> The errors that show in the browser JS console are "JSONRpcClientException: 
> error parsing result”, ReferenceError: Can't find variable: jsonrpc_0 and  
> ReferenceError: Can't find variable: jsonrpc_1.
> 
> My local development setup is a (reverse) proxy through NGINX. The deployment 
> is to a AWS Elastic Beanstalk, in Tomcat 7, Java 7 which uses Apache as a 
> reverse proxy.
> 
> I’ll admit I know very little about WebObjects and Ajax. It is not clear to 
> me that I have all the correct steps for using Ajax components. One thing I 
> did was to override pageWithName in the Application class.
> 
> @Override
> public WOComponent pageWithName(String name, WOContext context)
> {
> log.error("application pageWithName " + name + " " + context);
> WOComponent page = super.pageWithName(name, context);
> log.error("got page " + page);
> return page;
> }
> 
> I noticed that when run locally there is nothing in the logs for the XHR 
> requests because they load fine. However, when deployed to a Beanstalk 
> instance I get the following.
> 
> ERROR 20:32:35 (com.adnero.finance.web.Application:?)  -application 
> pageWithName null  requestSenderID=0.17.1.1.1.0.1 elementID=null 
> sessionID=GpMB9KKAiBu1Rdv4MqVNu0 request= ( headers={accept=[*/*], accept-encoding=[gzip, deflate], 
> accept-language=[en-us], connection=[Keep-Alive], content-length=[50], 
> content-type=[text/plain], 
> cookie=[JSESSIONID=727EEEFD467421EFD51BB2A65A0707BF], dnt=[1], 
> host=[replaced.host.url], origin=[http://replaced.host.url 
> <http://replaced.host.url/>], 
> referer=[http://replaced.host.url/WebObjects/AdneroWeb.woa/wo/0.0.0.17.1 
> <http://replaced.host.url/WebObjects/AdneroWeb.woa/wo/0.0.0.17.1>], 
> remote_addr=[104.200.104.189], user-agent=[Mozilla/5.0 (Macintosh; Intel Mac 
> OS X 10_10_3) AppleWebKit/600.6.3 (KHTML, like Gecko) Version/8.0.6 
> Safari/600.6.3], x-forwarded-host=[replaced.host.url], 
> x-forwarded-server=[ip-172-31-26-217.ec2.internal], 
> x-requested-with=[XMLHttpRequest], x-webobjects-adaptor-version=[5.2], 
> x-webobjects-servlet-server-name=[replaced.host.url], 
> x-webobjects-servlet-server-port=[80]} content-length=50 cookies=null 
> userInfo={ServletConfig=org.apache.catalina.core.StandardWrapperFacade@7f127e0,
>  ServletContext=org.apache.catalina.core.ApplicationContextFacade@6970e732, 
> HttpServletRequest=org.apache.catalina.connector.RequestFacade@2b18fb03, 
> HttpServletResponse=org.apache.catalina.connector.ResponseFacade@7507980f} 
> storePageInBacktrackCache=true >) method=POST 
> uri=/WebObjects/AdneroWeb.woa/ajax/0.0.17.1.1.1.0.1 
> defaultFormValueEncoding=UTF-8 formValueEncodingDetectionEnabled=NO 
> formValueEncoding=UTF-8 formValues={WOIsmapCoords = 
> ("{"id":1,"method":"system.listMethods","params":[]}"); } > response=null 
> pageElement=null pageComponent=null currentComponent=null 
> url=/WebObjects/AdneroWeb.woa urlApplicationNumber=-1 
> distributionEnabled=false pageChanged=false pageReplaced=false>
> 
> ERROR 20:32:35 (com.adnero.finance.web.Application:?)  -got page 
>  subcomponents: null >
> 
> 
> I am guessing that this differences means that the ajax requests are not 
> being handled by the Ajax Handler but are getting caught by the default 
> handler or that they are falling back to pageWithName, (which then falls back 
> to Main.class) when they should not be?
> 
> My apache config for the proxy looks like this:
> 
> RewriteEngine On
> 
> RewriteCond %{REQUEST_URI} ^/WebObjects

Re: Ajax & Servlet Deployment

2015-05-20 Thread John Huss
If you are aren't on a recent version of Wonder, you need to be for this to
work - Ajax in servlet. Probably fixed about a year ago.
On Tue, May 19, 2015 at 4:14 PM Kevin Hinkson  wrote:

> Hi,
> I am attempting to deploy a web page where the page uses an
> AjaxFlexibleFileUpload component. This works in the development setup.
> However, once the page with the AjaxFlexibleFileUpload loads on the server
> the two XHRs that run come back with 200 responses but they are completely
> empty of content. This results in no file dialog appearing when a user
> attempts to select an image for upload.
>
> The errors that show in the browser JS console are
> "JSONRpcClientException: error parsing result”, ReferenceError: Can't find
> variable: jsonrpc_0 and  ReferenceError: Can't find variable: jsonrpc_1.
>
> My local development setup is a (reverse) proxy through NGINX. The
> deployment is to a AWS Elastic Beanstalk, in Tomcat 7, Java 7 which uses
> Apache as a reverse proxy.
>
> I’ll admit I know very little about WebObjects and Ajax. It is not clear
> to me that I have all the correct steps for using Ajax components. One
> thing I did was to override pageWithName in the Application class.
>
> @Override
> public WOComponent pageWithName(String name, WOContext context)
> {
> log.error("application pageWithName " + name + " " + context);
> WOComponent page = super.pageWithName(name, context);
> log.error("got page " + page);
> return page;
> }
>
> I noticed that when run locally there is nothing in the logs for the XHR
> requests because they load fine. However, when deployed to a Beanstalk
> instance I get the following.
>
> ERROR 20:32:35 (com.adnero.finance.web.Application:?)  -application
> pageWithName null  requestSenderID=0.17.1.1.1.0.1 elementID=null
> sessionID=GpMB9KKAiBu1Rdv4MqVNu0
> request= ( headers={accept=[*/*], accept-encoding=[gzip, deflate],
> accept-language=[en-us], connection=[Keep-Alive], content-length=[50],
> content-type=[text/plain],
> cookie=[JSESSIONID=727EEEFD467421EFD51BB2A65A0707BF], dnt=[1],
> host=[replaced.host.url], origin=[http://replaced.host.url], referer=[
> http://replaced.host.url/WebObjects/AdneroWeb.woa/wo/0.0.0.17.1],
> remote_addr=[104.200.104.189], user-agent=[Mozilla/5.0 (Macintosh; Intel
> Mac OS X 10_10_3) AppleWebKit/600.6.3 (KHTML, like Gecko) Version/8.0.6
> Safari/600.6.3], x-forwarded-host=[replaced.host.url],
> x-forwarded-server=[ip-172-31-26-217.ec2.internal],
> x-requested-with=[XMLHttpRequest], x-webobjects-adaptor-version=[5.2],
> x-webobjects-servlet-server-name=[replaced.host.url],
> x-webobjects-servlet-server-port=[80]} content-length=50 cookies=null
> userInfo={ServletConfig=org.apache.catalina.core.StandardWrapperFacade@7f127e0,
> ServletContext=org.apache.catalina.core.ApplicationContextFacade@6970e732,
> HttpServletRequest=org.apache.catalina.connector.RequestFacade@2b18fb03,
> HttpServletResponse=org.apache.catalina.connector.ResponseFacade@7507980f}
> storePageInBacktrackCache=true >) method=POST
> uri=/WebObjects/AdneroWeb.woa/ajax/0.0.17.1.1.1.0.1
> defaultFormValueEncoding=UTF-8 formValueEncodingDetectionEnabled=NO
> formValueEncoding=UTF-8 formValues={WOIsmapCoords =
> ("{"id":1,"method":"system.listMethods","params":[]}"); } > response=null
> pageElement=null pageComponent=null currentComponent=null
> url=/WebObjects/AdneroWeb.woa urlApplicationNumber=-1
> distributionEnabled=false pageChanged=false pageReplaced=false>
>
> ERROR 20:32:35 (com.adnero.finance.web.Application:?)  -got page
>  subcomponents: null >
>
>
> I am guessing that this differences means that the ajax requests are not
> being handled by the Ajax Handler but are getting caught by the default
> handler or that they are falling back to pageWithName, (which then falls
> back to Main.class) when they should not be?
>
> My apache config for the proxy looks like this:
>
> RewriteEngine On
>
> RewriteCond %{REQUEST_URI} ^/WebObjects/Frameworks/ [NC]
> RewriteRule ^/WebObjects/Frameworks/(.+)$
> /WebServerResources/Frameworks/$1 [PT]
>
> RewriteCond %{REQUEST_URI} ^/WebObjects/Contents/ [NC]
> RewriteRule ^/WebObjects/Contents/(.+)$ /WebServerResources/Contents/$1
> [PT]
>
> RewriteCond %{REQUEST_URI}
> ^/WebObjects/AdneroWeb.woa/Contents/WebServerResources/ [NC]
> RewriteRule ^/WebObjects/AdneroWeb.woa/Contents/WebServerResources/(.+)$
> /WebServerResources/Contents/WebServerResources/$1 [PT]
>
> RewriteCond %{REQUEST_URI} ^/ishealthy$ [NC]
> RewriteRule ^/ishealthy$
> /WebObjects/AdneroWeb.woa/ra/Healthcheck/ishealthy [PT]
>
> 
> Order deny,allow
> Allow from

Ajax & Servlet Deployment

2015-05-19 Thread Kevin Hinkson
Hi,
I am attempting to deploy a web page where the page uses an 
AjaxFlexibleFileUpload component. This works in the development setup. However, 
once the page with the AjaxFlexibleFileUpload loads on the server the two XHRs 
that run come back with 200 responses but they are completely empty of content. 
This results in no file dialog appearing when a user attempts to select an 
image for upload.

The errors that show in the browser JS console are "JSONRpcClientException: 
error parsing result”, ReferenceError: Can't find variable: jsonrpc_0 and  
ReferenceError: Can't find variable: jsonrpc_1.

My local development setup is a (reverse) proxy through NGINX. The deployment 
is to a AWS Elastic Beanstalk, in Tomcat 7, Java 7 which uses Apache as a 
reverse proxy. 

I’ll admit I know very little about WebObjects and Ajax. It is not clear to me 
that I have all the correct steps for using Ajax components. One thing I did 
was to override pageWithName in the Application class.

@Override
public WOComponent pageWithName(String name, WOContext context) 
{
log.error("application pageWithName " + name + " " + context);
WOComponent page = super.pageWithName(name, context);
log.error("got page " + page);
return page;
}

I noticed that when run locally there is nothing in the logs for the XHR 
requests because they load fine. However, when deployed to a Beanstalk instance 
I get the following.

ERROR 20:32:35 (com.adnero.finance.web.Application:?)  -application 
pageWithName null http://replaced.host.url], 
referer=[http://replaced.host.url/WebObjects/AdneroWeb.woa/wo/0.0.0.17.1], 
remote_addr=[104.200.104.189], user-agent=[Mozilla/5.0 (Macintosh; Intel Mac OS 
X 10_10_3) AppleWebKit/600.6.3 (KHTML, like Gecko) Version/8.0.6 
Safari/600.6.3], x-forwarded-host=[replaced.host.url], 
x-forwarded-server=[ip-172-31-26-217.ec2.internal], 
x-requested-with=[XMLHttpRequest], x-webobjects-adaptor-version=[5.2], 
x-webobjects-servlet-server-name=[replaced.host.url], 
x-webobjects-servlet-server-port=[80]} content-length=50 cookies=null 
userInfo={ServletConfig=org.apache.catalina.core.StandardWrapperFacade@7f127e0, 
ServletContext=org.apache.catalina.core.ApplicationContextFacade@6970e732, 
HttpServletRequest=org.apache.catalina.connector.RequestFacade@2b18fb03, 
HttpServletResponse=org.apache.catalina.connector.ResponseFacade@7507980f} 
storePageInBacktrackCache=true >) method=POST 
uri=/WebObjects/AdneroWeb.woa/ajax/0.0.17.1.1.1.0.1 
defaultFormValueEncoding=UTF-8 formValueEncodingDetectionEnabled=NO 
formValueEncoding=UTF-8 formValues={WOIsmapCoords = 
("{"id":1,"method":"system.listMethods","params":[]}"); } > response=null 
pageElement=null pageComponent=null currentComponent=null 
url=/WebObjects/AdneroWeb.woa urlApplicationNumber=-1 distributionEnabled=false 
pageChanged=false pageReplaced=false>

ERROR 20:32:35 (com.adnero.finance.web.Application:?)  -got page 



I am guessing that this differences means that the ajax requests are not being 
handled by the Ajax Handler but are getting caught by the default handler or 
that they are falling back to pageWithName, (which then falls back to 
Main.class) when they should not be? 

My apache config for the proxy looks like this:

RewriteEngine On

RewriteCond %{REQUEST_URI} ^/WebObjects/Frameworks/ [NC]
RewriteRule ^/WebObjects/Frameworks/(.+)$ /WebServerResources/Frameworks/$1 [PT]

RewriteCond %{REQUEST_URI} ^/WebObjects/Contents/ [NC]
RewriteRule ^/WebObjects/Contents/(.+)$ /WebServerResources/Contents/$1 [PT]

RewriteCond %{REQUEST_URI} 
^/WebObjects/AdneroWeb.woa/Contents/WebServerResources/ [NC]
RewriteRule ^/WebObjects/AdneroWeb.woa/Contents/WebServerResources/(.+)$ 
/WebServerResources/Contents/WebServerResources/$1 [PT]

RewriteCond %{REQUEST_URI} ^/ishealthy$ [NC]
RewriteRule ^/ishealthy$ /WebObjects/AdneroWeb.woa/ra/Healthcheck/ishealthy [PT]


Order deny,allow
Allow from all


ProxyPass / http://localhost:8080/ retry=0
ProxyPassReverse / http://localhost:8080/
ProxyPreserveHost on

LogFormat "%h (%{X-Forwarded-For}i) %l %u %t \"%r\" %>s %b \"%{Referer}i\" 
\"%{User-Agent}i\""
ErrorLog /var/log/httpd/elasticbeanstalk-error_log
TransferLog /var/log/httpd/elasticbeanstalk-access_log



I am completely lost as to what to try next. Any help in identifying why the 
Ajax requests are not being handled properly would be appreciated.



 ___
Do not post admin requests to the list. They will 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: using ajax in a D2W app??

2015-03-11 Thread Ramsey Gurley
You’re wrapping the observe field with the popup button? Isn’t that supposed to 
be the other way around?

On Mar 11, 2015, at 9:17 AM, Theodore Petrosky  wrote:

> Is there some secret? I just want to fire a method when the user changes a 
> popup. so I did everything I normally did in a regular app.
> 
> I get the WOPopupButton an id, and set up an AjaxObserveField to watch the 
> popup.:
> 
> 
>  "AEObserveField">
> 
> the person is: 
>   
> 
> 
> thePopupButton : WOPopUpButton {
>  id = "AEFieldID";
>  list = accountExecList;
>  item = thePerson;
>  selection = selectedPerson;  
>  displayString = thePerson.fullName;
>  noSelectionString = "No Person Selected";
> }
> 
> AEObserveField : AjaxObserveField {
>   observeFieldID = "AEFieldID";
>   updateContainerID = "AEDiv1";
>   action = mainPopupAction;
>   fullSubmit = true;
> }
> 
> AEUpdateComponent : AjaxUpdateContainer {
>   id = "AEDiv1";
> }
> WOForm : WOForm {
>  multipleSubmit = "true";
> }
> 
> Does anyone see what I am missing? the ajax framework is there, and this is a 
> Modern D2W app. I thought it was using ajax in places, so is there something 
> I need to do to make it available?
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
> 
> This email sent to rgur...@smarthealth.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: using ajax in a D2W app??

2015-03-11 Thread Theodore Petrosky
and of course just after I pushed the send button I found that I had the 
AjaxUpdateContainer inside the WOForm.

as soon as I moved it out, all was good and I have joy.

On Mar 11, 2015, at 12:17 PM, Theodore Petrosky  wrote:

> Is there some secret? I just want to fire a method when the user changes a 
> popup. so I did everything I normally did in a regular app.
> 
> I get the WOPopupButton an id, and set up an AjaxObserveField to watch the 
> popup.:
> 
> 
>  "AEObserveField">
> 
> the person is: 
>   
> 
> 
> thePopupButton : WOPopUpButton {
>  id = "AEFieldID";
>  list = accountExecList;
>  item = thePerson;
>  selection = selectedPerson;  
>  displayString = thePerson.fullName;
>  noSelectionString = "No Person Selected";
> }
> 
> AEObserveField : AjaxObserveField {
>   observeFieldID = "AEFieldID";
>   updateContainerID = "AEDiv1";
>   action = mainPopupAction;
>   fullSubmit = true;
> }
> 
> AEUpdateComponent : AjaxUpdateContainer {
>   id = "AEDiv1";
> }
> WOForm : WOForm {
>  multipleSubmit = "true";
> }
> 
> Does anyone see what I am missing? the ajax framework is there, and this is a 
> Modern D2W app. I thought it was using ajax in places, so is there something 
> I need to do to make it available?


 ___
Do not post admin requests to the list. They will 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

using ajax in a D2W app??

2015-03-11 Thread Theodore Petrosky
Is there some secret? I just want to fire a method when the user changes a 
popup. so I did everything I normally did in a regular app.

I get the WOPopupButton an id, and set up an AjaxObserveField to watch the 
popup.:


  

the person is: 



thePopupButton : WOPopUpButton {
  id = "AEFieldID";
  list = accountExecList;
  item = thePerson;
  selection = selectedPerson;  
  displayString = thePerson.fullName;
  noSelectionString = "No Person Selected";
}

AEObserveField : AjaxObserveField {
observeFieldID = "AEFieldID";
updateContainerID = "AEDiv1";
action = mainPopupAction;
fullSubmit = true;
}

AEUpdateComponent : AjaxUpdateContainer {
id = "AEDiv1";
}
WOForm : WOForm {
  multipleSubmit = "true";
}

Does anyone see what I am missing? the ajax framework is there, and this is a 
Modern D2W app. I thought it was using ajax in places, so is there something I 
need to do to make it available?
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: Ajax Observe Field wierdness

2015-03-10 Thread Calven Eggert
thanks for the info.  the tip about using the ElementName is very helpful.

On 2015-03-09, at 8:01 PM, Samuel Pelletier wrote:

> You can enlarge your update container to the entire form and use it for many 
> update trigger. I usually use them like this.
> 
> When an AjaxUpdateContainer refresh it's content, the appendToResponse of the 
> component containing the AjaxUpdateContainer is not called but all the 
> refreshed sub component behave normally including the call to 
> appendToResponse.
> 
> Keep in mind the update container create a div by default (it need a 
> container element), this is probably why it did not worked the first time you 
> tried. You can create another element type by specifying the elementName 
> binding to create a TR for example.
> 
> Samuel
> 
> 
>> Le 2015-03-09 à 15:55, Calven Eggert  a écrit :
>> 
>> that worked!  Thanks!  
>> 
>> However, how can I deal with this when I have a field that is only shown 
>> based on a woconditional?  Like so...(BTW, this gives the same original 
>> problem with the phantom field at the top of the page)
>> 
>>>> 
>>>> >>> NAME=SiteOfDiseasePopUpButton>
>>> 
>> 
>>>> 
>>> 
>> 
>> 
>> 
>> If I put the UpdateComponent in the ShowConditional then obviously if the 
>> ShowConditional is false then the UpdateComponent does not exist on the page.
>> 
>>>> 
>>>> >>> NAME=SiteOfDiseasePopUpButton>
>>> 
>> 
>>>> 
>>> 
>> 
>> 
>> 
>> Calven
>> 
>> 
>> On 2015-03-09, at 12:54 PM, Theodore Petrosky wrote:
>> 
>>> You are wrapping the row with the updateContainer. Try wrapping the 
>>> contents:
>>> 
>>>> 
>>>> Malignant Disease:
>>>> >>> NAME=SiteOfDiseasePopUpButton>
>>>> 
>>> 
>>> 
>>> I was trying to see if I could find an example in anything I did in the 
>>> past (I have been working with D2W this past year)
>>> 
>>> 
>>> On Mar 9, 2015, at 11:59 AM, Calven Eggert  wrote:
>>> 
>>>> Hi,
>>>> 
>>>> I'm learning AJAX and I'm following the Dependent List Example but am 
>>>> having weird results.  The result is the observed field is duplicated at 
>>>> the top of the webpage.  When I view source in Chrome, the observed field 
>>>> is only found once in the HTML at the proper place.  Here is my code:
>>>> ...
>>>> 
>>>> Site Group:
>>>> >>> NAME=SiteObserveField>
>>>> 
>>>> 
>>>> 
>>>> Malignant Disease:
>>>> 
>>>> 
>>>> 
>>>> ...
>>>> 
>>>> SiteGroupPopUpButton: WOPopUpButton {
>>>> id = "groupPopupID";
>>>> displayString = currentItem.displayName;
>>>> item = currentItem;
>>>> list = siteGroupArray;
>>>> noSelectionString = kNoneSelected;
>>>> selection = siteGroupSelection;
>>>> }
>>>> SiteObserveField: AjaxObserveField {
>>>> observeFieldID = "groupPopupID";
>>>> updateContainerID = "observerID";
>>>> fullSubmit = false;
>>>> }
>>>> UpdateComponent: AjaxUpdateContainer {
>>>> id = "observerID";
>>>> }
>>>> SiteOfDiseasePopUpButton: WOPopUpButton {
>>>> displayString = currentItem.displayName;
>>>> item = currentItem;
>>>> list = siteGroupSelectionSites;
>>>> noSelectionString = kNoneSelected;
>>>> selection = currentCase.siteOfDiseaseLookup;
>>>> }
>>>> 
>>>> SiteGroupPopUpButton is the field that the user will change (observed 
>>>> field) and SiteOfDiseasePopUpButton (Malignant Disease) is the popup that 
>>>> should change accordingly.  When the Site Group popup is changed the 
>>>> phantom popup at the top of the page does change appropriately but the 
>>>> real popup does not. (not sure if images are allowed in this email list 
>>>> but one is included just in case, so you can see the phantom popup at the 
>>>> top of the page)
>>>> 
>>>> What am I doing wrong?
>>>> 
>>>> Calven
>>>> 
>>>> 
>>>> 
>>>> ___
>>>> Do not post admin requests to the list. They will be ignored.
>>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>>>> Help/Unsubscribe/Update your Subscription:
>>>> https://lists.apple.com/mailman/options/webobjects-dev/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/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: Ajax Observe Field wierdness

2015-03-09 Thread Samuel Pelletier
You can enlarge your update container to the entire form and use it for many 
update trigger. I usually use them like this.

When an AjaxUpdateContainer refresh it's content, the appendToResponse of the 
component containing the AjaxUpdateContainer is not called but all the 
refreshed sub component behave normally including the call to appendToResponse.

Keep in mind the update container create a div by default (it need a container 
element), this is probably why it did not worked the first time you tried. You 
can create another element type by specifying the elementName binding to create 
a TR for example.

Samuel


> Le 2015-03-09 à 15:55, Calven Eggert  a écrit :
> 
> that worked!  Thanks!  
> 
> However, how can I deal with this when I have a field that is only shown 
> based on a woconditional?  Like so...(BTW, this gives the same original 
> problem with the phantom field at the top of the page)
> 
>>> 
>>> >> NAME=SiteOfDiseasePopUpButton>
> 
>>> 
> 
> 
> 
> If I put the UpdateComponent in the ShowConditional then obviously if the 
> ShowConditional is false then the UpdateComponent does not exist on the page.
> 
>>> 
>>> >> NAME=SiteOfDiseasePopUpButton>
> 
>>> 
> 
> 
> 
> Calven
> 
> 
> On 2015-03-09, at 12:54 PM, Theodore Petrosky wrote:
> 
>> You are wrapping the row with the updateContainer. Try wrapping the contents:
>> 
>>> 
>>> Malignant Disease:
>>> >> NAME=SiteOfDiseasePopUpButton>
>>> 
>> 
>> 
>> I was trying to see if I could find an example in anything I did in the past 
>> (I have been working with D2W this past year)
>> 
>> 
>> On Mar 9, 2015, at 11:59 AM, Calven Eggert > <mailto:cegg...@uhnresearch.ca>> wrote:
>> 
>>> Hi,
>>> 
>>> I'm learning AJAX and I'm following the Dependent List Example but am 
>>> having weird results.  The result is the observed field is duplicated at 
>>> the top of the webpage.  When I view source in Chrome, the observed field 
>>> is only found once in the HTML at the proper place.  Here is my code:
>>> ...
>>> 
>>> Site Group:
>>> >> NAME=SiteObserveField>
>>> 
>>> 
>>> 
>>> Malignant Disease:
>>> 
>>> 
>>> 
>>> ...
>>> 
>>> SiteGroupPopUpButton: WOPopUpButton {
>>> id = "groupPopupID";
>>> displayString = currentItem.displayName;
>>> item = currentItem;
>>> list = siteGroupArray;
>>> noSelectionString = kNoneSelected;
>>> selection = siteGroupSelection;
>>> }
>>> SiteObserveField: AjaxObserveField {
>>> observeFieldID = "groupPopupID";
>>> updateContainerID = "observerID";
>>> fullSubmit = false;
>>> }
>>> UpdateComponent: AjaxUpdateContainer {
>>> id = "observerID";
>>> }
>>> SiteOfDiseasePopUpButton: WOPopUpButton {
>>> displayString = currentItem.displayName;
>>> item = currentItem;
>>> list = siteGroupSelectionSites;
>>> noSelectionString = kNoneSelected;
>>> selection = currentCase.siteOfDiseaseLookup;
>>> }
>>> 
>>> SiteGroupPopUpButton is the field that the user will change (observed 
>>> field) and SiteOfDiseasePopUpButton (Malignant Disease) is the popup that 
>>> should change accordingly.  When the Site Group popup is changed the 
>>> phantom popup at the top of the page does change appropriately but the real 
>>> popup does not. (not sure if images are allowed in this email list but one 
>>> is included just in case, so you can see the phantom popup at the top of 
>>> the page)
>>> 
>>> What am I doing wrong?
>>> 
>>> Calven
>>> 
>>> 
>>> 
>>> ___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>>> <mailto:Webobjects-dev@lists.apple.com>)
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com 
>>> <https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com>
>>> 
>>> This email sent to tedp...@yahoo.com <mailto:tedp...@yahoo.com>
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> 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: Ajax Observe Field wierdness

2015-03-09 Thread Theodore Petrosky
change the update containerID to the result of a method. Look at the 
UpdateTriggerExample, see if this helps figure it out.

how do you calculate the ShowConditional value? you could create the 
UpdateTrigger array there.




On Mar 9, 2015, at 3:55 PM, Calven Eggert  wrote:

> that worked!  Thanks!  
> 
> However, how can I deal with this when I have a field that is only shown 
> based on a woconditional?  Like so...(BTW, this gives the same original 
> problem with the phantom field at the top of the page)
> 
>>> 
>>> >> NAME=SiteOfDiseasePopUpButton>
> 
>>> 
> 
> 
> 
> If I put the UpdateComponent in the ShowConditional then obviously if the 
> ShowConditional is false then the UpdateComponent does not exist on the page.
> 
>>> 
>>> >> NAME=SiteOfDiseasePopUpButton>
> 
>>> 
> 
> 
> 
> Calven
> 
> 
> On 2015-03-09, at 12:54 PM, Theodore Petrosky wrote:
> 
>> You are wrapping the row with the updateContainer. Try wrapping the contents:
>> 
>>> 
>>> Malignant Disease:
>>> >> NAME=SiteOfDiseasePopUpButton>
>>> 
>> 
>> 
>> I was trying to see if I could find an example in anything I did in the past 
>> (I have been working with D2W this past year)
>> 
>> 
>> On Mar 9, 2015, at 11:59 AM, Calven Eggert  wrote:
>> 
>>> Hi,
>>> 
>>> I'm learning AJAX and I'm following the Dependent List Example but am 
>>> having weird results.  The result is the observed field is duplicated at 
>>> the top of the webpage.  When I view source in Chrome, the observed field 
>>> is only found once in the HTML at the proper place.  Here is my code:
>>> ...
>>> 
>>> Site Group:
>>> >> NAME=SiteObserveField>
>>> 
>>> 
>>> 
>>> Malignant Disease:
>>> 
>>> 
>>> 
>>> ...
>>> 
>>> SiteGroupPopUpButton: WOPopUpButton {
>>> id = "groupPopupID";
>>> displayString = currentItem.displayName;
>>> item = currentItem;
>>> list = siteGroupArray;
>>> noSelectionString = kNoneSelected;
>>> selection = siteGroupSelection;
>>> }
>>> SiteObserveField: AjaxObserveField {
>>> observeFieldID = "groupPopupID";
>>> updateContainerID = "observerID";
>>> fullSubmit = false;
>>> }
>>> UpdateComponent: AjaxUpdateContainer {
>>> id = "observerID";
>>> }
>>> SiteOfDiseasePopUpButton: WOPopUpButton {
>>> displayString = currentItem.displayName;
>>> item = currentItem;
>>> list = siteGroupSelectionSites;
>>> noSelectionString = kNoneSelected;
>>> selection = currentCase.siteOfDiseaseLookup;
>>> }
>>> 
>>> SiteGroupPopUpButton is the field that the user will change (observed 
>>> field) and SiteOfDiseasePopUpButton (Malignant Disease) is the popup that 
>>> should change accordingly.  When the Site Group popup is changed the 
>>> phantom popup at the top of the page does change appropriately but the real 
>>> popup does not. (not sure if images are allowed in this email list but one 
>>> is included just in case, so you can see the phantom popup at the top of 
>>> the page)
>>> 
>>> What am I doing wrong?
>>> 
>>> Calven
>>> 
>>> 
>>> 
>>> ___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/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: Ajax Observe Field wierdness

2015-03-09 Thread Calven Eggert
that worked!  Thanks!  

However, how can I deal with this when I have a field that is only shown based 
on a woconditional?  Like so...(BTW, this gives the same original problem with 
the phantom field at the top of the page)

>> 
>> > NAME=SiteOfDiseasePopUpButton>
> 

>> 
> 



If I put the UpdateComponent in the ShowConditional then obviously if the 
ShowConditional is false then the UpdateComponent does not exist on the page.

>> 
>> > NAME=SiteOfDiseasePopUpButton>
> 

>> 
> 



Calven


On 2015-03-09, at 12:54 PM, Theodore Petrosky wrote:

> You are wrapping the row with the updateContainer. Try wrapping the contents:
> 
>> 
>> Malignant Disease:
>> > NAME=SiteOfDiseasePopUpButton>
>> 
> 
> 
> I was trying to see if I could find an example in anything I did in the past 
> (I have been working with D2W this past year)
> 
> 
> On Mar 9, 2015, at 11:59 AM, Calven Eggert  wrote:
> 
>> Hi,
>> 
>> I'm learning AJAX and I'm following the Dependent List Example but am having 
>> weird results.  The result is the observed field is duplicated at the top of 
>> the webpage.  When I view source in Chrome, the observed field is only found 
>> once in the HTML at the proper place.  Here is my code:
>> ...
>> 
>> Site Group:
>> > NAME=SiteObserveField>
>> 
>> 
>> 
>> Malignant Disease:
>> 
>> 
>> 
>> ...
>> 
>> SiteGroupPopUpButton: WOPopUpButton {
>> id = "groupPopupID";
>> displayString = currentItem.displayName;
>> item = currentItem;
>> list = siteGroupArray;
>> noSelectionString = kNoneSelected;
>> selection = siteGroupSelection;
>> }
>> SiteObserveField: AjaxObserveField {
>> observeFieldID = "groupPopupID";
>> updateContainerID = "observerID";
>> fullSubmit = false;
>> }
>> UpdateComponent: AjaxUpdateContainer {
>> id = "observerID";
>> }
>> SiteOfDiseasePopUpButton: WOPopUpButton {
>> displayString = currentItem.displayName;
>> item = currentItem;
>> list = siteGroupSelectionSites;
>> noSelectionString = kNoneSelected;
>> selection = currentCase.siteOfDiseaseLookup;
>> }
>> 
>> SiteGroupPopUpButton is the field that the user will change (observed field) 
>> and SiteOfDiseasePopUpButton (Malignant Disease) is the popup that should 
>> change accordingly.  When the Site Group popup is changed the phantom popup 
>> at the top of the page does change appropriately but the real popup does 
>> not. (not sure if images are allowed in this email list but one is included 
>> just in case, so you can see the phantom popup at the top of the page)
>> 
>> What am I doing wrong?
>> 
>> Calven
>> 
>> 
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/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: Ajax Observe Field wierdness

2015-03-09 Thread Calven Eggert
That did it! thanks!

On 2015-03-09, at 12:54 PM, Theodore Petrosky wrote:

> You are wrapping the row with the updateContainer. Try wrapping the contents:
> 
>> 
>> Malignant Disease:
>> > NAME=SiteOfDiseasePopUpButton>
>> 
> 
> 
> I was trying to see if I could find an example in anything I did in the past 
> (I have been working with D2W this past year)
> 
> 
> On Mar 9, 2015, at 11:59 AM, Calven Eggert  wrote:
> 
>> Hi,
>> 
>> I'm learning AJAX and I'm following the Dependent List Example but am having 
>> weird results.  The result is the observed field is duplicated at the top of 
>> the webpage.  When I view source in Chrome, the observed field is only found 
>> once in the HTML at the proper place.  Here is my code:
>> ...
>> 
>> Site Group:
>> > NAME=SiteObserveField>
>> 
>> 
>> 
>> Malignant Disease:
>> 
>> 
>> 
>> ...
>> 
>> SiteGroupPopUpButton: WOPopUpButton {
>> id = "groupPopupID";
>> displayString = currentItem.displayName;
>> item = currentItem;
>> list = siteGroupArray;
>> noSelectionString = kNoneSelected;
>> selection = siteGroupSelection;
>> }
>> SiteObserveField: AjaxObserveField {
>> observeFieldID = "groupPopupID";
>> updateContainerID = "observerID";
>> fullSubmit = false;
>> }
>> UpdateComponent: AjaxUpdateContainer {
>> id = "observerID";
>> }
>> SiteOfDiseasePopUpButton: WOPopUpButton {
>> displayString = currentItem.displayName;
>> item = currentItem;
>> list = siteGroupSelectionSites;
>> noSelectionString = kNoneSelected;
>> selection = currentCase.siteOfDiseaseLookup;
>> }
>> 
>> SiteGroupPopUpButton is the field that the user will change (observed field) 
>> and SiteOfDiseasePopUpButton (Malignant Disease) is the popup that should 
>> change accordingly.  When the Site Group popup is changed the phantom popup 
>> at the top of the page does change appropriately but the real popup does 
>> not. (not sure if images are allowed in this email list but one is included 
>> just in case, so you can see the phantom popup at the top of the page)
>> 
>> What am I doing wrong?
>> 
>> Calven
>> 
>> 
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/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: Ajax Observe Field wierdness

2015-03-09 Thread Theodore Petrosky
You are wrapping the row with the updateContainer. Try wrapping the contents:

> 
> Malignant Disease:
>  NAME=SiteOfDiseasePopUpButton>
> 


I was trying to see if I could find an example in anything I did in the past (I 
have been working with D2W this past year)


On Mar 9, 2015, at 11:59 AM, Calven Eggert  wrote:

> Hi,
> 
> I'm learning AJAX and I'm following the Dependent List Example but am having 
> weird results.  The result is the observed field is duplicated at the top of 
> the webpage.  When I view source in Chrome, the observed field is only found 
> once in the HTML at the proper place.  Here is my code:
> ...
> 
> Site Group:
>  NAME=SiteObserveField>
> 
> 
> 
> Malignant Disease:
> 
> 
> 
> ...
> 
> SiteGroupPopUpButton: WOPopUpButton {
> id = "groupPopupID";
> displayString = currentItem.displayName;
> item = currentItem;
> list = siteGroupArray;
> noSelectionString = kNoneSelected;
> selection = siteGroupSelection;
> }
> SiteObserveField: AjaxObserveField {
> observeFieldID = "groupPopupID";
> updateContainerID = "observerID";
> fullSubmit = false;
> }
> UpdateComponent: AjaxUpdateContainer {
> id = "observerID";
> }
> SiteOfDiseasePopUpButton: WOPopUpButton {
> displayString = currentItem.displayName;
> item = currentItem;
> list = siteGroupSelectionSites;
> noSelectionString = kNoneSelected;
> selection = currentCase.siteOfDiseaseLookup;
> }
> 
> SiteGroupPopUpButton is the field that the user will change (observed field) 
> and SiteOfDiseasePopUpButton (Malignant Disease) is the popup that should 
> change accordingly.  When the Site Group popup is changed the phantom popup 
> at the top of the page does change appropriately but the real popup does not. 
> (not sure if images are allowed in this email list but one is included just 
> in case, so you can see the phantom popup at the top of the page)
> 
> What am I doing wrong?
> 
> Calven
> 
> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/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

Ajax Observe Field wierdness

2015-03-09 Thread Calven Eggert
Hi,

I'm learning AJAX and I'm following the Dependent List Example but am having 
weird results.  The result is the observed field is duplicated at the top of 
the webpage.  When I view source in Chrome, the observed field is only found 
once in the HTML at the proper place.  Here is my code:
...

Site Group:




Malignant Disease:



...

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

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

What am I doing wrong?

Calven



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

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

Re: JQuery Ajax Framework

2014-09-05 Thread Jonathan Miller
Be more than glad to donate it.  Just let me know.


On Fri, Sep 5, 2014 at 1:57 AM, Michael Schmiedgen 
wrote:

> Hi List,
>
> are there any plans to integrate Johnny Millers JQuery Ajax Framework?
>
> http://www.kahalawai.com/JQuery
> https://github.com/johnnykahalawai/wonder/tree/master/Frameworks/Ajax
>
> Cheers,
>   Michael
>
> --
> ___
>
> Michael Schmiedgen, BSc
> Senior Software Engineer
>
> Takwa GmbH
> Friedrich-List-Str. 36
> 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

JQuery Ajax Framework

2014-09-05 Thread Michael Schmiedgen

Hi List,

are there any plans to integrate Johnny Millers JQuery Ajax Framework?

http://www.kahalawai.com/JQuery
https://github.com/johnnykahalawai/wonder/tree/master/Frameworks/Ajax

Cheers,
  Michael

--
___

Michael Schmiedgen, BSc
Senior Software Engineer

Takwa GmbH
Friedrich-List-Str. 36
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: Frameworks/Ajax/Ajax/WebServerResources in Wonder

2014-04-14 Thread Chuck Hill
Yes, they are created by the build.  I am not sure why they are under source 
control.

On 2014-04-14, 2:50 PM, "Klaus Berkling" wrote:


Can someone confirm that wondaculous-min.js and wondaculous.js in 
Frameworks/Ajax/Ajax/WebServerResources is auto-updated by some other task?
I'm asking because the files changed from under me. I'm guessing ant will 
update it ether running 'ant frameworks' or 'and frameworks.install'?

(Same seems to apply to 'Frameworks/Misc/WOJRebel/manifest.mf')

Thanks.



kib

"We keep moving forward, opening new doors, and doing new things, because we're 
curious and curiosity keeps leading us down new paths."
Walt Disney

Klaus Berkling
www.berkling.us<http://www.berkling.us> | @kiberkli | Buy My iPhone 
app<http://itunes.apple.com/us/app/exactbart!/id425068916?mt=8>



 ___
Do not post admin requests to the list. They will 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: Frameworks/Ajax/Ajax/WebServerResources in Wonder

2014-04-14 Thread Klaus Berkling

On Apr 14, 2014, at 2:56 PM, Chuck Hill  wrote:

> Yes, they are created by the build.  I am not sure why they are under source 
> control.

Ah, good to know. Thanks



kib

"Some people never see the light, Till it shines through bullet holes."
Tropic Moon, Burce Cockburn

Klaus Berkling
www.berkling.us | @kiberkli | Buy My iPhone app 






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

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

Frameworks/Ajax/Ajax/WebServerResources in Wonder

2014-04-14 Thread Klaus Berkling

Can someone confirm that wondaculous-min.js and wondaculous.js in 
Frameworks/Ajax/Ajax/WebServerResources is auto-updated by some other task?
I'm asking because the files changed from under me. I'm guessing ant will 
update it ether running 'ant frameworks' or 'and frameworks.install'?

(Same seems to apply to 'Frameworks/Misc/WOJRebel/manifest.mf')

Thanks.



kib

"We keep moving forward, opening new doors, and doing new things, because we're 
curious and curiosity keeps leading us down new paths."
Walt Disney

Klaus Berkling
www.berkling.us | @kiberkli | Buy My iPhone app 





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

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

[SOLVED] Re: Ajax UpdateContainer stop

2014-04-04 Thread Altera WO Team
After a lot of time, and for a totally different issue i managed to find a way 
to stop an AjaxUpdateContainer. It's more a note to me but it might help 
somebody out there.

So, for example suppose you have an 

The way to stop it is to insert (maybe inside a WOConditional when a certain 
condition is reached)

AutoContainerStop();

Why this works goes completely beyond my understanding of javascript but 
actually, I'm really terrible in JavaScript.

Hope this helps!


Matteo


On 28 Nov 2011, at 17:12, Matteo Centro  wrote:

> Unfortunately no, I'm stuck with this layout...
> The problem is that I'm editing a bunch of records, and the records could be 
> edited by another app which communicates via Direct Actions, so I need to 
> continue refreshing a big part of the page to see if the other app changes 
> something in my records. For example if the app changes a particular state of 
> the record I have to disable the TextField, that's why it must be inside.
> 
> Matteo
> On Fri, Nov 25, 2011 at 1:50 AM, Paul Hoadley  wrote:
> Hi Matteo,
> 
> On 24/11/2011, at 10:11 PM, Matteo Centro wrote:
> 
> > Looking in the Prototype documentation i saw that there are 
> > Ajax.PeriodicalUpdater#stop and Ajax.PeriodicalUpdater#start
> > The idea was calling stop in the onFocus of the textfield and start on the 
> > onBlur but I don't know how to call those methods, I'm really terrible in 
> > JavaScript.
> 
> That might work, but first: can you just take the textfields out of the 
> AjaxUpdateContainer?
> 
> 
> --
> Paul.
> 
> http://logicsquad.net/
> 
> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/mcentro%40altera.it
> 
> This email sent to mcen...@altera.it

 ___
Do not post admin requests to the list. They will 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: JQueryUI, Ajax Components?

2014-02-12 Thread Tobias Janz
Hi Matthias,

i don't know about the JQueryUI Components, but I'm using the Ajax
Components (like the Datepicker) quite a lot.
They are not destroyed.

Regards,
Tobias



2014-02-06 0:39 GMT+01:00 Matthias Jakob :

> Hi there,
> are there any experiences with this?
> Do ajax components still function or not (i think no but not tested - hope
> never dies ;-)?
>
> i.e. ( i know there is a ajax date picker):
>
> 
>
> $(function() { $('.pickMe').datepicker(); });
>
> Destroyed or not?
>
> Thank you,
> Matthias
>
>
>
>
>
>
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
>
> https://lists.apple.com/mailman/options/webobjects-dev/janz.tobias%40gmail.com
>
> This email sent to janz.tob...@gmail.com
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: D2W and Ajax oh my!

2014-02-12 Thread David LeBer
Hey Ted,

Technically the “_parent” thing* is from the Ajax framework, so should be 
documented there.

As far as documentation is concerned, I’m afraid I don’t have any details for 
you (other than documentation == good).

Anyone on the list care to chime in?

D

*FWIW, giving some (but unfortunately not all) Ajax components a ‘_parent’ 
binding for their updateContainerID is a shortcut for binding to something like 
this:

public String parentUpdateContainerID() {
return AjaxUpdateContainer.currentUpdateContainerID();
}

which is pretty handy to know in its own right.

On Feb 12, 2014, at 8:35 AM, Theodore Petrosky  wrote:

> thanks you.
> 
> I was thinking of starting to document my little journey into D2W and add a 
> section to the 'How-tos" on the wiki. Do you think it belongs here or is 
> there somewhere else started to add these topics to?
> 
> Ted
> 
> 
> 
> On Feb 11, 2014, at 7:32 PM, David LeBer  wrote:
> 
>> Theodore,
>> 
>> updateContainerID = d2wContext.idForRepetitionContainer
>> 
>> Should work.
>> 
>> Or more generically:
>> 
>> updateConatinerID = “_parent”; // update whatever UpdateContainer is 
>> directly above this element
>> 
>> D
>> 
>> 
>> 
>> On Feb 11, 2014, at 2:48 PM, Theodore Petrosky  wrote:
>> 
>>> I am trying to add a custom component to a ListPage. I am showing a normal 
>>> list (ERMODListPage) and I want the user to be able to edit an attribute by 
>>> clicking on the cell and use an AjaxInPlace to edit the text.
>>> 
>>> I have everything working except the refresh when the user clicks the 
>>> 'save' button. I am hoping the answer is simple. If I were not using D2W, I 
>>> would wrap the table in an AjaxUpdateContainer and just fire that update 
>>> after I did a saveChanges(). 
>>> 
>>> Before I start subclassing ERMODListPage to add an UpdateContainer, is 
>>> there a rule or two that will do this. Or am I working too hard.
>>> 
>>> I would love to find something like:
>>> 
>>> updateContainerID = d2wContext.idForParentMainContainer;
>>> 
>>> Ted
>>> 
>>> 
>>> 
>>> ___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com
>>> 
>>> This email sent to dleber_wo...@codeferous.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: D2W and Ajax oh my!

2014-02-11 Thread David LeBer
Theodore,

updateContainerID = d2wContext.idForRepetitionContainer

Should work.

Or more generically:

updateConatinerID = “_parent”; // update whatever UpdateContainer is directly 
above this element

D



On Feb 11, 2014, at 2:48 PM, Theodore Petrosky  wrote:

> I am trying to add a custom component to a ListPage. I am showing a normal 
> list (ERMODListPage) and I want the user to be able to edit an attribute by 
> clicking on the cell and use an AjaxInPlace to edit the text.
> 
> I have everything working except the refresh when the user clicks the 'save' 
> button. I am hoping the answer is simple. If I were not using D2W, I would 
> wrap the table in an AjaxUpdateContainer and just fire that update after I 
> did a saveChanges(). 
> 
> Before I start subclassing ERMODListPage to add an UpdateContainer, is there 
> a rule or two that will do this. Or am I working too hard.
> 
> I would love to find something like:
> 
> updateContainerID = d2wContext.idForParentMainContainer;
> 
> Ted
> 
> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com
> 
> This email sent to dleber_wo...@codeferous.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

D2W and Ajax oh my!

2014-02-11 Thread Theodore Petrosky
I am trying to add a custom component to a ListPage. I am showing a normal list 
(ERMODListPage) and I want the user to be able to edit an attribute by clicking 
on the cell and use an AjaxInPlace to edit the text.

I have everything working except the refresh when the user clicks the 'save' 
button. I am hoping the answer is simple. If I were not using D2W, I would wrap 
the table in an AjaxUpdateContainer and just fire that update after I did a 
saveChanges(). 

Before I start subclassing ERMODListPage to add an UpdateContainer, is there a 
rule or two that will do this. Or am I working too hard.

I would love to find something like:

updateContainerID = d2wContext.idForParentMainContainer;

Ted



 ___
Do not post admin requests to the list. They will 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

JQueryUI, Ajax Components?

2014-02-05 Thread Matthias Jakob
Hi there,
are there any experiences with this?
Do ajax components still function or not (i think no but not tested - hope 
never dies ;-)?

i.e. ( i know there is a ajax date picker): 



$(function() { $('.pickMe').datepicker(); });

Destroyed or not?

Thank you,
Matthias






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

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

Re: Ajax not working in deployment

2014-01-20 Thread Stavros Panidis
Dear Amedeo, dear Klaus,


I solved the problem.

Reading from krypted.com

"Before we setup custom sites, there are a few things you should know. The 
first is, the server is no longer really designed to remove the default 
website. So if you remove the site, your server will exhibit inconsistent 
behavior. Also, don’t remove the files that comprise the default site. Instead 
just add sites, which is covered next. Webmail is gone. You don’t have to spend 
a ton of time looking for it as it isn’t there. Also, Mountain Lion Server 
added web apps, which we’ll briefly review later in this article as well, as 
those continue in Mavericks Server. “

I have stored WebServer resources in 
/Library/Server/Web/Data/Sites/Default/MySite/WebObjects/….

When I changed to /Library/Server/Web/Data/Sites/MySite/WebObjects/… the 
problem solved.

Anyway many thanks for your assistance.

Stavros




On 20 Ιαν 2014, at 11:13 π.μ., Amedeo Mantica  wrote:

> Any webinspector errors?
> 
> Sent from my iPhone
> 
>> On 20/gen/2014, at 05:11, Stavros Panidis  wrote:
>> 
>> Dear,
>> 
>> I realize the following problem
>> 
>> Development machine Mac Powerbook running 10.9.1
>> 
>> Deployment machine iMac running 10.9.1
>> 
>> Application works perfect in development machine. Also it works perfect in 
>> deployment machine when accessed from the server it self. But when accessed 
>> from clients, either locally (127.0.0.1) or via web everything seems to run 
>> perfect except Ajax framework.
>> 
>> More strange, if client is iOS then some Ajax seems to work (like 
>> AjaxObserveField) while other not (like AutoComplete).
>> 
>> Any possible explanation?
>> 
>> Many thanks in advance
>> 
>> 
>> Stavros Panidis
>> 
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/amedeomantica%40me.com
>> 
>> This email sent to amedeomant...@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: Ajax not working in deployment

2014-01-20 Thread Amedeo Mantica
Any webinspector errors?

Sent from my iPhone

> On 20/gen/2014, at 05:11, Stavros Panidis  wrote:
> 
> Dear,
> 
> I realize the following problem
> 
> Development machine Mac Powerbook running 10.9.1
> 
> Deployment machine iMac running 10.9.1
> 
> Application works perfect in development machine. Also it works perfect in 
> deployment machine when accessed from the server it self. But when accessed 
> from clients, either locally (127.0.0.1) or via web everything seems to run 
> perfect except Ajax framework.
> 
> More strange, if client is iOS then some Ajax seems to work (like 
> AjaxObserveField) while other not (like AutoComplete).
> 
> Any possible explanation?
> 
> Many thanks in advance
> 
> 
> Stavros Panidis
> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/amedeomantica%40me.com
> 
> This email sent to amedeomant...@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

Ajax not working in deployment

2014-01-19 Thread Stavros Panidis
Dear,

I realize the following problem

Development machine Mac Powerbook running 10.9.1

Deployment machine iMac running 10.9.1

Application works perfect in development machine. Also it works perfect in 
deployment machine when accessed from the server it self. But when accessed 
from clients, either locally (127.0.0.1) or via web everything seems to run 
perfect except Ajax framework.

More strange, if client is iOS then some Ajax seems to work (like 
AjaxObserveField) while other not (like AutoComplete).

Any possible explanation?

Many thanks in advance


Stavros Panidis


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

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

Re: Ajax and ERDirectToWeb Frameworks conflicts?

2013-12-06 Thread Klaus I. Berkling

On Dec 6, 2013, at 1:57 PM, Theodore Petrosky  wrote:

> that's weird. I have an wonder app that uses Ajax Modal Openers  in a 
> WORepetition and the ERExcelLook framework to create an Excel file. No 
> problems at all.
> 
> All of the content of my Ajax Modal Dialogs come from a file.
> 
> Do your modal dialogs work if you remove the ExcelLook?

I thinking it must be me, some sort of error on my part so I have not backed 
out that code. If your code works then it is likely my code.

Thanks.

kib

Klaus Berkling
www.berkling.us | @kiberkli



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

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

Re: Ajax and ERDirectToWeb Frameworks conflicts?

2013-12-06 Thread Theodore Petrosky
that's weird. I have an wonder app that uses Ajax Modal Openers  in a 
WORepetition and the ERExcelLook framework to create an Excel file. No problems 
at all.

All of the content of my Ajax Modal Dialogs come from a file.

Do your modal dialogs work if you remove the ExcelLook?

Ted




On Dec 6, 2013, at 4:29 PM, "Klaus I. Berkling"  wrote:

> Hi all.
> 
> I'm working on an app that uses Ajax and ERExcelLook Frameworks, which 
> requires ERDirectToWeb and a few others. Does anyone know of conflicts with 
> using these together?
> 
> I can't update AjaxModalDialogs and the wrong objects show when repeatedly 
> using the same AjaxModalDialogs (in a repetition, using the opener).
> 
> I don't see the problems In a different app that only uses Ajax.
> 
> TIA.
> 
> 
> kib
> 
> Klaus Berkling
> www.berkling.us | @kiberkli
> 
> 
> 
> ___
> Do not post admin requests to the list. They will 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

Ajax and ERDirectToWeb Frameworks conflicts?

2013-12-06 Thread Klaus I. Berkling
Hi all.

I'm working on an app that uses Ajax and ERExcelLook Frameworks, which requires 
ERDirectToWeb and a few others. Does anyone know of conflicts with using these 
together?

I can't update AjaxModalDialogs and the wrong objects show when repeatedly 
using the same AjaxModalDialogs (in a repetition, using the opener).

I don't see the problems In a different app that only uses Ajax.

TIA.


kib

Klaus Berkling
www.berkling.us | @kiberkli



 ___
Do not post admin requests to the list. They will 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: Does Ajax work in Direct Connect Mode?

2013-11-09 Thread Ray Kiddy

Hello Mai -

Did you ever receive an answer to your question? I really need to start 
checking the list a little more often than I have been….

You know, I started the AjaxExample2 application from the Wonder examples and 
ran it with direct connect enabled and used to direct connect to connect to it. 
I did not try everything but a bunch of stuff worked.

I cannot think of a reason this would not also work with a vanilla WO app. Did 
you find out if there was a problem with the specific component you are using?

cheers - ray


On Sep 12, 2013, at 1:56 PM, MAI NGUYEN  wrote:

> Hello List,
> I have to run the WebObjects application in Direct Connect Mode as we use a 
> custom load balancer, and do not want to have Apache involved.
> 
> Does anyone know if it is possible to use Ajax in Direct Connect Mode?
> 
> I am using AjaxExpansion, but an "onclick" on the Ajax Request does not show 
> the expansion at all as if the Ajax Request is not responding?
> 
>  
>  
> title="Contacts" id="e_0_19_11_15_3_0_1_7" onclick="new 
> Ajax.Request('/cgi-bin/WebObjects/MyApplication.woa/ajax/hIx5tfcvDbtSkix65OJQQw/9.0.19.11.15.3.0.1.7',
>  {asynchronous:false, evalScripts:false, onSuccess:function(v) 
> {openAMD_ContactInfoModalDialog();}}); return false;" >Contacts 
> 
> I use Apache to serve static resources contents, so maybe I need to send an 
> explicit request to the web server for Ajax requests?
> 
> Thanks for any suggestions,
> 
> -mai
>



 ___
Do not post admin requests to the list. They will 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   >