Re: [ANN] WOInject 1.0

2012-04-13 Thread Henrique Prange
Farrukh,

Thanks for the kind words. Really.

I'm trying some kind of sponsorship from the company I work for. I'll confirm 
my presence or absence until the end of this month.

Cheers,

Henrique

On Apr 13, 2012, at 11:13, Farrukh Ijaz  
wrote:

> This (WOIject) is an excellent framework and I feel the community should 
> collectively sponsor Henirique to come and present it to WOWODC :)
> 
> Good work Henrique!
> 
> Farrukh
> 
> On 2012-04-11, at 10:35 AM, ISHIMOTO Ken wrote:
> 
>> In the case you can't come :
>> 
>> Maybe we can have a Session with your Video.^^
>> 
>> I know it is very expensive to Canada. 
>> I was thinking this time to save Money also, but I read about the EO 
>> Bootcamp and decide to go.
>> Last year I got payed from a Company, but this Time I have to pay everything 
>> myself, and it's a lot
>> of Money^^
>> 
>> Ken
>> 
>> 
>> 
>> On 2012/04/04, at 19:11, Henrique Prange wrote:
>> 
>>> Hi Paul,
>>> 
>>> Don't get me wrong. I really appreciate the interest in WOInject. It is an 
>>> honor for me to talk on WOWODC again. I'm working hard here to make it 
>>> happen. However, I'm still not sure if I'll be able to afford the trip to 
>>> Canada. :( So, I don't want to create expectations for something I may not 
>>> be able to deliver.
>>> 
>>> Cheers,
>>> 
>>> Henrique
>>> 
>>> On 04/04/2012, at 02:02, Paul Hoadley wrote:
>>> 
 On 15/03/2012, at 5:04 PM, Johann Werner wrote:
 
> Am 15.03.2012 um 07:12 schrieb ISHIMOTO Ken:
> 
>> Would be nice to see that at WOWODC in Action.
> 
> +1
 
 Hey, Henrique, I didn't see a response to this―any chance you'll be at 
 WOWODC 12 and in the mood for a talk/demo/workshop on WOInject?  Even 
 informally?
 
 
 -- 
 Paul.
 
 http://logicsquad.net/
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/hprange%40gmail.com
 
 This email sent to hpra...@gmail.com
>>> 
>>> 
>>> ___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/ken%40ksroom.com
>>> 
>>> This email sent to k...@ksroom.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/farrukh.ijaz%40fuegodigitalmedia.com
>> 
>> This email sent to farrukh.i...@fuegodigitalmedia.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: MariaDB

2012-04-13 Thread Kieran Kelleher
I haven't had an opportunity to look at it. Have you? 

Regards, Kieran.
(Sent from my iPhone)


On Apr 13, 2012, at 6:34 PM, Paul Yu  wrote:

>> 
>> Kieran
> 
> Any opinion on MariaDB?  It is suppose to be a drop in replacement for 
> MySQL...  Would it work with Wonder/EOF?
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: WOCommunity Logo - My proposal

2012-04-13 Thread Tim Worman
I think this logo is well executed and creative, but….

It is a little too staid and "heavy" for me. I definitely have a preference for 
the lighter, more whimsical logos we've seen.

Tim
UCLA GSE&IS

On Apr 13, 2012, at 1:40 PM, James Cicenia  wrote:

> I do like the "Crown" concept
> 
> Maybe collapse the crown to the world and have community be a band around?
> 
> 
> 
> On Apr 13, 2012, at 3:20 PM, Daniele Corti wrote:
> 
>> Hi everyone!
>> 
>> I was reading the suggestions for the logo and I've got an idea!
>> 
>> Thanks to my brother that help me with photoshop!
>> 
>> 
>> -- 
>> Daniele Corti
>> --
>> I DON'T DoubleClick
>> 
>>  ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/james%40jimijon.com
>> 
>> This email sent to ja...@jimijon.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: WOCommunity Logo - My proposal

2012-04-13 Thread Johnny Miller
I was just commenting on the logo that was presented today.

regards,

Johnny Miller
Kahalawai Media Corp.
www.kahalawai.com



On Apr 13, 2012, at 11:26 AM, Lachlan Deck wrote:

> On 14/04/2012, at 7:07 AM, Johnny Miller wrote:
> 
>> What if we had a concept like this:
>> 
>> We use a nice 3D gear like Apple 
> 
> Hang on a minute.
> 
> Didn't we have a vote (Pascal?) a few weeks ago already?
> 
> Secondly, I think it's a very bad idea using a logo that 
> 'looks-anything-like' something that has copyright on it (not to mention a 
> wealthy legal department).
> 
> You want something fresh. I thought we had that already in one of the logos 
> already proposed a few weeks ago.
> 
> Lachlan Deck
> lachlan.d...@gmail.com
> 

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

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


Re: WOCommunity Logo - My proposal

2012-04-13 Thread Lachlan Deck
On 14/04/2012, at 7:07 AM, Johnny Miller wrote:

> What if we had a concept like this:
> 
> We use a nice 3D gear like Apple 

Hang on a minute.

Didn't we have a vote (Pascal?) a few weeks ago already?

Secondly, I think it's a very bad idea using a logo that 'looks-anything-like' 
something that has copyright on it (not to mention a wealthy legal department).

You want something fresh. I thought we had that already in one of the logos 
already proposed a few weeks ago.

Lachlan Deck
lachlan.d...@gmail.com


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

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


Re: WOCommunity Logo - My proposal

2012-04-13 Thread Johnny Miller
What if we had a concept like this:

We use a nice 3D gear like Apple used to have and pair that with a wrench, 
screwdriver or some other kind of tool?  The tool signifying that the WO 
Community members are the people who are working on/maintaining the system.

(But I think the Pirate logo would get the most attention).

my 2 cents,

Johnny Miller
Kahalawai Media Corp.
www.kahalawai.com



On Apr 13, 2012, at 10:20 AM, Daniele Corti wrote:

> Hi everyone!
> 
> I was reading the suggestions for the logo and I've got an idea!
> 
> Thanks to my brother that help me with photoshop!
> 
> 
> -- 
> Daniele Corti
> --
> I DON'T DoubleClick
> 
>  ___
> Do not post admin requests to the list. They will 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


Re: Foreign Keys

2012-04-13 Thread Kieran Kelleher
(1) Never use MyISAM - no transactional support means a failed 
editingContext.saveChanges() will not result in a rollback and semi-saved 
changes to the database. data integrity goes out the window. Use InnoDB 
 don't just convert live DB though, dump/import to a standby server, 
configure InnoDB first completely and actually do a little bit of studying the 
MySQL docs to understand how. Also, get a head start here: 
https://github.com/kierankelleher/gic-mysql-tools

(2) Don't create "real" foreign key constraints because MySQL does not support 
deferred constraints (which is the biggest negative of using MySQL). Instead 
just manually create indexes on every foreign key field. Otherwise your 
performance will deteriorate as tables sizes get larger.


On Apr 13, 2012, at 8:20 AM, Ron X wrote:

> sorry, we check - we used MyISAM - and it has not transactions and foreign 
> keys
> 
> 13 апреля 2012 г. 15:09 пользователь Pascal Robert  написал:
> 
> Le 2012-04-13 à 07:50, Ron X a écrit :
> 
> > hi community
> >
> > does EOF use foreign keys?
> >
> > we use in Migration java class:
> >
> > ERXMigrationTable oldCodeTable = database.newTableNamed("Code");
> >
> > oldCodeTable.addForeignKey("repTypeId", "rep_type", "_rowid");
> > oldCodeTable.addForeignKey("actionId", "action", "_rowid");
> >
> > but no foreign keys created.
> >
> > we scanned our 40G db and find NO foreign keys in it
> 
> Which database system?
> 
> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com
> 
> This email sent to kelleh...@gmail.com

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

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


Re: How do I switch the parent page after submitting AMD -- (Cast Exception?)

2012-04-13 Thread Chuck Hill
Check if installPatches() is getting called?  If not, figure out why not?

On 2012-04-13, at 1:38 PM, James Cicenia wrote:

> Here it is:
> 
> public class Application extends ERXApplication  implements  
> ERXResponseRewriter.Delegate
> {
> 
> Anything other thoughts?
> 
> James
> 
> On Apr 13, 2012, at 2:54 PM, Chuck Hill wrote:
> 
>> Not extending ERXApplication?  This should get setup when the app 
>> initializes:
>> 
>>  /**
>>   * Installs several bugfixes and enhancements to WODynamicElements. 
>> Sets the
>>   * Context class name to "er.extensions.ERXWOContext" if it is 
>> "WOContext".
>>   * Patches ERXWOForm, ERXWOFileUpload, ERXWOText to be used instead of
>>   * WOForm, WOFileUpload, WOText.
>>   */
>>  public void installPatches() {
>>  ERXPatcher.installPatches();
>>  if (contextClassName().equals("WOContext")) {
>>  if (ERXApplication.isWO54()) {
>>  setContextClassName("ERXWOContext54");
>>  }
>>  else {
>>  
>> setContextClassName(ERXWOContext.class.getName());
>>  }
>>  }
>> 
>> 
>> 
>> On 2012-04-13, at 12:20 PM, James Cicenia wrote:
>> 
>>> Hmmm, I must have set something wrong in Wonder. 
>>> This is an app I am converting. And I need submit to redirect to work.
>>> 
>>> 
>>> Here is the code:
>>> 
>>> public ERXRedirect myAjaxAction() {
>>>   ERXRedirect redirect = pageWithName(ERXRedirect.class);
>>>   redirect.setComponentToPage();
>>>   return redirect;
>>> }
>>> 
>>> 
>>> Here is the exception:
>>> 
>>> WARN  NSLog  - : Exception occurred while 
>>> handling request:
>>> java.lang.ClassCastException: com.webobjects.appserver.WOContext cannot be 
>>> cast to er.extensions.appserver.ERXWOContext
>>> [2012-4-13 14:17:42 CDT]  java.lang.ClassCastException: 
>>> com.webobjects.appserver.WOContext cannot be cast to 
>>> er.extensions.appserver.ERXWOContext
>>> at 
>>> er.extensions.appserver.ERXRedirect.appendToResponse(ERXRedirect.java:162)
>>> at 
>>> com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:1385)
>>> at 
>>> er.extensions.appserver.ERXSession.appendToResponse(ERXSession.java:552)
>>> at 
>>> com.webobjects.appserver.WOApplication.appendToResponse(WOApplication.java:1794)
>>> at 
>>> er.extensions.appserver.ERXApplication.appendToResponse(ERXApplication.java:1924)
>>> at 
>>> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:242)
>>> at 
>>> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:298)
>>> at 
>>> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
>>> at 
>>> com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
>>> at 
>>> com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
>>> at er.ajax.AjaxRequestHandler.handleRequest(AjaxRequestHandler.java:17)
>>> at 
>>> com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
>>> at 
>>> er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2029)
>>> at 
>>> er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1994)
>>> at 
>>> com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
>>> at 
>>> com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
>>> at java.lang.Thread.run(Thread.java:680)
>>> 
>>> 
>>> 
>>> Thoughts?
>>> Thanks
>>> James
>>> 
>>> On Apr 13, 2012, at 1:27 AM, Johann Werner wrote:
>>> 
 From where does this exception originate? ERXRedirect doesn't use 
 ERXWOContext nor does it cast to it (at least in my code). Have your tried 
 to set a breakpoint in the constructor of WOContext to see where it has 
 been created?
 
 jw
 
 
 Am 13.04.2012 um 03:36 schrieb James Cicenia:
 
> Ok -
> 
> The redirect crashes with a cast error:
> java.lang.ClassCastException: com.webobjects.appserver.WOContext cannot 
> be cast to er.extensions.appserver.ERXWOContext
> [2012-4-12 20:33:47 CDT]  java.lang.ClassCastException: 
> com.webobjects.appserver.WOContext cannot be cast to 
> er.extensions.appserver.ERXWOContext
> 
> Why would the appserver be WOContext? I thought ERXWOContext gets loaded 
> on startup?
> 
> Thanks
> James
> 
> 
> 
> On Apr 12, 2012, at 5:10 PM, Johann Werner wrote:
> 
>> ERXRedirect should work as it is. Alternatively you could try 
>> AjaxUtils.redirectTo() which does pretty the same.
>> 
>> public WO

Re: WOCommunity Logo - My proposal

2012-04-13 Thread James Cicenia
I do like the "Crown" concept

Maybe collapse the crown to the world and have community be a band around?



On Apr 13, 2012, at 3:20 PM, Daniele Corti wrote:

> Hi everyone!
> 
> I was reading the suggestions for the logo and I've got an idea!
> 
> Thanks to my brother that help me with photoshop!
> 
> 
> -- 
> Daniele Corti
> --
> I DON'T DoubleClick
> 
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/james%40jimijon.com
> 
> This email sent to ja...@jimijon.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: How do I switch the parent page after submitting AMD -- (Cast Exception?)

2012-04-13 Thread James Cicenia
Here it is:

public class Application extends ERXApplication  implements  
ERXResponseRewriter.Delegate
{

Anything other thoughts?

James

On Apr 13, 2012, at 2:54 PM, Chuck Hill wrote:

> Not extending ERXApplication?  This should get setup when the app initializes:
> 
>   /**
>* Installs several bugfixes and enhancements to WODynamicElements. 
> Sets the
>* Context class name to "er.extensions.ERXWOContext" if it is 
> "WOContext".
>* Patches ERXWOForm, ERXWOFileUpload, ERXWOText to be used instead of
>* WOForm, WOFileUpload, WOText.
>*/
>   public void installPatches() {
>   ERXPatcher.installPatches();
>   if (contextClassName().equals("WOContext")) {
>   if (ERXApplication.isWO54()) {
>   setContextClassName("ERXWOContext54");
>   }
>   else {
>   
> setContextClassName(ERXWOContext.class.getName());
>   }
>   }
> 
> 
> 
> On 2012-04-13, at 12:20 PM, James Cicenia wrote:
> 
>> Hmmm, I must have set something wrong in Wonder. 
>> This is an app I am converting. And I need submit to redirect to work.
>> 
>> 
>> Here is the code:
>> 
>>  public ERXRedirect myAjaxAction() {
>>ERXRedirect redirect = pageWithName(ERXRedirect.class);
>>redirect.setComponentToPage();
>>return redirect;
>>  }
>> 
>> 
>> Here is the exception:
>> 
>> WARN  NSLog  - : Exception occurred while 
>> handling request:
>> java.lang.ClassCastException: com.webobjects.appserver.WOContext cannot be 
>> cast to er.extensions.appserver.ERXWOContext
>> [2012-4-13 14:17:42 CDT]  java.lang.ClassCastException: 
>> com.webobjects.appserver.WOContext cannot be cast to 
>> er.extensions.appserver.ERXWOContext
>>  at 
>> er.extensions.appserver.ERXRedirect.appendToResponse(ERXRedirect.java:162)
>>  at 
>> com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:1385)
>>  at 
>> er.extensions.appserver.ERXSession.appendToResponse(ERXSession.java:552)
>>  at 
>> com.webobjects.appserver.WOApplication.appendToResponse(WOApplication.java:1794)
>>  at 
>> er.extensions.appserver.ERXApplication.appendToResponse(ERXApplication.java:1924)
>>  at 
>> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:242)
>>  at 
>> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:298)
>>  at 
>> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
>>  at 
>> com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
>>  at 
>> com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
>>  at er.ajax.AjaxRequestHandler.handleRequest(AjaxRequestHandler.java:17)
>>  at 
>> com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
>>  at 
>> er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2029)
>>  at 
>> er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1994)
>>  at 
>> com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
>>  at 
>> com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
>>  at java.lang.Thread.run(Thread.java:680)
>> 
>> 
>> 
>> Thoughts?
>> Thanks
>> James
>> 
>> On Apr 13, 2012, at 1:27 AM, Johann Werner wrote:
>> 
>>> From where does this exception originate? ERXRedirect doesn't use 
>>> ERXWOContext nor does it cast to it (at least in my code). Have your tried 
>>> to set a breakpoint in the constructor of WOContext to see where it has 
>>> been created?
>>> 
>>> jw
>>> 
>>> 
>>> Am 13.04.2012 um 03:36 schrieb James Cicenia:
>>> 
 Ok -
 
 The redirect crashes with a cast error:
 java.lang.ClassCastException: com.webobjects.appserver.WOContext cannot be 
 cast to er.extensions.appserver.ERXWOContext
 [2012-4-12 20:33:47 CDT]  java.lang.ClassCastException: 
 com.webobjects.appserver.WOContext cannot be cast to 
 er.extensions.appserver.ERXWOContext
 
 Why would the appserver be WOContext? I thought ERXWOContext gets loaded 
 on startup?
 
 Thanks
 James
 
 
 
 On Apr 12, 2012, at 5:10 PM, Johann Werner wrote:
 
> ERXRedirect should work as it is. Alternatively you could try 
> AjaxUtils.redirectTo() which does pretty the same.
> 
> public WOActionResults myAjaxAction() {
>  ERXRedirect redirect = pageWithName(ERXRedirect.class);
>  redirect.setComponent(pageWithName(MyPageToGo.class));
>  return redirect;
> }
> 
> 
> Am 12.04.2012 um 23:47 schri

Re: How do I switch the parent page after submitting AMD -- (Cast Exception?)

2012-04-13 Thread Chuck Hill
Not extending ERXApplication?  This should get setup when the app initializes:

/**
 * Installs several bugfixes and enhancements to WODynamicElements. 
Sets the
 * Context class name to "er.extensions.ERXWOContext" if it is 
"WOContext".
 * Patches ERXWOForm, ERXWOFileUpload, ERXWOText to be used instead of
 * WOForm, WOFileUpload, WOText.
 */
public void installPatches() {
ERXPatcher.installPatches();
if (contextClassName().equals("WOContext")) {
if (ERXApplication.isWO54()) {
setContextClassName("ERXWOContext54");
}
else {

setContextClassName(ERXWOContext.class.getName());
}
}



On 2012-04-13, at 12:20 PM, James Cicenia wrote:

> Hmmm, I must have set something wrong in Wonder. 
> This is an app I am converting. And I need submit to redirect to work.
> 
> 
> Here is the code:
> 
>   public ERXRedirect myAjaxAction() {
> ERXRedirect redirect = pageWithName(ERXRedirect.class);
> redirect.setComponentToPage();
> return redirect;
>   }
> 
> 
> Here is the exception:
> 
> WARN  NSLog  - : Exception occurred while 
> handling request:
> java.lang.ClassCastException: com.webobjects.appserver.WOContext cannot be 
> cast to er.extensions.appserver.ERXWOContext
> [2012-4-13 14:17:42 CDT]  java.lang.ClassCastException: 
> com.webobjects.appserver.WOContext cannot be cast to 
> er.extensions.appserver.ERXWOContext
>   at 
> er.extensions.appserver.ERXRedirect.appendToResponse(ERXRedirect.java:162)
>   at 
> com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:1385)
>   at 
> er.extensions.appserver.ERXSession.appendToResponse(ERXSession.java:552)
>   at 
> com.webobjects.appserver.WOApplication.appendToResponse(WOApplication.java:1794)
>   at 
> er.extensions.appserver.ERXApplication.appendToResponse(ERXApplication.java:1924)
>   at 
> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:242)
>   at 
> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:298)
>   at 
> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
>   at 
> com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
>   at 
> com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
>   at er.ajax.AjaxRequestHandler.handleRequest(AjaxRequestHandler.java:17)
>   at 
> com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
>   at 
> er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2029)
>   at 
> er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1994)
>   at 
> com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
>   at 
> com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
>   at java.lang.Thread.run(Thread.java:680)
> 
> 
> 
> Thoughts?
> Thanks
> James
> 
> On Apr 13, 2012, at 1:27 AM, Johann Werner wrote:
> 
>> From where does this exception originate? ERXRedirect doesn't use 
>> ERXWOContext nor does it cast to it (at least in my code). Have your tried 
>> to set a breakpoint in the constructor of WOContext to see where it has been 
>> created?
>> 
>> jw
>> 
>> 
>> Am 13.04.2012 um 03:36 schrieb James Cicenia:
>> 
>>> Ok -
>>> 
>>> The redirect crashes with a cast error:
>>> java.lang.ClassCastException: com.webobjects.appserver.WOContext cannot be 
>>> cast to er.extensions.appserver.ERXWOContext
>>> [2012-4-12 20:33:47 CDT]  java.lang.ClassCastException: 
>>> com.webobjects.appserver.WOContext cannot be cast to 
>>> er.extensions.appserver.ERXWOContext
>>> 
>>> Why would the appserver be WOContext? I thought ERXWOContext gets loaded on 
>>> startup?
>>> 
>>> Thanks
>>> James
>>> 
>>> 
>>> 
>>> On Apr 12, 2012, at 5:10 PM, Johann Werner wrote:
>>> 
 ERXRedirect should work as it is. Alternatively you could try 
 AjaxUtils.redirectTo() which does pretty the same.
 
 public WOActionResults myAjaxAction() {
   ERXRedirect redirect = pageWithName(ERXRedirect.class);
   redirect.setComponent(pageWithName(MyPageToGo.class));
   return redirect;
 }
 
 
 Am 12.04.2012 um 23:47 schrieb James Cicenia:
 
> I don't see any isJavascriptRedirectEnabled.
> 
> Am I supposed to anything special in the ModalBox besides just the action 
> binding in Submit?
> 
> Thanks
> 
> James Cicenia 
> cell: 773.398.4649
> 
> 
> 

Re: How do I switch the parent page after submitting AMD -- (Cast Exception?)

2012-04-13 Thread James Cicenia
Hmmm, I must have set something wrong in Wonder. 
This is an app I am converting. And I need submit to redirect to work.


Here is the code:

public ERXRedirect myAjaxAction() {
  ERXRedirect redirect = pageWithName(ERXRedirect.class);
  redirect.setComponentToPage();
  return redirect;
}


Here is the exception:

WARN  NSLog  - : Exception occurred while handling 
request:
java.lang.ClassCastException: com.webobjects.appserver.WOContext cannot be cast 
to er.extensions.appserver.ERXWOContext
[2012-4-13 14:17:42 CDT]  java.lang.ClassCastException: 
com.webobjects.appserver.WOContext cannot be cast to 
er.extensions.appserver.ERXWOContext
at 
er.extensions.appserver.ERXRedirect.appendToResponse(ERXRedirect.java:162)
at 
com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:1385)
at 
er.extensions.appserver.ERXSession.appendToResponse(ERXSession.java:552)
at 
com.webobjects.appserver.WOApplication.appendToResponse(WOApplication.java:1794)
at 
er.extensions.appserver.ERXApplication.appendToResponse(ERXApplication.java:1924)
at 
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:242)
at 
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:298)
at 
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
at 
com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
at 
com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
at er.ajax.AjaxRequestHandler.handleRequest(AjaxRequestHandler.java:17)
at 
com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
at 
er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2029)
at 
er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1994)
at 
com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at 
com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
at java.lang.Thread.run(Thread.java:680)



Thoughts?
Thanks
James

On Apr 13, 2012, at 1:27 AM, Johann Werner wrote:

> From where does this exception originate? ERXRedirect doesn't use 
> ERXWOContext nor does it cast to it (at least in my code). Have your tried to 
> set a breakpoint in the constructor of WOContext to see where it has been 
> created?
> 
> jw
> 
> 
> Am 13.04.2012 um 03:36 schrieb James Cicenia:
> 
>> Ok -
>> 
>> The redirect crashes with a cast error:
>> java.lang.ClassCastException: com.webobjects.appserver.WOContext cannot be 
>> cast to er.extensions.appserver.ERXWOContext
>> [2012-4-12 20:33:47 CDT]  java.lang.ClassCastException: 
>> com.webobjects.appserver.WOContext cannot be cast to 
>> er.extensions.appserver.ERXWOContext
>> 
>> Why would the appserver be WOContext? I thought ERXWOContext gets loaded on 
>> startup?
>> 
>> Thanks
>> James
>> 
>> 
>> 
>> On Apr 12, 2012, at 5:10 PM, Johann Werner wrote:
>> 
>>> ERXRedirect should work as it is. Alternatively you could try 
>>> AjaxUtils.redirectTo() which does pretty the same.
>>> 
>>> public WOActionResults myAjaxAction() {
>>>   ERXRedirect redirect = pageWithName(ERXRedirect.class);
>>>   redirect.setComponent(pageWithName(MyPageToGo.class));
>>>   return redirect;
>>> }
>>> 
>>> 
>>> Am 12.04.2012 um 23:47 schrieb James Cicenia:
>>> 
 I don't see any isJavascriptRedirectEnabled.
 
 Am I supposed to anything special in the ModalBox besides just the action 
 binding in Submit?
 
 Thanks
 
 James Cicenia 
 cell: 773.398.4649
 
 
 
 On Apr 12, 2012, at 2:41 PM, David LeBer wrote:
 
> I think you need to set: isJavascriptRedirectEnabled to true on the 
> ERXRedirect.
> 
> D
> 
> --
> David LeBer
> Codeferous Software
> 
> On 2012-04-12, at 3:16 PM, James Cicenia wrote:
> 
>> Hmmm, i am getting no submission still.
>> 
>> I launch a standard AMD from AMDO.
>> The following is my AjaxSubmitButton bindings:
>> 
>> SubmitBtn: AjaxSubmitButton {
>>  action = saveAndSubmitChanges;
>>  value = "Save";
>>  name = "SaveAndSubmit";
>>  onClick = "Element.show('busy1')";
>>  id = "wiz-submit";
>>  onComplete = "function(x){Element.hide('busy1')}";
>> }
>> 
>> 
>> And this is the basic action method:
>> 
>>  CharterEdit nextPage = (CharterEdit) 
>> pageWithName("CharterEdit");
>>  EOEditingContext peerEC = ERXEC.newEditingContext();
>>  nextPage.setEditingContext(peerEC);
>>  

Re: WOCOmmunity Logo

2012-04-13 Thread Louis Demers

On 2012-04-13, at 12:48 , John Huss wrote:

> On Fri, Apr 13, 2012 at 10:13 AM, Amedeo Mantica  wrote:
> New proposal
> 
> 
> 
> 
> is a W, but rapresent also three people
> 
> 
> Meaning WO only has about 3 users left? 

yeah... and notice how tightly they are holding on to each others...
> 
> John
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/louisdemers%40mac.com
> 
> This email sent to louisdem...@mac.com

Louis Demers eng.
www.obzerv.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: SQL

2012-04-13 Thread Larry Mills-Gahl


On Apr 13, 2012, at 7:07 AM, Ron X wrote:

> thank you very much! very good!
> this method considered deprecated - is there non-deprecated method?

EOUtilities.rawRowsForSQL(EOEditingContext ec, String modelName, String 
sqlString, NSArray keys) 


rawRowsForSQL

public static NSArray rawRowsForSQL(EOEditingContext ec,
String modelName,
String sqlString,
NSArray keys)
Evaluates the specified SQL and returns the resulting raw rows.


Parameters:
ec - an EOEditingContext
modelName - name of the EOModel to use
sqlString - the query string in SQL syntax
keys - array of Strings corresponding to the SELECT list; these will be used as 
the keys in the result dictionaries; use null for default naming
Returns:
matching raw rows (an NSArray of NSDictionaries)
Since:
5.2.2

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

2012-04-13 Thread David Holt
Are you using a new version of Wonder? Is something up with your 
ERCoolComponents framework?

David


On 2012-04-13, at 11:29 AM, Andries Brink wrote:

> Hi all
> 
> I went to Github and got the Zipped SImpleBlog app. and imported into Eclipse.
> 
> I really like what David Holt did with this tutorial as it does speak to what 
> we are trying to do.
> 
> However - I just cannot get it to run: Log output as follows:
> 
> [2012-4-13 18:17:3 SAST]  Initialized : er.extensions.ERXExtensions
> [2012-4-13 18:17:4 SAST]  Couldn't load properties file: 
> /Users/andriesbrink/WebObjects.properties at path: /Users/andriesbrink
> Apr 13 20:17:06 N/A[N/A] INFO  org.apache.log4j.Logger  - Updated the logging 
> configuration with the current system properties.
> Apr 13 20:17:06 N/A[N/A] INFO  org.apache.log4j.Logger  - Updated the logging 
> configuration with the current system properties.
> Apr 13 20:17:06 N/A[N/A] WARN  NSLog  - Couldn't load properties file: 
> /Users/andriesbrink/WebObjects.properties at path: /Users/andriesbrink
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - Initialized : 
> er.prototypes.ERPrototypes
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - Initialized : 
> er.directtoweb.ERDirectToWeb
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - Initialized : er.ajax.Ajax
> Apr 13 20:17:06 N/A[N/A] WARN  NSLog  - Principal class 
> 'er.coolcomponents.ERCoolComponents' not found in bundle ERCoolComponents
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOMaxIOBufferSize=8196
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOWorkerThreadCountMin=16
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOSocketMonitorSleepTime=50
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WODirectConnectEnabled=true
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOIncludeCommentsInResponse=false
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOWorkerThreadCount=8
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - 
> WOAdaptorURL=http://127.0.0.1/cgi-bin/WebObjects
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOLaunchdEnabled=false
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOHost=127.0.0.1
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOIDE=WOLips
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WODebuggingEnabled=true
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOListenQueueSize=128
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOMissingResourceSearchEnabled=true
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - 
> WOApplicationClassName=com.wowodc.app.Application
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - 
> WOSessionStoreClassName=WOServerSessionStore
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOContextClassName=WOContext
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOCachingEnabled=false
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOAcceptMalformedCookies=false
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - NSProjectSearchPath=("..")
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOMonitorEnabled=false
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOAllowRapidTurnaround=true
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOGenerateWSDL=true
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOWorkerThreadCountMax=256
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - 
> WOAllowsConcurrentRequestHandling=false
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOAdaptor=WODefaultAdaptor
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOSessionTimeOut=3600
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOMaxSocketIdleTime=18
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WODefaultUndoStackLimit=10
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOAutoOpenClientApplication=true
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOAutoOpenInBrowser=true
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOApplicationBaseURL=/WebObjects
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOMaxHeaders=200
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOLifebeatEnabled=true
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOAllowsCacheControlHeader=true
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOSMTPHost=smtp
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - 
> WOFrameworksBaseURL=/WebObjects/Frameworks
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOAdditionalAdaptors=()
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOStatisticsStoreSessionMax=50
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOLifebeatDestinationPort=1085
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOPort=-1
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOLifebeatInterval=30
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOSocketCacheSize=100
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - 
> WOUserDirectory=/Users/andriesbrink/Documents/workspace/SimpleBlog_Orig
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WODisplayExceptionPages=true
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - 
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WebObjects version = 5.4
> Apr 13 20:17:06 SimpleBlog[N/A] DEBUG NSLog  - Created adaptor of class 
> WODefaultAdaptor on port 59802 and address localhost/127.0.0.1 with 
> WOWorkerThread minimum of 16 and maximum of 256
> Apr 13 20:17:06 SimpleBlog[59802] WARN  NSLog  - A fatal exception occurred: 
> null
> [2012-4-13 18:17:6 SAST]  java.lang.Excepti

Re: SimpleBlog not launching

2012-04-13 Thread Pascal Robert
Hi Andries,

I saw this:

> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WebObjects version = 5.4

How did you install WebObjects? It should say 5.4.3 there. If you really 
installed WO 5.4.0, you need to upgrade to WO 5.4.3.

> Hi all
> 
> I went to Github and got the Zipped SImpleBlog app. and imported into Eclipse.
> 
> I really like what David Holt did with this tutorial as it does speak to what 
> we are trying to do.
> 
> However - I just cannot get it to run: Log output as follows:
> 
> [2012-4-13 18:17:3 SAST]  Initialized : er.extensions.ERXExtensions
> [2012-4-13 18:17:4 SAST]  Couldn't load properties file: 
> /Users/andriesbrink/WebObjects.properties at path: /Users/andriesbrink
> Apr 13 20:17:06 N/A[N/A] INFO  org.apache.log4j.Logger  - Updated the logging 
> configuration with the current system properties.
> Apr 13 20:17:06 N/A[N/A] INFO  org.apache.log4j.Logger  - Updated the logging 
> configuration with the current system properties.
> Apr 13 20:17:06 N/A[N/A] WARN  NSLog  - Couldn't load properties file: 
> /Users/andriesbrink/WebObjects.properties at path: /Users/andriesbrink
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - Initialized : 
> er.prototypes.ERPrototypes
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - Initialized : 
> er.directtoweb.ERDirectToWeb
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - Initialized : er.ajax.Ajax
> Apr 13 20:17:06 N/A[N/A] WARN  NSLog  - Principal class 
> 'er.coolcomponents.ERCoolComponents' not found in bundle ERCoolComponents
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOMaxIOBufferSize=8196
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOWorkerThreadCountMin=16
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOSocketMonitorSleepTime=50
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WODirectConnectEnabled=true
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOIncludeCommentsInResponse=false
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOWorkerThreadCount=8
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - 
> WOAdaptorURL=http://127.0.0.1/cgi-bin/WebObjects
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOLaunchdEnabled=false
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOHost=127.0.0.1
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOIDE=WOLips
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WODebuggingEnabled=true
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOListenQueueSize=128
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOMissingResourceSearchEnabled=true
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - 
> WOApplicationClassName=com.wowodc.app.Application
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - 
> WOSessionStoreClassName=WOServerSessionStore
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOContextClassName=WOContext
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOCachingEnabled=false
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOAcceptMalformedCookies=false
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - NSProjectSearchPath=("..")
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOMonitorEnabled=false
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOAllowRapidTurnaround=true
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOGenerateWSDL=true
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOWorkerThreadCountMax=256
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - 
> WOAllowsConcurrentRequestHandling=false
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOAdaptor=WODefaultAdaptor
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOSessionTimeOut=3600
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOMaxSocketIdleTime=18
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WODefaultUndoStackLimit=10
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOAutoOpenClientApplication=true
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOAutoOpenInBrowser=true
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOApplicationBaseURL=/WebObjects
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOMaxHeaders=200
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOLifebeatEnabled=true
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOAllowsCacheControlHeader=true
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOSMTPHost=smtp
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - 
> WOFrameworksBaseURL=/WebObjects/Frameworks
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOAdditionalAdaptors=()
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOStatisticsStoreSessionMax=50
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOLifebeatDestinationPort=1085
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOPort=-1
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOLifebeatInterval=30
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOSocketCacheSize=100
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - 
> WOUserDirectory=/Users/andriesbrink/Documents/workspace/SimpleBlog_Orig
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WODisplayExceptionPages=true
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - 
> Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WebObjects version = 5.4
> Apr 13 20:17:06 SimpleBlog[N/A] DEBUG NSLog  - Created adaptor of class 
> WODefaultAdaptor on port 59802 and address localhost/127.0.0.1 with 
> WOWorkerThread minimum of 16 and maximum of 256
> Apr 13 20:17:06 SimpleBlog[59802] WARN  NSLog  - A fatal exce

SimpleBlog not launching

2012-04-13 Thread Andries Brink
Hi all

I went to Github and got the Zipped SImpleBlog app. and imported into Eclipse.

I really like what David Holt did with this tutorial as it does speak to what 
we are trying to do.

However - I just cannot get it to run: Log output as follows:

[2012-4-13 18:17:3 SAST]  Initialized : er.extensions.ERXExtensions
[2012-4-13 18:17:4 SAST]  Couldn't load properties file: 
/Users/andriesbrink/WebObjects.properties at path: /Users/andriesbrink
Apr 13 20:17:06 N/A[N/A] INFO  org.apache.log4j.Logger  - Updated the logging 
configuration with the current system properties.
Apr 13 20:17:06 N/A[N/A] INFO  org.apache.log4j.Logger  - Updated the logging 
configuration with the current system properties.
Apr 13 20:17:06 N/A[N/A] WARN  NSLog  - Couldn't load properties file: 
/Users/andriesbrink/WebObjects.properties at path: /Users/andriesbrink
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - Initialized : er.prototypes.ERPrototypes
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - Initialized : 
er.directtoweb.ERDirectToWeb
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - Initialized : er.ajax.Ajax
Apr 13 20:17:06 N/A[N/A] WARN  NSLog  - Principal class 
'er.coolcomponents.ERCoolComponents' not found in bundle ERCoolComponents
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOMaxIOBufferSize=8196
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOWorkerThreadCountMin=16
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOSocketMonitorSleepTime=50
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WODirectConnectEnabled=true
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOIncludeCommentsInResponse=false
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOWorkerThreadCount=8
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - 
WOAdaptorURL=http://127.0.0.1/cgi-bin/WebObjects
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOLaunchdEnabled=false
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOHost=127.0.0.1
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOIDE=WOLips
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WODebuggingEnabled=true
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOListenQueueSize=128
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOMissingResourceSearchEnabled=true
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - 
WOApplicationClassName=com.wowodc.app.Application
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - 
WOSessionStoreClassName=WOServerSessionStore
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOContextClassName=WOContext
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOCachingEnabled=false
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOAcceptMalformedCookies=false
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - NSProjectSearchPath=("..")
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOMonitorEnabled=false
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOAllowRapidTurnaround=true
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOGenerateWSDL=true
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOWorkerThreadCountMax=256
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOAllowsConcurrentRequestHandling=false
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOAdaptor=WODefaultAdaptor
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOSessionTimeOut=3600
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOMaxSocketIdleTime=18
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WODefaultUndoStackLimit=10
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOAutoOpenClientApplication=true
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOAutoOpenInBrowser=true
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOApplicationBaseURL=/WebObjects
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOMaxHeaders=200
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOLifebeatEnabled=true
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOAllowsCacheControlHeader=true
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOSMTPHost=smtp
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - 
WOFrameworksBaseURL=/WebObjects/Frameworks
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOAdditionalAdaptors=()
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOStatisticsStoreSessionMax=50
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOLifebeatDestinationPort=1085
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOPort=-1
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOLifebeatInterval=30
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WOSocketCacheSize=100
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - 
WOUserDirectory=/Users/andriesbrink/Documents/workspace/SimpleBlog_Orig
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WODisplayExceptionPages=true
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - 
Apr 13 20:17:06 N/A[N/A] DEBUG NSLog  - WebObjects version = 5.4
Apr 13 20:17:06 SimpleBlog[N/A] DEBUG NSLog  - Created adaptor of class 
WODefaultAdaptor on port 59802 and address localhost/127.0.0.1 with 
WOWorkerThread minimum of 16 and maximum of 256
Apr 13 20:17:06 SimpleBlog[59802] WARN  NSLog  - A fatal exception occurred: 
null
[2012-4-13 18:17:6 SAST]  java.lang.ExceptionInInitializerError
at 
er.extensions.appserver.ERXApplication.createResourceManager(ERXApplication.java:1030)
at com.webobjects.appserver.WOApplication.(WOApplication.java:835)
at 
er.extensions.appserver.ajax.ERXAjaxApplication.(ERXAjaxApplication.java:24)
at 
er.extensions.appserver.E

Re: SQL

2012-04-13 Thread Larry Mills-Gahl

It may not be the level of database independence that ERXEOControlUtilities 
offers, but if your dealing with SQL for the foreseeable future it should be 
pretty safe to do something like:

EOUtilities.rawRowsForSQL(ERXEC.newEditingContext(), "MyModelName", "SELECT 
COUNT(somefield), SUM(somefield) FROM sometable WHERE somefield IS NOT NULL" , 
new String[] {"count", "sum"}) ;

Of course I have no idea what the specifics of your query dictate and this may 
be too simple to achieve your goal, but if you have a clear idea of the sql 
that you need, you may be able to see how a structure of qualifiers can be 
arranged to satisfy your need. 

Larry Mills-Gahl
l...@webfarm.com



On Apr 12, 2012, at 4:38 AM, Ron X wrote:

> but how can i do  COUNT() and SUM() in ONE query?
> aggregateFunctionWithQualifier - name of the function - just one (count/sum), 
> but i need two (count & sum) 
> 
> 
> 11 апреля 2012 г. 19:17 пользователь Ramsey Gurley  
> написал:
> ERXEOControlUtilities.aggregateFunctionWithQualifier
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/lmg%40webfarm.com
> 
> This email sent to l...@webfarm.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: [ANN] WOInject 1.0

2012-04-13 Thread Henrique Prange
Hi Ron,

The Application class is also injected (except constructor injection). You can 
use the @Inject annotation:

public class Application extends InjectableApplication {
public static void main(String[] argv) {
WOInject.init("com.legalsounds.Application", argv);
}

@Inject @Facebook Socialable socialPerson;

public Application() {
super();

//The socialPerson field is already injected here
socialPerson.anyMethod();
}
}

You should avoid referencing the injector() method directly in your code. That 
is the purpose of WOInject: to abstract the injection mechanism.

There are more comments. See below... :)

On 13/04/2012, at 04:55, Ron X wrote:

> hi
> 
> public class Application extends InjectableApplication {
> private static Logger log = Logger.getLogger(Application.class);
> 
> public static void main(String[] argv) {
> WOInject.init("com.legalsounds.Application", argv);
> }
> 
> @Facebook Socialable socialPerson;
> 
> public Application() {
> 
> Injector injector = injector();
> socialPerson = injector.getInstance(Socialable.class);
> ..fails at this line
> 

If you still want to use the injector (not recommended), you have to ask for an 
instance based on the configuration of your bindings. You have configured the 
Sociable class to be instantiated as a FacebookPerson when annotated with the 
Facebook annotation. You have to ask for this instance like this:

injector().getInstance(Key.get(Sociable.class, Facebook.class));

This call will return an instance of FacebookPerson class.

Again, the @Inject annotation give you a simple and clear solution, and you 
don't have to reference the injector() directly. It just works.

> @Override
> protected Module[] modules() {
> return new Module[] { new SocialModule() };
> }
> }
> 
> public class SocialModule extends AbstractModule {
> 
> @Override
> protected void configure() {
> 
> bind(Socialable.class).annotatedWith(Facebook.class).to(FacebookPerson.class).in(WOScopes.SESSION);
> 

This binding declaration is correct. You should preferably use the 
WOSessionScoped.class instead of WOScopes.SESSION (WOScopes visibility will 
probably be made private in the next version).

bind(Socialable.class).annotatedWith(Facebook.class).to(FacebookPerson.class).in(WOSessionScoped.class);

This means Guice will create one FacebookPerson instance per WOSession. The 
problem is you have injected the Socialable in the Application class. The 
Application is kind of a Singleton which means there is only one Application 
instance per application. Injecting an object of a narrower scope in the 
Application class is usually an error. If you keep this binding configuration 
and inject the Socialable in the Application class, Guice should throw an 
OutOfScopeException. Take a look at the Scopes section [1] of the Guice's User 
Guide for more information. 

[1]http://code.google.com/p/google-guice/wiki/Scopes

Cheers,

Henrique
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/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: threads and GIDs and EC's … oh, my

2012-04-13 Thread Ricardo J. Parada

Kieran has an excellent presentation and example in Wonder under 
Examples/Misc/BackgroundTasks.
Video: http://www.wocommunity.org/podcasts/wowodc/2011/BackgroundTasks.mov


On Apr 11, 2012, at 11:52 AM, Larry Mills-Gahl wrote:

> I understand that passing EOs between threads is a bad idea, so I'm passing 
> GIDs into the Callable.
> 
> My sessions have a parent editing context that contains a connection 
> dictionary that is set based on the logged in user (and some session state). 
> (The session modifies the connection dictionary and closes the channels and 
> calls connectWithModelNamed()) 
> 
> Do I have to initiate this connection again in the thread or is there a way 
> to use the registered channels that already exist. (The thread is not 
> modifying any EOs... they are just being reported on and rendered)
> 
> 
> Right now, the process in the thread is:
>   
>   ERXEC.newEditingContext()
>   close channels
>   connectWithModelNamed (and connection dictionary info passed into the 
> thread constructor)
>   ec.faultWithGlobalID to get necessary EOs
> 
> Is there a better way to do this?
> 
> 
> Larry Mills-Gahl
> l...@webfarm.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/rparada%40mac.com
> 
> This email sent to rpar...@mac.com

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

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


Re: WOCOmmunity Logo

2012-04-13 Thread Ramsey Gurley

On Apr 13, 2012, at 9:48 AM, John Huss wrote:

> On Fri, Apr 13, 2012 at 10:13 AM, Amedeo Mantica  wrote:
> New proposal
> 
> 
> 
> 
> is a W, but rapresent also three people
> 
> 
> Meaning WO only has about 3 users left? 
> 
> John

There are far more jobs in the food service industry than in farming. 
Therefore, farmers should abandon their craft for food service!

;-)

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

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


Re: WOCOmmunity Logo

2012-04-13 Thread Chuck Hill
Two actually, one is an inflatable doll.


On 2012-04-13, at 9:48 AM, John Huss wrote:

> On Fri, Apr 13, 2012 at 10:13 AM, Amedeo Mantica  wrote:
> New proposal
> 
> 
> 
> 
> is a W, but rapresent also three people
> 
> 
> Meaning WO only has about 3 users left? 
> 
> John
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
> 
> This email sent to ch...@global-village.net

-- 
Chuck Hill Senior Consultant / VP Development

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










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: WOCOmmunity Logo

2012-04-13 Thread John Huss
On Fri, Apr 13, 2012 at 10:13 AM, Amedeo Mantica wrote:

> New proposal
>
>
>
> is a W, but rapresent also three people
>


Meaning WO only has about 3 users left?

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

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


Re: WOCOmmunity Logo

2012-04-13 Thread David LeBer
Nice, I like it.

D

--
David LeBer
Codeferous Software

On 2012-04-13, at 11:13 AM, Amedeo Mantica wrote:

> New proposal
> 
> 
> 
> 
> is a W, but rapresent also three people
> 
> Amedeo
> ___
> Do not post admin requests to the list. They will 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: WOCOmmunity Logo

2012-04-13 Thread Jérémy DE ROYER [INGENCYS]
I miss the gears and the earth.

Jérémy

Le 13 avr. 2012 à 17:13, Amedeo Mantica a écrit :

> New proposal
> 
> 
> 
> 
> is a W, but rapresent also three people
> 
> Amedeo
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/jeremy.deroyer%40ingencys.net
> 
> This email sent to jeremy.dero...@ingencys.net


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

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

Re: [ANN] WOInject 1.0

2012-04-13 Thread Farrukh Ijaz
This (WOIject) is an excellent framework and I feel the community should 
collectively sponsor Henirique to come and present it to WOWODC :)

Good work Henrique!

Farrukh

On 2012-04-11, at 10:35 AM, ISHIMOTO Ken wrote:

> In the case you can't come :
> 
> Maybe we can have a Session with your Video.^^
> 
> I know it is very expensive to Canada. 
> I was thinking this time to save Money also, but I read about the EO Bootcamp 
> and decide to go.
> Last year I got payed from a Company, but this Time I have to pay everything 
> myself, and it's a lot
> of Money^^
> 
> Ken
> 
> 
> 
> On 2012/04/04, at 19:11, Henrique Prange wrote:
> 
>> Hi Paul,
>> 
>> Don't get me wrong. I really appreciate the interest in WOInject. It is an 
>> honor for me to talk on WOWODC again. I'm working hard here to make it 
>> happen. However, I'm still not sure if I'll be able to afford the trip to 
>> Canada. :( So, I don't want to create expectations for something I may not 
>> be able to deliver.
>> 
>> Cheers,
>> 
>> Henrique
>> 
>> On 04/04/2012, at 02:02, Paul Hoadley wrote:
>> 
>>> On 15/03/2012, at 5:04 PM, Johann Werner wrote:
>>> 
 Am 15.03.2012 um 07:12 schrieb ISHIMOTO Ken:
 
> Would be nice to see that at WOWODC in Action.
 
 +1
>>> 
>>> Hey, Henrique, I didn't see a response to this―any chance you'll be at 
>>> WOWODC 12 and in the mood for a talk/demo/workshop on WOInject?  Even 
>>> informally?
>>> 
>>> 
>>> -- 
>>> Paul.
>>> 
>>> http://logicsquad.net/
>>> 
>>> 
>>> 
>>> ___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/hprange%40gmail.com
>>> 
>>> This email sent to hpra...@gmail.com
>> 
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/ken%40ksroom.com
>> 
>> This email sent to k...@ksroom.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/farrukh.ijaz%40fuegodigitalmedia.com
> 
> This email sent to farrukh.i...@fuegodigitalmedia.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: limiting All Queries in D2W

2012-04-13 Thread Anjo Krank
Much easier to use:

 => extraRestrictingQualifier = {
  "band" = "session.user.band"; 
} [ERDDelayedExtraQualifierAssignment]

QueryPage:
public EODataSource queryDataSource() {
EODataSource ds = null;
if(ds == null) {
ds = super.queryDataSource();
}
if (ds != null && (ds instanceof EODatabaseDataSource)) {
EOFetchSpecification fs = 
((EODatabaseDataSource)ds).fetchSpecification();
EOQualifier q = fs.qualifier();
EOQualifier extraQualifier = 
(EOQualifier)d2wContext().valueForKey("extraRestrictingQualifier");

if(q != null && extraQualifier != null) {
q = new EOAndQualifier(new NSArray(new Object[] {q, 
extraQualifier}));
} else if(extraQualifier != null) {
q = extraQualifier;
}
fs.setQualifier(q);
fs.setUsesDistinct(true);
}
return ds;
}

Am 13.04.2012 um 16:02 schrieb David LeBer:

> Ted,
> 
> You can look at restrictingFetchSpecification for your list pages, or 
> queryDataSourceDelegate to restrict in the query.
> 
> For the latter here is an example from one our our apps.
> 
> 100 : (entity.name = 'Song' and session.currentUser.isAdmin = 0) => 
> queryDataSourceDelegate = 
> "com.alignsoft.rdr.admin.datasource.SongsForCurrentBandQueryDataSource" 
> [ERDDelayedObjectCreationAssignment]
> 
> public class SongsForCurrentBandQueryDataSource implements 
> ERDQueryDataSourceDelegateInterface {
>   
>   public EODataSource queryDataSource(ERD2WQueryPage sender) {
>   
>   EODataSource ds = sender.dataSource();
>   
>   if (ds == null || !(ds instanceof EODatabaseDataSource)) {
>   ds = new 
> EODatabaseDataSource(sender.session().defaultEditingContext(), 
> sender.entity().name());
>   sender.setDataSource(ds);
>   }
> 
>   EOFetchSpecification fs = ((EODatabaseDataSource) 
> ds).fetchSpecification();
>   fs.setQualifier(qualifierFromSender(sender));
>   fs.setIsDeep(sender.isDeep());
>   fs.setUsesDistinct(sender.usesDistinct());
>   
> fs.setRefreshesRefetchedObjects(sender.refreshRefetchedObjects());
> 
>   int limit = sender.fetchLimit();
>   if (limit != 0) {
>   fs.setFetchLimit(limit);
>   }
> 
>   NSArray prefetchingRelationshipKeyPaths = 
> sender.prefetchingRelationshipKeyPaths();
>   if (prefetchingRelationshipKeyPaths != null && 
> prefetchingRelationshipKeyPaths.count() > 0) {
>   
> fs.setPrefetchingRelationshipKeyPaths(prefetchingRelationshipKeyPaths);
>   }
>   return ds;
>   }
> 
>   private EOQualifier qualifierFromSender(ERD2WQueryPage sender) {
>   EOQualifier q = sender.qualifier();
>   Band b = ((Session)sender.session()).currentUser().band();
>   q = ERXQ.and(ERXQ.equals("album.band", b), q);
>   return q;
>   }
> }
> 
> --
> David LeBer
> Codeferous Software
> 
> On 2012-04-13, at 7:34 AM, Theodore Petrosky wrote:
> 
>> I don't even know where to begin. I have a D2W app that manages Briefs. A 
>> Brief is created by a User. (one to one relation)
>> 
>> I can easily create a tab that calls a method to limit the resultant list to 
>> only those Briefs created by the current User. However, where do I 'fix' the 
>> search area.
>> 
>> I mean if the current User is Sally, she will search for Brief(s) that the 
>> Objective attribute contains the word 'Iceman'. But I want all queries to 
>> include  'and user = 'Sally'.
>> 
>> Sally should not see Bob's Briefs. I am trying to embrace D2W, and (for me) 
>> this would be trivial in a Wonder app.
>> 
>> Is there a property for this?
>> 
>> Ted
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com
>> 
>> This email sent to dleber_wo...@codeferous.com
> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/anjo%40krank.net
> 
> This email sent to a...@krank.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: WO 2012 by Apple?

2012-04-13 Thread Jesse Tayler
no.

On Apr 13, 2012, at 2:43 AM, jazz  wrote:

> Hi,
> 
> I read about something interesting:
> 
> http://www.patentlyapple.com/patently-apple/2012/04/apple-reveals-new-whiz-bang-no-code-content-authoring-tool.html
> 
> Is this WO 2012 by Apple?
> 
> Best regards, Bart
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com
> 
> This email sent to jtay...@oeinc.com

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

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


Re: [ANN] WOInject 1.0

2012-04-13 Thread Farrukh Ijaz
Hi Ron,

See my comments below:

On 2012-04-13, at 10:55 AM, Ron X wrote:

> hi
> 
> public class Application extends InjectableApplication {
> private static Logger log = Logger.getLogger(Application.class);
> 
> public static void main(String[] argv) {
> WOInject.init("com.legalsounds.Application", argv);
> }
> 
> @Facebook Socialable socialPerson;
> 
> public Application() {
> 
> Injector injector = injector();
> socialPerson = injector.getInstance(Socialable.class);

You are confusing the injector by providing Socialable.class, it must be 

> socialPerson = injector.getInstance(FacebookPerson.class);


I tell you the reason:

E.g. you've another bindable annotation named Twitter and you've TwitterPerson 
extending Socialable, what you expect the injector to return when you call 
injector.getInstance(Socialble.class) when it has no means to understand what 
implementation you're looking for?

Hope this helps.

Farrukh

> ..fails at this line
> 
> @Override
> protected Module[] modules() {
> return new Module[] { new SocialModule() };
> }
> }
> 
> public class SocialModule extends AbstractModule {
> 
> @Override
> protected void configure() {
> 
> bind(Socialable.class).annotatedWith(Facebook.class).to(FacebookPerson.class).in(WOScopes.SESSION);
> 
> }
> 
> }
> 
> public class FacebookPerson implements Socialable {
> 
> private static Logger log = Logger.getLogger(FacebookPerson.class);
> 
> @Override
> public void send(List socialPersonList) {
> log.info(this);
> }
> 
> }
> 
> stack trace:
> 
> WARN  32.7 MB used/48.36 MB free [ProcessChangesQueue] 
> (ERXNSLogLog4jBridge.java:43)  - A fatal exception occurred: Guice 
> configuration errors:
> 
> 1) No implementation for com.ronx.module.Socialable was bound.
>   while locating com.ronx.module.Socialable
> 
> 1 error
> [2012-4-13 0:49:49 PDT]  
> com.google.inject.ConfigurationException: Guice configuration errors:
> 
> 1) No implementation for com.ronx.module.Socialable was bound.
>   while locating com.ronx.module.Socialable
> 
> 1 error
> at 
> com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1004)
> 
> why it happens?
> 
> 13 апреля 2012 г. 0:05 пользователь Henrique Prange  
> написал:
> Hi Ron,
> 
> On 12/04/2012, at 08:04, Ron X wrote:
> 
> > please tell me - how you start app with woinject?
> > i can't do that!
> >
> 
> Your Application class should look like this:
> 
> package com.ronx;
> 
> import com.woinject.InjectableApplication;
> import com.woinject.WOInject;
> 
> public class Application extends InjectableApplication {
>public static void main(String[] args) {
>WOInject.init("com.ronx.Application", args);
>}
>...
> }
> 
> > everytime i have
> > Exception in thread "main" java.lang.NoClassDefFoundError: 
> > com/ronx/Application
> > Caused by: java.lang.ClassNotFoundException: com.ronx.Application
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> >
> > or if i comment ERXApplication.main(argv, Application.class);
> >
> 
> You should not start your application with the ERXApplication class when 
> using WOInject.
> 
> Cheers,
> 
> Henrique
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/farrukh.ijaz%40fuegodigitalmedia.com
> 
> This email sent to farrukh.i...@fuegodigitalmedia.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: limiting All Queries in D2W

2012-04-13 Thread David LeBer
Ted,

You can look at restrictingFetchSpecification for your list pages, or 
queryDataSourceDelegate to restrict in the query.

For the latter here is an example from one our our apps.

100 : (entity.name = 'Song' and session.currentUser.isAdmin = 0) => 
queryDataSourceDelegate = 
"com.alignsoft.rdr.admin.datasource.SongsForCurrentBandQueryDataSource" 
[ERDDelayedObjectCreationAssignment]

public class SongsForCurrentBandQueryDataSource implements 
ERDQueryDataSourceDelegateInterface {

public EODataSource queryDataSource(ERD2WQueryPage sender) {

EODataSource ds = sender.dataSource();

if (ds == null || !(ds instanceof EODatabaseDataSource)) {
ds = new 
EODatabaseDataSource(sender.session().defaultEditingContext(), 
sender.entity().name());
sender.setDataSource(ds);
}

EOFetchSpecification fs = ((EODatabaseDataSource) 
ds).fetchSpecification();
fs.setQualifier(qualifierFromSender(sender));
fs.setIsDeep(sender.isDeep());
fs.setUsesDistinct(sender.usesDistinct());

fs.setRefreshesRefetchedObjects(sender.refreshRefetchedObjects());

int limit = sender.fetchLimit();
if (limit != 0) {
fs.setFetchLimit(limit);
}

NSArray prefetchingRelationshipKeyPaths = 
sender.prefetchingRelationshipKeyPaths();
if (prefetchingRelationshipKeyPaths != null && 
prefetchingRelationshipKeyPaths.count() > 0) {

fs.setPrefetchingRelationshipKeyPaths(prefetchingRelationshipKeyPaths);
}
return ds;
}

private EOQualifier qualifierFromSender(ERD2WQueryPage sender) {
EOQualifier q = sender.qualifier();
Band b = ((Session)sender.session()).currentUser().band();
q = ERXQ.and(ERXQ.equals("album.band", b), q);
return q;
}
}

--
David LeBer
Codeferous Software

On 2012-04-13, at 7:34 AM, Theodore Petrosky wrote:

> I don't even know where to begin. I have a D2W app that manages Briefs. A 
> Brief is created by a User. (one to one relation)
> 
> I can easily create a tab that calls a method to limit the resultant list to 
> only those Briefs created by the current User. However, where do I 'fix' the 
> search area.
> 
> I mean if the current User is Sally, she will search for Brief(s) that the 
> Objective attribute contains the word 'Iceman'. But I want all queries to 
> include  'and user = 'Sally'.
> 
> Sally should not see Bob's Briefs. I am trying to embrace D2W, and (for me) 
> this would be trivial in a Wonder app.
> 
> Is there a property for this?
> 
> Ted
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com
> 
> This email sent to dleber_wo...@codeferous.com


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

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


Re: limiting All Queries in D2W

2012-04-13 Thread Fabian Peters

Am 13.04.2012 um 11:34 schrieb Theodore Petrosky:

> I don't even know where to begin. I have a D2W app that manages Briefs. A 
> Brief is created by a User. (one to one relation)
> 
> I can easily create a tab that calls a method to limit the resultant list to 
> only those Briefs created by the current User. However, where do I 'fix' the 
> search area.
> 
> I mean if the current User is Sally, she will search for Brief(s) that the 
> Objective attribute contains the word 'Iceman'. But I want all queries to 
> include  'and user = 'Sally'.

You can add restricting qualifiers (almost) globally via 
"editingContextShouldFetchObjects" in ERXEditingContextDelegate. Just create 
your own EC delegate and use it to modify the fetch spec. To define your custom 
delegate as the default delegate:

new ERXEC.DefaultFactory()
.setDefaultEditingContextDelegate(new 
DREditingContextDelegate());

> Sally should not see Bob's Briefs. I am trying to embrace D2W, and (for me) 
> this would be trivial in a Wonder app.

For D2W you can subclass EODatabaseDataSource and modify the constructors and 
the "setFetchSpecification" method to ensure restrictions are applied. To make 
sure your subclass gets used you can implement 
"ERDQueryDataSourceDelegateInterface" and set it via the rules. Using only the 
queryDataSourceDelegate may also be sufficient depending on your needs.

cheers, Fabian

> Is there a property for this?
> 
> 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/lists.fabian%40e-lumo.com
> 
> This email sent to lists.fab...@e-lumo.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: Website Hijacked

2012-04-13 Thread Daniele Corti
You said you've checked the DB for script injections, but you search also
for iframe?

2012/4/13 Gino Pacitti 

> No just see my access and my root access when I logged in.
>
> G
>
> On 13 Apr 2012, at 13:35, Daniele Corti wrote:
>
>  Hi Gino,
>> did you check access to the server? Exec  # last | more as root from an
>> ssh shell and check for last access.
>>
>> 2012/4/13 Gino Pacitti 
>> checked the apache config and nothing unusual there.. WO Components are
>> all newly updated from devel machine... and contain no script ??
>>
>> I am still checking more and more possibilities
>>
>> G
>>
>> On 13 Apr 2012, at 13:18, Daniele Corti wrote:
>>
>> Nothing strange in this url: just a ddns, probably, from a cracked PC.
>>
>> Do you check if someone have broken in you web server? Maybe someone
>> change the html directly into the .wo components, or alter the apache
>> configuration.
>>
>> 2012/4/13 Gino Pacitti 
>> Take a look at this URL - see attached...
>>
>> The link pointed to a regular Component Action with correct domain name
>> etc.. but then once clicked turned into this?
>>
>> G
>>
>>
>> On 13 Apr 2012, at 09:06, Daniele Corti wrote:
>>
>> Hi Gino,
>> look, I was thinking, yesterday, how to hack a WO site and, IMHO, if you
>> have excluded the injection in the DB (eg. someone push a iframe or script
>> in the HTML saved in the DB), the only other way is to gain access to the
>> repository of the site (throught SSH, FTP, SFTP).
>>
>> Can you access to the machine and check for the lasted connections?
>>
>>
>> 2012/4/13 Gino Pacitti 
>> Hi Daniel
>> I will try with JS disabled to see if I can repeat the problem.
>>
>> The URL I see in the source and in the status are correct - it is once
>> the form button or link is clicked that the issue occurs. Its like the URL
>> clicked is pointing to the Adult or Virus website.
>>
>> The URL is something like:
>>
>> http://www.mydomain.co.uk/cgi-**bin/WebObjects/Appt.woa/2/wo/**
>> imCcv2b2suMZqLswRhNV50/8.16.**14.0
>>
>> Once clicked it then becomes a completely different URL and the browser
>> goes to that page with the malware???
>>
>> Its almost like a redirect or something is occuring
>>
>> Gino
>>
>>
>> On 13 Apr 2012, at 08:39, Daniele Corti wrote:
>>
>> Hi Gino,
>> can I suggest you to inspect you site with firebug or something similar?
>> Try to trace the urls the browser calls and see if there are some strange
>> url.
>>
>> Another thing you can try is to disable JS in the browser and see if the
>> redirection still occurs. If there aren't redirections, the problem is,
>> probably, some injection in the HTML.
>>
>> One last thing: the Jon message makes me think if I miss something. You
>> say you have redirection on another site, but when you are seeing the Adult
>> site the url in the browser's address bar has changed?
>>
>>
>> 2012/4/13 Gino Pacitti 
>> yes.. I can look at the form in the source of the page and action points
>> to : /cgi-bin/WebObjects... etc... with the component numbers after the /wo
>> It seems that for some reason the POST is causing a redirection off to
>> another site.
>>
>> It just does not happen at every attempt though which is even more
>> puzzling..
>>
>> Gino
>>
>> On 12 Apr 2012, at 20:39, Daniele Corti wrote:
>>
>> the url of the form or the link are correctly formed? I mean, do you have
>> the HREF and ACTION attribute pointing to /cgi-bin/WebObejcts/YourApp.**
>> woa/wo/SESSION_ID/Num.ber.Pro.**Gre.ssi.ve?
>>
>> 2012/4/12 Gino Pacitti 
>> No .. completely just form submits and links...
>>
>> It is weird. A normal link to a Component Action results in the URL
>> changing and a Adult site appearing. It looks a bit like DNSSwapping which
>> I looked into but I have ran scans on this with no results...
>>
>>
>> Gino
>>
>> On 12 Apr 2012, at 19:52, Daniele Corti wrote:
>>
>> Hi,
>> Just one thing that I was thinking: do you use AJAX in the form or link
>> where the redirection occurs?
>>
>> 2012/4/12 Gino Pacitti 
>> I will have to give that a try...
>>
>> Gino
>>
>> On 12 Apr 2012, at 19:47, Daniele Corti wrote:
>>
>> Hi,
>> That's strange, can you download the .woa packages (the Application and
>> the WebResources) and install them on a test site and see if the
>> redirection happens?
>>
>>
>> 2012/4/12 Gino Pacitti 
>> no database seems clean - tried to search for a 'script' word in any
>> fields and nothing came back - its like the whole site gets redirected when
>> you click a form to go to a Direct Action?
>>
>> Gino
>>
>> On 12 Apr 2012, at 16:25, Daniele Corti wrote:
>>
>> Hi Gino,
>> is the Direct Action, actually, generating the HTML from content fetched
>> from the DB? If so, can you check the records that are fetched in the DA,
>> if they have some script injections?
>>
>> Regards,
>>
>> 2012/4/12 Gino Pacitti 
>> I have been hijacked...
>> Its redirecting and also spreading virus to PC -

Re: Foreign Keys

2012-04-13 Thread Ron X
sorry, we check - we used MyISAM - and it has not transactions and foreign
keys

13 апреля 2012 г. 15:09 пользователь Pascal Robert написал:

>
> Le 2012-04-13 à 07:50, Ron X a écrit :
>
> > hi community
> >
> > does EOF use foreign keys?
> >
> > we use in Migration java class:
> >
> > ERXMigrationTable oldCodeTable = database.newTableNamed("Code");
> >
> > oldCodeTable.addForeignKey("repTypeId", "rep_type", "_rowid");
> > oldCodeTable.addForeignKey("actionId", "action", "_rowid");
> >
> > but no foreign keys created.
> >
> > we scanned our 40G db and find NO foreign keys in it
>
> Which database system?
>
>
>
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/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: Website Hijacked

2012-04-13 Thread Daniele Corti
Nothing strange in this url: just a ddns, probably, from a cracked PC.

Do you check if someone have broken in you web server? Maybe someone change
the html directly into the .wo components, or alter the apache
configuration.

2012/4/13 Gino Pacitti 

> Take a look at this URL - see attached...
>
> The link pointed to a regular Component Action with correct domain name
> etc.. but then once clicked turned into this?
>
> G
>
>
> On 13 Apr 2012, at 09:06, Daniele Corti wrote:
>
>  Hi Gino,
>> look, I was thinking, yesterday, how to hack a WO site and, IMHO, if you
>> have excluded the injection in the DB (eg. someone push a iframe or script
>> in the HTML saved in the DB), the only other way is to gain access to the
>> repository of the site (throught SSH, FTP, SFTP).
>>
>> Can you access to the machine and check for the lasted connections?
>>
>>
>> 2012/4/13 Gino Pacitti 
>> Hi Daniel
>> I will try with JS disabled to see if I can repeat the problem.
>>
>> The URL I see in the source and in the status are correct - it is once
>> the form button or link is clicked that the issue occurs. Its like the URL
>> clicked is pointing to the Adult or Virus website.
>>
>> The URL is something like:
>>
>> http://www.mydomain.co.uk/cgi-**bin/WebObjects/Appt.woa/2/wo/**
>> imCcv2b2suMZqLswRhNV50/8.16.**14.0
>>
>> Once clicked it then becomes a completely different URL and the browser
>> goes to that page with the malware???
>>
>> Its almost like a redirect or something is occuring
>>
>> Gino
>>
>>
>> On 13 Apr 2012, at 08:39, Daniele Corti wrote:
>>
>> Hi Gino,
>> can I suggest you to inspect you site with firebug or something similar?
>> Try to trace the urls the browser calls and see if there are some strange
>> url.
>>
>> Another thing you can try is to disable JS in the browser and see if the
>> redirection still occurs. If there aren't redirections, the problem is,
>> probably, some injection in the HTML.
>>
>> One last thing: the Jon message makes me think if I miss something. You
>> say you have redirection on another site, but when you are seeing the Adult
>> site the url in the browser's address bar has changed?
>>
>>
>> 2012/4/13 Gino Pacitti 
>> yes.. I can look at the form in the source of the page and action points
>> to : /cgi-bin/WebObjects... etc... with the component numbers after the /wo
>> It seems that for some reason the POST is causing a redirection off to
>> another site.
>>
>> It just does not happen at every attempt though which is even more
>> puzzling..
>>
>> Gino
>>
>> On 12 Apr 2012, at 20:39, Daniele Corti wrote:
>>
>> the url of the form or the link are correctly formed? I mean, do you have
>> the HREF and ACTION attribute pointing to /cgi-bin/WebObejcts/YourApp.**
>> woa/wo/SESSION_ID/Num.ber.Pro.**Gre.ssi.ve?
>>
>> 2012/4/12 Gino Pacitti 
>> No .. completely just form submits and links...
>>
>> It is weird. A normal link to a Component Action results in the URL
>> changing and a Adult site appearing. It looks a bit like DNSSwapping which
>> I looked into but I have ran scans on this with no results...
>>
>>
>> Gino
>>
>> On 12 Apr 2012, at 19:52, Daniele Corti wrote:
>>
>> Hi,
>> Just one thing that I was thinking: do you use AJAX in the form or link
>> where the redirection occurs?
>>
>> 2012/4/12 Gino Pacitti 
>> I will have to give that a try...
>>
>> Gino
>>
>> On 12 Apr 2012, at 19:47, Daniele Corti wrote:
>>
>> Hi,
>> That's strange, can you download the .woa packages (the Application and
>> the WebResources) and install them on a test site and see if the
>> redirection happens?
>>
>>
>> 2012/4/12 Gino Pacitti 
>> no database seems clean - tried to search for a 'script' word in any
>> fields and nothing came back - its like the whole site gets redirected when
>> you click a form to go to a Direct Action?
>>
>> Gino
>>
>> On 12 Apr 2012, at 16:25, Daniele Corti wrote:
>>
>> Hi Gino,
>> is the Direct Action, actually, generating the HTML from content fetched
>> from the DB? If so, can you check the records that are fetched in the DA,
>> if they have some script injections?
>>
>> Regards,
>>
>> 2012/4/12 Gino Pacitti 
>> I have been hijacked...
>> Its redirecting and also spreading virus to PC - not everyone but a
>> percentage of users have had warnings and alert screen concerning the site.
>>
>> What should i look for in the logs?
>>
>> Gino
>>
>> On 12 Apr 2012, at 16:02, Pascal Robert wrote:
>>
>> You are hijacked or you are seeing hacks attempts? What do you see in the
>> Apache logs?
>>
>> Hi
>> Anyone had any experience of how a site can be hijacked?
>>
>> I mean that a normal link to a Direct Action gets redirected to a new
>> site (Adult Content)
>>
>> I cannot see how this is being done - Components does not contain any
>> scripts except for Google Ananlytics yet clicking on a submit button or
>> links causes this.
>>
>> It is also not on every attem

Re: Foreign Keys

2012-04-13 Thread Pascal Robert

Le 2012-04-13 à 07:50, Ron X a écrit :

> hi community
> 
> does EOF use foreign keys?
> 
> we use in Migration java class:
> 
> ERXMigrationTable oldCodeTable = database.newTableNamed("Code");
> 
> oldCodeTable.addForeignKey("repTypeId", "rep_type", "_rowid");
> oldCodeTable.addForeignKey("actionId", "action", "_rowid");
> 
> but no foreign keys created.
> 
> we scanned our 40G db and find NO foreign keys in it

Which database system?



 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/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: [ANN] WOInject 1.0

2012-04-13 Thread Ron X
problem is not in logger. i commented logger - but exception and fail
occured

13 апреля 2012 г. 14:40 пользователь Lachlan Deck
написал:

> I wonder if the static loggers are initializing things too early?
>
> On 13/04/2012, at 5:55 PM, Ron X wrote:
>
> > public class Application extends InjectableApplication {
> > private static Logger log = Logger.getLogger(Application.class);
> >
> > public static void main(String[] argv) {
> > WOInject.init("com.legalsounds.Application", argv);
> > }
>
> Lachlan Deck
> lachlan.d...@gmail.com
>
>
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Foreign Keys

2012-04-13 Thread Ron X
hi community

does EOF use foreign keys?

we use in Migration java class:

ERXMigrationTable oldCodeTable = database.newTableNamed("Code");

oldCodeTable.addForeignKey("repTypeId", "rep_type", "_rowid");
oldCodeTable.addForeignKey("actionId", "action", "_rowid");

but no foreign keys created.

we scanned our 40G db and find NO foreign keys in it
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: [ANN] WOInject 1.0

2012-04-13 Thread Lachlan Deck
I wonder if the static loggers are initializing things too early?

On 13/04/2012, at 5:55 PM, Ron X wrote:

> public class Application extends InjectableApplication {
> private static Logger log = Logger.getLogger(Application.class);
> 
> public static void main(String[] argv) {
> WOInject.init("com.legalsounds.Application", argv);
> }

Lachlan Deck
lachlan.d...@gmail.com

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

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


limiting All Queries in D2W

2012-04-13 Thread Theodore Petrosky
I don't even know where to begin. I have a D2W app that manages Briefs. A Brief 
is created by a User. (one to one relation)

I can easily create a tab that calls a method to limit the resultant list to 
only those Briefs created by the current User. However, where do I 'fix' the 
search area.

I mean if the current User is Sally, she will search for Brief(s) that the 
Objective attribute contains the word 'Iceman'. But I want all queries to 
include  'and user = 'Sally'.

Sally should not see Bob's Briefs. I am trying to embrace D2W, and (for me) 
this would be trivial in a Wonder app.

Is there a property for this?

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

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


Re: SQL

2012-04-13 Thread Ron X
thank you very much! very good!
this method considered deprecated - is there non-deprecated method?

maybe you know where can i set timing for sql-query - cuz i have "request
too long" exception every query more 5 s?

13 апреля 2012 г. 11:50 пользователь Henrique Gomes написал:

>
> On Apr 13, 2012, at 9:19 AM, Ron X wrote:
>
> > @Override
> > public WOActionResults defaultAction() {
> > NSArray result =
> EOUtilities.rawRowsForSQL(session().defaultEditingContext(),
> Chart.ENTITY_NAME, "SELECT count(*), sum(size)");
> >
> > return pageWithName(Main.class);
> > }
> >
>
> > ERROR 47.15 MB used/33.91 MB free [WorkerThread0]
> (ERD2WDirectAction.java:480) (Error) - Error with action
> default:com.webobjects.eoaccess.EOObjectNotAvailableException:
>
> The second argument is the Model name, not the entity / table:
>
> > databaseContextForModelNamed: cannot find model named Chart associated
> with this EOEditingContext, formValues:{}
>
> and the sql must be a complete sentence; SELECT ... FROM table;
>
> HG
>
>
>
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/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: SQL

2012-04-13 Thread Henrique Gomes

On Apr 13, 2012, at 9:19 AM, Ron X wrote:

> @Override
> public WOActionResults defaultAction() {
> NSArray result = 
> EOUtilities.rawRowsForSQL(session().defaultEditingContext(), 
> Chart.ENTITY_NAME, "SELECT count(*), sum(size)");
> 
> return pageWithName(Main.class);
> }
> 

> ERROR 47.15 MB used/33.91 MB free [WorkerThread0] 
> (ERD2WDirectAction.java:480) (Error) - Error with action 
> default:com.webobjects.eoaccess.EOObjectNotAvailableException: 

The second argument is the Model name, not the entity / table:

> databaseContextForModelNamed: cannot find model named Chart associated with 
> this EOEditingContext, formValues:{}

and the sql must be a complete sentence; SELECT ... FROM table;

HG



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

2012-04-13 Thread Ron X
@Override
public WOActionResults defaultAction() {
NSArray result =
EOUtilities.rawRowsForSQL(session().defaultEditingContext(),
Chart.ENTITY_NAME, "SELECT count(*), sum(size)");

return pageWithName(Main.class);
}

ERROR 47.15 MB used/33.91 MB free [WorkerThread0]
(ERD2WDirectAction.java:480) (Error) - Error with action
default:com.webobjects.eoaccess.EOObjectNotAvailableException:
databaseContextForModelNamed: cannot find model named Chart associated with
this EOEditingContext, formValues:{}
EOObjectNotAvailableException: databaseContextForModelNamed: cannot find
model named Chart associated with this EOEditingContext
  at
com.webobjects.eoaccess.EOUtilities.databaseContextForModelNamed(EOUtilities.java:812)
  at com.webobjects.eoaccess.EOUtilities.rawRowsForSQL(EOUtilities.java:585)
  at com.webobjects.eoaccess.EOUtilities.rawRowsForSQL(EOUtilities.java:561)
  at com.legalsounds.DirectAction.defaultAction(DirectAction.java:34)
 ... skipped 4 stack elements
  at
com.webobjects.appserver.WODirectAction.performActionNamed(WODirectAction.java:144)
  at
er.extensions.appserver.ERXDirectAction.performActionNamed(ERXDirectAction.java:401)
  at
er.directtoweb.ERD2WDirectAction.performActionNamed(ERD2WDirectAction.java:463)
  at com.ronx.DirectAction.performActionNamed(DirectAction.java:88)
  ... skipped 9 stack elements

i don't understand what does this exception mean

12 апреля 2012 г. 17:24 пользователь John Huss написал:

> EOUtilities.rawRowsForSQL
>
> 2012/4/12 Ron X 
>
>>  but how can i do  COUNT() and SUM() in ONE query?
>> aggregateFunctionWithQualifier - name of the function - just one
>> (count/sum), but i need two (count & sum)
>>
>>
>> 11 апреля 2012 г. 19:17 пользователь Ramsey Gurley <
>> rgur...@smarthealth.com> написал:
>>
>>> ERXEOControlUtilities.aggregateFunctionWithQualifier
>>>
>>
>>
>>  ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>>
>> https://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com
>>
>> This email sent to johnth...@gmail.com
>>
>>
>
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: [ANN] WOInject 1.0

2012-04-13 Thread Ron X
hi

public class Application extends InjectableApplication {
private static Logger log = Logger.getLogger(Application.class);

public static void main(String[] argv) {
WOInject.init("com.legalsounds.Application", argv);
}

@Facebook Socialable socialPerson;

public Application() {

Injector injector = injector();
socialPerson = injector.getInstance(Socialable.class);
..fails at this line

@Override
protected Module[] modules() {
return new Module[] { new SocialModule() };
}
}

public class SocialModule extends AbstractModule {

@Override
protected void configure() {

bind(Socialable.class).annotatedWith(Facebook.class).to(FacebookPerson.class).in(WOScopes.SESSION);

}

}

public class FacebookPerson implements Socialable {

private static Logger log = Logger.getLogger(FacebookPerson.class);

@Override
public void send(List socialPersonList) {
log.info(this);
}

}

stack trace:

WARN  32.7 MB used/48.36 MB free [ProcessChangesQueue]
(ERXNSLogLog4jBridge.java:43)  - A fatal exception occurred: Guice
configuration errors:

1) No implementation for com.ronx.module.Socialable was bound.
  while locating com.ronx.module.Socialable

1 error
[2012-4-13 0:49:49 PDT] 
com.google.inject.ConfigurationException: Guice configuration errors:

1) No implementation for com.ronx.module.Socialable was bound.
  while locating com.ronx.module.Socialable

1 error
at
com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1004)

why it happens?

13 апреля 2012 г. 0:05 пользователь Henrique Prange написал:

> Hi Ron,
>
> On 12/04/2012, at 08:04, Ron X wrote:
>
> > please tell me - how you start app with woinject?
> > i can't do that!
> >
>
> Your Application class should look like this:
>
> package com.ronx;
>
> import com.woinject.InjectableApplication;
> import com.woinject.WOInject;
>
> public class Application extends InjectableApplication {
> public static void main(String[] args) {
>WOInject.init("com.ronx.Application", args);
>}
>...
> }
>
> > everytime i have
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> com/ronx/Application
> > Caused by: java.lang.ClassNotFoundException: com.ronx.Application
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> >
> > or if i comment ERXApplication.main(argv, Application.class);
> >
>
> You should not start your application with the ERXApplication class when
> using WOInject.
>
> Cheers,
>
> Henrique
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/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: Website Hijacked

2012-04-13 Thread Gino Pacitti

Hi Daniel
I will try with JS disabled to see if I can repeat the problem.

The URL I see in the source and in the status are correct - it is once  
the form button or link is clicked that the issue occurs. Its like the  
URL clicked is pointing to the Adult or Virus website.


The URL is something like:

http://www.mydomain.co.uk/cgi-bin/WebObjects/Appt.woa/2/wo/imCcv2b2suMZqLswRhNV50/8.16.14.0

Once clicked it then becomes a completely different URL and the  
browser goes to that page with the malware???


Its almost like a redirect or something is occuring

Gino

On 13 Apr 2012, at 08:39, Daniele Corti wrote:


Hi Gino,
can I suggest you to inspect you site with firebug or something  
similar? Try to trace the urls the browser calls and see if there  
are some strange url.


Another thing you can try is to disable JS in the browser and see if  
the redirection still occurs. If there aren't redirections, the  
problem is, probably, some injection in the HTML.


One last thing: the Jon message makes me think if I miss something.  
You say you have redirection on another site, but when you are  
seeing the Adult site the url in the browser's address bar has  
changed?



2012/4/13 Gino Pacitti 
yes.. I can look at the form in the source of the page and action  
points to : /cgi-bin/WebObjects... etc... with the component numbers  
after the /wo
It seems that for some reason the POST is causing a redirection off  
to another site.


It just does not happen at every attempt though which is even more  
puzzling..


Gino

On 12 Apr 2012, at 20:39, Daniele Corti wrote:

the url of the form or the link are correctly formed? I mean, do you  
have the HREF and ACTION attribute pointing to /cgi-bin/WebObejcts/ 
YourApp.woa/wo/SESSION_ID/Num.ber.Pro.Gre.ssi.ve ?


2012/4/12 Gino Pacitti 
No .. completely just form submits and links...

It is weird. A normal link to a Component Action results in the URL  
changing and a Adult site appearing. It looks a bit like DNSSwapping  
which I looked into but I have ran scans on this with no results...



Gino

On 12 Apr 2012, at 19:52, Daniele Corti wrote:

Hi,
Just one thing that I was thinking: do you use AJAX in the form or  
link where the redirection occurs?


2012/4/12 Gino Pacitti 
I will have to give that a try...

Gino

On 12 Apr 2012, at 19:47, Daniele Corti wrote:

Hi,
That's strange, can you download the .woa packages (the Application  
and the WebResources) and install them on a test site and see if the  
redirection happens?



2012/4/12 Gino Pacitti 
no database seems clean - tried to search for a 'script' word in any  
fields and nothing came back - its like the whole site gets  
redirected when you click a form to go to a Direct Action?


Gino

On 12 Apr 2012, at 16:25, Daniele Corti wrote:

Hi Gino,
is the Direct Action, actually, generating the HTML from content  
fetched from the DB? If so, can you check the records that are  
fetched in the DA, if they have some script injections?


Regards,

2012/4/12 Gino Pacitti 
I have been hijacked...
Its redirecting and also spreading virus to PC - not everyone but a  
percentage of users have had warnings and alert screen concerning  
the site.


What should i look for in the logs?

Gino

On 12 Apr 2012, at 16:02, Pascal Robert wrote:

You are hijacked or you are seeing hacks attempts? What do you see  
in the Apache logs?


Hi
Anyone had any experience of how a site can be hijacked?

I mean that a normal link to a Direct Action gets redirected to a  
new site (Adult Content)


I cannot see how this is being done - Components does not contain  
any scripts except for Google Ananlytics yet clicking on a submit  
button or links causes this.


It is also not on every attempt - it seems to happen randomly??

Any help appreciated

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

This email sent to prob...@macti.ca


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

This email sent to ginok...@me.com

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

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



--
Daniele Corti
--
I DON'T DoubleClick

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.a

Re: Website Hijacked

2012-04-13 Thread Daniele Corti
Hi Gino,
can I suggest you to inspect you site with firebug or something similar?
Try to trace the urls the browser calls and see if there are some strange
url.

Another thing you can try is to disable JS in the browser and see if the
redirection still occurs. If there aren't redirections, the problem is,
probably, some injection in the HTML.

One last thing: the Jon message makes me think if I miss something. You say
you have redirection on another site, but when you are seeing the Adult
site the url in the browser's address bar has changed?


2012/4/13 Gino Pacitti 

> yes.. I can look at the form in the source of the page and action points
> to : /cgi-bin/WebObjects... etc... with the component numbers after the /wo
> It seems that for some reason the POST is causing a redirection off to
> another site.
>
> It just does not happen at every attempt though which is even more
> puzzling..
>
> Gino
>
> On 12 Apr 2012, at 20:39, Daniele Corti wrote:
>
>  the url of the form or the link are correctly formed? I mean, do you have
>> the HREF and ACTION attribute pointing to /cgi-bin/WebObejcts/YourApp.**
>> woa/wo/SESSION_ID/Num.ber.Pro.**Gre.ssi.ve?
>>
>> 2012/4/12 Gino Pacitti 
>> No .. completely just form submits and links...
>>
>> It is weird. A normal link to a Component Action results in the URL
>> changing and a Adult site appearing. It looks a bit like DNSSwapping which
>> I looked into but I have ran scans on this with no results...
>>
>>
>> Gino
>>
>> On 12 Apr 2012, at 19:52, Daniele Corti wrote:
>>
>> Hi,
>> Just one thing that I was thinking: do you use AJAX in the form or link
>> where the redirection occurs?
>>
>> 2012/4/12 Gino Pacitti 
>> I will have to give that a try...
>>
>> Gino
>>
>> On 12 Apr 2012, at 19:47, Daniele Corti wrote:
>>
>> Hi,
>> That's strange, can you download the .woa packages (the Application and
>> the WebResources) and install them on a test site and see if the
>> redirection happens?
>>
>>
>> 2012/4/12 Gino Pacitti 
>> no database seems clean - tried to search for a 'script' word in any
>> fields and nothing came back - its like the whole site gets redirected when
>> you click a form to go to a Direct Action?
>>
>> Gino
>>
>> On 12 Apr 2012, at 16:25, Daniele Corti wrote:
>>
>> Hi Gino,
>> is the Direct Action, actually, generating the HTML from content fetched
>> from the DB? If so, can you check the records that are fetched in the DA,
>> if they have some script injections?
>>
>> Regards,
>>
>> 2012/4/12 Gino Pacitti 
>> I have been hijacked...
>> Its redirecting and also spreading virus to PC - not everyone but a
>> percentage of users have had warnings and alert screen concerning the site.
>>
>> What should i look for in the logs?
>>
>> Gino
>>
>> On 12 Apr 2012, at 16:02, Pascal Robert wrote:
>>
>> You are hijacked or you are seeing hacks attempts? What do you see in the
>> Apache logs?
>>
>> Hi
>> Anyone had any experience of how a site can be hijacked?
>>
>> I mean that a normal link to a Direct Action gets redirected to a new
>> site (Adult Content)
>>
>> I cannot see how this is being done - Components does not contain any
>> scripts except for Google Ananlytics yet clicking on a submit button or
>> links causes this.
>>
>> It is also not on every attempt - it seems to happen randomly??
>>
>> Any help appreciated
>>
>> Gino
>> __**_
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  
>> (Webobjects-dev@lists.apple.**com
>> )
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/**mailman/options/webobjects-**
>> dev/probert%40macti.ca
>>
>> This email sent to prob...@macti.ca
>>
>>
>> __**_
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  
>> (Webobjects-dev@lists.apple.**com
>> )
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/**mailman/options/webobjects-**
>> dev/ginokris%40me.com
>>
>> This email sent to ginok...@me.com
>>
>> __**_
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  
>> (Webobjects-dev@lists.apple.**com
>> )
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/**mailman/options/webobjects-**
>> dev/ildenae%40gmail.com
>>
>> This email sent to ilde...@gmail.com
>>
>>
>>
>> --
>> Daniele Corti
>> --
>> I DON'T DoubleClick
>>
>> __**_
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  
>> (Webobjects-dev@lists.apple.**com
>> )
>> Help/Unsubscribe/Update your