Re: Webobjects-dev Digest, Vol 10, Issue 2

2013-01-05 Thread Vinny Luc
Yes please.

Thanks,
Vinny

On Fri, Jan 4, 2013 at 3:00 PM, wrote:

> Send Webobjects-dev mailing list submissions to
> webobjects-dev@lists.apple.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.apple.com/mailman/listinfo/webobjects-dev
> or, via email, send a message with subject or body 'help' to
> webobjects-dev-requ...@lists.apple.com
>
> You can reach the person managing the list at
> webobjects-dev-ow...@lists.apple.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Webobjects-dev digest..."
>
>
> Today's Topics:
>
>1. Wonder Deployment Guide ready for review (Klaus Berkling)
>2. Re: Wonder Deployment Guide ready for review (Matteo Centro)
>3. Re: Wonder Deployment Guide ready for review (Theodore Petrosky)
>
>
> --
>
> Message: 1
> Date: Thu, 03 Jan 2013 20:13:20 -0800
> From: Klaus Berkling 
> To: WebObjects Development 
> Subject: Wonder Deployment Guide ready for review
> Message-ID: <5a58ad42-3071-43fd-a5eb-51dd0b348...@dyned.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi All.
>
> I have my deployment guide ready for review.  It's 12 pages. Not a
> derivative of any Apple documents.
> Let me know if want to take a look.
>
>
> kib
>
> "The era of procrastination, of half-measures, of soothing and baffling
> expedients, of delays, is coming to its close. In its place we are entering
> a period of consequences."
> Winston Churchill
>
> Klaus Berkling
> Web Application Dev. & Systems Analyst
> DynEd International, Inc.
> www.dyned.com
>
>
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://lists.apple.com/archives/webobjects-dev/attachments/20130103/5f461696/attachment.html
> >
>
> --
>
> Message: 2
> Date: Fri, 04 Jan 2013 12:50:54 +0100
> From: Matteo Centro 
> To: Klaus Berkling 
> Cc: WebObjects Development 
> Subject: Re: Wonder Deployment Guide ready for review
> Message-ID: <9ad165e8-3662-44bd-9bf1-285eea6d1...@altera.it>
> Content-Type: text/plain; charset="utf-8"
>
> Of course I do!
>
> Thanks,
>
> Matteo
>
> Inviato da iPhone
>
> Il giorno 04/gen/2013, alle ore 05:13, Klaus Berkling 
> ha scritto:
>
> > Hi All.
> >
> > I have my deployment guide ready for review.  It's 12 pages. Not a
> derivative of any Apple documents.
> > Let me know if want to take a look.
> >
> >
> > kib
> >
> > "The era of procrastination, of half-measures, of soothing and baffling
> expedients, of delays, is coming to its close. In its place we are entering
> a period of consequences."
> > Winston Churchill
> >
> > Klaus Berkling
> > Web Application Dev. & Systems Analyst
> > DynEd International, Inc.
> > www.dyned.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/mcentro%40altera.it
> >
> > This email sent to mcen...@altera.it
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://lists.apple.com/archives/webobjects-dev/attachments/20130104/5dbf2deb/attachment.html
> >
>
> --
>
> Message: 3
> Date: Fri, 04 Jan 2013 03:59:25 -0800 (PST)
> From: Theodore Petrosky 
> To: WebObjects Development ,Klaus
> Berkling 
> Subject: Re: Wonder Deployment Guide ready for review
> Message-ID:
> <1357300765.78636.yahoomailclas...@web161603.mail.bf1.yahoo.com>
> Content-Type: text/plain; charset=iso-8859-1
>
>
> Yes, yes, yes, I want to peruse the tome.
>
> Ted
>
> --- On Thu, 1/3/13, Klaus Berkling  wrote:
>
> > From: Klaus Berkling 
> > Subject: Wonder Deployment Guide ready for review
> > To: "WebObjects Development" 
> > Date: Thursday, January 3, 2013, 11:13 PM
> > Hi
> > All.
> > I have my deployment guide ready for review.
> >  It's 12 pages. Not a derivative of any Apple
> > documents.Let me know if want to take a
> > look.
> >
> > kib
> > "The
> > era of procrastination, of half-measures, of soothing and
> > baffling expedients, of delays, is coming to its close.
> > In its place we are entering a period of
> > consequences."Winston
> > Churchill
> > Klaus Berkling
> > Web Application Dev. & Systems Analyst
> > DynEd International, Inc.
> > www.dyned.com
> >
> >
> >
> >
> >
> > -Inline Attachment Follows-
> >
> >
> > ___
> > Do not post admin requests to the list. They will 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
> >
>
>
>
> ---

Re: Get a handle to DisplayGroup From InspectPage

2012-07-31 Thread Vinny Luc
David,

Ah, I didn't think about that. I'll give it a shot.

Thanks again,
Vinny

On 7/31/12 12:17 PM, "David LeBer"  wrote:

>Vinny,
>
>You might be able to do this with a list page with batch size of '1' and
>an embedded inspect page. Though my gut tells me that you may end up
>wanting to implement a custom list page or maybe a custom list page
>repetition (depending on how custom the navigation needs to be).
>
>D
>
>--
>David LeBer
>Codeferous Software
>
>On 2012-07-31, at 12:06 PM, Vinny Luc  wrote:
>
>> Hello D2Wers,
>> 
>>  I have a requirement to imeplement Next/Previous nagivation within the
>>inspectPage. 
>> 
>> I am wondering if this is possible and secondly if this is a good
>>design pattern within D2W flow?
>> 
>> I digged around a little bit by attempt to pass it in through the
>>bindings but so far I don¹t think that' spossible (it's always NULL).
>> 
>> My last resort is perhaps to cache this handle in the Session
>> 
>> Any Ideas?
>> 
>> Thanks much,
>> Vinny
>> ___
>> Do not post admin requests to the list. They will 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%40cod
>>eferous.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

Get a handle to DisplayGroup From InspectPage

2012-07-31 Thread Vinny Luc
Hello D2Wers,

 I have a requirement to imeplement Next/Previous nagivation within the 
inspectPage.

I am wondering if this is possible and secondly if this is a good design 
pattern within D2W flow?

I digged around a little bit by attempt to pass it in through the bindings but 
so far I don’t think that' spossible (it's always NULL).

My last resort is perhaps to cache this handle in the Session

Any Ideas?

Thanks much,
Vinny
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/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: didUpdate?

2012-07-29 Thread Vinny Luc
Hi Ted,

I 've done similar thing in my app where i captured data changes/updates
over to a third-party vendor.  The main flow is you save off the updated
data on EditingContextWillSaveChanges event notification and do your DIFF
on EditingContextDidSaveChanges event.

-Vinny


Message: 2
Date: Sat, 28 Jul 2012 23:03:21 -0700 (PDT)
From: Theodore Petrosky 
To: Tim Worman 
Cc: "webobjects-dev@lists.apple.com" 
Subject: Re: didUpdate?
Message-ID:
<1343541801.63585.yahoomailclas...@web111514.mail.gq1.yahoo.com>
Content-Type: text/plain; charset=iso-8859-1

@Override
public void willUpdate() {
   NSDictionary diffs = this.changesFromSnapshot(this.
editingContext().committedSnapshotForObject(this));

   NSLog.out.appendln("  willUpdate()  diffs" + diffs);
}

the log shows the attributes that were updated AFTER the saveChanges() is
called.

i am getting tired but I think this is harder than I was originally
thinking.

I am on a d2w edit page. I change the values of some attributes and press
the save button. it seems to me I need to do something when I press the
edit EO button. I need to create a copy of the original EO to compare
against. so that when the EO is actually saved, I can read that dictionary
of the original EO.

then in my didUpdate() method I could create the email that includes the
values of the original EO and the new updated values.


--- On Sat, 7/28/12, Tim Worman  wrote:

> From: Tim Worman 
> Subject: Re: didUpdate?
> To: "Theodore Petrosky" 
> Cc: "Paul Yu" , "webobjects-dev@lists.apple.com" <
webobjects-dev@lists.apple.com>
> Date: Saturday, July 28, 2012, 11:49 PM
> This is in the
> API for ERXGenericRecord. Have you tried it?
> changesFromCommittedSnapshotpublic
> NSDictionary
> changesFromCommittedSnapshot()Description copied from
> interface: ERXEnterpriseObjectComputes
> the current set of changes that this object has from the
> currently committed snapshot.
> Specified
> by:changesFromCommittedSnapshot in
> interface ERXEnterpriseObjectReturns:a
> dictionary holding the changed values from the currently
> committed snapshot.
> TimUCLA GSE&IS
> On Jul 28, 2012, at 7:36 PM, Theodore Petrosky
> 
> wrote:
> Are you thinking that in the willUpdate() method
> I should have access to the attributes before they are
> changed?
>
> or that I should do something in this method because I just
> tested it with a log statement and the attributes are
> already changed.
>
> this would have been trivial in a regular wonder app. but I
> am forcing myself to stay in D2W.
>
> --- On Sat, 7/28/12, Paul Yu 
> wrote:
>
> From: Paul Yu 
> Subject: Re: didUpdate?
> To: "Theodore Petrosky" 
> Cc: "webobjects-dev@lists.apple.com"
> 
> Date: Saturday, July 28, 2012, 10:06 PM
> willUpdate()?
>
> Sent from my iPad
>
> On Jul 28, 2012, at 9:03 PM, Theodore Petrosky 
> wrote:
>
> So, I got my D2W app sending email
> when I update or
> create a new object by overriding didUpdate in
> the EO.
>
> basically, my email says "This record has been
> updated"
> and here are the attributes.
>
> How can I get a copy of the original. I mean, I want
> the email to say:
>
> here is the old title: Big title.
> Here is the new title: New title.
>
> Where can I get a copy of the EO before it gets
> updated?
>
> Ted
> ___
> Do not post admin requests to the list. They will be
> ignored.
> Webobjects-dev mailing list
> (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/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/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: Custom D2W Navigation

2012-07-12 Thread Vinny Luc
Sorry forgot to include the proper subject line

On 7/12/12 3:55 AM, "Vinny Luc"  wrote:

>
>
>>
>>On Jul 10, 2012, at 3:26 PM, Dawn Lockhart wrote:
>>
>>>>as soon as you click on any action on the query or pick page, you are
>>>>immediately logged out with no exceptions thrown
>>>Are the actions that fail a form submission? Does the action method ever
>>>get called? Is the session terminated? Is a new session constructed?
>>>The session is not terminated and a new one is not constructed.
>>>The actions are a ERDLinkToEditObject inside a ERMODPickListPage;
>>>however, the link's action is never called.
>>
>>Those are tough to debug. It sounds like you're still getting the session
>>id in the request though.
>>
>>If you're using the integration branch, you should be able to set a
>>breakpoint in handleRequest of the ERXComponentRequestHandler to help you
>>figure out where things go wrong.
>>
>
>Thanks Ramsey for the pointer to use integration branch.
>
>It failed at the point where it's trying to restore the page and since
>previous ajax action was not cached, it blew up.
>
>I am able to get it to work now by manually setting the
>PAGE_REPLACEMENT_CACHE_LOOKUP_KEY to the request header during the ajax
>submit. I guess since the AjaxObserveField for this dropDown
>navigationMenu tried to update a non-update-container DIV that it did not
>have either the replaceID or UpdateContainerID to use as the
>pageCacheKey
>
>Thanks,
>Vinny
>
>
>
>


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/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: Webobjects-dev Digest, Vol 9, Issue 583

2012-07-12 Thread Vinny Luc


>
>On Jul 10, 2012, at 3:26 PM, Dawn Lockhart wrote:
>
>>>as soon as you click on any action on the query or pick page, you are
>>>immediately logged out with no exceptions thrown
>>Are the actions that fail a form submission? Does the action method ever
>>get called? Is the session terminated? Is a new session constructed?
>>The session is not terminated and a new one is not constructed.
>>The actions are a ERDLinkToEditObject inside a ERMODPickListPage;
>>however, the link's action is never called.
>
>Those are tough to debug. It sounds like you're still getting the session
>id in the request though.
>
>If you're using the integration branch, you should be able to set a
>breakpoint in handleRequest of the ERXComponentRequestHandler to help you
>figure out where things go wrong.
>

Thanks Ramsey for the pointer to use integration branch.

It failed at the point where it's trying to restore the page and since
previous ajax action was not cached, it blew up.

I am able to get it to work now by manually setting the
PAGE_REPLACEMENT_CACHE_LOOKUP_KEY to the request header during the ajax
submit. I guess since the AjaxObserveField for this dropDown
navigationMenu tried to update a non-update-container DIV that it did not
have either the replaceID or UpdateContainerID to use as the
pageCacheKey

Thanks,
Vinny





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

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