Re: Loading a model from a referenced framework in a jar project

2008-12-27 Thread Richard Stephens
Hey, thanks

That looks like it might do what I want but doesn't seem to be working.
As it is, my code looks like this:

URL modelUrl =
TblUser.class.getClass().getResource("/Resources/ndbmodel.eomodeld");

System.out.println( modelUrl.toString());

Where TblUser is a class in the framework containing the model i want
to load.  However this just throws a null pointer exception
(getResource() returns null)

I also tried a few variants such as getResource("Resources/ndbmodel.eomodeld");
and getResource("ndbmodel.eomodeld");

However I can't see a way to find out the root path that getResource
searches from.



On Sat, Dec 27, 2008 at 11:39 PM, Henrique Prange  wrote:
> Hi Richard,
>
> On Fri, Dec 26, 2008 at 5:49 AM, Richard Stephens  wrote:
>> Hi
>> How do I load a model from a referenced framework in a Jar project?
>
> You can try something like this:
>
> URL modelUrl = getClass().getResource("/Resources/YourModel.eomodeld");
>
> EOModelGroup.defaultGroup().addModelWithPathURL(modelUrl);
>
> Cheers,
>
> Henrique
>
>> --
>> Regards, Richard Stephens Ph: 07 3136 3426 Mob: 0410 111 570 Email:
>> rich...@rjst.com.au
>>  ___
>> 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/hprange%40gmail.com
>>
>> This email sent to hpra...@gmail.com
>>
>



-- 
Regards,
Richard Stephens
Ph: 07 3136 3426
Mob: 0410 111 570
Email: rich...@rjst.com.au
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: WOX status??

2008-12-27 Thread Andrew Lindesay

Hello Ted;

I'm doing some work with integrating Adobe Flex and WO via JSON-RPC at  
the moment.  The flex JSON-RPC client-side is just in developmental  
state and has not been used in a deployment yet.  You can see the sort  
of workflow in the LEWOStuff overview PDF under "6.23.26" -- let me  
know if you'd be interested.  Conceptually, this works quite  
differently to WOX though.


cheers.

I have been scouring the net hoping to find some kind of information  
on integrating Adobe Flex with webobojects.
Can anyone point me to documentation or even a basic tutorial. I can  
not even make out what I need to install to get a taste of working  
with Flex and Webobjects.


___
Andrew Lindesay
www.lindesay.co.nz

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

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


Re: Wonder tutorial, part 1

2008-12-27 Thread Chuck Hill

Please keep replies on the list.

The code below looks correct.  The source of your problems is  
someplace else.


Chuck

On Dec 27, 2008, at 4:12 PM, Sanford Selznick wrote:


At 4:02 PM -0800 12/27/08, Chuck Hill wrote:

On Dec 27, 2008, at 4:00 PM, Sanford Selznick wrote:

At 3:43 PM -0700 12/26/08, Sanford Selznick wrote:


Half way through the "WebObjects, WOLips and Wonder tutorial,  
part 1" I'm getting the following error:


Turns out I chose the wrong main class when running the app from  
Eclipse:


 I had: com.mycompany.Application


That is the correct class.

 I needed: er.extensions.ERXApplication


That is _not_ the correct class.  Application should extend  
ERXApplication.


My code does extend it, though.  I just started learning Java this  
week.


Do I need to specify that I'm extending ERXApplication someplace  
other than Application.java?


Per the example:



 Application.java:

// Generated by the WOLips Templateengine Plug-in at Dec 22, 2008  
1:28:07 PM

package com.selznick.supersecret.app;

import com.webobjects.foundation.NSLog;

import er.extensions.ERXApplication;

public class Application extends ERXApplication {
   public static void main(String[] argv) {
ERXApplication.main(argv, Application.class);
   }

   public Application() {
  NSLog.out.appendln("Welcome to " + name() + " !");
  /* ** put your initialization code in here ** */
}
}


Thank you,
  Sanford


--
Chuck Hill Senior Consultant / VP Development

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

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






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

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


Re: Wonder tutorial, part 1

2008-12-27 Thread Chuck Hill


On Dec 26, 2008, at 2:43 PM, Sanford Selznick wrote:

With some time off I've decided to get my feet wet with WO.  I'm as  
new to WO and Java as it gets.  :-)


Look for the on-line version of Thinking in Java by Bruce Eckel.



I started with the All-In-One installer from:

 


Half way through the "WebObjects, WOLips and Wonder tutorial, part  
1" I'm getting the following error:


That tutorial may be out of date.



 java.lang.RuntimeException: computeQueryDictionaryInContext failed.
 ERXWOForm.java 228 _appendHiddenFieldsToResponse er.extensions
 ERXWOForm.java 256 appendChildrenToResponse er.extensions
 ERXWOForm.java 396 appendToResponse er.extensions
 ...


That is a mismatch between the WO version and the Wonder version.


After Googling around a bit it seems I need to install Wonder 5.4.   
I found Wonder 5.4 Frameworks and Wonder 5.4 Applications at .


If I copy Wonder 5.4 Frameworks to /Library/Frameworks I get tons of  
errors throughout my project.


Most of the classes in Wonder were moved into a different package  
earlier this year.  The tutorial may be referring to the old  
packages.  Select the Sources folder in Eclipse, right click, and pick  
Source - Organize Imports.



Instead if I copy Wonder 5.4 Applications to /Library/Frameworks the  
original error persists.


Because the applications don't belong with the frameworks and have  
nothing  to do with your error.



I've rolled back to WOLips 3.3.5594, and Eclipse 3.3.2.  And I'm  
back to the original error.



You could also try an earlier version of Wonder:
http://webobjects.mdimension.com/wonder/releases/Wonder-4.0.0.712-Frameworks-54.tar.gz


Chuck

--
Chuck Hill Senior Consultant / VP Development

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

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






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

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


Re: Wonder tutorial, part 1

2008-12-27 Thread Chuck Hill


On Dec 27, 2008, at 4:00 PM, Sanford Selznick wrote:


At 3:43 PM -0700 12/26/08, Sanford Selznick wrote:
Half way through the "WebObjects, WOLips and Wonder tutorial, part  
1" I'm getting the following error:


Turns out I chose the wrong main class when running the app from  
Eclipse:


 I had: com.mycompany.Application


That is the correct class.



 I needed: er.extensions.ERXApplication


That is _not_ the correct class.  Application should extend  
ERXApplication.




I can now finish the tutorial.  Like I said, I'm new.  :-)

Best,
 Sanford


Chuck


--
Chuck Hill Senior Consultant / VP Development

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

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






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

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


Re: Wonder tutorial, part 1

2008-12-27 Thread Sanford Selznick

At 3:43 PM -0700 12/26/08, Sanford Selznick wrote:
Half way through the "WebObjects, WOLips and Wonder tutorial, part 
1" I'm getting the following error:


Turns out I chose the wrong main class when running the app from Eclipse:

  I had: com.mycompany.Application

  I needed: er.extensions.ERXApplication

I can now finish the tutorial.  Like I said, I'm new.  :-)

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

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


Re: Wonder tutorial, part 1

2008-12-27 Thread Jeremy Matthews
I think the issue probably is that the new installer is ready, which  
includes the necessary revisions of wolips/eclipse/wonder for the 5.4  
branch stuff...but not yet posted.


I'll ask Mike and post the updated version later if that is the case...

Thanks,
jeremy





With some time off I've decided to get my feet wet with WO.  I'm as
new to WO and Java as it gets.  :-)

I started with the All-In-One installer from:

  


Half way through the "WebObjects, WOLips and Wonder tutorial, part 1"
I'm getting the following error:

  java.lang.RuntimeException: computeQueryDictionaryInContext failed.
  ERXWOForm.java 228 _appendHiddenFieldsToResponse er.extensions
  ERXWOForm.java 256 appendChildrenToResponse er.extensions
  ERXWOForm.java 396 appendToResponse er.extensions
  ...

After Googling around a bit it seems I need to install Wonder 5.4.  I
found Wonder 5.4 Frameworks and Wonder 5.4 Applications at
.

If I copy Wonder 5.4 Frameworks to /Library/Frameworks I get tons of
errors throughout my project.

Instead if I copy Wonder 5.4 Applications to /Library/Frameworks the
original error persists.

I've rolled back to WOLips 3.3.5594, and Eclipse 3.3.2.  And I'm back
to the original error.

Any ideas?

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

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


Re: WOX status??

2008-12-27 Thread Theodore Petrosky
wonderful... none of my googling found these websites. But what do I need to 
install? Is there a plugin for eclipse that I need?

I am not understanding the pieces that I need?

Ted


--- On Sat, 12/27/08, Pascal Robert  wrote:

> From: Pascal Robert 
> Subject: Re: WOX status??
> To: tedp...@yahoo.com
> Cc: webobjects-dev@lists.apple.com
> Date: Saturday, December 27, 2008, 5:40 AM
> Le 08-12-27 à 05:20, Theodore Petrosky a écrit :
> 
> > I have been scouring the net hoping to find some kind
> of information on integrating Adobe Flex with webobojects.
> > 
> > Can anyone point me to documentation or even a basic
> tutorial. I can not even make out what I need to install to
> get a taste of working with Flex and Webobjects.
> > 
> > Ted
> 
> A tutorial is available here :
> 
>   http://pallas.homelinux.org/projects/wox/wiki/WoxMoviesTutorial
> 
> General information :
> 
>   http://www.intellicore.info/wox/index.php?title=Main_Page


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

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


Re: Loading a model from a referenced framework in a jar project

2008-12-27 Thread Henrique Prange
Hi Richard,

On Fri, Dec 26, 2008 at 5:49 AM, Richard Stephens  wrote:
> Hi
> How do I load a model from a referenced framework in a Jar project?

You can try something like this:

URL modelUrl = getClass().getResource("/Resources/YourModel.eomodeld");

EOModelGroup.defaultGroup().addModelWithPathURL(modelUrl);

Cheers,

Henrique

> --
> Regards, Richard Stephens Ph: 07 3136 3426 Mob: 0410 111 570 Email:
> rich...@rjst.com.au
>  ___
> 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/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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: WOX status??

2008-12-27 Thread Pascal Robert


Le 08-12-27 à 05:20, Theodore Petrosky a écrit :

I have been scouring the net hoping to find some kind of information  
on integrating Adobe Flex with webobojects.


Can anyone point me to documentation or even a basic tutorial. I can  
not even make out what I need to install to get a taste of working  
with Flex and Webobjects.


Ted


A tutorial is available here :

http://pallas.homelinux.org/projects/wox/wiki/WoxMoviesTutorial

General information :

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

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


WOX status??

2008-12-27 Thread Theodore Petrosky
I have been scouring the net hoping to find some kind of information on 
integrating Adobe Flex with webobojects.

Can anyone point me to documentation or even a basic tutorial. I can not even 
make out what I need to install to get a taste of working with Flex and 
Webobjects.

Ted


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

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