Re: AjaxUpdateContainer Problem

2015-11-25 Thread Benjamin Steiner
Thank you very much for your input.

@Paul: It works now using the AjaxModalDialogOpener, it looks like that was the 
problem (but I'm not entirely sure, I’m just getting into the ajax stuff).

@Theodore: Is there any significant difference between the methods 
updateContainerWithID("itemList", context()) and appendScript(context(), 
itemListUpdate())? Or which one would you recommend for everyday use? (btw: the 
“ItemListUpdateContainer” was a typo ;), sorry for the confusion).


> On 24 Nov 2015, at 19:11, Theodore Petrosky  wrote:
> 
> not sure, but if you copied and pasted your code I see:
> 
> 
> 
> and you refer to it as:
> 
> itemListUpdateContainer : AjaxUpdateContainer {
>   id =  “itemList";
>   action = updateItemListContainer;
> }
> 
> Is it case sensitive?   Item vs. item
> 
> Did you look at the ajax examples? What is your form wrapping?
> 
> 
> you could also try adding an onClose directive:
> 
> 
> createItemDialog: AjaxModalDialog {
>   id = "createItemDialog";
>   title = "Create New Item";
>   label = "Create New Item";
>   locked = true;
>onClose = refreshContainer;
> }
> 
> 
> then in the java:
> 
>   public void refreshContainer() {
> 
>   AjaxUpdateContainer.updateContainerWithID("itemList", 
> context());
> 
>   }
> 
>> On Nov 24, 2015, at 11:40 AM, Benjamin Steiner > <mailto:stei...@rucotec.ch>> wrote:
>> 
>> Hi list,
>> 
>> I have a problem with getting an AjaxUpdateContainer to actually update. My 
>> idea is to have an AjaxUpdateContainer with a list of Items and an 
>> AjaxModalDialog to insert a new item into said list. At the moment my code 
>> looks something like this:
>> 
>> HTML
>> 
>> 
>>  (LIST TO REFRESH)
>>  
>>  
>>  
>>  
>> 
>> 
>> Bindings
>> 
>> itemListUpdateContainer : AjaxUpdateContainer {
>>  id =  “itemList";
>>  action = updateItemListContainer;
>> }
>> 
>> createItemDialog: AjaxModalDialog {
>>  id = "createItemDialog";
>>  title = "Create New Item";
>>  label = "Create New Item";
>>  locked = true;
>> }
>> 
>> form : WOForm {
>> }
>> 
>> createItemSubmitButton : CCSmartAjaxButton {
>>  action = createItem;
>>  useAjax = true;
>>  value = "Create";
>>  updateContainerID = "itemList";
>> }
>> 
>> Java
>> 
>> public WOActionResults updateItemListContainer() {
>>  return null;
>> }
>> 
>> public WOActionResults createItem() {
>>  (SETTING ALL THE VALUES AND STUFF)
>>  ec.insertObject(newItem);
>>  ec.saveChanges();
>>  AjaxUtils.appendScript(context(), "AMD.close(); itemListUpdate();");
>>  return null;
>> }
>> 
>> Does anyone have an idea what i’m doing wrong? It’s probably a trivial 
>> mistake, but i really don’t see it right now.
>> 
>> Thanks, 
>> Beni
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com 
>> <https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com>
>> 
>> This email sent to tedp...@yahoo.com
> 

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

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

Re: AjaxUpdateContainer Problem

2015-11-24 Thread Paul Yu
Ben

I think you need to use AjaxModalDialogOpenner inside of the repetition and 
have the modaldialog itself outside.

Sent from my iPhone
Please excuse iOS autocomplete 

> On Nov 24, 2015, at 11:40 AM, Benjamin Steiner  wrote:
> 
> Hi list,
> 
> I have a problem with getting an AjaxUpdateContainer to actually update. My 
> idea is to have an AjaxUpdateContainer with a list of Items and an 
> AjaxModalDialog to insert a new item into said list. At the moment my code 
> looks something like this:
> 
> HTML
> 
> 
>   (LIST TO REFRESH)
>   
>   
>   
>   
> 
> 
> Bindings
> 
> itemListUpdateContainer : AjaxUpdateContainer {
>   id =  “itemList";
>   action = updateItemListContainer;
> }
> 
> createItemDialog: AjaxModalDialog {
>   id = "createItemDialog";
>   title = "Create New Item";
>   label = "Create New Item";
>   locked = true;
> }
> 
> form : WOForm {
> }
> 
> createItemSubmitButton : CCSmartAjaxButton {
>   action = createItem;
>   useAjax = true;
>   value = "Create";
>   updateContainerID = "itemList";
> }
> 
> Java
> 
> public WOActionResults updateItemListContainer() {
>   return null;
> }
> 
> public WOActionResults createItem() {
>   (SETTING ALL THE VALUES AND STUFF)
>   ec.insertObject(newItem);
>   ec.saveChanges();
>   AjaxUtils.appendScript(context(), "AMD.close(); itemListUpdate();");
>   return null;
> }
> 
> Does anyone have an idea what i’m doing wrong? It’s probably a trivial 
> mistake, but i really don’t see it right now.
> 
> Thanks, 
> Beni
> ___
> Do not post admin requests to the list. They will 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

AjaxUpdateContainer Problem

2015-11-24 Thread Benjamin Steiner
Hi list,

I have a problem with getting an AjaxUpdateContainer to actually update. My 
idea is to have an AjaxUpdateContainer with a list of Items and an 
AjaxModalDialog to insert a new item into said list. At the moment my code 
looks something like this:

HTML


(LIST TO REFRESH)






Bindings

itemListUpdateContainer : AjaxUpdateContainer {
id =  “itemList";
action = updateItemListContainer;
}

createItemDialog: AjaxModalDialog {
id = "createItemDialog";
title = "Create New Item";
label = "Create New Item";
locked = true;
}

form : WOForm {
}

createItemSubmitButton : CCSmartAjaxButton {
action = createItem;
useAjax = true;
value = "Create";
updateContainerID = "itemList";
}

Java

public WOActionResults updateItemListContainer() {
return null;
}

public WOActionResults createItem() {
(SETTING ALL THE VALUES AND STUFF)
ec.insertObject(newItem);
ec.saveChanges();
AjaxUtils.appendScript(context(), "AMD.close(); itemListUpdate();");
return null;
}

Does anyone have an idea what i’m doing wrong? It’s probably a trivial mistake, 
but i really don’t see it right now.

Thanks, 
Beni
 ___
Do not post admin requests to the list. They will 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: ERAttachmentUpload in an AjaxUpdateContainer with AjaxSubmitButton

2013-08-16 Thread Paul Hoadley
On 17/08/2013, at 10:52 AM, Paul Hoadley  wrote:

> Ideally I want a drop-in replacement for ERAttachmentUpload but that works in 
> an Ajax setting (i.e., something I can just provide with an editing context 
> and a pointer to the ERAttachment object would be great).  I don't think 
> AjaxFileUpload or AjaxFlexibleFileUpload will do this out of the box, will 
> they?  Does anyone have a 30 second guide for hooking this all up?

Oh dear:

http://jenkins.wocommunity.org/job/Wonder/lastSuccessfulBuild/javadoc/er/attachment/components/ERAttachmentFlexibleUpload.html

Move along, nothing to see here.


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

ERAttachmentUpload in an AjaxUpdateContainer with AjaxSubmitButton

2013-08-16 Thread Paul Hoadley
Hello,

The user experience I'm looking for here is an "in-place" ERAttachment upload.

I've got entities Job -->> Document --> ERAttachment.  I have a Job editing 
page where I'd like the user to be able to upload multiple attachments without 
a full page refresh, one at a time is sufficient.  ERAttachmentUpload works as 
designed in the context of a full form submit and page refresh, but I've 
perhaps naively tried to simply throw it into an AjaxUpdateContainer and 
changed the submit button to an AjaxSubmitButton.  This fails pretty much 
silently, and I assume it's because there's not a full form submission going 
on—fair enough.

Ideally I want a drop-in replacement for ERAttachmentUpload but that works in 
an Ajax setting (i.e., something I can just provide with an editing context and 
a pointer to the ERAttachment object would be great).  I don't think 
AjaxFileUpload or AjaxFlexibleFileUpload will do this out of the box, will 
they?  Does anyone have a 30 second guide for hooking this all up?


-- 
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: Batched AjaxUpdateContainer ?

2013-05-14 Thread Samuel Pelletier
Hi,

The first thing to try is to simplify the output HTML, 1MB for 200 entries is 
about 5k/entry, I would qualify this as HUGE for a table row...

Having some javascript parsed and executed on each row is a rendering killer. 
Just creating a function outside the update container and call it for each row 
with some required parameter should help a lot and reduce the size of the HTML 
(double win).

After if the result are still not satisfying, identify if the time is from the 
web app, the network transfer or the browser rendering.

The best solution for fast response time is a javascript app that would append 
row to the table and call some Ajax function to send the info to the server. 
This can be a big task and the problem is to make sure both view are kept in 
sync. If the user see a row and on refresh it is no longer there, this is bad.

Samuel

Le 2013-05-14 à 10:08, Jan Taterka  a écrit :

> Hi guys,
> 
> Just wonder about some batched AjaxUpdateContainer. I have following 
> situation in my app:
> 
> 
>   
>   
>   
>... 
>   
>   
>= addEmptyListItem ... />
> 
> 
> 
> and java:
> 
> public NSMutableArray myList;
> public SomeObject myItem;
> 
> public WOActionResults addEmptyListItem() {
>   
>   if(myList == null) {
>   myList = new NSMutableArray();
>   }
> 
>   myList.addObject(new SomeObject());
>   return null;
> 
> }
> 
> public String ucId() {
>   return "unique-constant-id";
> }
> 
> Just to draft the code. Now, When the size of myList is lower than for 
> example 200 elements, the addEmptyListItem method executes quite fast. When 
> riching 200+elements, the response is a bit to large (1MB uncompressed) and 
> adding new line takes 3-4 seconds and this time grows in function of list's 
> elements count. Unfortunately, in my repetition is some DOM based javascript, 
> so it slow's down the response a bit more.
> 
> I wonder, i i can e ome trick / component i do not know, which could help 
> with this situation? One of my ideas is UpdateContainer only for last "row", 
> but how to do it? (Each row my contain some link to "remove" element from 
> list, what breaks my idea of making separated UpdateContainer for evry N rows 
> (30-40).
> 
> 
> Thanks for any help!


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: Batched AjaxUpdateContainer ?

2013-05-14 Thread Jan Taterka

well, it don't need to be TR, span is same good...

Let me give some context, to better understand the issue.
We have webapp in which there is some order form, where user can order a
messanger (UPS or other). The order contains from 1 to 1000 positions, each
describes a package to send and contains fields like: height, width,
weight, 'content description', package_type (select).
By default - there is only one empty order row, and the button "add next".
All seems to be ok, until user add let say 300 packages. Then reloading the
order form after insert row is very slow. 

Pagination is no solution in this case, all orders must be visible on the
page all the time.


Dnia 14 maja 2013 19:00 David LeBer  napisał(a):

> A couple of thoughs.
> 
> The Ajax stuff pretty much assumes that it's interacting with simple 
> container elements (div, span, p, etc) so it generally barfs horribly if you 
> are trying to work with something like a tr. Second, as you've already noted 
> an AjaxUpdateContainer isn't really going to do what you want, instead of 
> doing an update you actually want to do an insert/append. 
> 
> Can you continue doing what you're doing, but make the table smaller? 
> Pagination perhaps?
> 
> Alternately, it looks like you may be facing creating a custom Ajax component 
> that wraps Scriptaculouses insert() to append a tr at the end of your table.
> 
> --
> David LeBer
> Codeferous Software
> 
> On 2013-05-14, at 12:32 PM, Jan Taterka  wrote:
> 
> > Well, no actually...
> > 
> > 
> > The whole table has much too much rows, and is very heavy (2-4 MB). What I 
> > want to do, is add a new row to the list/table, and not refreshing the 
> > whole list/table.
> > AjaxUpdateTrigger will update a lot of UC's, but i want to update as little 
> > as possible (cause only change here is a new row). I guess that separated 
> > UC for each row is not the best solution, or is ? (and if, how add a new 
> > one to the DOM without refreshing others?)
> > 
> > 
> > Dnia 14 maja 2013 17:46 Theodore Petrosky  napisał(a):
> > 
> >> is it possible to use an AjaxUpdateTrigger? It takes an array of 
> >> containers. if you did create the batches of rows, you could add and 
> >> detract from the array of groups.
> >> 
> >> (That's if I understand what you are trying to do!)
> >> 
> >> Ted
> >> 
> >> --- On Tue, 5/14/13, Jan Taterka  wrote:
> >> 
> >>> From: Jan Taterka 
> >>> Subject: Batched AjaxUpdateContainer ?
> >>> To: Webobjects-dev@lists.apple.com
> >>> Date: Tuesday, May 14, 2013, 10:08 AM
> >>> Hi guys,
> >>> 
> >>> Just wonder about some batched AjaxUpdateContainer. I have
> >>> following situation in my app:
> >>> 
> >>>  >>> fullSubmit="true" id = ucId >
> >>>  >>> list=myList item=myItem>
> >>> 
> >>>
> >>> 
> >>>
> >>>  ... 
> >>> 
> >>> 
> >>>  >>> = ucId name="addMoreBtn" action = addEmptyListItem ...
> >>> />
> >>> 
> >>> 
> >>> 
> >>> and java:
> >>> 
> >>> public NSMutableArray myList;
> >>> public SomeObject myItem;
> >>> 
> >>> public WOActionResults addEmptyListItem() {
> >>> 
> >>> if(myList == null) {
> >>> myList = new
> >>> NSMutableArray();
> >>> }
> >>> 
> >>> myList.addObject(new SomeObject());
> >>> return null;
> >>> 
> >>> }
> >>> 
> >>> public String ucId() {
> >>> return "unique-constant-id";
> >>> }
> >>> 
> >>> Just to draft the code. Now, When the size of myList is
> >>> lower than for example 200 elements, the addEmptyListItem
> >>> method executes quite fast. When riching 200+elements, the
> >>> response is a bit to large (1MB uncompressed) and adding new
> >>> line takes 3-4 seconds and this time grows in function of
> >>> list's elements count. Unfortunately, in my repetition is
> >>> some DOM based javascript, so it slow's down the response a
> >>> bit more.
> >>> 
> >>> I wonder, i i can e ome trick / component i do not know,
> >>> which could help with this situation? One of my ideas is
&

Re: Batched AjaxUpdateContainer ?

2013-05-14 Thread Jan Taterka
well, it don't need to be TR, span is same good...

Let me give some context, to better understand the issue.
We have webapp in which there is some order form, where user can order a 
messanger (UPS or other). The order contains from 1 to 1000 positions, each 
describes a package to send and contains fields like: height, width, weight, 
'content description', package_type (select).
By default - there is only one empty order row, and the button "add next". All 
seems to be ok, until user add let say 300 packages. Then reloading the order 
form after insert row is very slow. 

Pagination is no solution in this case, all orders must be visible on the page 
all the time.


Dnia 14 maja 2013 19:00 David LeBer  napisał(a):

> A couple of thoughs.
> 
> The Ajax stuff pretty much assumes that it's interacting with simple 
> container elements (div, span, p, etc) so it generally barfs horribly if you 
> are trying to work with something like a tr. Second, as you've already noted 
> an AjaxUpdateContainer isn't really going to do what you want, instead of 
> doing an update you actually want to do an insert/append. 
> 
> Can you continue doing what you're doing, but make the table smaller? 
> Pagination perhaps?
> 
> Alternately, it looks like you may be facing creating a custom Ajax component 
> that wraps Scriptaculouses insert() to append a tr at the end of your table.
> 
> --
> David LeBer
> Codeferous Software
> 
> On 2013-05-14, at 12:32 PM, Jan Taterka  wrote:
> 
> > Well, no actually...
> > 
> > 
> > The whole table has much too much rows, and is very heavy (2-4 MB). What I 
> > want to do, is add a new row to the list/table, and not refreshing the 
> > whole list/table.
> > AjaxUpdateTrigger will update a lot of UC's, but i want to update as little 
> > as possible (cause only change here is a new row). I guess that separated 
> > UC for each row is not the best solution, or is ? (and if, how add a new 
> > one to the DOM without refreshing others?)
> > 
> > 
> > Dnia 14 maja 2013 17:46 Theodore Petrosky  napisał(a):
> > 
> >> is it possible to use an AjaxUpdateTrigger? It takes an array of 
> >> containers. if you did create the batches of rows, you could add and 
> >> detract from the array of groups.
> >> 
> >> (That's if I understand what you are trying to do!)
> >> 
> >> Ted
> >> 
> >> --- On Tue, 5/14/13, Jan Taterka  wrote:
> >> 
> >>> From: Jan Taterka 
> >>> Subject: Batched AjaxUpdateContainer ?
> >>> To: Webobjects-dev@lists.apple.com
> >>> Date: Tuesday, May 14, 2013, 10:08 AM
> >>> Hi guys,
> >>> 
> >>> Just wonder about some batched AjaxUpdateContainer. I have
> >>> following situation in my app:
> >>> 
> >>>  >>> fullSubmit="true" id = ucId >
> >>>  >>> list=myList item=myItem>
> >>> 
> >>>
> >>> 
> >>>
> >>>  ... 
> >>> 
> >>> 
> >>>  >>> = ucId name="addMoreBtn" action = addEmptyListItem ...
> >>> />
> >>> 
> >>> 
> >>> 
> >>> and java:
> >>> 
> >>> public NSMutableArray myList;
> >>> public SomeObject myItem;
> >>> 
> >>> public WOActionResults addEmptyListItem() {
> >>> 
> >>> if(myList == null) {
> >>> myList = new
> >>> NSMutableArray();
> >>> }
> >>> 
> >>> myList.addObject(new SomeObject());
> >>> return null;
> >>> 
> >>> }
> >>> 
> >>> public String ucId() {
> >>> return "unique-constant-id";
> >>> }
> >>> 
> >>> Just to draft the code. Now, When the size of myList is
> >>> lower than for example 200 elements, the addEmptyListItem
> >>> method executes quite fast. When riching 200+elements, the
> >>> response is a bit to large (1MB uncompressed) and adding new
> >>> line takes 3-4 seconds and this time grows in function of
> >>> list's elements count. Unfortunately, in my repetition is
> >>> some DOM based javascript, so it slow's down the response a
> >>> bit more.
> >>> 
> >>> I wonder, i i can e ome trick / component i do not know,
> >>> which could help with this situation? One of

Re: Batched AjaxUpdateContainer ?

2013-05-14 Thread David LeBer
A couple of thoughs.

The Ajax stuff pretty much assumes that it's interacting with simple container 
elements (div, span, p, etc) so it generally barfs horribly if you are trying 
to work with something like a tr. Second, as you've already noted an 
AjaxUpdateContainer isn't really going to do what you want, instead of doing an 
update you actually want to do an insert/append. 

Can you continue doing what you're doing, but make the table smaller? 
Pagination perhaps?

Alternately, it looks like you may be facing creating a custom Ajax component 
that wraps Scriptaculouses insert() to append a tr at the end of your table.

--
David LeBer
Codeferous Software

On 2013-05-14, at 12:32 PM, Jan Taterka  wrote:

> Well, no actually...
> 
> 
> The whole table has much too much rows, and is very heavy (2-4 MB). What I 
> want to do, is add a new row to the list/table, and not refreshing the whole 
> list/table.
> AjaxUpdateTrigger will update a lot of UC's, but i want to update as little 
> as possible (cause only change here is a new row). I guess that separated UC 
> for each row is not the best solution, or is ? (and if, how add a new one to 
> the DOM without refreshing others?)
> 
> 
> Dnia 14 maja 2013 17:46 Theodore Petrosky  napisał(a):
> 
>> is it possible to use an AjaxUpdateTrigger? It takes an array of containers. 
>> if you did create the batches of rows, you could add and detract from the 
>> array of groups.
>> 
>> (That's if I understand what you are trying to do!)
>> 
>> Ted
>> 
>> --- On Tue, 5/14/13, Jan Taterka  wrote:
>> 
>>> From: Jan Taterka 
>>> Subject: Batched AjaxUpdateContainer ?
>>> To: Webobjects-dev@lists.apple.com
>>> Date: Tuesday, May 14, 2013, 10:08 AM
>>> Hi guys,
>>> 
>>> Just wonder about some batched AjaxUpdateContainer. I have
>>> following situation in my app:
>>> 
>>> >> fullSubmit="true" id = ucId >
>>> >> list=myList item=myItem>
>>> 
>>>
>>> 
>>>
>>>  ... 
>>> 
>>> 
>>> >> = ucId name="addMoreBtn" action = addEmptyListItem ...
>>> />
>>> 
>>> 
>>> 
>>> and java:
>>> 
>>> public NSMutableArray myList;
>>> public SomeObject myItem;
>>> 
>>> public WOActionResults addEmptyListItem() {
>>> 
>>> if(myList == null) {
>>> myList = new
>>> NSMutableArray();
>>> }
>>> 
>>> myList.addObject(new SomeObject());
>>> return null;
>>> 
>>> }
>>> 
>>> public String ucId() {
>>> return "unique-constant-id";
>>> }
>>> 
>>> Just to draft the code. Now, When the size of myList is
>>> lower than for example 200 elements, the addEmptyListItem
>>> method executes quite fast. When riching 200+elements, the
>>> response is a bit to large (1MB uncompressed) and adding new
>>> line takes 3-4 seconds and this time grows in function of
>>> list's elements count. Unfortunately, in my repetition is
>>> some DOM based javascript, so it slow's down the response a
>>> bit more.
>>> 
>>> I wonder, i i can e ome trick / component i do not know,
>>> which could help with this situation? One of my ideas is
>>> UpdateContainer only for last "row", but how to do it? (Each
>>> row my contain some link to "remove" element from list, what
>>> breaks my idea of making separated UpdateContainer for evry
>>> N rows (30-40).
>>> 
>>> 
>>> Thanks for any help!
>>> 
>>> 
>>> 
>>> 
>>> ___
>>> Do not post admin requests to the list. They will 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/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: Batched AjaxUpdateContainer ?

2013-05-14 Thread Jan Taterka
Well, no actually...


The whole table has much too much rows, and is very heavy (2-4 MB). What I want 
to do, is add a new row to the list/table, and not refreshing the whole 
list/table.
AjaxUpdateTrigger will update a lot of UC's, but i want to update as little as 
possible (cause only change here is a new row). I guess that separated UC for 
each row is not the best solution, or is ? (and if, how add a new one to the 
DOM without refreshing others?)


Dnia 14 maja 2013 17:46 Theodore Petrosky  napisał(a):

> is it possible to use an AjaxUpdateTrigger? It takes an array of containers. 
> if you did create the batches of rows, you could add and detract from the 
> array of groups.
> 
> (That's if I understand what you are trying to do!)
> 
> Ted
> 
> --- On Tue, 5/14/13, Jan Taterka  wrote:
> 
> > From: Jan Taterka 
> > Subject: Batched AjaxUpdateContainer ?
> > To: Webobjects-dev@lists.apple.com
> > Date: Tuesday, May 14, 2013, 10:08 AM
> > Hi guys,
> > 
> > Just wonder about some batched AjaxUpdateContainer. I have
> > following situation in my app:
> > 
> >  > fullSubmit="true" id = ucId >
> >      > list=myList item=myItem>
> >         
> >            
> > 
> >            
> >  ... 
> >         
> >     
> >      > = ucId name="addMoreBtn" action = addEmptyListItem ...
> > />
> > 
> > 
> > 
> > and java:
> > 
> > public NSMutableArray myList;
> > public SomeObject myItem;
> > 
> > public WOActionResults addEmptyListItem() {
> >     
> >     if(myList == null) {
> >         myList = new
> > NSMutableArray();
> >     }
> > 
> >     myList.addObject(new SomeObject());
> >     return null;
> > 
> > }
> > 
> > public String ucId() {
> >     return "unique-constant-id";
> > }
> > 
> > Just to draft the code. Now, When the size of myList is
> > lower than for example 200 elements, the addEmptyListItem
> > method executes quite fast. When riching 200+elements, the
> > response is a bit to large (1MB uncompressed) and adding new
> > line takes 3-4 seconds and this time grows in function of
> > list's elements count. Unfortunately, in my repetition is
> > some DOM based javascript, so it slow's down the response a
> > bit more.
> > 
> > I wonder, i i can e ome trick / component i do not know,
> > which could help with this situation? One of my ideas is
> > UpdateContainer only for last "row", but how to do it? (Each
> > row my contain some link to "remove" element from list, what
> > breaks my idea of making separated UpdateContainer for evry
> > N rows (30-40).
> > 
> > 
> > Thanks for any help!
> > 
> > 
> > 
> > 
> >  ___
> > Do not post admin requests to the list. They will 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: Batched AjaxUpdateContainer ?

2013-05-14 Thread Theodore Petrosky
is it possible to use an AjaxUpdateTrigger? It takes an array of containers. if 
you did create the batches of rows, you could add and detract from the array of 
groups.

(That's if I understand what you are trying to do!)

Ted

--- On Tue, 5/14/13, Jan Taterka  wrote:

> From: Jan Taterka 
> Subject: Batched AjaxUpdateContainer ?
> To: Webobjects-dev@lists.apple.com
> Date: Tuesday, May 14, 2013, 10:08 AM
> Hi guys,
> 
> Just wonder about some batched AjaxUpdateContainer. I have
> following situation in my app:
> 
>  fullSubmit="true" id = ucId >
>      list=myList item=myItem>
>         
>            
> 
>            
>  ... 
>         
>     
>      = ucId name="addMoreBtn" action = addEmptyListItem ...
> />
> 
> 
> 
> and java:
> 
> public NSMutableArray myList;
> public SomeObject myItem;
> 
> public WOActionResults addEmptyListItem() {
>     
>     if(myList == null) {
>         myList = new
> NSMutableArray();
>     }
> 
>     myList.addObject(new SomeObject());
>     return null;
> 
> }
> 
> public String ucId() {
>     return "unique-constant-id";
> }
> 
> Just to draft the code. Now, When the size of myList is
> lower than for example 200 elements, the addEmptyListItem
> method executes quite fast. When riching 200+elements, the
> response is a bit to large (1MB uncompressed) and adding new
> line takes 3-4 seconds and this time grows in function of
> list's elements count. Unfortunately, in my repetition is
> some DOM based javascript, so it slow's down the response a
> bit more.
> 
> I wonder, i i can e ome trick / component i do not know,
> which could help with this situation? One of my ideas is
> UpdateContainer only for last "row", but how to do it? (Each
> row my contain some link to "remove" element from list, what
> breaks my idea of making separated UpdateContainer for evry
> N rows (30-40).
> 
> 
> Thanks for any help!
> 
> 
> 
> 
>  ___
> Do not post admin requests to the list. They will 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

Batched AjaxUpdateContainer ?

2013-05-14 Thread Jan Taterka
Hi guys,

Just wonder about some batched AjaxUpdateContainer. I have following situation 
in my app:





 ... 






and java:

public NSMutableArray myList;
public SomeObject myItem;

public WOActionResults addEmptyListItem() {

if(myList == null) {
myList = new NSMutableArray();
}

myList.addObject(new SomeObject());
return null;

}

public String ucId() {
return "unique-constant-id";
}

Just to draft the code. Now, When the size of myList is lower than for example 
200 elements, the addEmptyListItem method executes quite fast. When riching 
200+elements, the response is a bit to large (1MB uncompressed) and adding new 
line takes 3-4 seconds and this time grows in function of list's elements 
count. Unfortunately, in my repetition is some DOM based javascript, so it 
slow's down the response a bit more.

I wonder, i i can e ome trick / component i do not know, which could help with 
this situation? One of my ideas is UpdateContainer only for last "row", but how 
to do it? (Each row my contain some link to "remove" element from list, what 
breaks my idea of making separated UpdateContainer for evry N rows (30-40).


Thanks for any help!




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

2012-08-28 Thread Theodore Petrosky
AjaxUpdateTrigger worked just fine alone. I would make that work.

given

















in the .java

public NSArray updateContainers = new NSArray(new String[] 
{"uc3ID", "uc4ID"});

if UC1 is updated, so will UC3 and UC4 but not UC2


although this is pseudo code, the concept works. I have an app I can send you 
if you want.


--- On Mon, 8/27/12, Pascal Robert  wrote:

> From: Pascal Robert 
> Subject: Re: AjaxUpdateContainer and AjaxAutoComplete together?
> To: "Theodore Petrosky" 
> Cc: "WebObjects Development" 
> Date: Monday, August 27, 2012, 11:18 AM
> Hi Ted,
> 
> Yes I did try to use AjaxUpdateTrigger but nothing get
> triggered even if my array indeed contains the two
> containers id. Are you using it with AjaxAutoComplete?
> 
> > If I read this correctly, you are trying to update two
> containers? did you see:  AjaxUpdateTrigger
> > 
> >  updateContainerID="specDescription"
> observeFieldID="specName_field" />
> >  updateContainerID="specSupplierPartNumber"
> observeFieldID="specName_field" />
> > 
> > they are both watching the same observeField
> > 
> > AjaxUpdateTrigger is useful if you have multiple
> containers on a page that are controlled by a central parent
> component. AjaxUpdateTrigger allows you to pass in an array
> of containers that need to be updated. An example of this is
> if you have multiple editable areas on a page and only one
> should be in edit mode at a time. If you put an
> AjaxUpdateTrigger inside the edit view, you can set the
> other components to not be in edit mode and trigger all of
> the other update containers to update, reflecting their new
> non-editable status.
> > 
> > I have used this one with success.
> > 
> > Ted
> > 
> > --- On Thu, 8/16/12, Pascal Robert 
> wrote:
> > 
> >> From: Pascal Robert 
> >> Subject: Re: AjaxUpdateContainer and
> AjaxAutoComplete together?
> >> To: "Theodore Petrosky" 
> >> Cc: "WebObjects Development" 
> >> Date: Thursday, August 16, 2012, 6:35 AM
> >> 
> >> Le 2012-08-16 à 06:12, Theodore Petrosky a écrit
> :
> >> 
> >>> Pascal,
> >>> 
> >>> shouldn't the id agree:
> >>> 
> >>> 
> >>> 
> >>>>  >>> 
> >>>  >> updateContainerID="specDescription"
> >>>> observeFieldID="specName_field" />
> >>> 
> >>> I mean you are observing 'specName' not
> >> 'specName_field'
> >> 
> >> It's AjaxAutoComplete who added _field itself.
> >> 
> >>> or I am not seeing what you are observing
> >>> 
> >>> Ted
> >>> 
> >>> 
> >>> --- On Tue, 8/14/12, Pascal Robert 
> >> wrote:
> >>> 
> >>>> From: Pascal Robert 
> >>>> Subject: AjaxUpdateContainer and
> AjaxAutoComplete
> >> together?
> >>>> To: "WebObjects Development" 
> >>>> Date: Tuesday, August 14, 2012, 10:09 AM
> >>>> I'm trying to use AjaxAutoComplete
> >>>> and two AjaxUpdateContainer together, but I
> have
> >> problems
> >>>> doing so. What I want to achieve is that
> when an
> >> item from a
> >>>> list built by AjaxAutoComplete is selected,
> I want
> >> to
> >>>> display two attributes from the selected
> item.
> >> Problem is
> >>>> that I get this:
> >>>> 
> >>>> août 14 09:55:27 WARN 
> er.ajax.Ajax  -
> >> You
> >>>> performed an Ajax update, but no response
> was
> >> generated. A
> >>>> common cause of this is that you spelled
> your
> >>>> updateContainerID wrong.  You
> specified a
> >> container ID
> >>>> 'specSupplierPartNumber'.
> >>>> 
> >>>> HTML code:
> >>>> 
> >>>>        
> >>    
> >>>>          
> >>     >>>> id="simpleComplete">
> >>>>           
>    
> >>>>  >> list="$currentSpecs"
> >>>> value="$specName" item="$specItem"
> >>>> displayString="$specItem.ID"
> >> selection="$specSelection"
> >>>> />
> >>>>           
>    
> >>>>  >> updateCon

Re: AjaxUpdateContainer and AjaxAutoComplete together?

2012-08-27 Thread Pascal Robert
Hi Ted,

Yes I did try to use AjaxUpdateTrigger but nothing get triggered even if my 
array indeed contains the two containers id. Are you using it with 
AjaxAutoComplete?

> If I read this correctly, you are trying to update two containers? did you 
> see:  AjaxUpdateTrigger
> 
>  observeFieldID="specName_field" />
>  observeFieldID="specName_field" />
> 
> they are both watching the same observeField
> 
> AjaxUpdateTrigger is useful if you have multiple containers on a page that 
> are controlled by a central parent component. AjaxUpdateTrigger allows you to 
> pass in an array of containers that need to be updated. An example of this is 
> if you have multiple editable areas on a page and only one should be in edit 
> mode at a time. If you put an AjaxUpdateTrigger inside the edit view, you can 
> set the other components to not be in edit mode and trigger all of the other 
> update containers to update, reflecting their new non-editable status.
> 
> I have used this one with success.
> 
> Ted
> 
> --- On Thu, 8/16/12, Pascal Robert  wrote:
> 
>> From: Pascal Robert 
>> Subject: Re: AjaxUpdateContainer and AjaxAutoComplete together?
>> To: "Theodore Petrosky" 
>> Cc: "WebObjects Development" 
>> Date: Thursday, August 16, 2012, 6:35 AM
>> 
>> Le 2012-08-16 à 06:12, Theodore Petrosky a écrit :
>> 
>>> Pascal,
>>> 
>>> shouldn't the id agree:
>>> 
>>> 
>>> 
>>>> >> 
>>> > updateContainerID="specDescription"
>>>> observeFieldID="specName_field" />
>>> 
>>> I mean you are observing 'specName' not
>> 'specName_field'
>> 
>> It's AjaxAutoComplete who added _field itself.
>> 
>>> or I am not seeing what you are observing
>>> 
>>> Ted
>>> 
>>> 
>>> --- On Tue, 8/14/12, Pascal Robert 
>> wrote:
>>> 
>>>> From: Pascal Robert 
>>>> Subject: AjaxUpdateContainer and AjaxAutoComplete
>> together?
>>>> To: "WebObjects Development" 
>>>> Date: Tuesday, August 14, 2012, 10:09 AM
>>>> I'm trying to use AjaxAutoComplete
>>>> and two AjaxUpdateContainer together, but I have
>> problems
>>>> doing so. What I want to achieve is that when an
>> item from a
>>>> list built by AjaxAutoComplete is selected, I want
>> to
>>>> display two attributes from the selected item.
>> Problem is
>>>> that I get this:
>>>> 
>>>> août 14 09:55:27 WARN  er.ajax.Ajax  -
>> You
>>>> performed an Ajax update, but no response was
>> generated. A
>>>> common cause of this is that you spelled your
>>>> updateContainerID wrong.  You specified a
>> container ID
>>>> 'specSupplierPartNumber'.
>>>> 
>>>> HTML code:
>>>> 
>>>>
>>
>>>>  
>>>>> id="simpleComplete">
>>>>   
>>>> > list="$currentSpecs"
>>>> value="$specName" item="$specItem"
>>>> displayString="$specItem.ID"
>> selection="$specSelection"
>>>> />
>>>>   
>>>> > updateContainerID="specDescription"
>>>> observeFieldID="specName_field" />
>>>>   
>>>> >>> updateContainerID="specSupplierPartNumber"
>>>> observeFieldID="specName_field" />
>>>>  
>>
>>>>
>>
>>>>   
>>>> >>> id="specSupplierPartNumber">>>> value="$specSelection.manufacturerPartNumber"
>>>> />
>>>>
>>
>>>> 
>>>> >>> id="specDescription">>>> value="$specSelection.description"
>>>> />
>>>>
>>
>>>> 
>>>> And I see that two POST requests like this are
>> made: 
>>>> 
>>>>POST
>>>> 
>> /cgi-bin/WebObjects/Alexandria.woa/ajax/tY93dxbCSPWBvr50t7zbbg/3.0.15.5.1?_u=specDescription&1344952527175
>>>> 
>>>> The setter for specSelection is never called. And
>> yes, it's
>>>> wrapped in a form.
>>>> ___
>>>> Do not post admin requests to the list. They will
>> 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: AjaxUpdateContainer and AjaxAutoComplete together?

2012-08-16 Thread Theodore Petrosky
If I read this correctly, you are trying to update two containers? did you see: 
 AjaxUpdateTrigger




they are both watching the same observeField

AjaxUpdateTrigger is useful if you have multiple containers on a page that are 
controlled by a central parent component. AjaxUpdateTrigger allows you to pass 
in an array of containers that need to be updated. An example of this is if you 
have multiple editable areas on a page and only one should be in edit mode at a 
time. If you put an AjaxUpdateTrigger inside the edit view, you can set the 
other components to not be in edit mode and trigger all of the other update 
containers to update, reflecting their new non-editable status.

I have used this one with success.

Ted

--- On Thu, 8/16/12, Pascal Robert  wrote:

> From: Pascal Robert 
> Subject: Re: AjaxUpdateContainer and AjaxAutoComplete together?
> To: "Theodore Petrosky" 
> Cc: "WebObjects Development" 
> Date: Thursday, August 16, 2012, 6:35 AM
> 
> Le 2012-08-16 à 06:12, Theodore Petrosky a écrit :
> 
> > Pascal,
> > 
> > shouldn't the id agree:
> > 
> > 
> > 
> >>  > 
> >  updateContainerID="specDescription"
> >> observeFieldID="specName_field" />
> > 
> > I mean you are observing 'specName' not
> 'specName_field'
> 
> It's AjaxAutoComplete who added _field itself.
> 
> > or I am not seeing what you are observing
> > 
> > Ted
> > 
> > 
> > --- On Tue, 8/14/12, Pascal Robert 
> wrote:
> > 
> >> From: Pascal Robert 
> >> Subject: AjaxUpdateContainer and AjaxAutoComplete
> together?
> >> To: "WebObjects Development" 
> >> Date: Tuesday, August 14, 2012, 10:09 AM
> >> I'm trying to use AjaxAutoComplete
> >> and two AjaxUpdateContainer together, but I have
> problems
> >> doing so. What I want to achieve is that when an
> item from a
> >> list built by AjaxAutoComplete is selected, I want
> to
> >> display two attributes from the selected item.
> Problem is
> >> that I get this:
> >> 
> >> août 14 09:55:27 WARN  er.ajax.Ajax  -
> You
> >> performed an Ajax update, but no response was
> generated. A
> >> common cause of this is that you spelled your
> >> updateContainerID wrong.  You specified a
> container ID
> >> 'specSupplierPartNumber'.
> >> 
> >> HTML code:
> >> 
> >>       
>    
> >>         
>     >> id="simpleComplete">
> >>              
> >>  list="$currentSpecs"
> >> value="$specName" item="$specItem"
> >> displayString="$specItem.ID"
> selection="$specSelection"
> >> />
> >>              
> >>  updateContainerID="specDescription"
> >> observeFieldID="specName_field" />
> >>              
> >>  >> updateContainerID="specSupplierPartNumber"
> >> observeFieldID="specName_field" />
> >>         
>    
> >>       
>    
> >>          
> >>  >> id="specSupplierPartNumber"> >> value="$specSelection.manufacturerPartNumber"
> >> />
> >>       
>    
> >>            
> >>  >> id="specDescription"> >> value="$specSelection.description"
> >> />
> >>       
>    
> >> 
> >> And I see that two POST requests like this are
> made: 
> >> 
> >>   POST
> >>
> /cgi-bin/WebObjects/Alexandria.woa/ajax/tY93dxbCSPWBvr50t7zbbg/3.0.15.5.1?_u=specDescription&1344952527175
> >> 
> >> The setter for specSelection is never called. And
> yes, it's
> >> wrapped in a form.
> >> ___
> >> Do not post admin requests to the list. They will
> 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: AjaxUpdateContainer and AjaxAutoComplete together?

2012-08-16 Thread Pascal Robert

Le 2012-08-16 à 06:12, Theodore Petrosky a écrit :

> Pascal,
> 
> shouldn't the id agree:
> 
> 
> 
>>  
> > observeFieldID="specName_field" />
> 
> I mean you are observing 'specName' not 'specName_field'

It's AjaxAutoComplete who added _field itself.

> or I am not seeing what you are observing
> 
> Ted
> 
> 
> --- On Tue, 8/14/12, Pascal Robert  wrote:
> 
>> From: Pascal Robert 
>> Subject: AjaxUpdateContainer and AjaxAutoComplete together?
>> To: "WebObjects Development" 
>> Date: Tuesday, August 14, 2012, 10:09 AM
>> I'm trying to use AjaxAutoComplete
>> and two AjaxUpdateContainer together, but I have problems
>> doing so. What I want to achieve is that when an item from a
>> list built by AjaxAutoComplete is selected, I want to
>> display two attributes from the selected item. Problem is
>> that I get this:
>> 
>> août 14 09:55:27 WARN  er.ajax.Ajax  - You
>> performed an Ajax update, but no response was generated. A
>> common cause of this is that you spelled your
>> updateContainerID wrong.  You specified a container ID
>> 'specSupplierPartNumber'.
>> 
>> HTML code:
>> 
>>   
>> > id="simpleComplete">
>>  
>> > value="$specName" item="$specItem"
>> displayString="$specItem.ID" selection="$specSelection"
>> />
>>  
>> > observeFieldID="specName_field" />
>>  
>> > updateContainerID="specSupplierPartNumber"
>> observeFieldID="specName_field" />
>> 
>>   
>>  
>> > id="specSupplierPartNumber">> value="$specSelection.manufacturerPartNumber"
>> />
>>   
>>
>> > id="specDescription">> value="$specSelection.description"
>> />
>>   
>> 
>> And I see that two POST requests like this are made: 
>> 
>>   POST
>> /cgi-bin/WebObjects/Alexandria.woa/ajax/tY93dxbCSPWBvr50t7zbbg/3.0.15.5.1?_u=specDescription&1344952527175
>> 
>> The setter for specSelection is never called. And yes, it's
>> wrapped in a form.
>> ___
>> Do not post admin requests to the list. They will 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: AjaxUpdateContainer and AjaxAutoComplete together?

2012-08-16 Thread Theodore Petrosky
Pascal,

shouldn't the id agree:



>  observeFieldID="specName_field" />

I mean you are observing 'specName' not 'specName_field'

or I am not seeing what you are observing

Ted


--- On Tue, 8/14/12, Pascal Robert  wrote:

> From: Pascal Robert 
> Subject: AjaxUpdateContainer and AjaxAutoComplete together?
> To: "WebObjects Development" 
> Date: Tuesday, August 14, 2012, 10:09 AM
> I'm trying to use AjaxAutoComplete
> and two AjaxUpdateContainer together, but I have problems
> doing so. What I want to achieve is that when an item from a
> list built by AjaxAutoComplete is selected, I want to
> display two attributes from the selected item. Problem is
> that I get this:
> 
> août 14 09:55:27 WARN  er.ajax.Ajax  - You
> performed an Ajax update, but no response was generated. A
> common cause of this is that you spelled your
> updateContainerID wrong.  You specified a container ID
> 'specSupplierPartNumber'.
> 
> HTML code:
> 
>           
>              id="simpleComplete">
>              
>  value="$specName" item="$specItem"
> displayString="$specItem.ID" selection="$specSelection"
> />
>              
>  observeFieldID="specName_field" />
>              
>  updateContainerID="specSupplierPartNumber"
> observeFieldID="specName_field" />
>             
>           
>          
>  id="specSupplierPartNumber"> value="$specSelection.manufacturerPartNumber"
> />
>           
>            
>  id="specDescription"> value="$specSelection.description"
> />
>           
> 
> And I see that two POST requests like this are made: 
> 
>   POST
> /cgi-bin/WebObjects/Alexandria.woa/ajax/tY93dxbCSPWBvr50t7zbbg/3.0.15.5.1?_u=specDescription&1344952527175
> 
> The setter for specSelection is never called. And yes, it's
> wrapped in a form.
>  ___
> Do not post admin requests to the list. They will 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: AjaxUpdateContainer and AjaxAutoComplete together?

2012-08-15 Thread Johnny Miller
Hi Pascal,

Shouldn't the observefieldid = specName?

Johnny Miller
808.661.7962
jlmil...@kahalawai.com
www.kahalawai.com

On Aug 14, 2012, at 4:09 AM, Pascal Robert  wrote:

> I'm trying to use AjaxAutoComplete and two AjaxUpdateContainer together, but 
> I have problems doing so. What I want to achieve is that when an item from a 
> list built by AjaxAutoComplete is selected, I want to display two attributes 
> from the selected item. Problem is that I get this:
> 
> août 14 09:55:27 WARN  er.ajax.Ajax  - You performed an Ajax update, but no 
> response was generated. A common cause of this is that you spelled your 
> updateContainerID wrong.  You specified a container ID 
> 'specSupplierPartNumber'.
> 
> HTML code:
> 
>  
>
>   value="$specName" item="$specItem" displayString="$specItem.ID" 
> selection="$specSelection" />
>   observeFieldID="specName_field" />
>   observeFieldID="specName_field" />
>
>  
>   value="$specSelection.manufacturerPartNumber" />
>  
> value="$specSelection.description" />
>  
> 
> And I see that two POST requests like this are made: 
> 
>  POST 
> /cgi-bin/WebObjects/Alexandria.woa/ajax/tY93dxbCSPWBvr50t7zbbg/3.0.15.5.1?_u=specDescription&1344952527175
> 
> The setter for specSelection is never called. And yes, it's wrapped in a form.
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/jlmiller%40kahalawai.com
> 
> This email sent to jlmil...@kahalawai.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

AjaxUpdateContainer and AjaxAutoComplete together?

2012-08-15 Thread Pascal Robert
I'm trying to use AjaxAutoComplete and two AjaxUpdateContainer together, but I 
have problems doing so. What I want to achieve is that when an item from a list 
built by AjaxAutoComplete is selected, I want to display two attributes from 
the selected item. Problem is that I get this:

août 14 09:55:27 WARN  er.ajax.Ajax  - You performed an Ajax update, but no 
response was generated. A common cause of this is that you spelled your 
updateContainerID wrong.  You specified a container ID 'specSupplierPartNumber'.

HTML code:

  

  
  
  

  
  
  

  

And I see that two POST requests like this are made: 

  POST 
/cgi-bin/WebObjects/Alexandria.woa/ajax/tY93dxbCSPWBvr50t7zbbg/3.0.15.5.1?_u=specDescription&1344952527175

The setter for specSelection is never called. And yes, it's wrapped in a form.
 ___
Do not post admin requests to the list. They will 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

AjaxProxy and AjaxUpdateContainer co-operation fails

2012-07-18 Thread Damian Stasiak

Hi,
I'm trying to implement autocomplete javascript for my WO application. I 
use AjaxProxy and everything looks fine. There is a problem when I try 
to refresh page using AjaxUpdateContainer. Few first refreshes work fine 
but then my page get crashed and I have parts of links directly on my 
page (eg. under input field there is .15.0.3.3.7.3) and javascript stops 
working.

My AjaxProxy is attached with every autocompleted input field:

AutocompleteProxy : PMAjaxProxy {
proxyName = "autocomplete";
proxy = autocompleteProxy;
name = autocompleteProxy.name;
AjaxBridge = ajaxBridge;
}

where every field has its own bridge.

Firebug console says that I have "unterminated string literal" in line: 
ASB.observeField(...)


Do anyone experienced similar problem? Any tips?

--
Damian Stasiak

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

2012-05-17 Thread Henrique Gomes
Looking at your code; are you sure $regStatusExists is true? If it's null or 
false the container will be empty.
You can place an  after the   just to show sometting in that 
case.

HG

On May 16, 2012, at 3:39 PM, Pranathi Chepur wrote:

> Hi,
> 
> I see some weird behavior with AjaxUpdateContainer which is being triggered 
> by a AjaxObserveField as shown in the code below. Container is updated, but 
> the response is empty. This makes the UI field vanish all of the sudden. This 
> behavior is not consistent and changes each time. Anyone experiencing similar 
> issue? I am using Wonder_5_54_11763 version.
> 
> Thanks for any help
> Pranathi  
> 
> 
> Registration Approval 
> Status
>   list="$regApprovalStatusList" item="$regApprovalStatusItem" 
> displayString="$regApprovalStatusItem.displayName" id="regtestid" 
> selection="$selectedRegApprovalStatus"/>
> updateContainerID="regYearContainer" fullSubmit="$false"/>
>  
>   
>   class="dataLabel">   
> 
>
> displayString="$year.yearString" selection="$regYearSelected" />
>
>
>  
> 
> ___
> Do not post admin requests to the list. They will 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%40farol.pt
> 
> This email sent to li...@farol.pt


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

2012-05-16 Thread Pranathi Chepur
Thanks for getting back Tim. Updated the code as per your suggestions. But I 
still have the same issue. Anything else that could have gone wrong?

Regards
Pranathi




 From: Tim Worman 
To: Pranathi Chepur  
Cc: WebObjects DEV  
Sent: Wednesday, May 16, 2012 12:53 PM
Subject: Re: AjaxUpdateContainer Empty Reponse
 
Pranathi:

Some things that have commonly caused similar issues for me:

1. WOConditionals - do you have any conditionals on this page that may not be 
getting evaluated properly on Ajax update?
2. ajax-y elements in repetitions that do not have unique id's.

Tim
UCLA GSE&IS

On May 16, 2012, at 7:39 AM, Pranathi Chepur  wrote:

> Hi,
> 
> I see some weird behavior with AjaxUpdateContainer which is being triggered 
> by a AjaxObserveField as shown in the code below. Container is updated, but 
> the response is empty. This makes the UI field vanish all of the sudden. This 
> behavior is not consistent and changes each time. Anyone experiencing similar 
> issue? I am using Wonder_5_54_11763 version.
> 
> Thanks for any help
> Pranathi  
> 
> 
>             Registration Approval 
>Status
>              list="$regApprovalStatusList" item="$regApprovalStatusItem" 
>displayString="$regApprovalStatusItem.displayName" id="regtestid" 
>selection="$selectedRegApprovalStatus"/>
>                updateContainerID="regYearContainer" fullSubmit="$false"/>
>              
>               
>          class="dataLabel">      
>                 
>                
>                displayString="$year.yearString" selection="$regYearSelected" />
>                
>                
>              
>         
> ___
> Do not post admin requests to the list. They will 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: AjaxUpdateContainer Empty Reponse

2012-05-16 Thread Tim Worman
Pranathi:

Some things that have commonly caused similar issues for me:

1. WOConditionals - do you have any conditionals on this page that may not be 
getting evaluated properly on Ajax update?
2. ajax-y elements in repetitions that do not have unique id's.

Tim
UCLA GSE&IS

On May 16, 2012, at 7:39 AM, Pranathi Chepur  wrote:

> Hi,
> 
> I see some weird behavior with AjaxUpdateContainer which is being triggered 
> by a AjaxObserveField as shown in the code below. Container is updated, but 
> the response is empty. This makes the UI field vanish all of the sudden. This 
> behavior is not consistent and changes each time. Anyone experiencing similar 
> issue? I am using Wonder_5_54_11763 version.
> 
> Thanks for any help
> Pranathi  
> 
> 
> Registration Approval 
> Status
>   list="$regApprovalStatusList" item="$regApprovalStatusItem" 
> displayString="$regApprovalStatusItem.displayName" id="regtestid" 
> selection="$selectedRegApprovalStatus"/>
> updateContainerID="regYearContainer" fullSubmit="$false"/>
>  
>   
>   class="dataLabel">   
> 
>
> displayString="$year.yearString" selection="$regYearSelected" />
>
>
>  
> 
> ___
> Do not post admin requests to the list. They will 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


AjaxUpdateContainer Empty Reponse

2012-05-16 Thread Pranathi Chepur
Hi,

I see some weird behavior with AjaxUpdateContainer which is being triggered by 
a AjaxObserveField as shown in the code below. Container is updated, but the 
response is empty. This makes the UI field vanish all of the sudden. This 
behavior is not consistent and changes each time. Anyone experiencing similar 
issue? I am using Wonder_5_54_11763 version.


Thanks for any help
Pranathi  



    Registration Approval 
Status
 
   
     
      
    
    
   
   
   
   
     
     ___
Do not post admin requests to the list. They will 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: AjaxUpdateContainer with IFrame

2011-12-09 Thread Sisi Li
Hi Ted,

Thanks for your reply. 

Yes WOIFrame is a must as the html is from external src with ads, javascripts 
and css which will crash my page as I tried before.
Yes, I checked the Ajax examples. I also tried to remove AjaxupdateContainer to 
the Page component but it will complain that AjaxUpdateLink can not find 
updateContainerID.

Any other suggestions?

Sisi

On 9 Dec 2011, at 13:48, Theodore Petrosky wrote:

> Are you sure you want a WOIFrame? Maybe you really want to use CSS. 
> However, did you check out the Ajax examples from project Wonder?
> 
> This is a wonder(ful) place to start.
> 
> Ted
> 
>> 
>> Message: 9
>> Date: Fri, 09 Dec 2011 12:59:14 +
>> From: Sisi Li 
>> Subject: AjaxUpdateContainer with IFrame
>> To: webobjects-dev@lists.apple.com
>> Message-ID: <682682cb-a0e2-4190-b001-a3746a787...@gmail.com>
>> Content-Type: text/plain; charset=us-ascii
>> 
>> Hi,
>> 
>> I have a html page in an Iframe and want to change the
>> string value of that page by AjaxUpdateLink. I put the
>> Iframe into AjaxUpdateContainer. The code is below: 
>> 
>> For the main component:
>> In the html:
>> 
>> 
>> 
>> 
>>  
>> 
>> 
>> In the wod:
>> 
>> TagHpyerLink : AjaxUpdateLink {
>>   string = "change this";
>>   action = change;
>>   updateContainerID = "editform";
>> }
>> 
>> content : WOIFrame {
>> id = "iframe";
>> pageName = "Page";
>> height = "400px";
>> width = "1170px";
>> 
>> the Page component:
>> 
>> html:
>> > "pagestring">
>> 
>> wod:
>> pagestring : WOString {
>>   value = html;
>>   escapeHTML = "false";
>> }
>> 
>> I want to change the value of pagestring by AjaxUpdateLink
>> change action, but do not know how to do pass that via
>> Iframe.
>> 
>> Anyone can help?
>> 
>> Thanks
>> 
>> Sisi
>> 
>> 
> 

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

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


Re: AjaxUpdateContainer with IFrame

2011-12-09 Thread Theodore Petrosky
Are you sure you want a WOIFrame? Maybe you really want to use CSS. 
However, did you check out the Ajax examples from project Wonder?

This is a wonder(ful) place to start.

Ted

> 
> Message: 9
> Date: Fri, 09 Dec 2011 12:59:14 +
> From: Sisi Li 
> Subject: AjaxUpdateContainer with IFrame
> To: webobjects-dev@lists.apple.com
> Message-ID: <682682cb-a0e2-4190-b001-a3746a787...@gmail.com>
> Content-Type: text/plain; charset=us-ascii
> 
> Hi,
> 
> I have a html page in an Iframe and want to change the
> string value of that page by AjaxUpdateLink. I put the
> Iframe into AjaxUpdateContainer. The code is below: 
> 
> For the main component:
> In the html:
> 
> 
> 
>  
>  
> 
>  
> In the wod:
>  
> TagHpyerLink : AjaxUpdateLink {
>   string = "change this";
>   action = change;
>   updateContainerID = "editform";
> }
>  
> content : WOIFrame {
> id = "iframe";
> pageName = "Page";
> height = "400px";
> width = "1170px";
>  
> the Page component:
>  
> html:
>  "pagestring">
> 
> wod:
> pagestring : WOString {
>           value = html;
>   escapeHTML = "false";
> }
>  
> I want to change the value of pagestring by AjaxUpdateLink
> change action, but do not know how to do pass that via
> Iframe.
> 
> Anyone can help?
>  
> Thanks
> 
> Sisi
> 
> 

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

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


AjaxUpdateContainer with IFrame

2011-12-09 Thread Sisi Li
Hi,

I have a html page in an Iframe and want to change the string value of that 
page by AjaxUpdateLink. I put the Iframe into AjaxUpdateContainer. The code is 
below: 

For the main component:
In the html:



 
 

 
In the wod:
 
TagHpyerLink : AjaxUpdateLink {
  string = "change this";
  action = change;
  updateContainerID = "editform";
}
 
content : WOIFrame {
id = "iframe";
pageName = "Page";
height = "400px";
width = "1170px";
 
the Page component:
 
html:


wod:
pagestring : WOString {
  value = html;
  escapeHTML = "false";
}
 
I want to change the value of pagestring by AjaxUpdateLink change action, but 
do not know how to do pass that via Iframe.

Anyone can help?
 
Thanks

Sisi

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

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


AjaxObserveField and AjaxUpdateContainer Errors

2011-09-16 Thread Raghavender Bokka
Hi Team,

I am using AjaxUpdateContainer and AjaxObserveField 's and trying to perform 
ajax updates when I modify data in a text field or when I select Radio button.

But when I change any data in the text field that has ajax observe field 
binding and tab out then no ajax update is performing, the following error is 
displaying in the browser console:

TypeError: Result of expression 'formSerializer' [undefined] is not a function.


And in other page, I have a radio button and when I select the radio button 
that has ajax observe field binding then the following error is displaying in 
the browser console (no ajax update is performing):

TypeError: Result of expression '$(formFieldID)' [null] is not an object.


Any suggestions please.

The following is structure of my components laid out:
-
WOBody

  //-- loading 
prototype.js in the body

    AjaxUpdateContainer // --  placed ajax updated container before the 
form, trying to update all the form elements.  defined ID for the update 
container in the wod file

WOForm  // -- form has multipleSubmit=true;

WOTextField  (or) WORadioButton  // -- defined 
ID fields, so that using the ID field the ajax observe field binds and observes 
the change in the field

AjaxObserveField   // -- placed ajax observe field 
after the text field or radio buttons.  defined observeFieldID, 
updatedContainerID, and action methods to the observe field
-

Thanks,
Raghu.


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

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


Re: Clarification on AjaxObserveField and AjaxUpdateContainer

2011-05-11 Thread Theodore Petrosky


--- On Wed, 5/11/11, Chuck Hill  wrote:

> From: Chuck Hill 
> Subject: Re: Clarification on AjaxObserveField and AjaxUpdateContainer
> To: "Roger Perryman" 
> Cc: "Theodore Petrosky" , webobjects-dev@lists.apple.com
> Date: Wednesday, May 11, 2011, 12:58 AM
> One thing that looks suspicious to me
> is that the AMD and the data it is updating are both in the
> same form.  Can you move the AMD outside of the AUC
> _and_ the form and add a different form inside the AMD?
> 
> I have not used an AAC or an AOF in an AMD before. 
> Gee, it is fun to talk in code!
>

I have and it works fine. Of course you are not supposed to put an AMD inside a 
form. Put the binding for the AMD outside the form and use an 
AjaxModalDialogOpener inside the form that refers to the AMD.













WOD

MyFormBegin : WOForm {

}

MyAMD : AjaxModalDialog {
  id = "MyAMDID";
  action = methodToBringInAMDContent;

/*other stuff about AMD*/

}

MyAMDOpener :  AjaxModalDialogOpener {
   dialogId = "MyAMDID";
   label  = "label text";
}

Java:
public WOActionResults methodToBringInAMDContent() {

   SearchGrid theSearchGrid = pageWithName(SearchGrid.class);   
   return theSearchGrid;
}

This assumes you have a WOComponent called SearchGrid.

I also believe I read somewhere that the binding to the AMD should be at the 
top of the HTML to make it 'known' at the beginning of the page.

Ted


> 
> Chuck
> 
> 
> On May 10, 2011, at 2:11 PM, Roger Perryman wrote:
> 
> > Ted,
> > 
> > I've tried that combination (and many others) before.
> Some were close. Some were ... not so close. I just tried it
> again and here is what I found. I reloaded the page for each
> test.
> > 
> > Assuming that I have selected an item in the AAC and
> then entered data in the details text area and it still has
> focus:
> > 
> > Click on Add button - Dialog closes and screen updates
> with an EMPTY container.
> > Click outside the text area and then click on Add
> button - Dialog closes and screen updates correctly.
> > Click on Add Button (enable breakpoint in onClose) -
> Dialog closes; Continue from breakpoint; screen updates
> correctly.
> > 
> > Assuming that I have selected an item in the AAC and
> it still has focus:
> > 
> > Click on Add button - Dialog closes and screen updates
> correctly.
> > Click outside the AAC and then click on Add button -
> Dialog closes and screen updates with an EMPTY container.
> > Click on Add Button (enable breakpoint in onClose) -
> Dialog closes; Continue from breakpoint; screen updates
> correctly.
> > 
> > Note that the details text area has an AOF but it does
> NOT specify an AUC. It does call a method that simply
> returns null. If I don't call a method, then the variables
> never update on the server side.
> > 
> > I still believe it is a timing issue although it
> doesn't make sense to get an empty AUC after clicking
> outside the AAC field and then clicking Add.
> > 
> > Roger
> > 
> > 
> > On May 10, 2011, at 3:47 PM, Theodore Petrosky wrote:
> > 
> >> --
> >>> 
> >>> Message: 2
> >>> Date: Tue, 10 May 2011 14:02:04 -0400
> >>> From: Roger Perryman 
> >>> Subject: Re: Clarification on AjaxObserveField
> and
> >>> AjaxUpdateContainer
> >>>    Interaction
> >>> To: Theodore Petrosky 
> >>> Cc: webobjects-dev@lists.apple.com
> >>> Message-ID: <12ce8601-01a0-4821-a246-e4a99496a...@xeotech.com>
> >>> Content-Type: text/plain; charset="us-ascii"
> >>> 
> >>> Ted,
> >>> 
> >>> Thanks for answering! I almost missed your
> reply because it
> >>> was in a
> >>> digest. I was watching for the subject line.
> >>> 
> >>> I often use conditionals to execute code such
> as resetting
> >>> counters or
> >>> prepping a loop but I think this was the first
> time I had
> >>> done it
> >>> inside an AUC. I removed it and tinkered with
> several
> >>> combinations of
> >>> the bindings. I couldn't find an example for
> >>> closeUpdateContainerID.
> >>> Is it _required_ with onClose? While using it,
> it was
> >>> trying to update
> >>> the container before the list was rebuilt.
> >> 
> >> closeUpdateContainerID =
> "theIDForTheAUCThatYouWantTOUpdate";
> >> so if you wanted this AUC to update after closing
> the AMD
> >> 
&g

Re: Clarification on AjaxObserveField and AjaxUpdateContainer

2011-05-10 Thread Chuck Hill
One thing that looks suspicious to me is that the AMD and the data it is 
updating are both in the same form.  Can you move the AMD outside of the AUC 
_and_ the form and add a different form inside the AMD?

I have not used an AAC or an AOF in an AMD before.  Gee, it is fun to talk in 
code!


Chuck


On May 10, 2011, at 2:11 PM, Roger Perryman wrote:

> Ted,
> 
> I've tried that combination (and many others) before. Some were close. Some 
> were ... not so close. I just tried it again and here is what I found. I 
> reloaded the page for each test.
> 
> Assuming that I have selected an item in the AAC and then entered data in the 
> details text area and it still has focus:
> 
> Click on Add button - Dialog closes and screen updates with an EMPTY 
> container.
> Click outside the text area and then click on Add button - Dialog closes and 
> screen updates correctly.
> Click on Add Button (enable breakpoint in onClose) - Dialog closes; Continue 
> from breakpoint; screen updates correctly.
> 
> Assuming that I have selected an item in the AAC and it still has focus:
> 
> Click on Add button - Dialog closes and screen updates correctly.
> Click outside the AAC and then click on Add button - Dialog closes and screen 
> updates with an EMPTY container.
> Click on Add Button (enable breakpoint in onClose) - Dialog closes; Continue 
> from breakpoint; screen updates correctly.
> 
> Note that the details text area has an AOF but it does NOT specify an AUC. It 
> does call a method that simply returns null. If I don't call a method, then 
> the variables never update on the server side.
> 
> I still believe it is a timing issue although it doesn't make sense to get an 
> empty AUC after clicking outside the AAC field and then clicking Add.
> 
> Roger
> 
> 
> On May 10, 2011, at 3:47 PM, Theodore Petrosky wrote:
> 
>> --
>>> 
>>> Message: 2
>>> Date: Tue, 10 May 2011 14:02:04 -0400
>>> From: Roger Perryman 
>>> Subject: Re: Clarification on AjaxObserveField and
>>> AjaxUpdateContainer
>>>Interaction
>>> To: Theodore Petrosky 
>>> Cc: webobjects-dev@lists.apple.com
>>> Message-ID: <12ce8601-01a0-4821-a246-e4a99496a...@xeotech.com>
>>> Content-Type: text/plain; charset="us-ascii"
>>> 
>>> Ted,
>>> 
>>> Thanks for answering! I almost missed your reply because it
>>> was in a
>>> digest. I was watching for the subject line.
>>> 
>>> I often use conditionals to execute code such as resetting
>>> counters or
>>> prepping a loop but I think this was the first time I had
>>> done it
>>> inside an AUC. I removed it and tinkered with several
>>> combinations of
>>> the bindings. I couldn't find an example for
>>> closeUpdateContainerID.
>>> Is it _required_ with onClose? While using it, it was
>>> trying to update
>>> the container before the list was rebuilt.
>> 
>> closeUpdateContainerID = "theIDForTheAUCThatYouWantTOUpdate";
>> so if you wanted this AUC to update after closing the AMD
>> 
>> I tend to make my IDs have the name of the object so I can remember where 
>> things point:
>> 
>> labTestCB: WOCheckBox
>> {
>>   id = labTestCBID;
>>   checked = patientLabTestCB;
>> }
>> 
>> labTestResultsUC: AjaxUpdateContainer
>> {
>>   id = "labTestResultsUC";
>> }
>> 
>> MyAMD : AjaxModalDialog {
>> closeUpdateContainerID = "labTestResultsUC";
>> onClose = methodOnServerToFireBeforeClosingAMD;
>> }
>> 
>> when MyAMD closes it will fire the method on the server then fire the AUC to 
>> update its contents.
>> 
>> 
>> 
>>> 
>>> It still doesn't work 100% but it is much closer. Also, the
>>> question
>>> about the entire page being processed when updating a
>>> portion of the
>>> page wasn't answered. Any thoughts or insights?
>>> 
>>> The remaining quirks:
>>> 
>>> 1.The AjaxAutoComplete works correctly
>>> the first time but if I open
>>> the AMD again, then the styling is gone -- hard to read but
>>> it is
>>> functional.
>>> 
>>> 2.Tab doesn't work from fields within
>>> the AMD. Is this is a know bug/
>>> feature/issue with AMD?
>>> 
>>> 3.I have to click outside the Details
>>> field (tab doesn't work) before
>>> clicking Add. If I just click on Add before l

Re: Clarification on AjaxObserveField and AjaxUpdateContainer

2011-05-10 Thread Roger Perryman

Ted,

I've tried that combination (and many others) before. Some were close.  
Some were ... not so close. I just tried it again and here is what I  
found. I reloaded the page for each test.


Assuming that I have selected an item in the AAC and then entered data  
in the details text area and it still has focus:


Click on Add button - Dialog closes and screen updates with an EMPTY  
container.
Click outside the text area and then click on Add button - Dialog  
closes and screen updates correctly.
Click on Add Button (enable breakpoint in onClose) - Dialog closes;  
Continue from breakpoint; screen updates correctly.


Assuming that I have selected an item in the AAC and it still has focus:

Click on Add button - Dialog closes and screen updates correctly.
Click outside the AAC and then click on Add button - Dialog closes and  
screen updates with an EMPTY container.
Click on Add Button (enable breakpoint in onClose) - Dialog closes;  
Continue from breakpoint; screen updates correctly.


Note that the details text area has an AOF but it does NOT specify an  
AUC. It does call a method that simply returns null. If I don't call a  
method, then the variables never update on the server side.


I still believe it is a timing issue although it doesn't make sense to  
get an empty AUC after clicking outside the AAC field and then  
clicking Add.


Roger


On May 10, 2011, at 3:47 PM, Theodore Petrosky wrote:


--


Message: 2
Date: Tue, 10 May 2011 14:02:04 -0400
From: Roger Perryman 
Subject: Re: Clarification on AjaxObserveField and
AjaxUpdateContainer
Interaction
To: Theodore Petrosky 
Cc: webobjects-dev@lists.apple.com
Message-ID: <12ce8601-01a0-4821-a246-e4a99496a...@xeotech.com>
Content-Type: text/plain; charset="us-ascii"

Ted,

Thanks for answering! I almost missed your reply because it
was in a
digest. I was watching for the subject line.

I often use conditionals to execute code such as resetting
counters or
prepping a loop but I think this was the first time I had
done it
inside an AUC. I removed it and tinkered with several
combinations of
the bindings. I couldn't find an example for
closeUpdateContainerID.
Is it _required_ with onClose? While using it, it was
trying to update
the container before the list was rebuilt.


closeUpdateContainerID = "theIDForTheAUCThatYouWantTOUpdate";
so if you wanted this AUC to update after closing the AMD

I tend to make my IDs have the name of the object so I can remember  
where things point:


labTestCB: WOCheckBox
{
   id = labTestCBID;
   checked = patientLabTestCB;
}

labTestResultsUC: AjaxUpdateContainer
{
   id = "labTestResultsUC";
}

MyAMD : AjaxModalDialog {
closeUpdateContainerID = "labTestResultsUC";
onClose = methodOnServerToFireBeforeClosingAMD;
}

when MyAMD closes it will fire the method on the server then fire  
the AUC to update its contents.






It still doesn't work 100% but it is much closer. Also, the
question
about the entire page being processed when updating a
portion of the
page wasn't answered. Any thoughts or insights?

The remaining quirks:

1.The AjaxAutoComplete works correctly
the first time but if I open
the AMD again, then the styling is gone -- hard to read but
it is
functional.

2.Tab doesn't work from fields within
the AMD. Is this is a know bug/
feature/issue with AMD?

3.I have to click outside the Details
field (tab doesn't work) before
clicking Add. If I just click on Add before leaving the
field, then
addLabTestData() doesn't seem to get called. The button is
enabled
when a selection is made in the AAC. I suspect it is a
timing issue
between the UC updating and list being recreated.

Here is the source for the two components. I've trimmed it
down to the
relevant pieces so you can see what I am trying to
accomplish (it is
still about 250 lines).

MPanelOrders.html  ( an embedded component which calls
the AMD )

   

 
 

   
   
   The following labs
and tests will be automatically ordered:
   

   
 
 
   

   

   

   

    
 

   

   

   
   
 
   

   
   
  Order
additional
Labs and Tests
   
 
   



MPanelOrders.wod

ordersForm: WOForm
{
   id = "ordersForm";
   multipleSubmit = true;
}

labTestUC: AjaxUpdateContainer
{
   elementName = "div";
   id = "labTestUC";
}

labTestList: WORepetition
{
   list = patientLabTestList;
   item = patientLabTestItem;
   index = patientLabTestIndex;
}

labTestCB: WOCheckBox
{
   id = patientLabTestID;
   checked = patientLabTestCB;
}

labTestCB_OF: AjaxObserveField
{
   observeFieldID = patientLabTestID;
   action = genericAjaxUpdate;
// no-op that gives the server a
chance to update
   fullSubmit = false;
}

labTestLabel: WOGenericContainer
{
   elementName = "l

Re: Clarification on AjaxObserveField and AjaxUpdateContainer

2011-05-10 Thread Theodore Petrosky
--
> 
> Message: 2
> Date: Tue, 10 May 2011 14:02:04 -0400
> From: Roger Perryman 
> Subject: Re: Clarification on AjaxObserveField and
> AjaxUpdateContainer
>     Interaction
> To: Theodore Petrosky 
> Cc: webobjects-dev@lists.apple.com
> Message-ID: <12ce8601-01a0-4821-a246-e4a99496a...@xeotech.com>
> Content-Type: text/plain; charset="us-ascii"
> 
> Ted,
> 
> Thanks for answering! I almost missed your reply because it
> was in a  
> digest. I was watching for the subject line.
> 
> I often use conditionals to execute code such as resetting
> counters or  
> prepping a loop but I think this was the first time I had
> done it  
> inside an AUC. I removed it and tinkered with several
> combinations of  
> the bindings. I couldn't find an example for
> closeUpdateContainerID.  
> Is it _required_ with onClose? While using it, it was
> trying to update  
> the container before the list was rebuilt.

closeUpdateContainerID = "theIDForTheAUCThatYouWantTOUpdate";
so if you wanted this AUC to update after closing the AMD 

I tend to make my IDs have the name of the object so I can remember where 
things point:

labTestCB: WOCheckBox
{
    id = labTestCBID;
    checked = patientLabTestCB;
}

labTestResultsUC: AjaxUpdateContainer
{
   id = "labTestResultsUC";
}

MyAMD : AjaxModalDialog {
closeUpdateContainerID = "labTestResultsUC";
onClose = methodOnServerToFireBeforeClosingAMD;
}

when MyAMD closes it will fire the method on the server then fire the AUC to 
update its contents.



> 
> It still doesn't work 100% but it is much closer. Also, the
> question  
> about the entire page being processed when updating a
> portion of the  
> page wasn't answered. Any thoughts or insights?
> 
> The remaining quirks:
> 
> 1.    The AjaxAutoComplete works correctly
> the first time but if I open  
> the AMD again, then the styling is gone -- hard to read but
> it is  
> functional.
> 
> 2.    Tab doesn't work from fields within
> the AMD. Is this is a know bug/ 
> feature/issue with AMD?
> 
> 3.    I have to click outside the Details
> field (tab doesn't work) before  
> clicking Add. If I just click on Add before leaving the
> field, then  
> addLabTestData() doesn't seem to get called. The button is
> enabled  
> when a selection is made in the AAC. I suspect it is a
> timing issue  
> between the UC updating and list being recreated.
> 
> Here is the source for the two components. I've trimmed it
> down to the  
> relevant pieces so you can see what I am trying to
> accomplish (it is  
> still about 250 lines).
> 
> MPanelOrders.html  ( an embedded component which calls
> the AMD )
> 
>    
> 
>      
>       name="labTestUC">
> 
>        
>         name="testMarker" />
>        The following labs
> and tests will be automatically ordered: p>
>        
> 
>        
>          
>           name="labTestList">
>            
>          
>    
>          
>    
>            
>    
>            
>     name="labTestLabel"> 
>  
>            
>    
>            
>    
>          
>    
>            
>          
>        
> 
>        
>        
>           name="addLabTestPopup"/> Order
> additional  
> Labs and Tests
>        
>       name="labTestUC">
>    
> 
> 
> 
> MPanelOrders.wod
> 
> ordersForm: WOForm
> {
>    id = "ordersForm";
>    multipleSubmit = true;
> }
> 
> labTestUC: AjaxUpdateContainer
> {
>    elementName = "div";
>    id = "labTestUC";
> }
> 
> labTestList: WORepetition
> {
>    list = patientLabTestList;
>    item = patientLabTestItem;    
>    index = patientLabTestIndex;
> }
> 
> labTestCB: WOCheckBox
> {
>    id = patientLabTestID;
>    checked = patientLabTestCB;
> }
> 
> labTestCB_OF: AjaxObserveField
> {
>    observeFieldID = patientLabTestID;
>    action = genericAjaxUpdate;   
> // no-op that gives the server a  
> chance to update
>    fullSubmit = false;
> }
> 
> labTestLabel: WOGenericContainer
> {
>    elementName = "label";
>    for = patientLabTestID;
> }
> 
> labTestName: WOString { value = patientLabTestDisplayName;
> }
> 
> addLabTestPopup: AjaxModalDialog
> {
>    autoFocusing = false;
>    centerVertically = true;
>    locked = true;
>    transitions = false;
>    action = addLabTestPopup;
>    onClose = onClos

Clarification on AjaxObserveField and AjaxUpdateContainer Interaction

2011-05-09 Thread Roger Perryman

Hi,

I placed a WOConditional inside an update container so I could use it  
as a hook to execute some code whenever the container was updated.  
Specifically, I needed to update some objects after an AjaxModalDialog  
was closed with the results from AjaxAutoComplete (and other inputs).


The entire page is regenerated even though only a portion of the page  
is actually updated in the browser. Everything outside of the update  
container appears to be discarded.


This is counter-intuitive. I was under the impression that WO  
determined which container (if any) needed updating and regenerated  
the content for that container only and sent that to the browser.


Because AjaxAutoComplete sends requests as you are typing, the  
conditional is getting called excessively even though it was not  
associated with (or inside) the update container in the parent page.  
For complex pages this can be very costly.


Am I violating some sort of Ajax Commandment? What is the best way to  
get around this situation? Since the popup shouldn't know anything  
about the caller (except what is passed as arguments), I may use  
notifications on the add button so that anyone interested can respond.  
This wont solve the performance issues due to constant updates to the  
page.


I am using WO 5.4. Thanks for any suggestions.

Roger

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

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


Re: AjaxUpdateContainer ?

2011-04-28 Thread Pascal Robert
10. Using Dojo's DataGrid (which can do automatic paging and inline editing) 
with ERRest to feed and update the data.

> 9. Use Excel as the backing store?
> 
> http://code.karlmenn.is/Apps/WebObjects/Hugi.woa/wa/dp?detail=1000764&id=122
> 
> On 2011-04-26, at 3:27 PM, David Holt wrote:
> 
>> 8. Export directly to Excel?
>> 
>> 
>> On 2011-04-26, at 3:23 PM, Pascal Robert wrote:
>> 
>>> 7. Installing a ODBC driver to connect to the database from Excel or
>>> OpenOffice and let them work in Excel..,
>>> 
>>> Le 2011-04-26 à 18:15, Chuck Hill  a écrit :
>>> 
>>>> I see that you have a few options:
>>>> 
>>>> 1. Fire your client.
>>>> 2. Educate your client.
>>>> 3. Figure out what they really need to do (NEED vs Implementation aka 
>>>> Excel) and deliver an interface that meets their needs in a far, far more 
>>>> effective way than scrolling in Excel.
>>>> 4. Torture your client with a painfully low and ineffective UI
>>>> 5. Use pure client side JavaScript as Mike suggested
>>>> 6. Switch to divs so that the UI renders faster and you can update 
>>>> individual rows.
>>>> 
>>>> 
>>>> Chuck
>>>> 
>>>> 
>>>> On Apr 26, 2011, at 2:33 PM, Theodore Petrosky wrote:
>>>> 
>>>>> I guess I should have started off by saying that my user demands that all 
>>>>> rows of data be visible all the time (because this is what it looks like 
>>>>> in excel). I even have a boolean to not show old data but she insists 
>>>>> that all data (including legacy data) is important and she needs to see 
>>>>> it all the time (so nothing gets marked as 'complete').
>>>>> 
>>>>> I think it sucks big time, but what can I do? I have been dragging my 
>>>>> feet for 3 weeks already and the only solution I have found was to wrap 
>>>>> every row in an UpdateContainer.
>>>>> 
>>>>> Ted
>>>>> 
>>>>> --- On Tue, 4/26/11, Chuck Hill  wrote:
>>>>> 
>>>>>> From: Chuck Hill 
>>>>>> Subject: Re: AjaxUpdateContainer ?
>>>>>> To: "Theodore Petrosky" 
>>>>>> Cc: webobjects-dev@lists.apple.com
>>>>>> Date: Tuesday, April 26, 2011, 1:56 PM
>>>>>> 
>>>>>> On Apr 26, 2011, at 5:16 AM, Theodore Petrosky wrote:
>>>>>> 
>>>>>>> I am presenting a table to my user and I am noticing
>>>>>> that the number of rows that they want to keep current is
>>>>>> growing to more than 1k.
>>>>>>> 
>>>>>>> One of the UI issues is to color individual rows that
>>>>>> signify specific meta data (ie. row is red so it is
>>>>>> important, green is something else).
>>>>>>> 
>>>>>>> Currently, I have one AjaxUpdateContainer wrapping the
>>>>>> whole table. If the user updates the row color, I fire the
>>>>>> container update. But with over 1k rows, this is starting to
>>>>>> take time (10 - 15 seconds). So I thought that I would wrap
>>>>>> the individual row in its own update container.
>>>>>>> 
>>>>>>> Before I jump into this, I thought I would ask. If I
>>>>>> had 1000 update containers on my page, am I shooting myself
>>>>>> in the foot? Or is this what the AjaxUpdateContainer is made
>>>>>> for? Or do I have to update the whole table for the row
>>>>>> color to update (with CSS)?
>>>>>> 
>>>>> 
>>>>> 
>>>>>> It is probably not much worse than a 1000 row table, a 1000
>>>>>> row table is pretty bad already.  :-)  That is a
>>>>>> terrible interface, IMO.  You need to batch the data
>>>>>> and keep the table small.  See AjaxGrid for one way to
>>>>>> do this.
>>>>>> 
>>>>>> 
>>>>>> Chuck
>>>>>> 
>>>>> 
>>>> 
>>>> --
>>>> Chuck Hill Senior Consultant / VP Development
>>>> 
>>>> Come to WOWODC this July for unparalleled WO learning opportunities and 
>>>> real peer to peer problem solving!  Network, socialize, and enjoy a g

Re: AjaxUpdateContainer ?

2011-04-28 Thread Amiel Montecillo
My 2 cents would be "endless page" + pure DOM to set the colors.

Amiel

On Thu, Apr 28, 2011 at 7:12 PM, Amedeo Mantica wrote:

> And if you can push your client to use Safari or Chrome, you can build a
> table without using , but do everything in css
>
> you could use  and 
>
> see css "display" propertiy
>
> http://www.w3schools.com/css/pr_class_display.asp
>
> Amedeo
>
> On 27/apr/2011, at 00.14, Chuck Hill wrote:
>
> > I see that you have a few options:
> >
> > 1. Fire your client.
> > 2. Educate your client.
> > 3. Figure out what they really need to do (NEED vs Implementation aka
> Excel) and deliver an interface that meets their needs in a far, far more
> effective way than scrolling in Excel.
> > 4. Torture your client with a painfully low and ineffective UI
> > 5. Use pure client side JavaScript as Mike suggested
> > 6. Switch to divs so that the UI renders faster and you can update
> individual rows.
> >
> >
> > Chuck
> >
> >
> > On Apr 26, 2011, at 2:33 PM, Theodore Petrosky wrote:
> >
> >> I guess I should have started off by saying that my user demands that
> all rows of data be visible all the time (because this is what it looks like
> in excel). I even have a boolean to not show old data but she insists that
> all data (including legacy data) is important and she needs to see it all
> the time (so nothing gets marked as 'complete').
> >>
> >> I think it sucks big time, but what can I do? I have been dragging my
> feet for 3 weeks already and the only solution I have found was to wrap
> every row in an UpdateContainer.
> >>
> >> Ted
> >>
> >> --- On Tue, 4/26/11, Chuck Hill  wrote:
> >>
> >>> From: Chuck Hill 
> >>> Subject: Re: AjaxUpdateContainer ?
> >>> To: "Theodore Petrosky" 
> >>> Cc: webobjects-dev@lists.apple.com
> >>> Date: Tuesday, April 26, 2011, 1:56 PM
> >>>
> >>> On Apr 26, 2011, at 5:16 AM, Theodore Petrosky wrote:
> >>>
> >>>> I am presenting a table to my user and I am noticing
> >>> that the number of rows that they want to keep current is
> >>> growing to more than 1k.
> >>>>
> >>>> One of the UI issues is to color individual rows that
> >>> signify specific meta data (ie. row is red so it is
> >>> important, green is something else).
> >>>>
> >>>> Currently, I have one AjaxUpdateContainer wrapping the
> >>> whole table. If the user updates the row color, I fire the
> >>> container update. But with over 1k rows, this is starting to
> >>> take time (10 - 15 seconds). So I thought that I would wrap
> >>> the individual row in its own update container.
> >>>>
> >>>> Before I jump into this, I thought I would ask. If I
> >>> had 1000 update containers on my page, am I shooting myself
> >>> in the foot? Or is this what the AjaxUpdateContainer is made
> >>> for? Or do I have to update the whole table for the row
> >>> color to update (with CSS)?
> >>>
> >>
> >>
> >>> It is probably not much worse than a 1000 row table, a 1000
> >>> row table is pretty bad already.  :-)  That is a
> >>> terrible interface, IMO.  You need to batch the data
> >>> and keep the table small.  See AjaxGrid for one way to
> >>> do this.
> >>>
> >>>
> >>> Chuck
> >>>
> >>
> >
> > --
> > Chuck Hill Senior Consultant / VP Development
> >
> > Come to WOWODC this July for unparalleled WO learning opportunities and
> real peer to peer problem solving!  Network, socialize, and enjoy a great
> cosmopolitan city.  See you there!  http://www.wocommunity.org/wowodc11/
> >
> > ___
> > Do not 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/amedeomailing%40insigno.it
> >
> > This email sent to amedeomail...@insigno.it
>
> -
> Amedeo Mantica
>
> WOWODC 2011 : July 1-2-3, Montreal. wowodc.com
>
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/bosyotech%40gmail.com
>
> This email sent to bosyot...@gmail.com
>
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: AjaxUpdateContainer ?

2011-04-28 Thread Amedeo Mantica
And if you can push your client to use Safari or Chrome, you can build a table 
without using , but do everything in css

you could use  and 

see css "display" propertiy

http://www.w3schools.com/css/pr_class_display.asp

Amedeo

On 27/apr/2011, at 00.14, Chuck Hill wrote:

> I see that you have a few options:
> 
> 1. Fire your client.
> 2. Educate your client.
> 3. Figure out what they really need to do (NEED vs Implementation aka Excel) 
> and deliver an interface that meets their needs in a far, far more effective 
> way than scrolling in Excel.  
> 4. Torture your client with a painfully low and ineffective UI
> 5. Use pure client side JavaScript as Mike suggested
> 6. Switch to divs so that the UI renders faster and you can update individual 
> rows.
> 
> 
> Chuck
> 
> 
> On Apr 26, 2011, at 2:33 PM, Theodore Petrosky wrote:
> 
>> I guess I should have started off by saying that my user demands that all 
>> rows of data be visible all the time (because this is what it looks like in 
>> excel). I even have a boolean to not show old data but she insists that all 
>> data (including legacy data) is important and she needs to see it all the 
>> time (so nothing gets marked as 'complete').
>> 
>> I think it sucks big time, but what can I do? I have been dragging my feet 
>> for 3 weeks already and the only solution I have found was to wrap every row 
>> in an UpdateContainer.
>> 
>> Ted
>> 
>> --- On Tue, 4/26/11, Chuck Hill  wrote:
>> 
>>> From: Chuck Hill 
>>> Subject: Re: AjaxUpdateContainer ?
>>> To: "Theodore Petrosky" 
>>> Cc: webobjects-dev@lists.apple.com
>>> Date: Tuesday, April 26, 2011, 1:56 PM
>>> 
>>> On Apr 26, 2011, at 5:16 AM, Theodore Petrosky wrote:
>>> 
>>>> I am presenting a table to my user and I am noticing
>>> that the number of rows that they want to keep current is
>>> growing to more than 1k.
>>>> 
>>>> One of the UI issues is to color individual rows that
>>> signify specific meta data (ie. row is red so it is
>>> important, green is something else).
>>>> 
>>>> Currently, I have one AjaxUpdateContainer wrapping the
>>> whole table. If the user updates the row color, I fire the
>>> container update. But with over 1k rows, this is starting to
>>> take time (10 - 15 seconds). So I thought that I would wrap
>>> the individual row in its own update container.
>>>> 
>>>> Before I jump into this, I thought I would ask. If I
>>> had 1000 update containers on my page, am I shooting myself
>>> in the foot? Or is this what the AjaxUpdateContainer is made
>>> for? Or do I have to update the whole table for the row
>>> color to update (with CSS)?
>>> 
>> 
>> 
>>> It is probably not much worse than a 1000 row table, a 1000
>>> row table is pretty bad already.  :-)  That is a
>>> terrible interface, IMO.  You need to batch the data
>>> and keep the table small.  See AjaxGrid for one way to
>>> do this.
>>> 
>>> 
>>> Chuck
>>> 
>> 
> 
> -- 
> Chuck Hill Senior Consultant / VP Development
> 
> Come to WOWODC this July for unparalleled WO learning opportunities and real 
> peer to peer problem solving!  Network, socialize, and enjoy a great 
> cosmopolitan city.  See you there!  http://www.wocommunity.org/wowodc11/
> 
> ___
> Do not 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/amedeomailing%40insigno.it
> 
> This email sent to amedeomail...@insigno.it

-
Amedeo Mantica

WOWODC 2011 : July 1-2-3, Montreal. wowodc.com

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

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


Re: AjaxUpdateContainer ?

2011-04-27 Thread Faizel Dakri
If you can't use a batching table, can you maybe split your data set into 
groups and then wrap each group in a tbody tag, which you can then mark as an 
update container (or wrap it in an update container). That way you don't have 
to have one update container per row, but you're also not forcing an update of 
thousands rows at a time. You just need to set a useful group size, say 50 or 
so rows.

F

On 2011-Apr-26, at 04:33 PM, Theodore Petrosky wrote:

> I guess I should have started off by saying that my user demands that all 
> rows of data be visible all the time (because this is what it looks like in 
> excel). I even have a boolean to not show old data but she insists that all 
> data (including legacy data) is important and she needs to see it all the 
> time (so nothing gets marked as 'complete').
> 
> I think it sucks big time, but what can I do? I have been dragging my feet 
> for 3 weeks already and the only solution I have found was to wrap every row 
> in an UpdateContainer.
> 
> Ted
> 
> --- On Tue, 4/26/11, Chuck Hill  wrote:
> 
>> From: Chuck Hill 
>> Subject: Re: AjaxUpdateContainer ?
>> To: "Theodore Petrosky" 
>> Cc: webobjects-dev@lists.apple.com
>> Date: Tuesday, April 26, 2011, 1:56 PM
>> 
>> On Apr 26, 2011, at 5:16 AM, Theodore Petrosky wrote:
>> 
>>> I am presenting a table to my user and I am noticing
>> that the number of rows that they want to keep current is
>> growing to more than 1k.
>>> 
>>> One of the UI issues is to color individual rows that
>> signify specific meta data (ie. row is red so it is
>> important, green is something else).
>>> 
>>> Currently, I have one AjaxUpdateContainer wrapping the
>> whole table. If the user updates the row color, I fire the
>> container update. But with over 1k rows, this is starting to
>> take time (10 - 15 seconds). So I thought that I would wrap
>> the individual row in its own update container.
>>> 
>>> Before I jump into this, I thought I would ask. If I
>> had 1000 update containers on my page, am I shooting myself
>> in the foot? Or is this what the AjaxUpdateContainer is made
>> for? Or do I have to update the whole table for the row
>> color to update (with CSS)?
>> 
> 
> 
>> It is probably not much worse than a 1000 row table, a 1000
>> row table is pretty bad already.  :-)  That is a
>> terrible interface, IMO.  You need to batch the data
>> and keep the table small.  See AjaxGrid for one way to
>> do this.
>> 
>> 
>> Chuck
>> 
> 
> ___
> Do not 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/listfez%40dakri.com
> 
> This email sent to list...@dakri.com

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

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


Re: AjaxUpdateContainer ?

2011-04-26 Thread David Holt
9. Use Excel as the backing store?

http://code.karlmenn.is/Apps/WebObjects/Hugi.woa/wa/dp?detail=1000764&id=122

On 2011-04-26, at 3:27 PM, David Holt wrote:

> 8. Export directly to Excel?
> 
> 
> On 2011-04-26, at 3:23 PM, Pascal Robert wrote:
> 
>> 7. Installing a ODBC driver to connect to the database from Excel or
>> OpenOffice and let them work in Excel..,
>> 
>> Le 2011-04-26 à 18:15, Chuck Hill  a écrit :
>> 
>>> I see that you have a few options:
>>> 
>>> 1. Fire your client.
>>> 2. Educate your client.
>>> 3. Figure out what they really need to do (NEED vs Implementation aka 
>>> Excel) and deliver an interface that meets their needs in a far, far more 
>>> effective way than scrolling in Excel.
>>> 4. Torture your client with a painfully low and ineffective UI
>>> 5. Use pure client side JavaScript as Mike suggested
>>> 6. Switch to divs so that the UI renders faster and you can update 
>>> individual rows.
>>> 
>>> 
>>> Chuck
>>> 
>>> 
>>> On Apr 26, 2011, at 2:33 PM, Theodore Petrosky wrote:
>>> 
>>>> I guess I should have started off by saying that my user demands that all 
>>>> rows of data be visible all the time (because this is what it looks like 
>>>> in excel). I even have a boolean to not show old data but she insists that 
>>>> all data (including legacy data) is important and she needs to see it all 
>>>> the time (so nothing gets marked as 'complete').
>>>> 
>>>> I think it sucks big time, but what can I do? I have been dragging my feet 
>>>> for 3 weeks already and the only solution I have found was to wrap every 
>>>> row in an UpdateContainer.
>>>> 
>>>> Ted
>>>> 
>>>> --- On Tue, 4/26/11, Chuck Hill  wrote:
>>>> 
>>>>> From: Chuck Hill 
>>>>> Subject: Re: AjaxUpdateContainer ?
>>>>> To: "Theodore Petrosky" 
>>>>> Cc: webobjects-dev@lists.apple.com
>>>>> Date: Tuesday, April 26, 2011, 1:56 PM
>>>>> 
>>>>> On Apr 26, 2011, at 5:16 AM, Theodore Petrosky wrote:
>>>>> 
>>>>>> I am presenting a table to my user and I am noticing
>>>>> that the number of rows that they want to keep current is
>>>>> growing to more than 1k.
>>>>>> 
>>>>>> One of the UI issues is to color individual rows that
>>>>> signify specific meta data (ie. row is red so it is
>>>>> important, green is something else).
>>>>>> 
>>>>>> Currently, I have one AjaxUpdateContainer wrapping the
>>>>> whole table. If the user updates the row color, I fire the
>>>>> container update. But with over 1k rows, this is starting to
>>>>> take time (10 - 15 seconds). So I thought that I would wrap
>>>>> the individual row in its own update container.
>>>>>> 
>>>>>> Before I jump into this, I thought I would ask. If I
>>>>> had 1000 update containers on my page, am I shooting myself
>>>>> in the foot? Or is this what the AjaxUpdateContainer is made
>>>>> for? Or do I have to update the whole table for the row
>>>>> color to update (with CSS)?
>>>>> 
>>>> 
>>>> 
>>>>> It is probably not much worse than a 1000 row table, a 1000
>>>>> row table is pretty bad already.  :-)  That is a
>>>>> terrible interface, IMO.  You need to batch the data
>>>>> and keep the table small.  See AjaxGrid for one way to
>>>>> do this.
>>>>> 
>>>>> 
>>>>> Chuck
>>>>> 
>>>> 
>>> 
>>> --
>>> Chuck Hill Senior Consultant / VP Development
>>> 
>>> Come to WOWODC this July for unparalleled WO learning opportunities and 
>>> real peer to peer problem solving!  Network, socialize, and enjoy a great 
>>> cosmopolitan city.  See you there!  http://www.wocommunity.org/wowodc11/
>>> 
>>> ___
>>> Do not 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/probert%40macti.ca
>>> 
>>> This email sent to prob...@macti.ca
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
>> 
>> This email sent to programming...@mac.com
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
> 
> This email sent to programming...@mac.com

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

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


Re: AjaxUpdateContainer ?

2011-04-26 Thread David Holt
8. Export directly to Excel?


On 2011-04-26, at 3:23 PM, Pascal Robert wrote:

> 7. Installing a ODBC driver to connect to the database from Excel or
> OpenOffice and let them work in Excel..,
> 
> Le 2011-04-26 à 18:15, Chuck Hill  a écrit :
> 
>> I see that you have a few options:
>> 
>> 1. Fire your client.
>> 2. Educate your client.
>> 3. Figure out what they really need to do (NEED vs Implementation aka Excel) 
>> and deliver an interface that meets their needs in a far, far more effective 
>> way than scrolling in Excel.
>> 4. Torture your client with a painfully low and ineffective UI
>> 5. Use pure client side JavaScript as Mike suggested
>> 6. Switch to divs so that the UI renders faster and you can update 
>> individual rows.
>> 
>> 
>> Chuck
>> 
>> 
>> On Apr 26, 2011, at 2:33 PM, Theodore Petrosky wrote:
>> 
>>> I guess I should have started off by saying that my user demands that all 
>>> rows of data be visible all the time (because this is what it looks like in 
>>> excel). I even have a boolean to not show old data but she insists that all 
>>> data (including legacy data) is important and she needs to see it all the 
>>> time (so nothing gets marked as 'complete').
>>> 
>>> I think it sucks big time, but what can I do? I have been dragging my feet 
>>> for 3 weeks already and the only solution I have found was to wrap every 
>>> row in an UpdateContainer.
>>> 
>>> Ted
>>> 
>>> --- On Tue, 4/26/11, Chuck Hill  wrote:
>>> 
>>>> From: Chuck Hill 
>>>> Subject: Re: AjaxUpdateContainer ?
>>>> To: "Theodore Petrosky" 
>>>> Cc: webobjects-dev@lists.apple.com
>>>> Date: Tuesday, April 26, 2011, 1:56 PM
>>>> 
>>>> On Apr 26, 2011, at 5:16 AM, Theodore Petrosky wrote:
>>>> 
>>>>> I am presenting a table to my user and I am noticing
>>>> that the number of rows that they want to keep current is
>>>> growing to more than 1k.
>>>>> 
>>>>> One of the UI issues is to color individual rows that
>>>> signify specific meta data (ie. row is red so it is
>>>> important, green is something else).
>>>>> 
>>>>> Currently, I have one AjaxUpdateContainer wrapping the
>>>> whole table. If the user updates the row color, I fire the
>>>> container update. But with over 1k rows, this is starting to
>>>> take time (10 - 15 seconds). So I thought that I would wrap
>>>> the individual row in its own update container.
>>>>> 
>>>>> Before I jump into this, I thought I would ask. If I
>>>> had 1000 update containers on my page, am I shooting myself
>>>> in the foot? Or is this what the AjaxUpdateContainer is made
>>>> for? Or do I have to update the whole table for the row
>>>> color to update (with CSS)?
>>>> 
>>> 
>>> 
>>>> It is probably not much worse than a 1000 row table, a 1000
>>>> row table is pretty bad already.  :-)  That is a
>>>> terrible interface, IMO.  You need to batch the data
>>>> and keep the table small.  See AjaxGrid for one way to
>>>> do this.
>>>> 
>>>> 
>>>> Chuck
>>>> 
>>> 
>> 
>> --
>> Chuck Hill Senior Consultant / VP Development
>> 
>> Come to WOWODC this July for unparalleled WO learning opportunities and real 
>> peer to peer problem solving!  Network, socialize, and enjoy a great 
>> cosmopolitan city.  See you there!  http://www.wocommunity.org/wowodc11/
>> 
>> ___
>> Do not 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/probert%40macti.ca
>> 
>> This email sent to prob...@macti.ca
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
> 
> This email sent to programming...@mac.com

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

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


Re: AjaxUpdateContainer ?

2011-04-26 Thread Pascal Robert
7. Installing a ODBC driver to connect to the database from Excel or
OpenOffice and let them work in Excel..,

Le 2011-04-26 à 18:15, Chuck Hill  a écrit :

> I see that you have a few options:
>
> 1. Fire your client.
> 2. Educate your client.
> 3. Figure out what they really need to do (NEED vs Implementation aka Excel) 
> and deliver an interface that meets their needs in a far, far more effective 
> way than scrolling in Excel.
> 4. Torture your client with a painfully low and ineffective UI
> 5. Use pure client side JavaScript as Mike suggested
> 6. Switch to divs so that the UI renders faster and you can update individual 
> rows.
>
>
> Chuck
>
>
> On Apr 26, 2011, at 2:33 PM, Theodore Petrosky wrote:
>
>> I guess I should have started off by saying that my user demands that all 
>> rows of data be visible all the time (because this is what it looks like in 
>> excel). I even have a boolean to not show old data but she insists that all 
>> data (including legacy data) is important and she needs to see it all the 
>> time (so nothing gets marked as 'complete').
>>
>> I think it sucks big time, but what can I do? I have been dragging my feet 
>> for 3 weeks already and the only solution I have found was to wrap every row 
>> in an UpdateContainer.
>>
>> Ted
>>
>> --- On Tue, 4/26/11, Chuck Hill  wrote:
>>
>>> From: Chuck Hill 
>>> Subject: Re: AjaxUpdateContainer ?
>>> To: "Theodore Petrosky" 
>>> Cc: webobjects-dev@lists.apple.com
>>> Date: Tuesday, April 26, 2011, 1:56 PM
>>>
>>> On Apr 26, 2011, at 5:16 AM, Theodore Petrosky wrote:
>>>
>>>> I am presenting a table to my user and I am noticing
>>> that the number of rows that they want to keep current is
>>> growing to more than 1k.
>>>>
>>>> One of the UI issues is to color individual rows that
>>> signify specific meta data (ie. row is red so it is
>>> important, green is something else).
>>>>
>>>> Currently, I have one AjaxUpdateContainer wrapping the
>>> whole table. If the user updates the row color, I fire the
>>> container update. But with over 1k rows, this is starting to
>>> take time (10 - 15 seconds). So I thought that I would wrap
>>> the individual row in its own update container.
>>>>
>>>> Before I jump into this, I thought I would ask. If I
>>> had 1000 update containers on my page, am I shooting myself
>>> in the foot? Or is this what the AjaxUpdateContainer is made
>>> for? Or do I have to update the whole table for the row
>>> color to update (with CSS)?
>>>
>>
>>
>>> It is probably not much worse than a 1000 row table, a 1000
>>> row table is pretty bad already.  :-)  That is a
>>> terrible interface, IMO.  You need to batch the data
>>> and keep the table small.  See AjaxGrid for one way to
>>> do this.
>>>
>>>
>>> Chuck
>>>
>>
>
> --
> Chuck Hill Senior Consultant / VP Development
>
> Come to WOWODC this July for unparalleled WO learning opportunities and real 
> peer to peer problem solving!  Network, socialize, and enjoy a great 
> cosmopolitan city.  See you there!  http://www.wocommunity.org/wowodc11/
>
> ___
> Do not 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/probert%40macti.ca
>
> This email sent to prob...@macti.ca
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: AjaxUpdateContainer ?

2011-04-26 Thread Chuck Hill
I see that you have a few options:

1. Fire your client.
2. Educate your client.
3. Figure out what they really need to do (NEED vs Implementation aka Excel) 
and deliver an interface that meets their needs in a far, far more effective 
way than scrolling in Excel.  
4. Torture your client with a painfully low and ineffective UI
5. Use pure client side JavaScript as Mike suggested
6. Switch to divs so that the UI renders faster and you can update individual 
rows.


Chuck


On Apr 26, 2011, at 2:33 PM, Theodore Petrosky wrote:

> I guess I should have started off by saying that my user demands that all 
> rows of data be visible all the time (because this is what it looks like in 
> excel). I even have a boolean to not show old data but she insists that all 
> data (including legacy data) is important and she needs to see it all the 
> time (so nothing gets marked as 'complete').
> 
> I think it sucks big time, but what can I do? I have been dragging my feet 
> for 3 weeks already and the only solution I have found was to wrap every row 
> in an UpdateContainer.
> 
> Ted
> 
> --- On Tue, 4/26/11, Chuck Hill  wrote:
> 
>> From: Chuck Hill 
>> Subject: Re: AjaxUpdateContainer ?
>> To: "Theodore Petrosky" 
>> Cc: webobjects-dev@lists.apple.com
>> Date: Tuesday, April 26, 2011, 1:56 PM
>> 
>> On Apr 26, 2011, at 5:16 AM, Theodore Petrosky wrote:
>> 
>>> I am presenting a table to my user and I am noticing
>> that the number of rows that they want to keep current is
>> growing to more than 1k.
>>> 
>>> One of the UI issues is to color individual rows that
>> signify specific meta data (ie. row is red so it is
>> important, green is something else).
>>> 
>>> Currently, I have one AjaxUpdateContainer wrapping the
>> whole table. If the user updates the row color, I fire the
>> container update. But with over 1k rows, this is starting to
>> take time (10 - 15 seconds). So I thought that I would wrap
>> the individual row in its own update container.
>>> 
>>> Before I jump into this, I thought I would ask. If I
>> had 1000 update containers on my page, am I shooting myself
>> in the foot? Or is this what the AjaxUpdateContainer is made
>> for? Or do I have to update the whole table for the row
>> color to update (with CSS)?
>> 
> 
> 
>> It is probably not much worse than a 1000 row table, a 1000
>> row table is pretty bad already.  :-)  That is a
>> terrible interface, IMO.  You need to batch the data
>> and keep the table small.  See AjaxGrid for one way to
>> do this.
>> 
>> 
>> Chuck
>> 
> 

-- 
Chuck Hill Senior Consultant / VP Development

Come to WOWODC this July for unparalleled WO learning opportunities and real 
peer to peer problem solving!  Network, socialize, and enjoy a great 
cosmopolitan city.  See you there!  http://www.wocommunity.org/wowodc11/



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

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

Re: AjaxUpdateContainer ?

2011-04-26 Thread Mike Schrag
you can't ajax update container around table rows ... you should be using 
javascript to modify your dom and change row colors -- you'll be much happier 
in the long run, anyway.

On Apr 26, 2011, at 5:33 PM, Theodore Petrosky wrote:

> I guess I should have started off by saying that my user demands that all 
> rows of data be visible all the time (because this is what it looks like in 
> excel). I even have a boolean to not show old data but she insists that all 
> data (including legacy data) is important and she needs to see it all the 
> time (so nothing gets marked as 'complete').
> 
> I think it sucks big time, but what can I do? I have been dragging my feet 
> for 3 weeks already and the only solution I have found was to wrap every row 
> in an UpdateContainer.
> 
> Ted
> 
> --- On Tue, 4/26/11, Chuck Hill  wrote:
> 
>> From: Chuck Hill 
>> Subject: Re: AjaxUpdateContainer ?
>> To: "Theodore Petrosky" 
>> Cc: webobjects-dev@lists.apple.com
>> Date: Tuesday, April 26, 2011, 1:56 PM
>> 
>> On Apr 26, 2011, at 5:16 AM, Theodore Petrosky wrote:
>> 
>>> I am presenting a table to my user and I am noticing
>> that the number of rows that they want to keep current is
>> growing to more than 1k.
>>> 
>>> One of the UI issues is to color individual rows that
>> signify specific meta data (ie. row is red so it is
>> important, green is something else).
>>> 
>>> Currently, I have one AjaxUpdateContainer wrapping the
>> whole table. If the user updates the row color, I fire the
>> container update. But with over 1k rows, this is starting to
>> take time (10 - 15 seconds). So I thought that I would wrap
>> the individual row in its own update container.
>>> 
>>> Before I jump into this, I thought I would ask. If I
>> had 1000 update containers on my page, am I shooting myself
>> in the foot? Or is this what the AjaxUpdateContainer is made
>> for? Or do I have to update the whole table for the row
>> color to update (with CSS)?
>> 
> 
> 
>> It is probably not much worse than a 1000 row table, a 1000
>> row table is pretty bad already.  :-)  That is a
>> terrible interface, IMO.  You need to batch the data
>> and keep the table small.  See AjaxGrid for one way to
>> do this.
>> 
>> 
>> Chuck
>> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40pobox.com
> 
> This email sent to msch...@pobox.com

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

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


Re: AjaxUpdateContainer ?

2011-04-26 Thread Theodore Petrosky
I guess I should have started off by saying that my user demands that all rows 
of data be visible all the time (because this is what it looks like in excel). 
I even have a boolean to not show old data but she insists that all data 
(including legacy data) is important and she needs to see it all the time (so 
nothing gets marked as 'complete').

I think it sucks big time, but what can I do? I have been dragging my feet for 
3 weeks already and the only solution I have found was to wrap every row in an 
UpdateContainer.

Ted

--- On Tue, 4/26/11, Chuck Hill  wrote:

> From: Chuck Hill 
> Subject: Re: AjaxUpdateContainer ?
> To: "Theodore Petrosky" 
> Cc: webobjects-dev@lists.apple.com
> Date: Tuesday, April 26, 2011, 1:56 PM
> 
> On Apr 26, 2011, at 5:16 AM, Theodore Petrosky wrote:
> 
> > I am presenting a table to my user and I am noticing
> that the number of rows that they want to keep current is
> growing to more than 1k.
> > 
> > One of the UI issues is to color individual rows that
> signify specific meta data (ie. row is red so it is
> important, green is something else).
> > 
> > Currently, I have one AjaxUpdateContainer wrapping the
> whole table. If the user updates the row color, I fire the
> container update. But with over 1k rows, this is starting to
> take time (10 - 15 seconds). So I thought that I would wrap
> the individual row in its own update container.
> > 
> > Before I jump into this, I thought I would ask. If I
> had 1000 update containers on my page, am I shooting myself
> in the foot? Or is this what the AjaxUpdateContainer is made
> for? Or do I have to update the whole table for the row
> color to update (with CSS)?
>

 
> It is probably not much worse than a 1000 row table, a 1000
> row table is pretty bad already.  :-)  That is a
> terrible interface, IMO.  You need to batch the data
> and keep the table small.  See AjaxGrid for one way to
> do this.
> 
> 
> Chuck
> 

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

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


Re: AjaxUpdateContainer ?

2011-04-26 Thread Chuck Hill

On Apr 26, 2011, at 5:16 AM, Theodore Petrosky wrote:

> I am presenting a table to my user and I am noticing that the number of rows 
> that they want to keep current is growing to more than 1k.
> 
> One of the UI issues is to color individual rows that signify specific meta 
> data (ie. row is red so it is important, green is something else).
> 
> Currently, I have one AjaxUpdateContainer wrapping the whole table. If the 
> user updates the row color, I fire the container update. But with over 1k 
> rows, this is starting to take time (10 - 15 seconds). So I thought that I 
> would wrap the individual row in its own update container.
> 
> Before I jump into this, I thought I would ask. If I had 1000 update 
> containers on my page, am I shooting myself in the foot? Or is this what the 
> AjaxUpdateContainer is made for? Or do I have to update the whole table for 
> the row color to update (with CSS)?

It is probably not much worse than a 1000 row table, a 1000 row table is pretty 
bad already.  :-)  That is a terrible interface, IMO.  You need to batch the 
data and keep the table small.  See AjaxGrid for one way to do this.


Chuck


-- 
Chuck Hill Senior Consultant / VP Development

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









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

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

AjaxUpdateContainer ?

2011-04-26 Thread Theodore Petrosky
I am presenting a table to my user and I am noticing that the number of rows 
that they want to keep current is growing to more than 1k.

One of the UI issues is to color individual rows that signify specific meta 
data (ie. row is red so it is important, green is something else).

Currently, I have one AjaxUpdateContainer wrapping the whole table. If the user 
updates the row color, I fire the container update. But with over 1k rows, this 
is starting to take time (10 - 15 seconds). So I thought that I would wrap the 
individual row in its own update container.

Before I jump into this, I thought I would ask. If I had 1000 update containers 
on my page, am I shooting myself in the foot? Or is this what the 
AjaxUpdateContainer is made for? Or do I have to update the whole table for the 
row color to update (with CSS)?

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

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


Re: AjaxUpdateContainer example

2010-01-20 Thread Venu A
hi all,
i have got it wat i want, but i have another problem , that is how to call a
javascript function when i click on AjaxSubmitButton.
i have tried to bind java script function name with onClick binding for
AjaxSubmitButton,but the script function is not calling,
plz any one help me by providing a sample code.

thanks,
Venu

On Wed, Jan 20, 2010 at 11:55 AM, Venu A  wrote:

> Hai,
>
> I need a example application for *AjaxUpdateContainer*, the example would
> be using two lists(WOBrowser),
> first one is available  list and second is target, when i click on
> Add(WOActiveImage) then the selected item
> will be added from available to target,the lists should be refreshed
> without refreshing the total page. when i click on cancel(WOActiveImage)
> the action will be performed without refreshing total page.plz help me
>
> thanks and regards,
> Venu
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

AjaxUpdateContainer example

2010-01-19 Thread Venu A
Hai,

I need a example application for *AjaxUpdateContainer*, the example would be
using two lists(WOBrowser),
first one is available  list and second is target, when i click on
Add(WOActiveImage) then the selected item
will be added from available to target,the lists should be refreshed without
refreshing the total page. when i click on cancel(WOActiveImage)
the action will be performed without refreshing total page.plz help me

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

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

Re: Frames and AjaxUpdateContainer

2009-12-07 Thread Raghavender

Thanks Ramsey Lee Gurley,

	This worked for me, And I have used 'onClickServer' property to  
'AjaxSubmitButton' component becoz i have to call this parent.[frame]. 
[updateContainerID]Update() once the action method is performed.


Regards,
Raghavender.

On 26-Nov-09, at 5:11 AM, Ramsey Lee Gurley wrote:


Hi Raghavender,

I assume you're talking about Wonder's Ajax framework?  You can  
update across frames by calling something like


parent.[frame].[updateContainerID]Update();

So, if you're in your 'content' frame, and you want to update an  
update container with an id of "brillig" in the 'header' frame,  
you'd call


parent.header.brilligUpdate();

I feel like I've forgotten a dot something, but I think that should  
work. (^_^)


Ramsey


On Nov 25, 2009, at 1:48 PM, Raghavender wrote:


Hi,

	I am working on a web page that has multiple components placed on  
different frames,  I have to define multiple ajax update areas on  
these different pages and do an ajax submit from one page.  Any  
help on providing examples, or references or sample code snippets.


Thanks in advance,
raghavender.

___
Do not 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/rgurley%40mac.com

This email sent to rgur...@mac.com





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

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


Re: Frames and AjaxUpdateContainer

2009-11-25 Thread Ramsey Lee Gurley
Hi Raghavender,

I assume you're talking about Wonder's Ajax framework?  You can update across 
frames by calling something like

parent.[frame].[updateContainerID]Update();

So, if you're in your 'content' frame, and you want to update an update 
container with an id of "brillig" in the 'header' frame, you'd call

parent.header.brilligUpdate();

I feel like I've forgotten a dot something, but I think that should work. (^_^)

Ramsey


On Nov 25, 2009, at 1:48 PM, Raghavender wrote:

> Hi,
> 
>   I am working on a web page that has multiple components placed on 
> different frames,  I have to define multiple ajax update areas on these 
> different pages and do an ajax submit from one page.  Any help on providing 
> examples, or references or sample code snippets.
> 
> Thanks in advance,
> raghavender.
> 
> ___
> Do not 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/rgurley%40mac.com
> 
> This email sent to rgur...@mac.com



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

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

Frames and AjaxUpdateContainer

2009-11-25 Thread Raghavender

Hi,

	I am working on a web page that has multiple components placed on  
different frames,  I have to define multiple ajax update areas on  
these different pages and do an ajax submit from one page.  Any help  
on providing examples, or references or sample code snippets.


Thanks in advance,
raghavender.

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

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


Re: What im doing wrong with AjaxUpdateContainer and a AjaxSelectionList?

2009-05-19 Thread Gustavo Adolfo Pizano

Ricardo

Thanks,

I will try that tomorrow first time in the morning at the office. I  
will let you know how it went.



G.

On May 19, 2009, at 8:19 PM, Ricardo Parada wrote:



Ok... to be a bit more specific, do the following:

1) Add an updateContainerID="GroupSelection"/>
2) Add a  wrapping your input element and the ajax submit  
button suggested in (1) above
3) Then set your AjaxSelectionList onchange binding to  
"ajaxSubmitAndUpdate()" --- You did say the onchange binding was  
working right?  If so then I think this should work.  ;-)




On May 19, 2009, at 1:22 PM, Ricardo J. Parada wrote:

Disclaimer: I have not used AjaxSelectionList  :-)

I looked briefely at the example in AjaxExample.  If you examine the  
HTML in the browser you'll notice that this is a  wrapping an  
unordered list .  Then you'll find a hidden text field which I  
believe is generated by AjaxSelectionList to  store the input as you  
click on an item.


And so I think you need a  wrapping your stuff.

However, the next thing to check I think is make sure the form is  
submitted and then your update container is refreshed.


For that you may want to use AjaxSubmitButton with a functionName  
binding so that instead of a submit button you get a function you  
can call to submit the form and update the container.




On May 19, 2009, at 12:08 PM, Gustavo Adolfo Pizano wrote:

Hello, indeed I checked the examples...   what I want is something  
similar to the toggle row..  but not a WORepetition, but a  
AjaxSelectionList, so once I click ion a item in the list, the  
updater will "update" without the need to push any "submit" buttom..


but in the example its kinda confusing..


G
On May 19, 2009, at 6:06 PM, Mark Gowdy wrote:

Hi,

I recently starting using the Wonder Ajax stuff, and this is my  
(limited understanding) solution to your problem.


I think you need an AjaxSubmitButton in the  form somewhere:
updateContainerID = "GroupSelection" action = "$someActionInJava"/>


I am probably wrong (there is probably some other form magic to  
consider), this is all new to me.


Have a closer look at AjaxExamples2 app with Wonder, that is how I  
am learning this stuff.


Mark

On 19 May 2009, at 16:43, Gustavo Adolfo Pizano wrote:

Hello Dave.

Well... im home now.. but this is what I remember I have written...  
oh well let me see if I can access the work's computer from home

...
...

Ok got it...

This is what I have.




 


 
  



Esto deberia actualizarce:
  
 
 






and in the WOD:

GroupList: AjaxSelectionList {
elementName="ul";
list = groups;
item = itemGroup;
selection = selectedGroup;
onchange = "return actionPerformed()";
id = "list";  
}

the JS on the oncahnge binding, has the follwoing:


function actionPerformed(){
alert('asdgsad');
GroupSelectionUpdate();
}


the alert in fact its being fired.. but.. the UpdateContainer  
doesn't update.


I want to be able to select an item in the list and then show the  
details of that item without making a page reload.. (well that why  
ajax is there for no)?



Thanks

Gustavo



On May 19, 2009, at 3:45 PM, David Avendasora wrote:

Hey Gustavo,

Can you paste the WebObject tag parameters here for both the  
AjaxSelectionList and the AjaxUpdateContainer? I'm having a hard  
time visualizing how they are setup.


Dave

On May 19, 2009, at 9:23 AM, Gustavo Adolfo Pizano wrote:

Hello.

I have an AjaxSelecitonList, with the data I need to show, now I  
have an AjaxUpdateContainer with id "GroupSelection" also. but  when  
I click and item in the list the container doesnt update.. I tried  
then to set the binding onselect = "return actionOnList();" and in  
that method I called the GroupSelectionUpdate() method that it's  
auto-generated, ( I read it in the wiki), but still nothing happens.


What I want to achieve is to selec an item in the AjaxList, and the  
in the UpdateContainer show the information related to that item.
I have check  the Examples, but when I try to apply them into my app  
there is no success

..

Ajax is my Aquiles Ankle , and WO, and EOF , and I can keep  
going :P... not but seriously .. what am I missing, am I that blidn  
to don't see the things?



Thanks

Gustavo
_

Re: What im doing wrong with AjaxUpdateContainer and a AjaxSelectionList?

2009-05-19 Thread Ricardo Parada

Ok... to be a bit more specific, do the following:

1) Add an 
2) Add a  wrapping your input element and the ajax submit button 
suggested in (1) above
3) Then set your AjaxSelectionList onchange binding to "ajaxSubmitAndUpdate()" 
--- You did say the onchange binding was working right?  If so then I think 
this should work.  ;-)



On May 19, 2009, at 1:22 PM, Ricardo J. Parada wrote:

Disclaimer: I have not used AjaxSelectionList  :-)

I looked briefely at the example in AjaxExample.  If you examine the HTML in 
the browser you'll notice that this is a  wrapping an unordered list . 
 Then you'll find a hidden text field which I believe is generated by 
AjaxSelectionList to  store the input as you click on an item. 

And so I think you need a  wrapping your stuff.

However, the next thing to check I think is make sure the form is submitted and 
then your update container is refreshed.

For that you may want to use AjaxSubmitButton with a functionName binding so 
that instead of a submit button you get a function you can call to submit the 
form and update the container.



On May 19, 2009, at 12:08 PM, Gustavo Adolfo Pizano wrote:

Hello, indeed I checked the examples...   what I want is something similar to 
the toggle row..  but not a WORepetition, but a AjaxSelectionList, so once I 
click ion a item in the list, the updater will "update" without the need to 
push any "submit" buttom.. 

but in the example its kinda confusing..


G 
On May 19, 2009, at 6:06 PM, Mark Gowdy wrote:

Hi, 

I recently starting using the Wonder Ajax stuff, and this is my (limited 
understanding) solution to your problem.

I think you need an AjaxSubmitButton in the  form somewhere:


I am probably wrong (there is probably some other form magic to consider), this 
is all new to me.

Have a closer look at AjaxExamples2 app with Wonder, that is how I am learning 
this stuff.

Mark

On 19 May 2009, at 16:43, Gustavo Adolfo Pizano wrote:

Hello Dave.

Well... im home now.. but this is what I remember I have written... oh well let 
me see if I can access the work's computer from home 
...
...

Ok got it...

This is what I have.


 
 
 


   




Esto deberia actualizarce:  
  
 
 






and in the WOD:

GroupList: AjaxSelectionList {
elementName="ul";
list = groups;
item = itemGroup;
selection = selectedGroup;
onchange = "return actionPerformed()";
id = "list";
}

the JS on the oncahnge binding, has the follwoing:


function actionPerformed(){
alert('asdgsad');
GroupSelectionUpdate();
}


the alert in fact its being fired.. but.. the UpdateContainer doesn't update.

I want to be able to select an item in the list and then show the details of 
that item without making a page reload.. (well that why ajax is there for no)?


Thanks 

Gustavo



On May 19, 2009, at 3:45 PM, David Avendasora wrote:

Hey Gustavo,

Can you paste the WebObject tag parameters here for both the AjaxSelectionList 
and the AjaxUpdateContainer? I'm having a hard time visualizing how they are 
setup.

Dave

On May 19, 2009, at 9:23 AM, Gustavo Adolfo Pizano wrote:

Hello.

I have an AjaxSelecitonList, with the data I need to show, now I have an 
AjaxUpdateContainer with id "GroupSelection" also. but  when I click and item 
in the list the container doesnt update.. I tried then to set the binding 
onselect = "return actionOnList();" and in that method I called the 
GroupSelectionUpdate() method that it's auto-generated, ( I read it in the 
wiki), but still nothing happens.

What I want to achieve is to selec an item in the AjaxList, and the in the 
UpdateContainer show the information related to that item.
I have check  the Examples, but when I try to apply them into my app there is 
no success
..

Ajax is my Aquiles Ankle , and WO, and EOF , and I can keep going :P... not but 
seriously .. what am I missing, am I that blidn to don't see the things?


Thanks

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

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




 

Re: What im doing wrong with AjaxUpdateContainer and a AjaxSelectionList?

2009-05-19 Thread Ricardo J. Parada

Disclaimer: I have not used AjaxSelectionList  :-)

I looked briefely at the example in AjaxExample.  If you examine the  
HTML in the browser you'll notice that this is a  wrapping an  
unordered list .  Then you'll find a hidden text field which I  
believe is generated by AjaxSelectionList to  store the input as you  
click on an item.


And so I think you need a  wrapping your stuff.

However, the next thing to check I think is make sure the form is  
submitted and then your update container is refreshed.


For that you may want to use AjaxSubmitButton with a functionName  
binding so that instead of a submit button you get a function you can  
call to submit the form and update the container.




On May 19, 2009, at 12:08 PM, Gustavo Adolfo Pizano wrote:

Hello, indeed I checked the examples...   what I want is something  
similar to the toggle row..  but not a WORepetition, but a  
AjaxSelectionList, so once I click ion a item in the list, the  
updater will "update" without the need to push any "submit" buttom..


but in the example its kinda confusing..


G
On May 19, 2009, at 6:06 PM, Mark Gowdy wrote:


Hi,

I recently starting using the Wonder Ajax stuff, and this is my  
(limited understanding) solution to your problem.


I think you need an AjaxSubmitButton in the  form somewhere:
updateContainerID = "GroupSelection" action = "$someActionInJava"/>


I am probably wrong (there is probably some other form magic to  
consider), this is all new to me.


Have a closer look at AjaxExamples2 app with Wonder, that is how I  
am learning this stuff.


Mark

On 19 May 2009, at 16:43, Gustavo Adolfo Pizano wrote:


Hello Dave.

Well... im home now.. but this is what I remember I have  
written... oh well let me see if I can access the work's computer  
from home

...
...

Ok got it...

This is what I have.




 


 
  



Esto deberia actualizarce:
  
 
 






and in the WOD:

GroupList: AjaxSelectionList {
elementName="ul";
list = groups;
item = itemGroup;
selection = selectedGroup;
onchange = "return actionPerformed()";
id = "list";  
}

the JS on the oncahnge binding, has the follwoing:


function actionPerformed(){
alert('asdgsad');
GroupSelectionUpdate();
}


the alert in fact its being fired.. but.. the UpdateContainer  
doesn't update.


I want to be able to select an item in the list and then show the  
details of that item without making a page reload.. (well that why  
ajax is there for no)?



Thanks

Gustavo



On May 19, 2009, at 3:45 PM, David Avendasora wrote:


Hey Gustavo,

Can you paste the WebObject tag parameters here for both the  
AjaxSelectionList and the AjaxUpdateContainer? I'm having a hard  
time visualizing how they are setup.


Dave

On May 19, 2009, at 9:23 AM, Gustavo Adolfo Pizano wrote:


Hello.

I have an AjaxSelecitonList, with the data I need to show, now I  
have an AjaxUpdateContainer with id "GroupSelection" also. but   
when I click and item in the list the container doesnt update..  
I tried then to set the binding onselect = "return  
actionOnList();" and in that method I called the  
GroupSelectionUpdate() method that it's auto-generated, ( I read  
it in the wiki), but still nothing happens.


What I want to achieve is to selec an item in the AjaxList, and  
the in the UpdateContainer show the information related to that  
item.
I have check  the Examples, but when I try to apply them into my  
app there is no success

..

Ajax is my Aquiles Ankle , and WO, and EOF , and I can keep  
going :P... not but seriously .. what am I missing, am I that  
blidn to don't see the things?



Thanks

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

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






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

Re: What im doing wrong with AjaxUpdateContainer and a AjaxSelectionList?

2009-05-19 Thread Gustavo Adolfo Pizano
Hello, indeed I checked the examples...   what I want is something  
similar to the toggle row..  but not a WORepetition, but a  
AjaxSelectionList, so once I click ion a item in the list, the updater  
will "update" without the need to push any "submit" buttom..


but in the example its kinda confusing..


G
On May 19, 2009, at 6:06 PM, Mark Gowdy wrote:


Hi,

I recently starting using the Wonder Ajax stuff, and this is my  
(limited understanding) solution to your problem.


I think you need an AjaxSubmitButton in the  form somewhere:
updateContainerID = "GroupSelection" action = "$someActionInJava"/>


I am probably wrong (there is probably some other form magic to  
consider), this is all new to me.


Have a closer look at AjaxExamples2 app with Wonder, that is how I  
am learning this stuff.


Mark

On 19 May 2009, at 16:43, Gustavo Adolfo Pizano wrote:


Hello Dave.

Well... im home now.. but this is what I remember I have written...  
oh well let me see if I can access the work's computer from home

...
...

Ok got it...

This is what I have.




 


 
  



Esto deberia actualizarce:
  
 
 






and in the WOD:

GroupList: AjaxSelectionList {
elementName="ul";
list = groups;
item = itemGroup;
selection = selectedGroup;
onchange = "return actionPerformed()";
id = "list";  
}

the JS on the oncahnge binding, has the follwoing:


function actionPerformed(){
alert('asdgsad');
GroupSelectionUpdate();
}


the alert in fact its being fired.. but.. the UpdateContainer  
doesn't update.


I want to be able to select an item in the list and then show the  
details of that item without making a page reload.. (well that why  
ajax is there for no)?



Thanks

Gustavo



On May 19, 2009, at 3:45 PM, David Avendasora wrote:


Hey Gustavo,

Can you paste the WebObject tag parameters here for both the  
AjaxSelectionList and the AjaxUpdateContainer? I'm having a hard  
time visualizing how they are setup.


Dave

On May 19, 2009, at 9:23 AM, Gustavo Adolfo Pizano wrote:


Hello.

I have an AjaxSelecitonList, with the data I need to show, now I  
have an AjaxUpdateContainer with id "GroupSelection" also. but   
when I click and item in the list the container doesnt update.. I  
tried then to set the binding onselect = "return actionOnList();"  
and in that method I called the GroupSelectionUpdate() method  
that it's auto-generated, ( I read it in the wiki), but still  
nothing happens.


What I want to achieve is to selec an item in the AjaxList, and  
the in the UpdateContainer show the information related to that  
item.
I have check  the Examples, but when I try to apply them into my  
app there is no success

..

Ajax is my Aquiles Ankle , and WO, and EOF , and I can keep  
going :P... not but seriously .. what am I missing, am I that  
blidn to don't see the things?



Thanks

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

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






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

This email sent to go...@mac.com




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

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

Re: What im doing wrong with AjaxUpdateContainer and a AjaxSelectionList?

2009-05-19 Thread Mark Gowdy

Hi,

I recently starting using the Wonder Ajax stuff, and this is my  
(limited understanding) solution to your problem.


I think you need an AjaxSubmitButton in the  form somewhere:
updateContainerID = "GroupSelection" action = "$someActionInJava"/>


I am probably wrong (there is probably some other form magic to  
consider), this is all new to me.


Have a closer look at AjaxExamples2 app with Wonder, that is how I am  
learning this stuff.


Mark

On 19 May 2009, at 16:43, Gustavo Adolfo Pizano wrote:


Hello Dave.

Well... im home now.. but this is what I remember I have written...  
oh well let me see if I can access the work's computer from home

...
...

Ok got it...

This is what I have.




 


 
  



Esto deberia actualizarce:
  
 
 






and in the WOD:

GroupList: AjaxSelectionList {
elementName="ul";
list = groups;
item = itemGroup;
selection = selectedGroup;
onchange = "return actionPerformed()";
id = "list";  
}

the JS on the oncahnge binding, has the follwoing:


function actionPerformed(){
alert('asdgsad');
GroupSelectionUpdate();
}


the alert in fact its being fired.. but.. the UpdateContainer  
doesn't update.


I want to be able to select an item in the list and then show the  
details of that item without making a page reload.. (well that why  
ajax is there for no)?



Thanks

Gustavo



On May 19, 2009, at 3:45 PM, David Avendasora wrote:


Hey Gustavo,

Can you paste the WebObject tag parameters here for both the  
AjaxSelectionList and the AjaxUpdateContainer? I'm having a hard  
time visualizing how they are setup.


Dave

On May 19, 2009, at 9:23 AM, Gustavo Adolfo Pizano wrote:


Hello.

I have an AjaxSelecitonList, with the data I need to show, now I  
have an AjaxUpdateContainer with id "GroupSelection" also. but   
when I click and item in the list the container doesnt update.. I  
tried then to set the binding onselect = "return actionOnList();"  
and in that method I called the GroupSelectionUpdate() method  
that it's auto-generated, ( I read it in the wiki), but still  
nothing happens.


What I want to achieve is to selec an item in the AjaxList, and  
the in the UpdateContainer show the information related to that  
item.
I have check  the Examples, but when I try to apply them into my  
app there is no success

..

Ajax is my Aquiles Ankle , and WO, and EOF , and I can keep  
going :P... not but seriously .. what am I missing, am I that  
blidn to don't see the things?



Thanks

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


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






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

This email sent to go...@mac.com


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

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

Re: What im doing wrong with AjaxUpdateContainer and a AjaxSelectionList?

2009-05-19 Thread Gustavo Adolfo Pizano

Hello Dave.

Well... im home now.. but this is what I remember I have written... oh  
well let me see if I can access the work's computer from home

...
...

Ok got it...

This is what I have.




 


 
  



Esto deberia actualizarce:
  
 
 






and in the WOD:

GroupList: AjaxSelectionList {
elementName="ul";
list = groups;
item = itemGroup;
selection = selectedGroup;
onchange = "return actionPerformed()";
id = "list";  
}

the JS on the oncahnge binding, has the follwoing:


function actionPerformed(){
alert('asdgsad');
GroupSelectionUpdate();
}


the alert in fact its being fired.. but.. the UpdateContainer doesn't  
update.


I want to be able to select an item in the list and then show the  
details of that item without making a page reload.. (well that why  
ajax is there for no)?



Thanks

Gustavo



On May 19, 2009, at 3:45 PM, David Avendasora wrote:


Hey Gustavo,

Can you paste the WebObject tag parameters here for both the  
AjaxSelectionList and the AjaxUpdateContainer? I'm having a hard  
time visualizing how they are setup.


Dave

On May 19, 2009, at 9:23 AM, Gustavo Adolfo Pizano wrote:


Hello.

I have an AjaxSelecitonList, with the data I need to show, now I  
have an AjaxUpdateContainer with id "GroupSelection" also. but   
when I click and item in the list the container doesnt update.. I  
tried then to set the binding onselect = "return actionOnList();"  
and in that method I called the GroupSelectionUpdate() method that  
it's auto-generated, ( I read it in the wiki), but still nothing  
happens.


What I want to achieve is to selec an item in the AjaxList, and the  
in the UpdateContainer show the information related to that item.
I have check  the Examples, but when I try to apply them into my  
app there is no success

..

Ajax is my Aquiles Ankle , and WO, and EOF , and I can keep  
going :P... not but seriously .. what am I missing, am I that blidn  
to don't see the things?



Thanks

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

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






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

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

Re: What im doing wrong with AjaxUpdateContainer and a AjaxSelectionList?

2009-05-19 Thread David Avendasora

Hey Gustavo,

Can you paste the WebObject tag parameters here for both the  
AjaxSelectionList and the AjaxUpdateContainer? I'm having a hard time  
visualizing how they are setup.


Dave

On May 19, 2009, at 9:23 AM, Gustavo Adolfo Pizano wrote:


Hello.

I have an AjaxSelecitonList, with the data I need to show, now I  
have an AjaxUpdateContainer with id "GroupSelection" also. but  when  
I click and item in the list the container doesnt update.. I tried  
then to set the binding onselect = "return actionOnList();" and in  
that method I called the GroupSelectionUpdate() method that it's  
auto-generated, ( I read it in the wiki), but still nothing happens.


What I want to achieve is to selec an item in the AjaxList, and the  
in the UpdateContainer show the information related to that item.
I have check  the Examples, but when I try to apply them into my app  
there is no success

..

Ajax is my Aquiles Ankle , and WO, and EOF , and I can keep  
going :P... not but seriously .. what am I missing, am I that blidn  
to don't see the things?



Thanks

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

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




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

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


What im doing wrong with AjaxUpdateContainer and a AjaxSelectionList?

2009-05-19 Thread Gustavo Adolfo Pizano

Hello.

I have an AjaxSelecitonList, with the data I need to show, now I have  
an AjaxUpdateContainer with id "GroupSelection" also. but  when I  
click and item in the list the container doesnt update.. I tried then  
to set the binding onselect = "return actionOnList();" and in that  
method I called the GroupSelectionUpdate() method that it's auto- 
generated, ( I read it in the wiki), but still nothing happens.


What I want to achieve is to selec an item in the AjaxList, and the in  
the UpdateContainer show the information related to that item.
I have check  the Examples, but when I try to apply them into my app  
there is no success

..

Ajax is my Aquiles Ankle , and WO, and EOF , and I can keep  
going :P... not but seriously .. what am I missing, am I that blidn to  
don't see the things?



Thanks

Gustavo
 
___

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

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


Relating 2 different WOComponents, via AjaxUpdateContainer.

2009-05-18 Thread Gustavo Adolfo Pizano

Hello all.

I made a WOComponent called ToolBar. there I put the follwoing:


 

	 		  action="$addBAction" class="label">Address Book 
	 		  action="$calBAction" class="label" >Calendar

   


wo:if>	

 

	>



now, the title in the component its changing depending on what the  
user clicked. but this ToolBar component is in another WOCompoent that  
I called, UsersMainPage., so I have to following.


http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">


Main







After the  I will put a div, or element that will  
update its data depending on what the user selected on the tool bar..  
I know I must use the AjaxUpdateContainer, and inside I will put all  
what should be updated, (this is how i understanding,) but ie. if the  
user click in the address link in the toolbar, I must go to the  
database and fetch some data, and show it in the UserMainPage  
component, then where should I put the fetched data to get it from the  
userMainPage WOComponent? in the session?, or is there another way to  
connect those components?



Thanks

Gustavo

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

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

AjaxUpdateContainer successive updates + Deadlock

2009-03-09 Thread Paul Stringer
I'm struggling here with a deadlock situation that as far as I can see  
is caused by Ajax Updates. What I've done so far.  Removed any traces  
of a shared editing context from my app to count that out. I've double  
checked my Wonder autolocking properties which are as below and double  
checked I only use ERXEC.newEditingContext() with not a  
defaultEditingContext() in sight.


er.extensions.ERXApplication.useEditingContextUnlocker = true
er.extensions.ERXEC.defaultAutomaticLockUnlock = true
er.extensions.ERXEC.defaultCoalesceAutoLocks = true
er.extensions.ERXEC.useSharedEditingContext = false

The debug below leads up to the deadlock. They are always triggered  
when a AjaxUpdateContainer is fired numerous times in succession where  
they are in the same session on the same page accessing new EO's - it  
can quite happily work for a while but always seems to start getting  
very confused after a lot of this kind of abuse.  Despite mentions of  
other threads in the warnings I don't have any background threads that  
I'm explicitly creating myself.


Any suggestions of things I can try appreciated before I give up and  
rip the thing out and replace it with something more boring.


So things running smoothly then a bunch of AjaxUpdateContainer Updates  
in succession then.


Mar 08 22:49:59 SMS[] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  -  
*** EOEditingContext: access when another thread holds a lock:  
_eoForGID()!
java.lang.Exception: This is not a real exception, just a stack trace  
of the location of the contested lock:
	at  
com 
.webobjects 
.eocontrol 
.EOEditingContext 
._EOAssertSafeMultiThreadedAccess(EOEditingContext.java:5182)
	at  
com 
.webobjects 
.eocontrol 
.EOEditingContext 
._EOAssertSafeMultiThreadedReadAccess(EOEditingContext.java:5156)
	at  
com 
.webobjects.eocontrol.EOEditingContext._eoForGID(EOEditingContext.java: 
2636)
	at  
com 
.webobjects 
.eocontrol.EOEditingContext.faultForGlobalID(EOEditingContext.java:3635)

at er.extensions.eof.ERXEC.faultForGlobalID(ERXEC.java:1013)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext.objectsForSourceGlobalID(EODatabaseContext.java:4044)
	at  
com 
.webobjects 
.eocontrol 
.EOObjectStoreCoordinator 
.objectsForSourceGlobalID(EOObjectStoreCoordinator.java:682)
	at  
com 
.webobjects 
.eocontrol 
.EOEditingContext.objectsForSourceGlobalID(EOEditingContext.java:3965)

at er.extensions.eof.ERXEC.objectsForSourceGlobalID(ERXEC.java:1070)
	at  
com 
.webobjects 
.eoaccess.EODatabaseContext._fireArrayFault(EODatabaseContext.java:4427)
	at  
com 
.webobjects 
.eoaccess 
.EOAccessArrayFaultHandler 
.completeInitializationOfObject(EOAccessArrayFaultHandler.java:70)
	at  
com 
.webobjects 
.eocontrol 
._EOCheapCopyMutableArray.willRead(_EOCheapCopyMutableArray.java:38)
	at  
com 
.webobjects 
.eocontrol 
._EOCheapCopyMutableArray.count(_EOCheapCopyMutableArray.java:92)
	at er.extensions.foundation.ERXArrayUtilities 
$SortOperator.compute(ERXArrayUtilities.java:1018)
	at  
com 
.webobjects 
.foundation.NSArray._valueForKeyPathWithOperator(NSArray.java:795)

at com.webobjects.foundation.NSArray.valueForKeyPath(NSArray.java:831)
	at com.webobjects.foundation.NSKeyValueCodingAdditions 
$Utility.valueForKeyPath(NSKeyValueCodingAdditions.java:149)
	at com.webobjects.foundation.NSKeyValueCodingAdditions 
$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java: 
217)
	at  
com 
.webobjects 
.eocontrol.EOCustomObject.valueForKeyPath(EOCustomObject.java:1675)
	at com.webobjects.foundation.NSKeyValueCodingAdditions 
$Utility.valueForKeyPath(NSKeyValueCodingAdditions.java:149)
	at com.webobjects.foundation.NSKeyValueCodingAdditions 
$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java: 
217)
	at  
com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java: 
1600)
	at  
com 
.webobjects 
.appserver 
._private 
.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:46)
	at  
er 
.extensions 
.components 
._private.ERXWORepetition.createContext(ERXWORepetition.java:334)
	at  
er 
.extensions 
.components._private.ERXWORepetition.invokeAction(ERXWORepetition.java: 
367)
	at  
com 
.webobjects 
.appserver 
._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101)
	at  
com 
.webobjects 
.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:110)
	at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java: 
945)
	at  
er.extensions.components.ERXComponent.invokeAction(ERXComponent.java:93)
	at  
com 
.webobjects 
.appserver 
._private.WOComponentReference.invokeAction(WOComponentReference.java: 
104)
	at  
com 
.webobjects 
.appserver 
._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101)
	at  
er 
.extensions 
.components 
.conditionals 
.ERXWOConditional.invokeChildrenAction(ERXWOConditional.java:111)
	at  
com 
.webobjects 
.appserver._private.WODynamicGroup.invokeAction(WOD

AjaxUpdateContainer successive updates + Deadlock

2009-03-09 Thread Paul Stringer
I'm struggling here with a deadlock situation that as far as I can see  
is caused by Ajax Updates. What I've done so far.  Removed any traces  
of a shared editing context from my app to count that out. I've double  
checked my Wonder autolocking properties which are as below and double  
checked I only use ERXEC.newEditingContext() with not a  
defaultEditingContext() in sight.


er.extensions.ERXApplication.useEditingContextUnlocker = true
er.extensions.ERXEC.defaultAutomaticLockUnlock = true
er.extensions.ERXEC.defaultCoalesceAutoLocks = true
er.extensions.ERXEC.useSharedEditingContext = false

The debug below leads up to the deadlock. They are always triggered  
when a AjaxUpdateContainer is fired numerous times in succession where  
they are in the same session on the same page accessing new EO's - it  
can quite happily work for a while but always seems to start getting  
very confused after a lot of this kind of abuse.  Despite mentions of  
other threads in the warnings I don't have any background threads that  
I'm explicitly creating myself.


Any suggestions of things I can try appreciated before I give up and  
rip the thing out and replace it with something more boring.


So things running smoothly then a bunch of AjaxUpdateContainer Updates  
in succession then.


Mar 08 22:49:59 SMS[] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  -  
*** EOEditingContext: access when another thread holds a lock:  
_eoForGID()!
java.lang.Exception: This is not a real exception, just a stack trace  
of the location of the contested lock:
	at  
com 
.webobjects 
.eocontrol 
.EOEditingContext 
._EOAssertSafeMultiThreadedAccess(EOEditingContext.java:5182)
	at  
com 
.webobjects 
.eocontrol 
.EOEditingContext 
._EOAssertSafeMultiThreadedReadAccess(EOEditingContext.java:5156)
	at  
com 
.webobjects.eocontrol.EOEditingContext._eoForGID(EOEditingContext.java: 
2636)
	at  
com 
.webobjects 
.eocontrol.EOEditingContext.faultForGlobalID(EOEditingContext.java:3635)

at er.extensions.eof.ERXEC.faultForGlobalID(ERXEC.java:1013)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext.objectsForSourceGlobalID(EODatabaseContext.java:4044)
	at  
com 
.webobjects 
.eocontrol 
.EOObjectStoreCoordinator 
.objectsForSourceGlobalID(EOObjectStoreCoordinator.java:682)
	at  
com 
.webobjects 
.eocontrol 
.EOEditingContext.objectsForSourceGlobalID(EOEditingContext.java:3965)

at er.extensions.eof.ERXEC.objectsForSourceGlobalID(ERXEC.java:1070)
	at  
com 
.webobjects 
.eoaccess.EODatabaseContext._fireArrayFault(EODatabaseContext.java:4427)
	at  
com 
.webobjects 
.eoaccess 
.EOAccessArrayFaultHandler 
.completeInitializationOfObject(EOAccessArrayFaultHandler.java:70)
	at  
com 
.webobjects 
.eocontrol 
._EOCheapCopyMutableArray.willRead(_EOCheapCopyMutableArray.java:38)
	at  
com 
.webobjects 
.eocontrol 
._EOCheapCopyMutableArray.count(_EOCheapCopyMutableArray.java:92)
	at er.extensions.foundation.ERXArrayUtilities 
$SortOperator.compute(ERXArrayUtilities.java:1018)
	at  
com 
.webobjects 
.foundation.NSArray._valueForKeyPathWithOperator(NSArray.java:795)

at com.webobjects.foundation.NSArray.valueForKeyPath(NSArray.java:831)
	at com.webobjects.foundation.NSKeyValueCodingAdditions 
$Utility.valueForKeyPath(NSKeyValueCodingAdditions.java:149)
	at com.webobjects.foundation.NSKeyValueCodingAdditions 
$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java: 
217)
	at  
com 
.webobjects 
.eocontrol.EOCustomObject.valueForKeyPath(EOCustomObject.java:1675)
	at com.webobjects.foundation.NSKeyValueCodingAdditions 
$Utility.valueForKeyPath(NSKeyValueCodingAdditions.java:149)
	at com.webobjects.foundation.NSKeyValueCodingAdditions 
$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java: 
217)
	at  
com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java: 
1600)
	at  
com 
.webobjects 
.appserver 
._private 
.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:46)
	at  
er 
.extensions 
.components 
._private.ERXWORepetition.createContext(ERXWORepetition.java:334)
	at  
er 
.extensions 
.components._private.ERXWORepetition.invokeAction(ERXWORepetition.java: 
367)
	at  
com 
.webobjects 
.appserver 
._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101)
	at  
com 
.webobjects 
.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:110)
	at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java: 
945)
	at  
er.extensions.components.ERXComponent.invokeAction(ERXComponent.java:93)
	at  
com 
.webobjects 
.appserver 
._private.WOComponentReference.invokeAction(WOComponentReference.java: 
104)
	at  
com 
.webobjects 
.appserver 
._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101)
	at  
er 
.extensions 
.components 
.conditionals 
.ERXWOConditional.invokeChildrenAction(ERXWOConditional.java:111)
	at  
com 
.webobjects 
.appserver._private.WODynamicGroup.invokeAction(WOD

AjaxUpdateContainer successive updates + Deadlock

2009-03-09 Thread Paul Stringer
I'm struggling here with a deadlock situation that as far as I can see  
is caused by Ajax Updates. What I've done so far.  Removed any traces  
of a shared editing context from my app to count that out. I've double  
checked my Wonder autolocking properties which are as below and double  
checked I only use ERXEC.newEditingContext() with not a  
defaultEditingContext() in sight.


er.extensions.ERXApplication.useEditingContextUnlocker = true
er.extensions.ERXEC.defaultAutomaticLockUnlock = true
er.extensions.ERXEC.defaultCoalesceAutoLocks = true
er.extensions.ERXEC.useSharedEditingContext = false

The debug below leads up to the deadlock. They are always triggered  
when a AjaxUpdateContainer is fired numerous times in succession where  
they are in the same session on the same page accessing new EO's - it  
can quite happily work for a while but always seems to start getting  
very confused after a lot of this kind of abuse.  Despite mentions of  
other threads in the warnings I don't have any background threads that  
I'm explicitly creating myself.


Any suggestions of things I can try appreciated before I give up and  
rip the thing out and replace it with something more boring.


So things running smoothly then a bunch of AjaxUpdateContainer Updates  
in succession then.


Mar 08 22:49:59 SMS[] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  -  
*** EOEditingContext: access when another thread holds a lock:  
_eoForGID()!
java.lang.Exception: This is not a real exception, just a stack trace  
of the location of the contested lock:
	at  
com 
.webobjects 
.eocontrol 
.EOEditingContext 
._EOAssertSafeMultiThreadedAccess(EOEditingContext.java:5182)
	at  
com 
.webobjects 
.eocontrol 
.EOEditingContext 
._EOAssertSafeMultiThreadedReadAccess(EOEditingContext.java:5156)
	at  
com 
.webobjects.eocontrol.EOEditingContext._eoForGID(EOEditingContext.java: 
2636)
	at  
com 
.webobjects 
.eocontrol.EOEditingContext.faultForGlobalID(EOEditingContext.java:3635)

at er.extensions.eof.ERXEC.faultForGlobalID(ERXEC.java:1013)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext.objectsForSourceGlobalID(EODatabaseContext.java:4044)
	at  
com 
.webobjects 
.eocontrol 
.EOObjectStoreCoordinator 
.objectsForSourceGlobalID(EOObjectStoreCoordinator.java:682)
	at  
com 
.webobjects 
.eocontrol 
.EOEditingContext.objectsForSourceGlobalID(EOEditingContext.java:3965)

at er.extensions.eof.ERXEC.objectsForSourceGlobalID(ERXEC.java:1070)
	at  
com 
.webobjects 
.eoaccess.EODatabaseContext._fireArrayFault(EODatabaseContext.java:4427)
	at  
com 
.webobjects 
.eoaccess 
.EOAccessArrayFaultHandler 
.completeInitializationOfObject(EOAccessArrayFaultHandler.java:70)
	at  
com 
.webobjects 
.eocontrol 
._EOCheapCopyMutableArray.willRead(_EOCheapCopyMutableArray.java:38)
	at  
com 
.webobjects 
.eocontrol 
._EOCheapCopyMutableArray.count(_EOCheapCopyMutableArray.java:92)
	at er.extensions.foundation.ERXArrayUtilities 
$SortOperator.compute(ERXArrayUtilities.java:1018)
	at  
com 
.webobjects 
.foundation.NSArray._valueForKeyPathWithOperator(NSArray.java:795)

at com.webobjects.foundation.NSArray.valueForKeyPath(NSArray.java:831)
	at com.webobjects.foundation.NSKeyValueCodingAdditions 
$Utility.valueForKeyPath(NSKeyValueCodingAdditions.java:149)
	at com.webobjects.foundation.NSKeyValueCodingAdditions 
$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java: 
217)
	at  
com 
.webobjects 
.eocontrol.EOCustomObject.valueForKeyPath(EOCustomObject.java:1675)
	at com.webobjects.foundation.NSKeyValueCodingAdditions 
$Utility.valueForKeyPath(NSKeyValueCodingAdditions.java:149)
	at com.webobjects.foundation.NSKeyValueCodingAdditions 
$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java: 
217)
	at  
com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java: 
1600)
	at  
com 
.webobjects 
.appserver 
._private 
.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:46)
	at  
er 
.extensions 
.components 
._private.ERXWORepetition.createContext(ERXWORepetition.java:334)
	at  
er 
.extensions 
.components._private.ERXWORepetition.invokeAction(ERXWORepetition.java: 
367)
	at  
com 
.webobjects 
.appserver 
._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101)
	at  
com 
.webobjects 
.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:110)
	at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java: 
945)
	at  
er.extensions.components.ERXComponent.invokeAction(ERXComponent.java:93)
	at  
com 
.webobjects 
.appserver 
._private.WOComponentReference.invokeAction(WOComponentReference.java: 
104)
	at  
com 
.webobjects 
.appserver 
._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101)
	at  
er 
.extensions 
.components 
.conditionals 
.ERXWOConditional.invokeChildrenAction(ERXWOConditional.java:111)
	at  
com 
.webobjects 
.appserver._private.WODynamicGroup.invokeAction(WOD

AjaxUpdateContainer successive updates + Deadlock

2009-03-09 Thread Paul Stringer
I'm struggling here with a deadlock situation that as far as I can see  
is caused by Ajax Updates. What I've done so far.  Removed any traces  
of a shared editing context from my app to count that out. I've double  
checked my Wonder autolocking properties which are as below and double  
checked I only use ERXEC.newEditingContext() with not a  
defaultEditingContext() in sight.


er.extensions.ERXApplication.useEditingContextUnlocker = true
er.extensions.ERXEC.defaultAutomaticLockUnlock = true
er.extensions.ERXEC.defaultCoalesceAutoLocks = true
er.extensions.ERXEC.useSharedEditingContext = false

The debug below leads up to the deadlock. They are always triggered  
when a AjaxUpdateContainer is fired numerous times in succession where  
they are in the same session on the same page accessing new EO's - it  
can quite happily work for a while but always seems to start getting  
very confused after a lot of this kind of abuse.  Despite mentions of  
other threads in the warnings I don't have any background threads that  
I'm explicitly creating myself.


Any suggestions of things I can try appreciated before I give up and  
rip the thing out and replace it with something more boring.


So things running smoothly then a bunch of AjaxUpdateContainer Updates  
in succession then.


Mar 08 22:49:59 SMS[] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  -  
*** EOEditingContext: access when another thread holds a lock:  
_eoForGID()!
java.lang.Exception: This is not a real exception, just a stack trace  
of the location of the contested lock:
	at  
com 
.webobjects 
.eocontrol 
.EOEditingContext 
._EOAssertSafeMultiThreadedAccess(EOEditingContext.java:5182)
	at  
com 
.webobjects 
.eocontrol 
.EOEditingContext 
._EOAssertSafeMultiThreadedReadAccess(EOEditingContext.java:5156)
	at  
com 
.webobjects.eocontrol.EOEditingContext._eoForGID(EOEditingContext.java: 
2636)
	at  
com 
.webobjects 
.eocontrol.EOEditingContext.faultForGlobalID(EOEditingContext.java:3635)

at er.extensions.eof.ERXEC.faultForGlobalID(ERXEC.java:1013)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext.objectsForSourceGlobalID(EODatabaseContext.java:4044)
	at  
com 
.webobjects 
.eocontrol 
.EOObjectStoreCoordinator 
.objectsForSourceGlobalID(EOObjectStoreCoordinator.java:682)
	at  
com 
.webobjects 
.eocontrol 
.EOEditingContext.objectsForSourceGlobalID(EOEditingContext.java:3965)

at er.extensions.eof.ERXEC.objectsForSourceGlobalID(ERXEC.java:1070)
	at  
com 
.webobjects 
.eoaccess.EODatabaseContext._fireArrayFault(EODatabaseContext.java:4427)
	at  
com 
.webobjects 
.eoaccess 
.EOAccessArrayFaultHandler 
.completeInitializationOfObject(EOAccessArrayFaultHandler.java:70)
	at  
com 
.webobjects 
.eocontrol 
._EOCheapCopyMutableArray.willRead(_EOCheapCopyMutableArray.java:38)
	at  
com 
.webobjects 
.eocontrol 
._EOCheapCopyMutableArray.count(_EOCheapCopyMutableArray.java:92)
	at er.extensions.foundation.ERXArrayUtilities 
$SortOperator.compute(ERXArrayUtilities.java:1018)
	at  
com 
.webobjects 
.foundation.NSArray._valueForKeyPathWithOperator(NSArray.java:795)

at com.webobjects.foundation.NSArray.valueForKeyPath(NSArray.java:831)
	at com.webobjects.foundation.NSKeyValueCodingAdditions 
$Utility.valueForKeyPath(NSKeyValueCodingAdditions.java:149)
	at com.webobjects.foundation.NSKeyValueCodingAdditions 
$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java: 
217)
	at  
com 
.webobjects 
.eocontrol.EOCustomObject.valueForKeyPath(EOCustomObject.java:1675)
	at com.webobjects.foundation.NSKeyValueCodingAdditions 
$Utility.valueForKeyPath(NSKeyValueCodingAdditions.java:149)
	at com.webobjects.foundation.NSKeyValueCodingAdditions 
$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java: 
217)
	at  
com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java: 
1600)
	at  
com 
.webobjects 
.appserver 
._private 
.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:46)
	at  
er 
.extensions 
.components 
._private.ERXWORepetition.createContext(ERXWORepetition.java:334)
	at  
er 
.extensions 
.components._private.ERXWORepetition.invokeAction(ERXWORepetition.java: 
367)
	at  
com 
.webobjects 
.appserver 
._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101)
	at  
com 
.webobjects 
.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:110)
	at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java: 
945)
	at  
er.extensions.components.ERXComponent.invokeAction(ERXComponent.java:93)
	at  
com 
.webobjects 
.appserver 
._private.WOComponentReference.invokeAction(WOComponentReference.java: 
104)
	at  
com 
.webobjects 
.appserver 
._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101)
	at  
er 
.extensions 
.components 
.conditionals 
.ERXWOConditional.invokeChildrenAction(ERXWOConditional.java:111)
	at  
com 
.webobjects 
.appserver._private.WODynamicGroup.invokeAction(WOD

Re: AjaxSubmitButton/AjaxUpdateContainer -> Index out of bounds after delete

2009-02-19 Thread Mike Schrag

Okay, so that works great...but now I get these warnings in my log:
Feb 19 10:41:04 [4700] INFO  NSLog  - invokeAction: An non stored  
response return context.page(), which will result in suboptimal  
performance.
Feb 19 10:41:04 [4700] INFO  NSLog  -  
ERXAjaxApplication.invokeAction: An Ajax response returned  
context.page(), which is almost certainly an error.
 ... so #2 can probably be removed, since I think it's established  
it's not really true, which the exception that what you told it to do  
is not EXACTLY what it's going to do (you returned page, but it's  
going to refresh that one component, but the overall intent is the  
same).


#1 i don't even know who's saying it or what it even means ...  
probably me from 3 years ago has a great explanation for that.  I'd  
have to look into it.


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

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

Re: AjaxSubmitButton/AjaxUpdateContainer -> Index out of bounds after delete

2009-02-19 Thread Leif Harrison

Hey Mike,

Okay, so that works great...but now I get these warnings in my log:
Feb 19 10:41:04 [4700] INFO  NSLog  - invokeAction: An non stored  
response return context.page(), which will result in suboptimal  
performance.
Feb 19 10:41:04 [4700] INFO  NSLog  - ERXAjaxApplication.invokeAction:  
An Ajax response returned context.page(), which is almost certainly an  
error.


Is there a way to disable those warnings? (Ideally just specifically  
for that method?)


- Leif

On Feb 19, 2009, at 4:47 AM, Mike Schrag wrote:

I posted about this a few weeks back ... It's actually expected  
behavior, though I might change that exception to explicitly say  
"hey are you returning null instead of context.page?".


The deal is that you selected to delete, say, index 1.  Your action  
method gets fired, because your senderID matches, and your array  
then gets modified in the middle of the repetition.  The repetition  
doesn't KNOW this, though, and just keeps processing the array,  
which causes an array out of bounds exception.  I suspect we can  
actually fix this, internally, but the proper fix is that if you  
return something other than null, it signals the repetition that it  
no longer needs to keep processing the array for invokeActions,  
breaks out, and the world is good.


ms

On Feb 19, 2009, at 3:08 AM, Peer Sandtner wrote:


Hello Leif,

yesterday we experienced exactly the same problem. We "fixed" it by  
returning this.context().page() instead of null in the delete-method.


Anyone who could explain if this is a bug or a feature? ;-)

Regards,
Peer

PS: we are using Wonder 5.0.0.8627



Am 18.02.2009 um 23:48 schrieb Leif Harrison:


Hey all,

I was working on adding basic add/delete functionality to my app,  
but am having difficulty getting my delete functionality to work.   
I'm pretty sure it's something pretty stupid or obvious, as I've  
done this before and certainly have plenty of examples  
around...but I can't for the life of me figure out what I'm doing  
wrong.


Basically I'm getting an array out-of-bounds exception after  
trying to delete an object in an Ajax action:
[2009-2-18 14:35:38 PST]   
java.lang.IllegalArgumentException: Index (2) out of bounds [0, 1]
	at com.webobjects.foundation.NSArray.objectAtIndex(NSArray.java: 
395)
	at  
com 
.webobjects 
.eocontrol 
._EOCheapCopyMutableArray 
.objectAtIndex(_EOCheapCopyMutableArray.java:110)
	at er.extensions.components._private.ERXWORepetition 
$Context.objectAtIndex(ERXWORepetition.java:146)
	at  
er 
.extensions 
.components 
._private 
.ERXWORepetition 
._prepareForIterationWithIndex(ERXWORepetition.java:243)
	at  
er 
.extensions 
.components 
._private.ERXWORepetition.invokeAction(ERXWORepetition.java:444)
	at  
com 
.webobjects 
.appserver 
._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java: 
105)
	at  
com 
.webobjects 
.appserver 
._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)

...

Here's the basic component html:






 
Name
Created

	"[anActivity]">


		action = "[deleteActivity]" button="true" value = "Delete"  
updateContainerID = "ActivitiesListContainer" />
		value="[anActivity.name]" />
		value="[anActivity.createdAt]" />





"add_activity_button" value = "Add Activity" updateContainerID =  
"ActivitiesListContainer" />




And here's the (hopefully) relevant code:

public class MWActivitiesList extends ERXComponent {

public Activity anActivity;

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

public NSArray currentActivities() {
Session session = (Session)session();
Account user = session.user();
return user.activities();
}

public WOActionResults deleteActivity() {
Session session = (Session)session();
Account user = session.user();
EOEditingContext ec = user.editingContext();

user.deleteActivitiesRelationship(anActivity);

try {
ec.saveChanges();
}
catch ( Exception e ) {
 	log.debug("Exception raised deleting activity: " +  
e.toString());

e.printStackTrace();
}

return null;
}
}

Based on my logging, and looking at method calls, it looks almost  
like the ERXWORepitition is trying to access outside the bounds of  
the array, but doing so without even calling currentActivities()  
when updating the AjaxUpdateContainer. Also, strangely enough  
deleting from the END of the array works fine, it's only deletes  
from the beginning or middle that fail.


The component is pretty basic.  The object model is pretty basic  
(generated in Eclipse from the EOModel).  Nothing particular

Re: AjaxSubmitButton/AjaxUpdateContainer -> Index out of bounds after delete

2009-02-19 Thread Mike Schrag
I posted about this a few weeks back ... It's actually expected  
behavior, though I might change that exception to explicitly say "hey  
are you returning null instead of context.page?".


The deal is that you selected to delete, say, index 1.  Your action  
method gets fired, because your senderID matches, and your array then  
gets modified in the middle of the repetition.  The repetition doesn't  
KNOW this, though, and just keeps processing the array, which causes  
an array out of bounds exception.  I suspect we can actually fix this,  
internally, but the proper fix is that if you return something other  
than null, it signals the repetition that it no longer needs to keep  
processing the array for invokeActions, breaks out, and the world is  
good.


ms

On Feb 19, 2009, at 3:08 AM, Peer Sandtner wrote:


Hello Leif,

yesterday we experienced exactly the same problem. We "fixed" it by  
returning this.context().page() instead of null in the delete-method.


Anyone who could explain if this is a bug or a feature? ;-)

Regards,
Peer

PS: we are using Wonder 5.0.0.8627



Am 18.02.2009 um 23:48 schrieb Leif Harrison:


Hey all,

I was working on adding basic add/delete functionality to my app,  
but am having difficulty getting my delete functionality to work.   
I'm pretty sure it's something pretty stupid or obvious, as I've  
done this before and certainly have plenty of examples around...but  
I can't for the life of me figure out what I'm doing wrong.


Basically I'm getting an array out-of-bounds exception after trying  
to delete an object in an Ajax action:
[2009-2-18 14:35:38 PST]   
java.lang.IllegalArgumentException: Index (2) out of bounds [0, 1]

at com.webobjects.foundation.NSArray.objectAtIndex(NSArray.java:395)
	at  
com 
.webobjects 
.eocontrol 
._EOCheapCopyMutableArray 
.objectAtIndex(_EOCheapCopyMutableArray.java:110)
	at er.extensions.components._private.ERXWORepetition 
$Context.objectAtIndex(ERXWORepetition.java:146)
	at  
er 
.extensions 
.components 
._private 
.ERXWORepetition._prepareForIterationWithIndex(ERXWORepetition.java: 
243)
	at  
er 
.extensions 
.components 
._private.ERXWORepetition.invokeAction(ERXWORepetition.java:444)
	at  
com 
.webobjects 
.appserver 
._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java: 
105)
	at  
com 
.webobjects 
.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java: 
115)

...

Here's the basic component html:






 
Name
Created

	"[anActivity]">


		action = "[deleteActivity]" button="true" value = "Delete"  
updateContainerID = "ActivitiesListContainer" />
		value="[anActivity.name]" />
		value="[anActivity.createdAt]" />





"add_activity_button" value = "Add Activity" updateContainerID =  
"ActivitiesListContainer" />




And here's the (hopefully) relevant code:

public class MWActivitiesList extends ERXComponent {

public Activity anActivity;

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

public NSArray currentActivities() {
Session session = (Session)session();
Account user = session.user();
return user.activities();
}

public WOActionResults deleteActivity() {
Session session = (Session)session();
Account user = session.user();
EOEditingContext ec = user.editingContext();

user.deleteActivitiesRelationship(anActivity);

try {
ec.saveChanges();
}
catch ( Exception e ) {
 	log.debug("Exception raised deleting activity: " +  
e.toString());

e.printStackTrace();
}

return null;
}
}

Based on my logging, and looking at method calls, it looks almost  
like the ERXWORepitition is trying to access outside the bounds of  
the array, but doing so without even calling currentActivities()  
when updating the AjaxUpdateContainer. Also, strangely enough  
deleting from the END of the array works fine, it's only deletes  
from the beginning or middle that fail.


The component is pretty basic.  The object model is pretty basic  
(generated in Eclipse from the EOModel).  Nothing particularly  
tricky going on anywhere.  Driving...me...crazy.


FYI, the Wonder build I'm using is 5.0.0.8421.

- Leif

--
Leif Harrison
Senior Engineer - Ubermind, Inc.
rexfe...@catsreach.org


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

This email sent to peer.sandt...@alste

Re: AjaxSubmitButton/AjaxUpdateContainer -> Index out of bounds after delete

2009-02-19 Thread Peer Sandtner

Hello Leif,

yesterday we experienced exactly the same problem. We "fixed" it by  
returning this.context().page() instead of null in the delete-method.


Anyone who could explain if this is a bug or a feature? ;-)

Regards,
Peer

PS: we are using Wonder 5.0.0.8627



Am 18.02.2009 um 23:48 schrieb Leif Harrison:


Hey all,

I was working on adding basic add/delete functionality to my app,  
but am having difficulty getting my delete functionality to work.   
I'm pretty sure it's something pretty stupid or obvious, as I've  
done this before and certainly have plenty of examples around...but  
I can't for the life of me figure out what I'm doing wrong.


Basically I'm getting an array out-of-bounds exception after trying  
to delete an object in an Ajax action:
[2009-2-18 14:35:38 PST]   
java.lang.IllegalArgumentException: Index (2) out of bounds [0, 1]

at com.webobjects.foundation.NSArray.objectAtIndex(NSArray.java:395)
	at  
com 
.webobjects 
.eocontrol 
._EOCheapCopyMutableArray 
.objectAtIndex(_EOCheapCopyMutableArray.java:110)
	at er.extensions.components._private.ERXWORepetition 
$Context.objectAtIndex(ERXWORepetition.java:146)
	at  
er 
.extensions 
.components 
._private 
.ERXWORepetition._prepareForIterationWithIndex(ERXWORepetition.java: 
243)
	at  
er 
.extensions 
.components 
._private.ERXWORepetition.invokeAction(ERXWORepetition.java:444)
	at  
com 
.webobjects 
.appserver 
._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
	at  
com 
.webobjects 
.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java: 
115)

...

Here's the basic component html:






 
Name
Created

	"[anActivity]">


		action = "[deleteActivity]" button="true" value = "Delete"  
updateContainerID = "ActivitiesListContainer" />
		value="[anActivity.name]" />
		value="[anActivity.createdAt]" />





"add_activity_button" value = "Add Activity" updateContainerID =  
"ActivitiesListContainer" />




And here's the (hopefully) relevant code:

public class MWActivitiesList extends ERXComponent {

public Activity anActivity;

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

public NSArray currentActivities() {
Session session = (Session)session();
Account user = session.user();
return user.activities();
}

public WOActionResults deleteActivity() {
Session session = (Session)session();
Account user = session.user();
EOEditingContext ec = user.editingContext();

user.deleteActivitiesRelationship(anActivity);

try {
ec.saveChanges();
}
catch ( Exception e ) {
 	log.debug("Exception raised deleting activity: " +  
e.toString());

e.printStackTrace();
}

return null;
}
}

Based on my logging, and looking at method calls, it looks almost  
like the ERXWORepitition is trying to access outside the bounds of  
the array, but doing so without even calling currentActivities()  
when updating the AjaxUpdateContainer. Also, strangely enough  
deleting from the END of the array works fine, it's only deletes  
from the beginning or middle that fail.


The component is pretty basic.  The object model is pretty basic  
(generated in Eclipse from the EOModel).  Nothing particularly  
tricky going on anywhere.  Driving...me...crazy.


FYI, the Wonder build I'm using is 5.0.0.8421.

- Leif

--
Leif Harrison
Senior Engineer - Ubermind, Inc.
rexfe...@catsreach.org


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

This email sent to peer.sandt...@alstercontor.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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

AjaxSubmitButton/AjaxUpdateContainer -> Index out of bounds after delete

2009-02-18 Thread Leif Harrison

Hey all,

I was working on adding basic add/delete functionality to my app, but  
am having difficulty getting my delete functionality to work.  I'm  
pretty sure it's something pretty stupid or obvious, as I've done this  
before and certainly have plenty of examples around...but I can't for  
the life of me figure out what I'm doing wrong.


Basically I'm getting an array out-of-bounds exception after trying to  
delete an object in an Ajax action:
[2009-2-18 14:35:38 PST]   
java.lang.IllegalArgumentException: Index (2) out of bounds [0, 1]

at com.webobjects.foundation.NSArray.objectAtIndex(NSArray.java:395)
	at  
com 
.webobjects 
.eocontrol 
._EOCheapCopyMutableArray.objectAtIndex(_EOCheapCopyMutableArray.java: 
110)
	at er.extensions.components._private.ERXWORepetition 
$Context.objectAtIndex(ERXWORepetition.java:146)
	at  
er 
.extensions 
.components 
._private 
.ERXWORepetition._prepareForIterationWithIndex(ERXWORepetition.java:243)
	at  
er 
.extensions 
.components._private.ERXWORepetition.invokeAction(ERXWORepetition.java: 
444)
	at  
com 
.webobjects 
.appserver 
._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
	at  
com 
.webobjects 
.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)

...

Here's the basic component html:






 
Name
Created



		action = "[deleteActivity]" button="true" value = "Delete"  
updateContainerID = "ActivitiesListContainer" />
		value="[anActivity.name]" />
		value="[anActivity.createdAt]" />





"add_activity_button" value = "Add Activity" updateContainerID =  
"ActivitiesListContainer" />




And here's the (hopefully) relevant code:

public class MWActivitiesList extends ERXComponent {

public Activity anActivity;

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

public NSArray currentActivities() {
Session session = (Session)session();
Account user = session.user();
return user.activities();
}

public WOActionResults deleteActivity() {
Session session = (Session)session();
Account user = session.user();
EOEditingContext ec = user.editingContext();

user.deleteActivitiesRelationship(anActivity);

try {
ec.saveChanges();
}
catch ( Exception e ) {
log.debug("Exception raised deleting activity: " + e.toString());
e.printStackTrace();
}

return null;
}
}

Based on my logging, and looking at method calls, it looks almost like  
the ERXWORepitition is trying to access outside the bounds of the  
array, but doing so without even calling currentActivities() when  
updating the AjaxUpdateContainer. Also, strangely enough deleting from  
the END of the array works fine, it's only deletes from the beginning  
or middle that fail.


The component is pretty basic.  The object model is pretty basic  
(generated in Eclipse from the EOModel).  Nothing particularly tricky  
going on anywhere.  Driving...me...crazy.


FYI, the Wonder build I'm using is 5.0.0.8421.

- Leif

--
Leif Harrison
Senior Engineer - Ubermind, Inc.
rexfe...@catsreach.org


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

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

Re: AjaxUpdateContainer and dynamic frequency

2009-01-28 Thread WebObjects - Anazys

Ok I miss this point.
Thanks for your answer!

Le 28 janv. 09 à 15:47, Mike Schrag a écrit :

Somebody has already tried to change dynamically the value of the  
frequency to display a component for 10 secondes, the next one 20  
secondes.. ?
Is it possible with AjaxUpdateContainer or maybe I must write a  
Javascript ?
Custom javascript .. it should be pretty easy -- in your  
component, just do a setTimeout that calls YourComponetUpdate().
Hum custom javascript.. i'm not really happy to work on that.  
So you think that it is not possible with the AjaxUpdateContainer.
I don't really see how to switch my components from a javascript or  
how to call my WO function from the javascript, but i'm working on  
it. The solution must be full javascript.
inside your update container with the id "MyContainer", just do  
setTimeout("MyContainerUpdate()", <wo:str  
</tt><tt>value="$updateInterval"/>) .  Every AUC gets a function  
name Update() created automatically.


ms

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

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



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

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


Re: AjaxUpdateContainer and dynamic frequency

2009-01-28 Thread Mike Schrag
Somebody has already tried to change dynamically the value of the  
frequency to display a component for 10 secondes, the next one 20  
secondes.. ?
Is it possible with AjaxUpdateContainer or maybe I must write a  
Javascript ?
Custom javascript .. it should be pretty easy -- in your component,  
just do a setTimeout that calls YourComponetUpdate().
Hum custom javascript.. i'm not really happy to work on that. So  
you think that it is not possible with the AjaxUpdateContainer.
I don't really see how to switch my components from a javascript or  
how to call my WO function from the javascript, but i'm working on  
it. The solution must be full javascript.
inside your update container with the id "MyContainer", just do  
setTimeout("MyContainerUpdate()", <wo:str  
</tt><tt>value="$updateInterval"/>) .  Every AUC gets a function name  
Update() created automatically.


ms

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

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


Re: AjaxUpdateContainer and dynamic frequency

2009-01-28 Thread WebObjects - Anazys
Somebody has already tried to change dynamically the value of the  
frequency to display a component for 10 secondes, the next one 20  
secondes.. ?
Is it possible with AjaxUpdateContainer or maybe I must write a  
Javascript ?
Custom javascript .. it should be pretty easy -- in your component,  
just do a setTimeout that calls YourComponetUpdate().
Hum custom javascript.. i'm not really happy to work on that. So  
you think that it is not possible with the AjaxUpdateContainer.
I don't really see how to switch my components from a javascript or  
how to call my WO function from the javascript, but i'm working on it.  
The solution must be full javascript.




Another point in the same component : the "insertion" binding  
displays some effects when the component change. I have found a  
list of these effects here : http://wiki.github.com/madrobby/scriptaculous 
 but all of these don't seems to work : for example BlindDown works  
but Shake don't. Is it a problem with my code or simply some of  
these won't work with Wonder ?
It only works with effects that are paired (i.e. that have an in and  
an out animation) -- you can see them in effects.js.

Ok I get it !

Thanks.
Cedric




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

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


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

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

Re: AjaxUpdateContainer and dynamic frequency

2009-01-28 Thread Mike Schrag
Somebody has already tried to change dynamically the value of the  
frequency to display a component for 10 secondes, the next one 20  
secondes.. ?
Is it possible with AjaxUpdateContainer or maybe I must write a  
Javascript ?
Custom javascript .. it should be pretty easy -- in your component,  
just do a setTimeout that calls YourComponetUpdate().


Another point in the same component : the "insertion" binding  
displays some effects when the component change. I have found a list  
of these effects here : http://wiki.github.com/madrobby/ 
scriptaculous but all of these don't seems to work : for example  
BlindDown works but Shake don't. Is it a problem with my code or  
simply some of these won't work with Wonder ?
It only works with effects that are paired (i.e. that have an in and  
an out animation) -- you can see them in effects.js.


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

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

AjaxUpdateContainer and dynamic frequency

2009-01-28 Thread WebObjects - Anazys

Hi all,

I'm playing with the Wonder component "AjaxUpdateContainer" but I have  
some trouble to customize :


In a classic way, this component works perfectly. But when I try to  
bind the frequency with a dynamic value (which is updated in a  
function binded by "action"), only the first value is used.. I have  
tried different solutions but it's a failure !
Somebody has already tried to change dynamically the value of the  
frequency to display a component for 10 secondes, the next one 20  
secondes.. ?
Is it possible with AjaxUpdateContainer or maybe I must write a  
Javascript ?


Another point in the same component : the "insertion" binding displays  
some effects when the component change. I have found a list of these  
effects here : http://wiki.github.com/madrobby/scriptaculous but all  
of these don't seems to work : for example BlindDown works but Shake  
don't. Is it a problem with my code or simply some of these won't work  
with Wonder ?


My code to help :
action="$functionUpdated" id = "exampleArea" insertion="Effect.Shake">









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

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

Re: AjaxUpdateContainer reloading the whole page

2008-11-05 Thread Mike Schrag
Using the AjaxUpdateLink was used in the examples as well and the  
page wasn't reloaded.
It was used in that particular example because it was not submitting a  
form, and the page wasn't reloaded because it did not have an onclick  
that did a full page reload.  Think about what your code is doing  
here.  onclick is called by javascript when you press the link, and  
you're doing a form submit.  A form submit is not a background  
operation.  You're literally just tossing the ajax operation out the  
window and then submitting the form -- your onclick is overriding  
exactly the point of AjaxUpdateLink and doing a completely different  
non-ajax operation instead.


ms

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

This email sent to [EMAIL PROTECTED]


Re: AjaxUpdateContainer reloading the whole page

2008-11-05 Thread Gustavo Pizano

.. The submitForm() its a n AS method, which submit the form..
You're just submitting the form onclikc, which is a full page  
operation.  If you want to submit a form, you should be using  
AjaxSubmitButton, not AjaxUpdateLink.


mmm well...  ok Im gonna try that one..

thanks... I will let you know if it works., Using the AjaxUpdateLink  
was used in the examples as well and the page wasn't reloaded.


Gus

On Nov 5, 2008, at 12:58 PM, Mike Schrag wrote:

 		onClick = "return submitForm();">Buscar
I don't see the submitForm function, but judging by its name, this  
is SUPER sketchy.  You're just submitting the form onclikc, which is  
a full page operation.  If you want to submit a form, you should be  
using AjaxSubmitButton, not AjaxUpdateLink.


___
Do not 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/webobjectspicora%40gmail.com

This email sent to [EMAIL PROTECTED]


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

This email sent to [EMAIL PROTECTED]

Re: AjaxUpdateContainer reloading the whole page

2008-11-05 Thread Mike Schrag
 		onClick = "return submitForm();">Buscar
I don't see the submitForm function, but judging by its name, this is  
SUPER sketchy.  You're just submitting the form onclikc, which is a  
full page operation.  If you want to submit a form, you should be  
using AjaxSubmitButton, not AjaxUpdateLink.


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

This email sent to [EMAIL PROTECTED]

AjaxUpdateContainer reloading the whole page

2008-11-05 Thread Gustavo Pizano
Hello, well I have been left this question for the end and I was  
taking care more of teorical stuff, and making things work in my app.   
now, I put a simple AjaxUpdateContainer in my app,  following the Ajax  
Examples, which provided me with great info, but, each time I select a  
day in my calendar (for those who forgot, Im choosing a day in a  
calendar and depending on the day, Im showing the turns available for  
that day), and the whole page its reloaded, the url passes from :


http://192.168.1.105:1250/cgi-bin/WebObjects/ControlHorarios.woa/wo/UZb0e1BLddiMRcvDv9GAtw/0.24
to 
http://192.168.1.105:1250/cgi-bin/WebObjects/ControlHorarios.woa/wo/UZb0e1BLddiMRcvDv9GAtw/2.24
and so on.

i understandd that this shouldnt happen, I have been looking in the  
examples but I see I have  the main idea as its show  in the examples.


What am I doing wrong?

here is the code of the wo.


  
Registro de Horarios: 
Usuario:   >  

  
  



function dateChanged(calendar) {
// Beware that this function is called even if the end-user only
// changed the month/year. In order to determine if a date was
// clicked you can use the dateClicked property of the calendar:
if (calendar.dateClicked) {
// OK, a date was clicked, redirect to 
//mm/dd/index.php
var y = calendar.date.getFullYear();
var m = calendar.date.getMonth(); // integer, 0..11
var d = calendar.date.getDate(); // integer, 1..31
var date = y+"/"+(m+1)+"/"+d;
// redirect...
//window.location = "/" + y + "/" + m + "/" + d + 
"/index.php";
document.getElementById('selectedDate').value = date;
//var frm = document.getElementById('theForm');
//frm.submit();


}
};
Calendar.setup(
{
flat : "sidebar1", // ID of the parent element
flatCallback : dateChanged // our callback function
}
);

   "form1">


 		size= "11" />
 		= "return submitForm();">Buscar




  

  


   
  
 

 "$registerTurns">



  

 
   
   
 
  TO 
 
		 effect="Effect.BlindDown" scaleMode = "contents" duration = "1.0" />

 
 

 

	  onClick="submitTurns();" onMouseOver="cursor_pointer();"  
onMouseOut="cursor_default();">

 Submit
 
 


 


thanks..

Gsutavo
if something I can just attach the file.

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

This email sent to [EMAIL PROTECTED]

Re: AjaxUpdateContainer FOUND examples

2008-10-12 Thread WebObjects



SOrry I found them

Tahks

Sorry to disturb today on sunny sunday

Gus
:P

On Oct 12, 2008, at 1:21 PM, Mike Schrag wrote:

Wonder comes with an application, AjaxExample or something close to  
that.


I have the page divided in 2, in the left side there is a calendar  
and in the right side will appear the data depending on the  
selected date on the calendar.

Actually, AjaxExample2 in Project Wonder has this exact example in it.

ms

___
Do not 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/webobjectspicora%40gmail.com

This email sent to [EMAIL PROTECTED]


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

This email sent to [EMAIL PROTECTED]


Re: AjaxUpdateContainer

2008-10-12 Thread WebObjects
LOL. :S, kill me if yoiu want... can't find the examples. are they  
supposed to be in my computer or here: http://webobjects.mdimension.com/wonder/


cheers

 Gus


On Oct 12, 2008, at 1:21 PM, Mike Schrag wrote:

Wonder comes with an application, AjaxExample or something close to  
that.


I have the page divided in 2, in the left side there is a calendar  
and in the right side will appear the data depending on the  
selected date on the calendar.

Actually, AjaxExample2 in Project Wonder has this exact example in it.

ms

___
Do not 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/webobjectspicora%40gmail.com

This email sent to [EMAIL PROTECTED]


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

This email sent to [EMAIL PROTECTED]


Re: AjaxUpdateContainer

2008-10-12 Thread WebObjects

Ok I will look at them. Thanks

I was trying to get the examples in the webpage of the Confluence


Gus

On Oct 12, 2008, at 1:21 PM, Mike Schrag wrote:

Wonder comes with an application, AjaxExample or something close to  
that.


I have the page divided in 2, in the left side there is a calendar  
and in the right side will appear the data depending on the  
selected date on the calendar.

Actually, AjaxExample2 in Project Wonder has this exact example in it.

ms

___
Do not 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/webobjectspicora%40gmail.com

This email sent to [EMAIL PROTECTED]


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

This email sent to [EMAIL PROTECTED]


Re: AjaxUpdateContainer

2008-10-12 Thread Mike Schrag
 Wonder comes with an application, AjaxExample or something close to  
that.


I have the page divided in 2, in the left side there is a calendar  
and in the right side will appear the data depending on the  
selected date on the calendar.

Actually, AjaxExample2 in Project Wonder has this exact example in it.

ms

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

This email sent to [EMAIL PROTECTED]


Re: AjaxUpdateContainer

2008-10-12 Thread Miguel Arroz

Hi!

  Wonder comes with an application, AjaxExample or something close to  
that. Just import the project to Eclipse and run it, it should work  
fine. What you want to do seems to be a no-brainer, you calendar dates  
are AjaxUpdateLinks and the content on the right is an  
AjaxUpdateContainer. Just set the update container ID of the links to  
be the same ID as the AUC. You don't need iframes of anything that  
funky.


  Yours

Miguel Arroz

On 2008/10/12, at 18:17, WebObjects wrote:

Hello, well I posted this already and got just one asnwer, which  
was, "watch the examples". I tryed but the examples are not online,  
or something, anyway. What I need its the following.  I have the  
page divided in 2, in the left side there is a calendar and in the  
right side will appear the data depending on the selected date on  
the calendar. So i need to know how can I achieve this without   
auto- reloading the page each time I select a date.??.. I was  
thinking using WOIFrame and some JS, but the recommendation was to  
watch the AjaxUpdateContainer, but non of the examples seems to be  
online, can somebody provide me some example? or some guidance.



Regards

Gus

___
Do not 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/arroz%40guiamac.com

This email sent to [EMAIL PROTECTED]




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

This email sent to [EMAIL PROTECTED]

AjaxUpdateContainer

2008-10-12 Thread WebObjects
Hello, well I posted this already and got just one asnwer, which was,  
"watch the examples". I tryed but the examples are not online, or  
something, anyway. What I need its the following.  I have the page  
divided in 2, in the left side there is a calendar and in the right  
side will appear the data depending on the selected date on the  
calendar. So i need to know how can I achieve this without  auto-  
reloading the page each time I select a date.??.. I was thinking using  
WOIFrame and some JS, but the recommendation was to watch the  
AjaxUpdateContainer, but non of the examples seems to be online, can  
somebody provide me some example? or some guidance.



Regards

Gus

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

This email sent to [EMAIL PROTECTED]


Re: db design and WOIFrame or AJaxUpdateCOntainer

2008-10-03 Thread WebObjects

LOL... aguardiente would be fine. or maybe Cerveza??? :/

ok so after the relax I took.

id		endDateTime	idealEmployees		maxEmployees		minEmployees		 
startDateTime

1   12::00  6   
8   4   
09:00
2   15:00   6   
8   4   
12:00
3   18:00   7   
8   6   
15:00
4   21:00   6   
7   5   
18:00
5   13:00   8   
9   6   
10:00
6   16:00   7   
10  6   
13:00
7   19:00   7   
10  6   
16:00
8   13:00   5   
6   4   
10:00
9   16:00   4   
5   3   
13:00



this table its fixed... so far... if in six months the admin wats to  
change the turn he can do it, via de properties file, or something  
like that... hadn;t think about that yet. am I right.?



It will grow as the Admin sets up each week worth of WorkDays and  
what Turns they have.


Hold it on the grid! I thought that the WorkDay table which its  
related with Turn, will have the  Turn and the day for which that Turn  
apply to.


I have to questions here, one of them might be  my confusion of all.
What I had in mind, or thought,  is that each time an Employee takes a  
turn for a particular day (mon-sun)  ,  this WorkDay will be filled,


ie. if I, as employee select the monday from the calendar, then select  
the turn 1, .. then what. I create an instance of WorkDay, then an  
Instance of EmpleadoTurno then.. I set the relationship.. and then I  
save the changes.

so  I will have on my tables the follwing.
WorkDay:
id  dayOfWeek   idTurn  startingDateTime
1   Monday  1   09:00

and the EmployeeTurno

id  idEmployee  idTurn  creationTimeStamp   
1   1   1   
"whatever"

and if I the next week I wanna take the same turn for the same day...  
then what.. can I do that?  my mind its cloudily thinking that at the  
end I will try to insert on EmployeeTurn the same data that I did  
already...  or this is handled by EOF



 2. how is possible that each week the admin should set up the turns.  
Im assuming that the turns "may" change in the time, but will not  
occur so often, but eventually they will change as you mentioned.


in the WorkDay the startingDateTime, is necessary? , i mean if I have  
the id o f th eurn, I have already the startintg time no?


if one day you come to colombia I invite you a beer, or aguardiente if  
you like more.


Gus


This WeekDay its confusing me, in sort a way.

On Oct 3, 2008, at 3:47 PM, David Avendasora wrote:


On Oct 3, 2008, at 4:09 PM, WebObjects wrote:

AHA!.. so ... Im starting to understand something... The WorkDay  
you  suggest to add, will  keep track of each single day, so that  
table will grow up each day an employee register for a turn.


It will grow as the Admin sets up each week worth of WorkDays and  
what Turns they have.


lets suppose  the admin, based on a properties file, generate the  
turns, from mon-fri on a 3hrs/turn for 12hrs /day, that give us a  
4 turns per day. Sat from 10 till 7 and sun from 10 - 4.  So on  
the Turn will go:

ie.

id		endDateTime	idealEmployees		maxEmployees		minEmployees		 
startDateTime

1   12::00  6   
8   4   
09:00
2   15:00   6   
8   4   
12:00
3   18:00   7   
8   6   
15:00
4   21:00   

Re: db design and WOIFrame or AJaxUpdateCOntainer

2008-10-03 Thread David Avendasora
dynamically creating the "code" instead of setting it  
as a value in the DB. You can easily take the day of the week and  
the index of the Turn in the sorted array of Turns to create this  
on the fly, and if you change the Turns time or day it will  
automatically update.


The "code" for a given EmployeeTurn can simply be gotten by  
calling turn().code() so you don't need it on the EmployeeTurn  
entity.


Added bennifit is that when the Admin is setting up the Turns,  
you can easily validate the start and end times by comparing them  
to the WorkDay startingTime and the start and end times for other  
Turns that have been already created.


As far as most days being the same, you could easily setup a  
properties file that has that info in it and then add a button  
that creates the WorkDays for a week based on the values in the  
properties file, that way if you want to make Fridays have  
different Turns too, you don't have to change code, just open the  
properties file.


On a side note, this is the type of exercise that I love using  
D2JC for. You can make you model, run it, try it out, see where  
things are weird, change the model, run it again. No UI code or  
refactoring required.



Dave






Gus



On Oct 3, 2008, at 10:35 AM, David Avendasora wrote:



On Oct 3, 2008, at 11:00 AM, WebObjects wrote:

Hello, Well I have a dilemma here.  Im not too good with db  
desings,.. so what I have its the following:


A table Employee with the following attributes:

id:PK
eMail
name
password.

a table Turn with the following

day (The name of the week day)
id:PK
code
startingTime
endTime
maxEmployee


What is code? What is maxEmployee?




and a Join table created via (create relationship button)

TurnXEmployee
id:pk
dateOfTurn
code
idEmployee
idTurn

the code's atributes are like the oid's


Hmm This implies that each Turn can have multiple employees  
working on it and the dateOfTurn and code can be different for  
each Employee/Turn combination. That doesn't seem right. If two  
employees can be assigned to one Turn, then  the date should be  
the same too, right?


ok so a few questions... should I put the  eMail as Pk in the  
EOModel..


NO! Email addresses can change. Also, since you are designing a  
DB from scratch, NEVER use a real-world piece of information as  
a PK. NEVER. You are only asking for trouble later when  
something that everyone says will never change, changes.



or just put it as Unique in the db schema in openbase?


Yes, if it is really, truly unique. Is it possible for an  
Employee to have more than one address? Can an address migrate  
from person to person as they come and go?



the same question as for the codes.?


Same answer and questions as eMail.

in the TurnXEmployee, I will need to add the code as  
pk(inEOModeler) or unique(in the DB)? this is because a  
Employee may have multiple turns, btu at the same time  
multiple turns of day "monday" ie.

and the same question for eMail in Employee table?


What exactly is the code field doing for you?

Now. I asked a few days ago about the way to make this work.  
Overview: An Employee will log in  to the system ( via eMail  
and password) and then a new page loads with a selectable  
calendar made with JS. when the user selects a day then in the  
right part of the page the turns for the selected day (day of  
the week) (mon - sun) will appear and the user can select  
during what time he want to work. and then submit. I read  
about the AjaxUpdateContainer, and the bindings it should  
have. but I dont know too much about JS or Ajax. (Im on the  
process in learning, pain in the ass), my question its.. if a  
WOIframe will work too? or will be easier and nicer to do it  
with the AjaxUpdateContainer.  I tried to see the examples but  
could not find them...


Stop. Get the model right before you worry about what the UI is  
going to look like. Obviously you need to have an idea of what  
kind of information the user will be seeing/selecting, but  
don't worry about the design of the UI yet. If the data/object  
model is right, the UI will be obvious.


So let me review:

You have Employees that will be signing up for Turns to work,  
right?
The thing you need to know about the Employees is just their  
name (worry about how they log in later).
The thing you need to know about the Turns are What the  
starting date & time, the ending date and time.


Key questions:

1) Can more than one Employee sign up for the same Turn?
2) Are Turns the same (same start and end) from day-to-day? For  
each day of the week?

3) Can turns span two days?
4) Are any of these assumptions likely to change?

Dave














___
Do not 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.c

Re: db design and WOIFrame or AJaxUpdateCOntainer

2008-10-03 Thread WebObjects
 a given EmployeeTurn can simply be gotten by  
calling turn().code() so you don't need it on the EmployeeTurn  
entity.


Added bennifit is that when the Admin is setting up the Turns, you  
can easily validate the start and end times by comparing them to  
the WorkDay startingTime and the start and end times for other  
Turns that have been already created.


As far as most days being the same, you could easily setup a  
properties file that has that info in it and then add a button  
that creates the WorkDays for a week based on the values in the  
properties file, that way if you want to make Fridays have  
different Turns too, you don't have to change code, just open the  
properties file.


On a side note, this is the type of exercise that I love using  
D2JC for. You can make you model, run it, try it out, see where  
things are weird, change the model, run it again. No UI code or  
refactoring required.



Dave






Gus



On Oct 3, 2008, at 10:35 AM, David Avendasora wrote:



On Oct 3, 2008, at 11:00 AM, WebObjects wrote:

Hello, Well I have a dilemma here.  Im not too good with db  
desings,.. so what I have its the following:


A table Employee with the following attributes:

id:PK
eMail
name
password.

a table Turn with the following

day (The name of the week day)
id:PK
code
startingTime
endTime
maxEmployee


What is code? What is maxEmployee?




and a Join table created via (create relationship button)

TurnXEmployee
id:pk
dateOfTurn
code
idEmployee
idTurn

the code's atributes are like the oid's


Hmm This implies that each Turn can have multiple employees  
working on it and the dateOfTurn and code can be different for  
each Employee/Turn combination. That doesn't seem right. If two  
employees can be assigned to one Turn, then  the date should be  
the same too, right?


ok so a few questions... should I put the  eMail as Pk in the  
EOModel..


NO! Email addresses can change. Also, since you are designing a  
DB from scratch, NEVER use a real-world piece of information as  
a PK. NEVER. You are only asking for trouble later when  
something that everyone says will never change, changes.



or just put it as Unique in the db schema in openbase?


Yes, if it is really, truly unique. Is it possible for an  
Employee to have more than one address? Can an address migrate  
from person to person as they come and go?



the same question as for the codes.?


Same answer and questions as eMail.

in the TurnXEmployee, I will need to add the code as  
pk(inEOModeler) or unique(in the DB)? this is because a  
Employee may have multiple turns, btu at the same time multiple  
turns of day "monday" ie.

and the same question for eMail in Employee table?


What exactly is the code field doing for you?

Now. I asked a few days ago about the way to make this work.  
Overview: An Employee will log in  to the system ( via eMail  
and password) and then a new page loads with a selectable  
calendar made with JS. when the user selects a day then in the  
right part of the page the turns for the selected day (day of  
the week) (mon - sun) will appear and the user can select  
during what time he want to work. and then submit. I read about  
the AjaxUpdateContainer, and the bindings it should have. but I  
dont know too much about JS or Ajax. (Im on the process in  
learning, pain in the ass), my question its.. if a WOIframe  
will work too? or will be easier and nicer to do it with the  
AjaxUpdateContainer.  I tried to see the examples but could not  
find them...


Stop. Get the model right before you worry about what the UI is  
going to look like. Obviously you need to have an idea of what  
kind of information the user will be seeing/selecting, but don't  
worry about the design of the UI yet. If the data/object model  
is right, the UI will be obvious.


So let me review:

You have Employees that will be signing up for Turns to work,  
right?
The thing you need to know about the Employees is just their  
name (worry about how they log in later).
The thing you need to know about the Turns are What the starting  
date & time, the ending date and time.


Key questions:

1) Can more than one Employee sign up for the same Turn?
2) Are Turns the same (same start and end) from day-to-day? For  
each day of the week?

3) Can turns span two days?
4) Are any of these assumptions likely to change?

Dave














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

This email sent to [EMAIL PROTECTED]




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

This email sent to [EMAIL PROTECTED]

Re: db design and WOIFrame or AJaxUpdateCOntainer

2008-10-03 Thread David Avendasora
at is code? What is maxEmployee?



code its the numerical code of the turn,  for mon the code will be  
01 and the first turn will be 01 so the whole code will be 0101,  
for the second turn of monday will be 0102, and so on.. the same  
for the rest days, depending on the day. ie. Friday second turn  
will be  0502.


maxEmploeyy its the maxNumber of employes a turn may have  
.. maybe I should have a min as well?


Yes, and maybe an "ideal" so that the manager can say "Ideally I'd  
like 2, but I'll accept either 1 or 2 or 3" and the Employee can  
know that if the ideal has been reached, then their request may be  
denied, or something like that.



what you think?


Employee <->> EmployeeTurn <<-> Turn <<-> WorkDay

Employee
id
email
name
password

Turn
id
startDateTime
endDateTime
minEmployees
idealEmployees
maxEmployees

EmployeeTurn
id
idEmployee
idTurn
creationTimestamp


WorkDay
id
dayOfWeek
startingDateTime


This gives you the ability to get a WorkDay, and all of the turns()  
that are related. Each Turn then has employeeTurns() that give you  
a list of all the employees signed up for a turn, and when they  
signed up. You could also add an EmployeeTurnStatus table that  
would keep track of various statuses such as pending, approved,  
rejected, etc.


I'd plan on dynamically creating the "code" instead of setting it  
as a value in the DB. You can easily take the day of the week and  
the index of the Turn in the sorted array of Turns to create this  
on the fly, and if you change the Turns time or day it will  
automatically update.


The "code" for a given EmployeeTurn can simply be gotten by calling  
turn().code() so you don't need it on the EmployeeTurn entity.


Added bennifit is that when the Admin is setting up the Turns, you  
can easily validate the start and end times by comparing them to  
the WorkDay startingTime and the start and end times for other  
Turns that have been already created.


As far as most days being the same, you could easily setup a  
properties file that has that info in it and then add a button that  
creates the WorkDays for a week based on the values in the  
properties file, that way if you want to make Fridays have  
different Turns too, you don't have to change code, just open the  
properties file.


On a side note, this is the type of exercise that I love using D2JC  
for. You can make you model, run it, try it out, see where things  
are weird, change the model, run it again. No UI code or  
refactoring required.



Dave






Gus



On Oct 3, 2008, at 10:35 AM, David Avendasora wrote:



On Oct 3, 2008, at 11:00 AM, WebObjects wrote:

Hello, Well I have a dilemma here.  Im not too good with db  
desings,.. so what I have its the following:


A table Employee with the following attributes:

id:PK
eMail
name
password.

a table Turn with the following

day (The name of the week day)
id:PK
code
startingTime
endTime
maxEmployee


What is code? What is maxEmployee?




and a Join table created via (create relationship button)

TurnXEmployee
id:pk
dateOfTurn
code
idEmployee
idTurn

the code's atributes are like the oid's


Hmm This implies that each Turn can have multiple employees  
working on it and the dateOfTurn and code can be different for  
each Employee/Turn combination. That doesn't seem right. If two  
employees can be assigned to one Turn, then  the date should be  
the same too, right?


ok so a few questions... should I put the  eMail as Pk in the  
EOModel..


NO! Email addresses can change. Also, since you are designing a  
DB from scratch, NEVER use a real-world piece of information as a  
PK. NEVER. You are only asking for trouble later when something  
that everyone says will never change, changes.



or just put it as Unique in the db schema in openbase?


Yes, if it is really, truly unique. Is it possible for an  
Employee to have more than one address? Can an address migrate  
from person to person as they come and go?



the same question as for the codes.?


Same answer and questions as eMail.

in the TurnXEmployee, I will need to add the code as  
pk(inEOModeler) or unique(in the DB)? this is because a Employee  
may have multiple turns, btu at the same time multiple turns of  
day "monday" ie.

and the same question for eMail in Employee table?


What exactly is the code field doing for you?

Now. I asked a few days ago about the way to make this work.  
Overview: An Employee will log in  to the system ( via eMail and  
password) and then a new page loads with a selectable calendar  
made with JS. when the user selects a day then in the right part  
of the page the turns for the selected day (day of the week)  
(mon - sun) will appear and the user can select during what time  
he want to work. and then submit. I read about the  
AjaxUpdateContainer, and the bindings it should have. but I dont 

Re: db design and WOIFrame or AJaxUpdateCOntainer

2008-10-03 Thread David Avendasora
. No UI code or refactoring  
required.



Dave






Gus



On Oct 3, 2008, at 10:35 AM, David Avendasora wrote:



On Oct 3, 2008, at 11:00 AM, WebObjects wrote:

Hello, Well I have a dilemma here.  Im not too good with db  
desings,.. so what I have its the following:


A table Employee with the following attributes:

id:PK
eMail
name
password.

a table Turn with the following

day (The name of the week day)
id:PK
code
startingTime
endTime
maxEmployee


What is code? What is maxEmployee?




and a Join table created via (create relationship button)

TurnXEmployee
id:pk
dateOfTurn
code
idEmployee
idTurn

the code's atributes are like the oid's


Hmm This implies that each Turn can have multiple employees  
working on it and the dateOfTurn and code can be different for each  
Employee/Turn combination. That doesn't seem right. If two  
employees can be assigned to one Turn, then  the date should be the  
same too, right?


ok so a few questions... should I put the  eMail as Pk in the  
EOModel..


NO! Email addresses can change. Also, since you are designing a DB  
from scratch, NEVER use a real-world piece of information as a PK.  
NEVER. You are only asking for trouble later when something that  
everyone says will never change, changes.



or just put it as Unique in the db schema in openbase?


Yes, if it is really, truly unique. Is it possible for an Employee  
to have more than one address? Can an address migrate from person  
to person as they come and go?



the same question as for the codes.?


Same answer and questions as eMail.

in the TurnXEmployee, I will need to add the code as  
pk(inEOModeler) or unique(in the DB)? this is because a Employee  
may have multiple turns, btu at the same time multiple turns of  
day "monday" ie.

and the same question for eMail in Employee table?


What exactly is the code field doing for you?

Now. I asked a few days ago about the way to make this work.  
Overview: An Employee will log in  to the system ( via eMail and  
password) and then a new page loads with a selectable calendar  
made with JS. when the user selects a day then in the right part  
of the page the turns for the selected day (day of the week) (mon  
- sun) will appear and the user can select during what time he  
want to work. and then submit. I read about the  
AjaxUpdateContainer, and the bindings it should have. but I dont  
know too much about JS or Ajax. (Im on the process in learning,  
pain in the ass), my question its.. if a WOIframe will work too?  
or will be easier and nicer to do it with the  
AjaxUpdateContainer.  I tried to see the examples but could not  
find them...


Stop. Get the model right before you worry about what the UI is  
going to look like. Obviously you need to have an idea of what kind  
of information the user will be seeing/selecting, but don't worry  
about the design of the UI yet. If the data/object model is right,  
the UI will be obvious.


So let me review:

You have Employees that will be signing up for Turns to work, right?
The thing you need to know about the Employees is just their name  
(worry about how they log in later).
The thing you need to know about the Turns are What the starting  
date & time, the ending date and time.


Key questions:

1) Can more than one Employee sign up for the same Turn?
2) Are Turns the same (same start and end) from day-to-day? For  
each day of the week?

3) Can turns span two days?
4) Are any of these assumptions likely to change?

Dave












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

This email sent to [EMAIL PROTECTED]

Re: db design and WOIFrame or AJaxUpdateCOntainer

2008-10-03 Thread David Avendasora


On Oct 3, 2008, at 11:00 AM, WebObjects wrote:

Hello, Well I have a dilemma here.  Im not too good with db  
desings,.. so what I have its the following:


A table Employee with the following attributes:

id:PK
eMail
name
password.

a table Turn with the following

day (The name of the week day)
id:PK
code
startingTime
endTime
maxEmployee


What is code? What is maxEmployee?




and a Join table created via (create relationship button)

TurnXEmployee
id:pk
dateOfTurn
code
idEmployee
idTurn

the code's atributes are like the oid's


Hmm This implies that each Turn can have multiple employees  
working on it and the dateOfTurn and code can be different for each  
Employee/Turn combination. That doesn't seem right. If two employees  
can be assigned to one Turn, then  the date should be the same too,  
right?


ok so a few questions... should I put the  eMail as Pk in the  
EOModel..


NO! Email addresses can change. Also, since you are designing a DB  
from scratch, NEVER use a real-world piece of information as a PK.  
NEVER. You are only asking for trouble later when something that  
everyone says will never change, changes.



or just put it as Unique in the db schema in openbase?


Yes, if it is really, truly unique. Is it possible for an Employee to  
have more than one address? Can an address migrate from person to  
person as they come and go?



the same question as for the codes.?


Same answer and questions as eMail.

in the TurnXEmployee, I will need to add the code as pk(inEOModeler)  
or unique(in the DB)? this is because a Employee may have multiple  
turns, btu at the same time multiple turns of day "monday" ie.

and the same question for eMail in Employee table?


What exactly is the code field doing for you?

Now. I asked a few days ago about the way to make this work.  
Overview: An Employee will log in  to the system ( via eMail and  
password) and then a new page loads with a selectable calendar made  
with JS. when the user selects a day then in the right part of the  
page the turns for the selected day (day of the week) (mon - sun)  
will appear and the user can select during what time he want to  
work. and then submit. I read about the AjaxUpdateContainer, and the  
bindings it should have. but I dont know too much about JS or Ajax.  
(Im on the process in learning, pain in the ass), my question its..  
if a WOIframe will work too? or will be easier and nicer to do it  
with the AjaxUpdateContainer.  I tried to see the examples but could  
not find them...


Stop. Get the model right before you worry about what the UI is going  
to look like. Obviously you need to have an idea of what kind of  
information the user will be seeing/selecting, but don't worry about  
the design of the UI yet. If the data/object model is right, the UI  
will be obvious.


So let me review:

You have Employees that will be signing up for Turns to work, right?
The thing you need to know about the Employees is just their name  
(worry about how they log in later).
The thing you need to know about the Turns are What the starting date  
& time, the ending date and time.


Key questions:

1) Can more than one Employee sign up for the same Turn?
2) Are Turns the same (same start and end) from day-to-day? For each  
day of the week?

3) Can turns span two days?
4) Are any of these assumptions likely to change?

Dave








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

This email sent to [EMAIL PROTECTED]


db design and WOIFrame or AJaxUpdateCOntainer

2008-10-03 Thread WebObjects
Hello, Well I have a dilemma here.  Im not too good with db desings,..  
so what I have its the following:


A table Employee with the following attributes:

id:PK
eMail
name
password.

a table Turn with the following

day (The name of the week day)
id:PK
code
startingTime
endTime
maxEmployee


and a Join table created via (create relationship button)

TurnXEmployee
id:pk
dateOfTurn
code
idEmployee
idTurn

the code's atributes are like the oid's

ok so a few questions... should I put the  eMail as Pk in the  
EOModel.. or just put it as Unique in the db schema in openbase?

the same question as for the codes.?

in the TurnXEmployee, I will need to add the code as pk(inEOModeler)  
or unique(in the DB)? this is because a Employee may have multiple  
turns, btu at the same time multiple turns of day "monday" ie.

and the same question for eMail in Employee table?

Now. I asked a few days ago about the way to make this work. Overview:  
An Employee will log in  to the system ( via eMail and password) and  
then a new page loads with a selectable calendar made with JS. when  
the user selects a day then in the right part of the page the turns  
for the selected day (day of the week) (mon - sun) will appear and the  
user can select during what time he want to work. and then submit. I  
read about the AjaxUpdateContainer, and the bindings it should have.  
but I dont know too much about JS or Ajax. (Im on the process in  
learning, pain in the ass), my question its.. if a WOIframe will work  
too? or will be easier and nicer to do it with the  
AjaxUpdateContainer.  I tried to see the examples but could not find  
them...


thx

Gustavo
PS well there on the model explanations oare more things to validate  
in the .java's files but the main idea its there.




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

This email sent to [EMAIL PROTECTED]


Re: Problem with an AjaxUpdateContainer (WONDER) in conjunction with a WOComponentContent and a WOSwitchComponent

2008-09-17 Thread Sergio Sánchez Maffet

Hi guys,

@Chuck: Thank you for your quick response and sorry for the direct  
reply.


It is now working with ERXApplication, ERXSession, ERXDirectAction and  
ERXComponent, have not used ERXGenericRecord so far, because I do not  
know which template I have to use for the EOGenerator. Actually I have  
configured _Entity.java and Entity.java in the EOGenerator config  
file. Are other templates provided with WOLips,  that I can use to get  
ERXGenericRecord in my EO class files?


Kind regards,
Sergio

On 16.09.2008, at 23:01, Chuck Hill wrote:



On Sep 16, 2008, at 11:38 AM, Sergio Sánchez Maffet wrote:


Hi guys,

does someone know how to use the AjaxUpdateContainer inside a page  
that already uses a WOComponentContent and a WOSwitchComponent? I'm  
getting only a mysterious page in page response?


I use AjaxUpdateContainer inside WOComponentContent without problems.





Any clues?

Setup:

Lastest Wonder (downloaded today), eclipse 3.3.2 with patch 1, WO542
No Wonder app. Uses WOSession, WOApplication, etc.



Does it make a difference if you extend ERXAjaxApplication and  
ERXAjaxSession?




Linked Wonder frameworks: ERExtensions, ERJavaMail

Layout.wo (has an WOComponentContent)
Main (main content, surrounded by Layout component, contains  
WOSwitchComponent)
Component1 (switched into Main's WOSwitchComponent, contains  
Component2 surrounded by AjaxUpdateContainer)

Component2 (simple, only direct actions)



Carefully check the app log for messages.


Chuck


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects









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

This email sent to [EMAIL PROTECTED]


Re: Problem with an AjaxUpdateContainer (WONDER) in conjunction with a WOComponentContent and a WOSwitchComponent

2008-09-16 Thread Chuck Hill


On Sep 16, 2008, at 11:38 AM, Sergio Sánchez Maffet wrote:


Hi guys,

does someone know how to use the AjaxUpdateContainer inside a page  
that already uses a WOComponentContent and a WOSwitchComponent? I'm  
getting only a mysterious page in page response?


I use AjaxUpdateContainer inside WOComponentContent without problems.





Any clues?

Setup:

Lastest Wonder (downloaded today), eclipse 3.3.2 with patch 1, WO542
No Wonder app. Uses WOSession, WOApplication, etc.



Does it make a difference if you extend ERXAjaxApplication and  
ERXAjaxSession?




Linked Wonder frameworks: ERExtensions, ERJavaMail

Layout.wo (has an WOComponentContent)
Main (main content, surrounded by Layout component, contains  
WOSwitchComponent)
Component1 (switched into Main's WOSwitchComponent, contains  
Component2 surrounded by AjaxUpdateContainer)

Component2 (simple, only direct actions)



Carefully check the app log for messages.


Chuck


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects






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

This email sent to [EMAIL PROTECTED]


Problem with an AjaxUpdateContainer (WONDER) in conjunction with a WOComponentContent and a WOSwitchComponent

2008-09-16 Thread Sergio Sánchez Maffet

Hi guys,

does someone know how to use the AjaxUpdateContainer inside a page  
that already uses a WOComponentContent and a WOSwitchComponent? I'm  
getting only a mysterious page in page response?


Any clues?

Setup:

Lastest Wonder (downloaded today), eclipse 3.3.2 with patch 1, WO542
No Wonder app. Uses WOSession, WOApplication, etc.
Linked Wonder frameworks: ERExtensions, ERJavaMail

Layout.wo (has an WOComponentContent)
Main (main content, surrounded by Layout component, contains  
WOSwitchComponent)
Component1 (switched into Main's WOSwitchComponent, contains  
Component2 surrounded by AjaxUpdateContainer)

Component2 (simple, only direct actions)

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

This email sent to [EMAIL PROTECTED]


Re: [Wonder-disc] AjaxUpdateContainer Problems

2008-04-23 Thread Mike Schrag
if you updated today, it may have something to do with the Ajax  
framework update Mike did yesterday. The framework now supports load- 
on-demand for Javascript dependencies.

Maybe there are some side effects with the in place editor?
Doubtful ... It didn't go into Wonder until the 4am build this  
morning, but regardless, I just setup this same scenario in the  
AjaxExample app and it works fine.  I have an AjaxUpdateContainer  
surrounding 3 AjaxInPlaceEditors and an AjaxUpdateLink.  Everything  
works as expected -- editing before the update, editing after the  
update -- in Safari 3, FireFox 2, and IE6.  So there must be something  
else going on ... Load your example app into FireFox and run it with  
FireBug and see if there are any errors coming out.


ms

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

This email sent to [EMAIL PROTECTED]


Re: [Wonder-disc] AjaxUpdateContainer Problems

2008-04-23 Thread Helmut Schottmüller

Hi Paul,

if you updated today, it may have something to do with the Ajax  
framework update Mike did yesterday. The framework now supports load- 
on-demand for Javascript dependencies.

Maybe there are some side effects with the in place editor?

Regards,
Helmut

Am 23.04.2008 um 13:07 schrieb Paul Jefferson:


Dear all,

Ive encountered a problem whereby the contents of My  
AjaxUpdateContainer stop working after a Update. Have reproduced it  
in its simplest form as follows:


Have a AjaxUpdateContainer around a AjaxUpdateLink and a  
AjaxInPlaceEditor. After the initial load the in place editor is  
working as expected. Hit the update link which causes the update  
container to update and the editor no longer functions. Refresh the  
page and all is well again.


Any ideas?


Thanks in advance

Paul
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save  
$100.

Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Wonder-disc mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wonder-disc




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

This email sent to [EMAIL PROTECTED]

Re: AjaxUpdateContainer

2007-12-27 Thread WIESEN Bruno

Hello,

It doesn't work for me...It seems like the method "stop()" is not  
called...
The part of the page containing the AjaxUpdateContainer is still  
refreshing !


Here is the part of the code I use :



	AjaxUpdateContainer1Stop();</ 
</tt><tt>script></webobject>
</tt><pre style="margin: 0em;">
</webobject>

Frequency is set to 4.0 and id= "AjaxUpdateContainer1"...

Is something wrong?

Thanks,

Le 24 déc. 07 à 15:51, Mike Schrag a écrit :

</pre><blockquote style="border-left: #EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">
<wo:AjaxUpdateContainer id = "ExampleContainer" frequency = "2.0">
<wo:WOString value = "$whateverYouAreDisplaying"/>
</pre><tt>	<wo:WOConditional condition =  
</tt><tt>"$shouldStop"><script>ExampleContainerStop();wo:WOConditional>




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

This email sent to [EMAIL PROTECTED]

Re: AjaxUpdateContainer

2007-12-24 Thread Daniele Corti
2007/12/24, WIESEN Bruno <[EMAIL PROTECTED]>:
>
> Hello,
> I use an AjaxUpdateContainer in order to change the value of a string.
> This string represents the delay before a product can be delivery (the
> delay is obtained by a xml request to a server).
> Is there a way to stop the AjaxUpdateContainer after one time or when the
> strings has changed?
>

What do you mean with "stop"? Make it not updatable?

Thanks,
>
> Bruno WIESEN
> ..
> Bruno WIESEN   [EMAIL PROTECTED]
> Mac OS Software Developer
>
> Pyramide Ingenierie sprl   Tel:  +32 87 292130
> 188 rue de Liege   Fax:  +32 87 292139
> B-4800 VerviersMail: [EMAIL PROTECTED]
> ..
>
>
>
>
>
>  ___
> Do not 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/ildenae%40gmail.com
>
> This email sent to [EMAIL PROTECTED]
>



-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: AjaxUpdateContainer

2007-12-24 Thread Mike Schrag
The path of least resistance is to do something like (in inline  
syntax, but you should get the point):




	"$shouldStop">ExampleContainerStop();wo:WOConditional>



On Dec 24, 2007, at 9:31 AM, WIESEN Bruno wrote:


Thank you for the response...

So I must set the "onSuccess" binding to "AjaxUpdateContainerStop()"  
considering that his name is "AjaxUpdateContainer" ?

And It Will stop


Le 24 déc. 07 à 14:40, Mike Schrag a écrit :

I use an AjaxUpdateContainer in order to change the value of a  
string.
This string represents the delay before a product can be delivery  
(the delay is obtained by a xml request to a server).
Is there a way to stop the AjaxUpdateContainer after one time or  
when the strings has changed?
I assume you're using the frequency binding?  If so, there's a  
magical javascript function based on the id of your AUC -- like  
YourIdUpdate(), there's a YourIdStop() as well when frequency is set.


ms

___
Do not 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/dev%40pyramide-ingenierie.be

This email sent to [EMAIL PROTECTED]






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

This email sent to [EMAIL PROTECTED]


Re: AjaxUpdateContainer

2007-12-24 Thread WIESEN Bruno

Thank you for the response...

So I must set the "onSuccess" binding to "AjaxUpdateContainerStop()"  
considering that his name is "AjaxUpdateContainer" ?

And It Will stop


Le 24 déc. 07 à 14:40, Mike Schrag a écrit :

I use an AjaxUpdateContainer in order to change the value of a  
string.
This string represents the delay before a product can be delivery  
(the delay is obtained by a xml request to a server).
Is there a way to stop the AjaxUpdateContainer after one time or  
when the strings has changed?
I assume you're using the frequency binding?  If so, there's a  
magical javascript function based on the id of your AUC -- like  
YourIdUpdate(), there's a YourIdStop() as well when frequency is set.


ms

___
Do not 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/dev% 
40pyramide-ingenierie.be


This email sent to [EMAIL PROTECTED]



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

This email sent to [EMAIL PROTECTED]


Re: AjaxUpdateContainer

2007-12-24 Thread Mike Schrag

I use an AjaxUpdateContainer in order to change the value of a string.
This string represents the delay before a product can be delivery  
(the delay is obtained by a xml request to a server).
Is there a way to stop the AjaxUpdateContainer after one time or  
when the strings has changed?
I assume you're using the frequency binding?  If so, there's a magical  
javascript function based on the id of your AUC -- like  
YourIdUpdate(), there's a YourIdStop() as well when frequency is set.


ms

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

This email sent to [EMAIL PROTECTED]


  1   2   >