RE: Migration code to Eclips/Wolips question
RE: Migration code to Eclips/Wolips question
- Subject: RE: Migration code to Eclips/Wolips question
- From: "Ren, Kevin" <email@hidden>
- Date: Thu, 20 Dec 2007 16:13:43 +1300
- Thread-topic: Migration code to Eclips/Wolips question
thank you guys, but my code is older than Xcode.
I have to manually migrate them,because I am working on Ubuntu not mac.
One more question about WOdisplayGroup.
In my java code, I have
Public WODisplayGroup recipeDisplayGroup;
In wod file
RecipeName:WOTextField{
value= recipeDisplayGroup.selectedObject.recipeName;
}
The recipeName is the attribute in Recipe table/class.
In woo file:
{
"WebObjects Release" = "WebObjects 5.0";
encoding = NSUTF8StringEncoding;
variables = {
recipeDisplayGroup = {
class = WODisplayGroup;
dataSource = {
class = EODatabaseDataSource;
editingContext = "session.defaultEditingContext";
fetchSpecification = {
class = EOFetchSpecification;
entityName = Recipe;
prefetchingRelationshipKeyPaths = ();
};
};
fetchesOnLoad = NO;
formatForLikeQualifier = "*%@";
numberOfObjectsPerBatch = 0;
selectsFirstObjectAfterFetch = YES;
};
};
}
I got error message:
There is no key 'recipeName' for the keypath 'recipeDisplayGroup.selectedObject' in RecipeEditor_C
So I selected "Has detail data source" woo file changed to
{
"WebObjects Release" = "WebObjects 5.0";
encoding = NSUTF8StringEncoding;
variables = {
recipeDisplayGroup = {
class = WODisplayGroup;
dataSource = {class = EODetailDataSource; masterClassDescription = Recipe; };
fetchesOnLoad = NO;
formatForLikeQualifier = "*%@";
numberOfObjectsPerBatch = 0;
selectsFirstObjectAfterFetch = YES;
};
};
}
Build suceed, but I got warning message:
Unable to verify key 'recipeName' because the keypath 'recipeDisplayGroup.selectedObject' in RecipeEditor_C is a collection
Anything wrong in my code? Because it's migrated from my old WO app.
thanks
kevin
-----Original Message-----
From: webobjects-dev-bounces+kevin.ren=email@hidden [mailto:webobjects-dev-bounces+kevin.ren=email@hidden] On Behalf Of Pascal Robert
Sent: Thursday, 20 December 2007 3:07 p.m.
To: WebObjects (Group)
Subject: Re: Migration code to Eclips/Wolips question
Le 07-12-19 à 21:00, Chuck Hill a écrit :
>
> On Dec 19, 2007, at 5:52 PM, Mike Schrag wrote:
>
>>> http://wiki.objectstyle.org/confluence/display/WOL/Migrating+from
>>> +XCode+to+WOLips
>> I would recommend this as well with the exception that I would say to
>> ALWAYS use Pascal's XcodeMigration script. No offense to Chuck, but
>> Pascal's application is just a more thorough migration procedure (I
>> think Chuck would agree, FWIW :) ). I used Pascal's on quite a few
>> client conversions and it worked /nearly/ flawlessly, and the parts
>> that didn't work flawlessly, Pascal recently fixed.
And other fixes are coming. We are finally migrating a big chunk
(+50) of projects at work, and I found a couple of bugs. And the MacRoman to UTF-8 conversion do no only the Java class but also the components (it change the value of the encoding key value in the .woo, and change the encoding of the .html file to UTF-8).
>
> Chuck does agree. Mine was a quick hack to show how it could be done
> very easily. Pascal's is a much more thorough process.
>
> Although I really like the name :-), should we just remove the fleeto
> reference from that page?
I would like to use your script to flee out some snow. It was fun two weeks ago when we got 40 cm, but we got an another 40 cm last Sunday, now it's a big mess.
But still, if someone only have one or two small projects to migrate, Chuck's script or a manual migration is faster than my script. _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
"This communication is confidential and may contain privileged and/or copyright material. If you are not the intended recipient you must not use, disclose, copy or retain it. If you have received it in error please immediately notify me by return email, delete the emails and destroy any hard copies. ANZ National Bank Limited does not guarantee the integrity of this communication, or that it is free from errors, viruses or interference."
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden