Re: The type NSMutableArray is not generic; it cannot be parameterized with arguments

2008-04-22 Thread Archibald Singleton

On 23 Apr 2008, at 04:12, Mike Schrag wrote:

I keep getting the above error message even though I've included  
Wonder JavaWOExtensions as both a project and a frameworks in the  
examples project (using the Java Build Path project properties.
Since JavaWOExtensions provides an implementation of NSArray with  
generics I would expect this the the example code would pick that  
implementation. Apparently it doesn't.
Generics for 5.3 are in Wonder's ERExtensions framework, not  
JavaWOExtensions.  It's not enough to just include JavaWOExtensions  
from Wonder if you want that.


OK, Thanks Mike!

= tmk =


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

This email sent to [EMAIL PROTECTED]


The type NSMutableArray is not generic; it cannot be parameterized with arguments

2008-04-22 Thread Archibald Singleton

HI All,

OK, I'm stuck.

I'm trying to make some Apple provided WO examples to work. The  
examples came with WO 5.4 but I'm running WO 5.3.(I could switch to  
using 5.4 just to run the examples but I'd like to understand what's  
going on)


I keep getting the above error message even though I've included  
Wonder JavaWOExtensions as both a project and a frameworks in the  
examples project (using the Java Build Path project properties.
Since JavaWOExtensions provides an implementation of NSArray with  
generics I would expect this the the example code would pick that  
implementation. Apparently it doesn't.


So I guess my question is why?!?

Does Wonder have to do some behind the scene patching to make the  
JavaWOExtensions classes supersedes those in the regular WO  
frameworks? And if so would someone points me to where it does this in  
the code?


Any help will be greatly appreciated.

= tmk =

PS: I know that WO 5.4 now provides an implementation of NSArray and  
friends with generics. 
___

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

This email sent to [EMAIL PROTECTED]


Re: The sky is falling! The world is ending! WebObjects is Dead!

2008-04-03 Thread Archibald Singleton


On 03 Apr 2008, at 13:32, Pierce T. Wetter III wrote:


"Java Sucks, bring back WO ObjC!"



+1

Sorry, could not help it :-)

= tmk =

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

This email sent to [EMAIL PROTECTED]


Re: stateless component

2008-04-03 Thread Archibald Singleton


On 03 Apr 2008, at 14:39, Chuck Hill wrote:


On Apr 3, 2008, at 10:28 AM, Tonny Staunsbrink wrote:
The top level component is allways created, subcomponents are  
reused, not sure why


Because they have to go in the page cache as unique instances  
recording page state.  Stateless and page state don't mix.


I was using pageWithName to create the component.

Thanks for clarifying the cache issue :-)

= tmk =

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

This email sent to [EMAIL PROTECTED]


stateless component

2008-04-02 Thread Archibald Singleton

Hello,

From the WO API docs: "For extra efficiency, you can create stateless  
components: components that can be shared between sessions. Stateless  
components aren't replicated each time they're needed; rather, a  
single shared instance is referenced each time the component is used."


But logging calls to my stateless component constructor (subclass of  
ERXStatelessComponent), I see that's it's being called for every  
request and that new instances are created for each request.


Maybe worth noting is the fact that the component is instantiated by a  
direct action (hence there are no sessions).


I basically replicated what David showed in his lastest screencast re:  
the first  hit to the app being a default action instead of a  
component action.


I would have thought that that "shared instance" business means it's  
created once and reused all along?


Could someone please be kind enough to enlighten me as to what's  
happening?


TIA

= tmk =


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

This email sent to [EMAIL PROTECTED]


Re: How to get the application object from a DirectAction

2008-04-01 Thread Archibald Singleton


On 01 Apr 2008, at 10:39, Mike Schrag wrote:

WOApplication.application()


OK, time to get some sleep, thanks!




ms

On Apr 1, 2008, at 9:32 AM, Archibald Singleton wrote:


Hello,

I suppose there must be an obvious and easy way to get the  
application object from a subclass of WODirectAction but I can't  
find it %-)


Can someone please point me to the obvious?

TIA

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

This email sent to [EMAIL PROTECTED]


How to get the application object from a DirectAction

2008-04-01 Thread Archibald Singleton

Hello,

I suppose there must be an obvious and easy way to get the application  
object from a subclass of WODirectAction but I can't find it %-)


Can someone please point me to the obvious?

TIA

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

This email sent to [EMAIL PROTECTED]


Re: binding validation problem

2008-04-01 Thread Archibald Singleton


On 01 Apr 2008, at 09:06, Mike Schrag wrote:
That warning is normal when you use the default method  
application() from WOComponent. That method returns an object of  
type WOApplication that does not have your ivar declared.
That should not be true in WOLips ... If it is, it's a bug.   
WOApplication and WOSession are handled in a special way in that  
WOLips validation looks for subclasses in your project rather than  
superclasses (like most return types).


That's my understanding, hence my posting the problem.

I'm using 3.3.5049 w/ WO 5.3.3 and Eclipse 3.3.2.
The code works but I still get this error message.

Btw, I just quit and restarted Eclipse and the problem went away and I  
can't reproduce it.

I'll keep an eye on it and see if it reappears.

= tmk =

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

This email sent to [EMAIL PROTECTED]


Re: Hyperlinks and action methods

2008-03-31 Thread Archibald Singleton


On 01 Apr 2008, at 00:14, Mike Schrag wrote:
No -- this is a component action, not a direct action (it has to  
have the object being referenced).


Right, overlooked that.

If you want to do it on a direct action, just do a normal  
hyperlink with ?personID=person.primaryKey and reload the person  
in the DA.


Yeah, that's what I was doing but I liked the elegance of  
ERXDataHyperlink.
We have something similar to Rails routes/controllers coming to  
Wonder sometime soon for the more directaction-y case ... We've been  
using them for a couple months, but it just hasn't made it upstream  
yet.  So you can do things like


link to person
link to personwo:EntityLink>
peoplewo:EntityLink>
peoplewo:EntityLink>


and it will look for page components (named by convention, though  
they must implement a particular interface as a security measure).   
So for instance it will look for PersonListXmlPage, or  
PersonListPage (for standard HTML) and generate URLs like /entity/ 
Person/5 or /entity/Person/list or /entity/Person/create.  You can  
also map query string parameters to component methods by annotating  
certain methods of your component with an @EntityParameter  
annotation.  In code, you can have your action methods return things  
like:


   return EntityActionFactory.redirectForEntity(EntityRouter.LIST,  
AdCategory.ENTITY_NAME, context(), false);


so you can easily redirect to nice URLs after performing certain  
actions.  You can also register custom entity routers so you can  
process the "id" part in special ways (for instance we have it  
hooked to ERTaggable with a custom EntityRouter that does /entity/ 
Tag/accounting and it will return the entities tagged "accounting".


None of this is magic by any means, it's just a convenient handful  
of classes for doing it easily.  What I like about them is that it  
makes it very easy to mix and match normal component actions with  
easy RESTful style URLs whenever it makes sense to do so.


Looks really nice and elegant indeed.
I look forward to this stuff showing up in WOnder.

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

This email sent to [EMAIL PROTECTED]


Re: binding validation problem

2008-03-31 Thread Archibald Singleton


On 01 Apr 2008, at 00:16, Mike Schrag wrote:
filename = "~$currentItem + \".gif\""/>
OGNL doesn't use $, it just uses the binding name, so "~$currentItem  
+ \".gif\"" is invalid, it should be "~currentItem + '.gif'" (single  
tick instead of quote is a lot easier with OGNL, too -- a lot less  
escaping).


Ooops, so the error message was actually pretty straight on, missed  
the '$' in the keyname %-).

Thanks! (also for pointing out the use single quote).

Now for another one:

Application.java has the following accessor method

public NSArray entrees() {
return _entrees;
}

public void setEntrees(NSArray entrees) {
_entrees = entrees;

}

And Main.html has the following subcomponent for which I'm getting the  
following error message "There is no key 'entrees' for the keypath  
'application' in Main"





I'm sure it's something obvious again, but I can see what.


= tmk =

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

This email sent to [EMAIL PROTECTED]


binding validation problem

2008-03-31 Thread Archibald Singleton

Hello,

I've got the following subcomponent in my Main component for which  
WOLips is giving me a "There is no key $currentItem in Main" error  
message.


= "~$currentItem + \".gif\""/>


The problem is that the key does exist (private ivar with vanilla  
accessor methods) and in fact WOLips doesn't give the error message  
infor other subcomponents in Main that also use the binding value = "$currentItem"/>


I'm using WOLips nightly w/ WO 5.3.3


= tmk =

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

This email sent to [EMAIL PROTECTED]


Re: Hyperlinks and action methods

2008-03-31 Thread Archibald Singleton


On 31 Mar 2008, at 23:51, Mike Schrag wrote:

No -- this is a component action, not a direct action (it has to  
have the object being referenced).


Right, overlooked that.

 If you want to do it on a direct action, just do a normal hyperlink  
with ?personID=person.primaryKey and reload the person in the DA.


Yeah, that's what I was doing but I liked the elegance of  
ERXDataHyperlink.


Thanks!

= tmk =



ms

On Mar 31, 2008, at 10:49 PM, Archibald Singleton wrote:

Is this supposed to work with a direct action?

E.g.:

"$person">edit person


I'm asking because I tried it and the person binding just yield and  
entree attribute for the  tag.
Looking at the implementation of ERXDataHyperlink I don't seem to  
see any reason why it wouldn't work.


So, what am I missing?


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

This email sent to [EMAIL PROTECTED]


Re: Hyperlinks and action methods

2008-03-31 Thread Archibald Singleton

Is this supposed to work with a direct action?

E.g.:

"$person">edit person


I'm asking because I tried it and the person binding just yield and  
entree attribute for the  tag.
Looking at the implementation of ERXDataHyperlink I don't seem to see  
any reason why it wouldn't work.


So, what am I missing?

TIA

= tmk =

On 31 Mar 2008, at 09:58, Mike Schrag wrote:


In Wonder, ERXDataHyperlink --

"$person">edit person


You can pass in multiple variables, as well ...

ms

On Mar 31, 2008, at 12:51 AM, Chris Meyer wrote:

> Code comment: Ooo ick - using public ivars in your api! - wrap that
> person with accessors!

If I'm lazy enough to want to avoid writing minimal action  
functions then surely I'm lazy enough to skip accessors of nominal  
value.


> DirectToWeb

Might work for some stuff (the classes in my example, for  
instance)... but not for the general case. My question was more for  
the general case.


OK, answering my question, here's a component that does it. Seems  
like this (with a rename, validation, and probably other  
industrializing cleanup) might be nice for WOnder.


IteratedLink.java:

package com.lqgraphics.webreg.components;

import com.webobjects.appserver.*;

public class IteratedLink extends  
com.webobjects.appserver.WOComponent

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

public boolean isStateless() { return true; }

public WOComponent action() {
Object value = this.valueForBinding("value");
String key = (String)valueForBinding("field");
	WOComponent component =  
this.pageWithName((String)valueForBinding("pageName"));

component.takeValueForKey(value, key);
return component;
}
}

IteratedLink.html:



IteratedLink.api (lazy version, no validation):













On Sun, Mar 30, 2008 at 8:11 PM, David LeBer  
<[EMAIL PROTECTED]> wrote:


On 30-Mar-08, at 10:44 PM, Chris Meyer wrote:

> One pattern I find myself using often is that I have a page listing
> my objects (PeopleList) and a detail page (PersonDetail).
>
> In my PeopleList component, I have a WORepetition of WOHyperlink's
> linking to specific PersonDetails.
>
> To facilitate the hyperlink, I have an action in PeopleList.java
> that creates a new PeopleDetail page and sets the iterated Person  
in

> the WORepetition into a variable on that new page.
>
> My questions:
>
> Is this the right design pattern to use?
>
> If so, is there any way to use ognl or some other mechanism to  
avoid
> writing the action method in PeopleList.java that loads the new  
page

> and sets the Person variable on the new page?
>
> If not, is there any fundamental reason why this cannot be done
> automatically (with some syntax modifications/improvements in the
> WOParser, or whatever)?

DirectToWeb

Failing that, create some superclasses for you components to inherit
from that contain the generic behaviour you want:

ListPage.java

   public EOEnterpriseObject listItem;
   public String detailsPageName; // set in your subclass;

   ...

   public WOComponent goToDetailsPage() {
   WOComponent nextPage = pageWithName(detailsPageName);
   nextPage.takeValueForKey(listItem, "detailItem");
   return nextPage;
   }


DetailsPage.java

   private EOEnterpriseObject _detailItem;
   private WOComponent _backPage;

   public DetailsPage(WOContext context) {
   super(context);
   setBackPage(this.context().page());
   }

   public EOEnterpriseObject detailItemt() {
   return _detailsItem;
   }

   public void setDetailItem(EOEnterpriseObject obj) {
   _detailItem = obj;
   }

   public WOComponent backPage() {
   return _backPage;
   }

   public void setBackPage(WOComponent page) {
   _backPage = page;
   }

   public WOComponent saveChanges() {
   WOComponent nextPage = backPage();
   try  {
   detailItem.editingContext().saveChanges();
   } catch (Exception e) {
   // EXAMPLE ONLY :-)
   nextPage = null;
   }
   return nextPage;
   }


> PeopleList.wo:
>
> 
> 
>  value="$person.name"/>
> 
> 
>
> PeopleList.java
>
> class PeopleList
> {
>   public Person person;
>
>   // can this be avoided?
>   public WOComponent gotoPersonDetail()
>   {
> PersonDetail pd =
> (PersonDetail)pageWithName(PersonDetail.class.getSimpleName());
> pd.person = person;
> return pd;
>   }
> }
>
> PersonDetail.java
>
> class PersonDetail
> {
>   public Person person;
> }

Code comment: Ooo ick - using public ivars in your api! - wrap that
person with accessors!

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com

Re: [Wonder-disc] Is there an equivalent for the ?key="value" syntax but for ognl inline bindings

2008-03-28 Thread Archibald Singleton


On 28 Mar 2008, at 01:26, Mike Schrag wrote:
How about inserting the closing "]" as soon as one types the  
opening "[" in the context of a binding value?
Valid point -- totally could do that ... Trying to think if there's  
a case where this would get confused, but it seems pretty  
straightforward.  Patches welcome :)


At *some* point, I will be able to start contributing code (and not  
only questions :-)


= tmk =

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

This email sent to [EMAIL PROTECTED]


Re: [Wonder-disc] Is there an equivalent for the ?key="value" syntax but for ognl inline bindings

2008-03-27 Thread Archibald Singleton


On 27 Mar 2008, at 20:19, Lachlan Deck wrote:

[snip]

On a related note, I wish eclipse would behave more like TextMate  
which always does the Right Things e.g. surrounding the selection  
with the opening char and corresponding closing char when one type  
a opening char type with some text selected.


Not as handy but...
* Hit cmd+opt+z --> Configure Templates...
* New... (define as attached + for double quotes)
* cmd+opt+z


Not as handy indeed but still very useful, thanks!

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

This email sent to [EMAIL PROTECTED]


Re: [Wonder-disc] [ANN] New Screencast

2008-03-27 Thread Archibald Singleton


On 26 Mar 2008, at 09:57, David LeBer wrote:

I just posted part 2 of my WO/Project Wonder/Wolips Series.




Really cool, thanks! This is a really great format to WO learners.

Btw, I got tired of almost always deleting the automatically inserted  
wo closing tag. So disable this functionality and turned out there's a  
check box (Assit closing tag) that one can uncheck @ WOLips -> HMLT  
Editor -> Code Assist


= tmk =

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

This email sent to [EMAIL PROTECTED]


Re: [Wonder-disc] Is there an equivalent for the ?key="value" syntax but for ognl inline bindings

2008-03-27 Thread Archibald Singleton


On 27 Mar 2008, at 19:01, Guido Neitzer wrote:

On 27.03.2008, at 15:47, Mike Schrag wrote:


My bullet points on the subject :)


* [xxx] guarantees you an extra character to type on every binding  
-- completion can never fill it in for you because it never knows  
when you're done


Just because we're entertaining this idea:

How about inserting the closing "]" as soon as one types the opening  
"[" in the context of a binding value? On a related note, I wish  
eclipse would behave more like TextMate which always does the Right  
Things e.g. surrounding the selection with the opening char and  
corresponding closing char when one type a opening char type with some  
text selected.




* even Apple doesn't use [xxx] syntax for cocoa bindings OR ObjC  
2.0 properties (which were designed to look like bindings), though  
admittedly they don't use $ either, but they EXPLICITLY did not use  
[xxx] markup


Sure looks nicer too. Still I'm one of the weirdos who likes the [obj  
msg] syntax because to me it makes it clear that I'm sending messages  
(as opposed to, say, "calling" a method).


* $xxx is the standard inline markup of just about every template  
language, which, for one, also makes it consistent with the  
velocity templates that we use other places inside of WOLips


Which makes also most templating languages consistently ugly :-)...

And you can set the WebObjects 5.4 inline bindings to use the $  
style too. So this is currently the one working on both systems.



Yep, I noticed that, that's why I thought that maybe woognl offered  
the same functionality. I guess that would past the compatibility path  
ugly as it is :-)


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

This email sent to [EMAIL PROTECTED]


Re: [Wonder-disc] Is there an equivalent for the ?key="value" syntax but for ognl inline bindings

2008-03-27 Thread Archibald Singleton


On 27 Mar 2008, at 18:06, Mike Schrag wrote:

I assume you mean WOOGNL inline bindings?  Yes, the syntax is ?


Yep.


key="value" ... Pretty easy, huh :)


Of course, thanks! I *almost* tried it but'?' not being a valid XML  
name character, I though it wouldn't work.



On a related note is it possible to change the market ( currently
"$")


Wow, pretty interesting lapse on my part... I meant to write  
"marker" (guess the "$" may have something to do with me writing  
market instead :-)



used to denote non-litteral expressions in ognl bindings (e.g
use the WO 5.4.x "[...] " marker)? And if it is, how to do it?

Not currently, though it may be coming.  I still say $xxx is a better
syntax than [xxx].


It may be better but I don't like special prefix characters à la perl  
(just a personal taste). Though truth be told "$" being (almost) the  
only special character makes it bearable). Also being a ObjC  
programmer I already have the [xxx] in my finger memory (and I do like  
that syntax in ObjC contrary to some).


I really dig WOOGNL but the syntax is pretty ugly :-)


 The problem is that configurable inline binding
syntaxes makes things a complete mess.  It means you can't mix
frameworks because each framework may choose its own syntax.  So I'm
sort of hesitant to add a configurable option provide a custom prefix/
suffix (like 5.4 does) because it seems like it's a long term
disaster, and I can't wholesale switch to "[xxx]" in Wonder (one
because I hate the syntax, two because we have backwards compatibility
to consider).  It would have been nice for 5.4 to have adopted the $
syntax that we had been using, but things didn't turn out that way.
The only way to properly deal with it is by setting the syntax you use
in the framework Info.plist or something, but that seems like super
overkill.


Agreed.

= tmk =

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

This email sent to [EMAIL PROTECTED]


Is there an equivalent for the ?key="value" syntax but for ognl inline bindings

2008-03-27 Thread Archibald Singleton

Hello,

Subject line says it all.

Btw I'm using WO 5.3.x NOT WO 5.4.x for which apparently such syntax  
exists.


On a related note is it possible to change the market ( currently "$")  
used to denote non-litteral expressions in ognl bindings (e.g use the  
WO 5.4.x "[...] " marker)? And if it is, how to do it?


TIA

= tmk =


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

This email sent to [EMAIL PROTECTED]


Re: Using Design Patterns ???

2008-03-24 Thread Archibald Singleton


On 22 Mar 2008, at 19:17, Gustavo Pizano wrote:
Hello, well, while developing my application, I came to fork. To Use  
or not TO use Design pattern?? I mean should I implement  
something like a DAO which will be in charge to communicate with  
EO's, or should I make this directly from the .java of the  
components.??


WebObjects uses the MVC design pattern. My understanding is that the  
model part is your EOModel, the controllers are your components .java  
files and the views are your .wo / .html (inline bindings) files.


I'd recommend reading the legacy WO documentation (from WO 4.5.x) to  
get a better understanding of the WebObjects from a architectural /  
design pattern point of view. Even though the documentation is  
outdated, it still provide valuable information that can't hardly be  
found anywhere else.


http://developer.apple.com/referencelibrary/LegacyTechnologies/idxInternetWeb-date.html

In particular:

- WebObjects Developer's Guide

http://developer.apple.com/documentation/LegacyTechnologies/WebObjects/WebObjects_4.5/System/Documentation/Developer/WebObjects/DevGuide/DevGuideTOC.html

- EOF Developer's Guide
http://developer.apple.com/documentation/LegacyTechnologies/WebObjects/WebObjects_4.5/System/Documentation/Developer/EnterpriseObjects/DevGuide/GuideTOC.html

= tmk =

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

This email sent to [EMAIL PROTECTED]


Re: Better start with Wonder than WO

2008-03-22 Thread Archibald Singleton


On 21 Mar 2008, at 17:20, Archibald Singleton wrote:

+1

I've tried the newbie path both w/ and w/o Wonder. Based on my  
experience, I definitely recommend using WOnder.


My experience is that WOnder didn't add much complexity to the  
learning curve.


*On the contrary*, I think it makes things simpler (while making  
some of the broken stuff Just Work (tm) too).
Truth is, it does requires more *work* since you need to learn more,  
but it's worth it.


Thinking more about it, I realize that I didn't factor in all the work  
that WOnder *saves* you (e.g. using the Ajax framework, ERXQ and  
ERXKeys are just a few examples that come to mind), so I'd actually  
venture to say that using WOnder is actually less work overall.


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

This email sent to [EMAIL PROTECTED]


Re: Better start with Wonder than WO

2008-03-21 Thread Archibald Singleton

+1

I've tried the newbie path both w/ and w/o Wonder. Based on my  
experience, I definitely recommend using WOnder.


My experience is that WOnder didn't add much complexity to the  
learning curve.


*On the contrary*, I think it makes things simpler (while making some  
of the broken stuff Just Work (tm) too).
Truth is, it does requires more *work* since you need to learn more,  
but it's worth it.


Also for now, I'd also suggest sticking with WO 5.3.x instead of WO  
5.4.x.


= tmk =

On 20 Mar 2008, at 17:28, Chuck Hill wrote:


Like, for example, you are using WebObjects?


[snip]


On Mar 20, 2008, at 1:20 PM, Mr. Pierre Frisch wrote:

I would totally disagree with that. Wonder introduce another layer  
of complexity and patching on top of WO. I think you should only  
use Wonder if you have a good reason for it.


Pierre
--
Pierre Frisch
[EMAIL PROTECTED]


On Mar 20, 2008, at 11:56, David LeBer wrote:


[snip]

For a new WO developer, I think there are amazing benefits for  
starting with Wonder.


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

This email sent to [EMAIL PROTECTED]


Re: Migration Error

2008-03-21 Thread Archibald Singleton


On 20 Mar 2008, at 21:17, Gustavo Pizano wrote:

Hello after deciding the proper name for the PK add the following  
lines to the properties file



# Migrations
er.migration.migrateAtStartup=true
er.migration.createTablesIfNecessary=true
er.migration.modelNames=Convocatoriawo
ConvocatoriaWO.MigrationClassPrefix =  
com.convocatoriaWO.migration.Convocatoriawo


#Conection Dictionary
dbConnectURLGLOBAL=jdbc:mysql://localhost/Convocatoriawo? 
capitalizeTypesnames=true&zeroDateTimeBehavior=convertToNull

dbConnectUserGLOBAL = root
#dbConnectPasswordGLOBAL

the blue highlighted means ..?? the project name?... and the orange  
kind of red means???


ok so O was following as the screen cast says, btu with my model  
then I get the following error when running for first time


Mar 20 19:09:41 ConvocatoriaWO[50374] (ERXNSLogLog4jBridge.java:44)  
DEBUG NSLog  -  evaluateExpression:  
_dbupdater SET lockowner = ?, updatelock = ? WHERE (modelname = ?  
AND (updatelock = ? OR lockowner = ?))" withBindings:  
1:"ConvocatoriaWO--1"(lockOwner), 2:1(updateLock),  
3:"Convocatoriawo"(modelName), 4:0(updateLock),  
5:"ConvocatoriaWO--1"(lockOwner)>
Mar 20 19:09:41 ConvocatoriaWO[50374] (ERXNSLogLog4jBridge.java:44)  
DEBUG NSLog  -  === Rollback Internal Transaction
Mar 20 19:09:41 ConvocatoriaWO[50374] (ERXJDBCMigrationLock.java: 
126) WARN  er.extensions.migration.ERXJDBCMigrationLock  - Failed to  
lock.  Attempting to create the table and lock again. Original  
reason for failure:
Table 'convocatoriawo._dbupdater' doesn't existat  
com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1026)


So I dunno what im doing wrong, I created the databases called  
Convocatoriawo


Your log is incomplete. This error may "normal". This db is created/ 
used automatically by the migrations mechanism. What the log says is  
that it didn't exist but that migrations will attempt to create it.

Can you check whether the _dbupdater table was created or not.?

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

This email sent to [EMAIL PROTECTED]

Re: Mark your calendar: WOWODC is coming

2008-03-18 Thread Archibald Singleton


On 17 Mar 2008, at 21:31, Miguel Arroz wrote:


Hi!

On 2008/03/17, at 23:33, Anjo Krank wrote:



Am 18.03.2008 um 00:18 schrieb Chuck Hill:

Me too, now.  Thank  you kindly.  Things are getting full and  
expensive in that part of town.


Expensive? If the dollar continues to do what it does, you can  
*buy* the hotel when you get there!



 Not really... hotels and flights are much more expensive (in  
dollars) than last year. For us it more or less the same. I really  
wanted the $700 flight this year... :(


Just tried to book a flight with Air France from Brussels -> San  
Francisco (2-way): 635


Thought wow this is *cheap* until I realised that the price was valid  
only from the USA (with a US credit card) and in USD


From Europe the price for the same flight is 820 EUR wich is ~ 1 300  
USD ie twice as expensive, talk about being screwed :-(


= tmk =






 Yours

Miguel Arroz

Miguel Arroz
http://www.terminalapp.net
http://www.ipragma.com



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

This email sent to [EMAIL PROTECTED]


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

This email sent to [EMAIL PROTECTED]


Re: Another EO question

2008-03-11 Thread Archibald Singleton


On 11 Mar 2008, at 18:10, Daniel Brajkovic wrote:

Wow, thanks for all of that.  That's way too much for such a newbie  
like me. I'll wait until I get more comfortable with programming WO  
in general.


Well that's what I thought (I'm a newbie too) too but than I realised  
that I *will* have to do migration rather sooner than later and so I  
might as well start immediately.


So this morning I started learning and implementing migrations and  
it's actually quite easy and as I've found out, I did indeed ended up  
doing it "With great joy". There's actually not that much to learn  
because Mike did and really great of in both the implementation and  
the documentation. After only one day of using them, I already suspect  
that from now on, I will *only* do migrations and always modify my DBs  
through migrations.


It's a really terrific and relatively easy to use functionality.

Be sure to also have a look at the utility methods in  
er.extensions.ERXJDBCUtilities.


= tmk =

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

This email sent to [EMAIL PROTECTED]