WO 5.3 and Tomcat property files?

2006-05-19 Thread Dave Elsner

Hi,

What the best approach to use property files from development in and  
for deployment within tomcat? Because it seems they are  not being  
read in at run time


System.getProperty(foo)  always returns null under tomcat, but  
works perfectly in development in Xcode.
I tried printing out System.getProperties()  and none of my  
application properties have been loaded only the built in Java ones  
are there.


How does every one else handle this?

1) Manually add properties as   env-entry in the web.xml file?

2) Avoid properties altogether ?

3) Something else?

I had a quick look at LEConfigServletEnvEntryMergeTool from lejstuff  
from Andrew Lindesay and it looks promising. As it appears to convert  
property files to env-entry in the web.xml file, but running it out  
of the box I got IO.exceptions.


- Dave

___
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 archive@mail-archive.com


Re: Setting a Default toOne Relationship

2006-05-19 Thread David Avendasora

I'm don't really know, I guess.

I've been following the instructions in the WebObjects Java Client  
Programming manual (http://developer.apple.com/documentation/ 
WebObjects/DesktopApplications/WODesktopApps.pdf) for Enhancing the  
Application in which it describes several ways to modify a Direct To  
Java Client application. In the instructions for setting initial  
values (page 123), the example code is put in the awakeFromInsertion 
(EOEditingContext) method in the server-side class. I was putting it  
in the client-side, but I've now generated server side classes, added  
it to the Application Server target and put the code there and even  
changed it to simply put a default value in one of the attributes  
instead of setting a relationship, but it still doesn't work.


Here's what my code now looks like

public void awakeFromInsertion (EOEditingContext ec) {
super.awakeFromInsertion(ec);
System.out.println(Routing awakeFromInsert Called);
if (routingDescription() == null) {
setRoutingDescription(Description);
}
}

When I click the new icon for a routing and I get the form window,  
the default is not set and nothing shows in the console.


It appears that the awakeFromInsertion() method isn't even being  
invoked. But since I'm simply making a modification to a D2JC  
application, I don't know everything that is going on behind the  
scenes to trigger a new instance and therefor what might be going  
wrong prior to this point.


Anybody have any ideas?

Dave


On May 19, 2006, at 12:12 AM, Chuck Hill wrote:

When you create a new Routing, is it getting inserted into an EC?   
This method is not called until that is done.



On May 18, 2006, at 3:40 PM, David Avendasora wrote:


Okay, Here's my code:

public void awakeFromInsertion (EOEditingContext ec) {
super.awakeFromInsertion(ec);
		EOFetchSpecification fs =  
EOFetchSpecification.fetchSpecificationNamed(Task,RoutingType);

NSArray routingTypes = ec.objectsWithFetchSpecification(fs);
System.out.println(routingTypes.objectAtIndex(0).toString());
setRoutingType((EOGenericRecord)routingTypes.objectAtIndex(0));
}

It's not working at all. No errors at least, but it doesn't appear  
to be being called either because when I create a new Routing in  
the UI, it doesn't set the default value, and I don't get the  
message printed out in the console either.


It's nearly midnight here. I'm going to bed. Maybe I'll have  
inspiration in the morning.


Dave

On May 18, 2006, at 10:55 PM, Chuck Hill wrote:


IIRC, EOAccess is not available client side.

On May 18, 2006, at 2:49 PM, David Avendasora wrote:


Hmmm...

When I try to import the eoaccess package, I get this error at  
compile-time:


src/com/bestmaid/erp/client/Routing.java:10: package  
com.webobjects.eoaccess does not exist

import com.webobjects.eoaccess.*;

The JavaEOAccess.framework is part of the project and part of  
the Web Server target, as is the Routing.java file.


I don't understand why it sees the other packages (eocontrol,  
foudation) but not eoaccess.


Any ideas?

Dave


On May 18, 2006, at 6:25 PM, Ken Anderson wrote:


David,

Besides calling the set method in awakeFromInsertion(), I can't  
imagine what else there is to do.  Of course, you need to get  
the EO in the correct editing context.  Since the EC is passed  
into the awakeFromInsertion() method, you could:


public void awakeFromInsertion(EOEditingContext ec) {
	MyObject obj = EOUtilities.objectMatchingKeyandValue(ec,  
ENTITY, KEY, VALUE);

setRelObj(obj);
}

I've never done Java client, but I would assume this will work...

Ken

On May 18, 2006, at 1:12 PM, David Avendasora wrote:


Hi all,

I know this has to be an incredibly simple thing to do, but I  
can't seem to figure out how.


All I want to do is defaults so that when an object is  
instantiated, it automatically has some of it's relationships  
defined. It is VERY easy to do this for an attribute, but I  
just can't get it to work for a relationship and I can't find  
in the documentation how to do it.


I know the code belongs in the awakeFromInsertion() method.

Can anyone give me a pointer to where in the documentation to  
look for this, or better yet a simple code fragment?


BTW, this is for a Java Client application, but I don't think  
that matters, right?


Dave


___
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/lists% 
40anderhome.com


This email sent to [EMAIL PROTECTED]






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

Re: Setting a Default toOne Relationship

2006-05-19 Thread Paul Lynch


On 19 May 2006, at 09:35, David Avendasora wrote:

I've been following the instructions in the WebObjects Java Client  
Programming manual (http://developer.apple.com/documentation/ 
WebObjects/DesktopApplications/WODesktopApps.pdf) for Enhancing  
the Application in which it describes several ways to modify a  
Direct To Java Client application. In the instructions for setting  
initial values (page 123), the example code is put in the  
awakeFromInsertion(EOEditingContext) method in the server-side  
class. I was putting it in the client-side, but I've now generated  
server side classes, added it to the Application Server target and  
put the code there and even changed it to simply put a default  
value in one of the attributes instead of setting a relationship,  
but it still doesn't work.


My understanding is that it belongs in the server side class, not the  
client side.  You should also really be developing server side  
classes in general before client side, as that is where most of the  
logic belongs.



Here's what my code now looks like

public void awakeFromInsertion (EOEditingContext ec) {
super.awakeFromInsertion(ec);
System.out.println(Routing awakeFromInsert Called);
if (routingDescription() == null) {
setRoutingDescription(Description);
}
}

When I click the new icon for a routing and I get the form window,  
the default is not set and nothing shows in the console.


This won't be called until it is inserted in the editing context;  
have you checked this already?


It appears that the awakeFromInsertion() method isn't even being  
invoked. But since I'm simply making a modification to a D2JC  
application, I don't know everything that is going on behind the  
scenes to trigger a new instance and therefor what might be going  
wrong prior to this point.


You are creating a new instance of the class and inserting it in the  
editing context (there's a couple of different ways of doing this in  
code).


Is your log message producing any output?

Paul
___
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 archive@mail-archive.com


Re: Setting a Default toOne Relationship

2006-05-19 Thread Paul Lynch


On 18 May 2006, at 18:25, Ken Anderson wrote:

Besides calling the set method in awakeFromInsertion(), I can't  
imagine what else there is to do.  Of course, you need to get the  
EO in the correct editing context.  Since the EC is passed into the  
awakeFromInsertion() method, you could:


public void awakeFromInsertion(EOEditingContext ec) {
	MyObject obj = EOUtilities.objectMatchingKeyandValue(ec, ENTITY,  
KEY, VALUE);

setRelObj(obj);
}


One catch that I have found with this approach is that, if you create  
a local instance of the object in a different editing context, the  
related object is still in the old ec, assuming that you haven't  
first saved the record with the updated relationship and refaulted  
the objects.  I don't see how this can be avoided, or even if you  
should attempt to avoid it.


Paul
___
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 archive@mail-archive.com


Re: Setting a Default toOne Relationship

2006-05-19 Thread David Avendasora


On May 19, 2006, at 9:45 AM, Paul Lynch wrote:



On 19 May 2006, at 09:35, David Avendasora wrote:

I've been following the instructions in the WebObjects Java Client  
Programming manual (http://developer.apple.com/documentation/ 
WebObjects/DesktopApplications/WODesktopApps.pdf) for Enhancing  
the Application in which it describes several ways to modify a  
Direct To Java Client application. In the instructions for setting  
initial values (page 123), the example code is put in the  
awakeFromInsertion(EOEditingContext) method in the server-side  
class. I was putting it in the client-side, but I've now generated  
server side classes, added it to the Application Server target and  
put the code there and even changed it to simply put a default  
value in one of the attributes instead of setting a relationship,  
but it still doesn't work.


My understanding is that it belongs in the server side class, not  
the client side.  You should also really be developing server side  
classes in general before client side, as that is where most of the  
logic belongs.


As I stated above, it is now in the server side, AND I simplified it  
to match the documentation's example. Still, it doesn't work.





Here's what my code now looks like

public void awakeFromInsertion (EOEditingContext ec) {
super.awakeFromInsertion(ec);
System.out.println(Routing awakeFromInsert Called);
if (routingDescription() == null) {
setRoutingDescription(Description);
}
}

When I click the new icon for a routing and I get the form window,  
the default is not set and nothing shows in the console.


This won't be called until it is inserted in the editing context;  
have you checked this already?


This is probably the crux of my problem. What you see above is the  
entire extent of the custom code written for the application so far.  
This is IT. NOTHING else. Everything else is managed by WO's D2JC  
framework. How would I check to see if it's been inserted?


In all the Enhancing the Application code, I don't ever see an  
example of adding the instance to the editing context. I'm assuming  
that since I get a Form Window with fields that I can fill in and  
drop-downs I can choose from, etc that the instance has been inserted  
into an editing context by WO without any additional work by me.




It appears that the awakeFromInsertion() method isn't even being  
invoked. But since I'm simply making a modification to a D2JC  
application, I don't know everything that is going on behind the  
scenes to trigger a new instance and therefor what might be going  
wrong prior to this point.


You are creating a new instance of the class and inserting it in  
the editing context (there's a couple of different ways of doing  
this in code).


Is your log message producing any output?


No, nothing in the console.



Paul




___
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 archive@mail-archive.com


RE: Problem with EOModeler JDBC connection on Windows XP (updated)

2006-05-19 Thread Sigurður Anton Ólafsson








Thank you guys.



Mr. Emmanuel Geze came up with a good
solution, it worked:



---



Hi;



you need
classes12.zip and nls_charset12.zip that you can find
on your Oracle client lib directory ($ORACLE_ROOT/ora92/jdbc/lib).

You can copied them on
$NEXT_ROOT/Library/Java directory for example.

You must modify the
JavaConfig.plist file which is on the $NEXT_ROOT/Library/Java
directory.

You must add
$HOME/Library/Java/classes12.zip to the
DefaultClasspath.



It's all.







Simple and clear.

Thanks.



Siggi.













From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 18.05.2006 20:25
To: Sigurður Anton Ólafsson; WO
Dev
Subject: Re: Problem with
EOModeler JDBC connection on Windows XP (updated)






Chuck
wrote on 05/18/2006 11:12:07 AM:

 The driver needs to go in
C:\Apple\Library\Java. That is for JDK 1.1 
 which is only used by EOModeller. For
you application to run, you 
 also need to put the JDBC driver in the
jre\lib\ext directory of the 
 JVM being used to launch the app.


Following
the guidance for Windows 2000 here: 
http://docs.info.apple.com/article.html?artnum=75145


we added
entries to our C:\Apple\Library\Java\JavaConfig.plist to point to our Oracle
JDBC drivers. It's been a while, but I'm pretty sure that got us working in
EOModeler in Windows XP as well. 

Logan


 On May 18, 2006, at 6:22 AM, Sigurður Anton
Ólafsson wrote:
 
  Hi, I have a problem when running
EOModeler on Windows XP,
 
  using:
  EOModeler from WebObjects 5.2.4,
  Oracle database 9.2,
  java sdk 1.4.2:
 
  It comes when I create a new JDBC
connection:
 
  JDBC connection failed for driver:

  'oracle.jdbc.driver.OracleDriver'.
Driver not found in Java 
  Runtime! Please verify your CLASSPATH
environment variable.
 
  The current CLASSPATH for your
application is:
 
 
C:\Apple\Library\Frameworks\JDBCEOAdaptor.framework\Resources\Java\.;
 
  ... and more classpaths.









Fyrirvari á tölvupósti / e-mail disclaimer
http://www.us.is/page/fyrirvari
 ___
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 archive@mail-archive.com

Re: Setting a Default toOne Relationship

2006-05-19 Thread Ken Anderson


On May 19, 2006, at 5:25 AM, David Avendasora wrote:



On May 19, 2006, at 9:45 AM, Paul Lynch wrote:



On 19 May 2006, at 09:35, David Avendasora wrote:

I've been following the instructions in the WebObjects Java  
Client Programming manual (http://developer.apple.com/ 
documentation/WebObjects/DesktopApplications/WODesktopApps.pdf)  
for Enhancing the Application in which it describes several  
ways to modify a Direct To Java Client application. In the  
instructions for setting initial values (page 123), the example  
code is put in the awakeFromInsertion(EOEditingContext) method in  
the server-side class. I was putting it in the client-side, but  
I've now generated server side classes, added it to the  
Application Server target and put the code there and even changed  
it to simply put a default value in one of the attributes instead  
of setting a relationship, but it still doesn't work.


My understanding is that it belongs in the server side class, not  
the client side.  You should also really be developing server side  
classes in general before client side, as that is where most of  
the logic belongs.


As I stated above, it is now in the server side, AND I simplified  
it to match the documentation's example. Still, it doesn't work.


David,

I would guess that the object won't actually get inserted into the  
context on the server side until you try to save.  I could be wrong,  
since I've never done Java client work before, but that's what I  
would suspect.  Can you confirm or deny this?


I suggest doing some experiments saving the object to see when  
awakeFromInsertion() gets called on the server side...


Ken


___
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 archive@mail-archive.com


Re: Setting a Default toOne Relationship

2006-05-19 Thread David Avendasora

Hi Ken,

The objects must get inserted upon instantiation. What would the  
point be of having a context that you don't use until you save the  
information to the database? Might just as well do direct JDBC calls  
then.


According to the WebObjects Java Client Programming Guide (http:// 
developer.apple.com/documentation/WebObjects/DesktopApplications/ 
WODesktopApps.pdf), Chapter 6, the section on specifying initial  
values (page 123) if you add setters in the awakeFromInsertion()  
method, these values will show up immediately.


See below:

CLIP
Initial Values

When you create a new record, you might want to supply some default  
values for the fields in that record. Although none of the fields in  
the Student record really need a default value, you’ll override  
awakeFromInsertion in order to learn how to give a field a default  
value.


Add this code in the server-side Student.java file:

public void awakeFromInsertion(EOEditingContext context) {

super.awakeFromInsertion(context);

if (gpa() == null) {

setGpa(new BigDecimal(0));

}

if (sat() == null) {

setSat(new BigDecimal(0));

}

if (act() == null) {

setAct(new BigDecimal(0));

}

if (name() == null) {

setName();

}

 }

Build and run the application and create a new student record. You’ll  
notice that some of the fields are populated in the new record as  
shown in Figure 6-11.





Figure 6-11  Initial values






/CLIP


On May 19, 2006, at 10:48 AM, Ken Anderson wrote:


David,

I would guess that the object won't actually get inserted into the  
context on the server side until you try to save.  I could be  
wrong, since I've never done Java client work before, but that's  
what I would suspect.  Can you confirm or deny this?


I suggest doing some experiments saving the object to see when  
awakeFromInsertion() gets called on the server side...


Ken



 ___
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 archive@mail-archive.com

WO Web Services + Cocoa

2006-05-19 Thread Mike Schrag
I just went through the pain of getting a cocoa client to call a WO  
Web Service.  For anyone who would like to avoid this same pain, I  
wrote up the steps in the Wikibook:


http://en.wikibooks.org/wiki/Programming:WebObjects/Web_Services/ 
Web_Service_Provider#Consuming_with_WebServicesCore.framework


It's actually a relatively small set of changes required to get  
things working properly, and it works quite well once the changes are  
made.


ms

___
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 archive@mail-archive.com


local date language

2006-05-19 Thread Frank Stock

Hi,

How do I have to configure an Xserve (Tiger) to have all my dates  
localisted. I always get a date like 'Friday 19 may 2006' and i want  
this in duch 'Vrijdag 19 mei 2006'.
I suppose it has somthing to do with the  server because on my  
developer-machine it always works fine in duch.


mvg
Frank Stock
[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 archive@mail-archive.com


Re: WO Web Services + Cocoa

2006-05-19 Thread Philippe Lafoucrière


On 19 mai 06, at 14:16, Mike Schrag wrote:

I just went through the pain of getting a cocoa client to call a WO  
Web Service.  For anyone who would like to avoid this same pain, I  
wrote up the steps in the Wikibook:


http://en.wikibooks.org/wiki/Programming:WebObjects/Web_Services/ 
Web_Service_Provider#Consuming_with_WebServicesCore.framework


It's actually a relatively small set of changes required to get  
things working properly, and it works quite well once the changes  
are made.


Thanks a lot.
This book is a really good idea :)

___
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 archive@mail-archive.com


RE: AJAX WebObjects Integration

2006-05-19 Thread Tokalak, Ahmet. D-IT2


-- Weitergeleitete Nachricht
Von: Tokalak, Ahmet. D-IT2 [EMAIL PROTECTED]
Datum: Fri, 19 May 2006 14:40:48 +0200
An: Mike Schrag [EMAIL PROTECTED]
Betreff: Re: AJAX WebObjects Integration

Hi Mike,

I'm primarily interested in general widgets and form widgets.

I'm tired of trying to bring together WO and Dojo, so wanna give up. I think
WebObjects clashes with AJAX. It doesn't make sense to use AJAX with
WebObjects.

If anybody wants to convince me of the opposite, i'm willing ...

Greetings,
Ahmet 

 Von: Mike Schrag [EMAIL PROTECTED]
 Datum: Fri, 19 May 2006 14:32:04 +0200
 An: Tokalak, Ahmet, D-IT2 [EMAIL PROTECTED]
 Betreff: Re: AJAX WebObjects Integration
 
 Incidentally, which features of Dojo are you specifically interested in?
 
 On May 19, 2006, at 4:48 AM, Tokalak, Ahmet. D-IT2 wrote:
 
 Hi Mike,
 
 If you have worked with Dojo can you tell how you integrated it in
 WO? (I'm
 not a WO expert ;))
 
 Currently i'm looking in project wonder and wondering how to
 integrate the
 Dojo toolkit.
 
 The way the Wonder Ajax.Framework is designed is using the JSON-RPC
 library.
 With this design it not possible to integrate the Dojo toolkit as
 it is
 intended usage. I have to adapt it to my needs (i.e. Dojo Toolkit
 widgets
 for the view and JSON_RPC for server communication), but i don't
 like it.
 
 Does it exists a better approach?
 
 Cheers,
 Ahmet
 
 Von: Mike Schrag [EMAIL PROTECTED]
 Datum: Thu, 18 May 2006 15:53:58 +0200
 An: WebObjects Development webobjects-dev@lists.apple.com
 Betreff: Re: AJAX WebObjects Integration
 
 I have been looking at Dojo and actually have a couple Dojo things
 wrapped (the rich text component, for instance) in my local
 Ajax.framework to try them out.  I have not been as impressed with
 Dojo when I compare its cross-browser support to, say, Scriptaculous,
 but they have a HUGE set of libraries available.  That alone may make
 it compelling enough to support.
 
 ms
 
 On May 18, 2006, at 8:23 AM, Tokalak, Ahmet. D-IT2 wrote:
 
 Hi,
 
 I want integrate AJAX in my WO apps, but i'm facing big problems.
 The
 biggest problems i see is the stucture of a WO application.
 
 Has anybody gained experience of WO-AJAX integration  ?  (I wanna
 work with
 the DOJO Toolkit, but the tookit is not important)
 
 Cheers
 
  ___
 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/mschrag%
 40mdimension.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/ahmet.tokalak
 %40be
 rtelsmann.de
 
 This email sent to [EMAIL PROTECTED]
 
 
 
 


-- Ende der weitergeleiteten Nachricht

 ___
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 archive@mail-archive.com


RE: AJAX WebObjects Integration

2006-05-19 Thread Tokalak, Ahmet. D-IT2

I would be very glad if anybody can say how to run the DOJO HelloWorld
example under WO. 

The URL of DOJO HelloWorld example:
http://dojo.jot.com/WikiHome/Tutorials/HelloWorld

Greetings,
Ahmet

 Von: Mike Schrag [EMAIL PROTECTED]
 Datum: Fri, 19 May 2006 14:32:04 +0200
 An: Tokalak, Ahmet, D-IT2 [EMAIL PROTECTED]
 Betreff: Re: AJAX WebObjects Integration
 
 Incidentally, which features of Dojo are you specifically interested in?
 
 On May 19, 2006, at 4:48 AM, Tokalak, Ahmet. D-IT2 wrote:
 
 Hi Mike,
 
 If you have worked with Dojo can you tell how you integrated it in
 WO? (I'm
 not a WO expert ;))
 
 Currently i'm looking in project wonder and wondering how to
 integrate the
 Dojo toolkit.
 
 The way the Wonder Ajax.Framework is designed is using the JSON-RPC
 library.
 With this design it not possible to integrate the Dojo toolkit as
 it is
 intended usage. I have to adapt it to my needs (i.e. Dojo Toolkit
 widgets
 for the view and JSON_RPC for server communication), but i don't
 like it.
 
 Does it exists a better approach?
 
 Cheers,
 Ahmet
 
 Von: Mike Schrag [EMAIL PROTECTED]
 Datum: Thu, 18 May 2006 15:53:58 +0200
 An: WebObjects Development webobjects-dev@lists.apple.com
 Betreff: Re: AJAX WebObjects Integration
 
 I have been looking at Dojo and actually have a couple Dojo things
 wrapped (the rich text component, for instance) in my local
 Ajax.framework to try them out.  I have not been as impressed with
 Dojo when I compare its cross-browser support to, say, Scriptaculous,
 but they have a HUGE set of libraries available.  That alone may make
 it compelling enough to support.
 
 ms
 
 On May 18, 2006, at 8:23 AM, Tokalak, Ahmet. D-IT2 wrote:
 
 Hi,
 
 I want integrate AJAX in my WO apps, but i'm facing big problems.
 The
 biggest problems i see is the stucture of a WO application.
 
 Has anybody gained experience of WO-AJAX integration  ?  (I wanna
 work with
 the DOJO Toolkit, but the tookit is not important)
 
 Cheers
 
  ___
 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/mschrag%
 40mdimension.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/ahmet.tokalak
 %40be
 rtelsmann.de
 
 This email sent to [EMAIL PROTECTED]
 
 
 
 


-- Ende der weitergeleiteten Nachricht

 ___
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 archive@mail-archive.com


RE: AJAX WebObjects Integration

2006-05-19 Thread Tokalak, Ahmet. D-IT2

I would be very glad if anybody can say how to run the DOJO HelloWorld
example under WO. 

The URL of DOJO HelloWorld example:
http://dojo.jot.com/WikiHome/Tutorials/HelloWorld

Greetings,
Ahmet

 Von: Mike Schrag [EMAIL PROTECTED]
 Datum: Fri, 19 May 2006 14:32:04 +0200
 An: Tokalak, Ahmet, D-IT2 [EMAIL PROTECTED]
 Betreff: Re: AJAX WebObjects Integration
 
 Incidentally, which features of Dojo are you specifically interested in?
 
 On May 19, 2006, at 4:48 AM, Tokalak, Ahmet. D-IT2 wrote:
 
 Hi Mike,
 
 If you have worked with Dojo can you tell how you integrated it in
 WO? (I'm
 not a WO expert ;))
 
 Currently i'm looking in project wonder and wondering how to
 integrate the
 Dojo toolkit.
 
 The way the Wonder Ajax.Framework is designed is using the JSON-RPC
 library.
 With this design it not possible to integrate the Dojo toolkit as
 it is
 intended usage. I have to adapt it to my needs (i.e. Dojo Toolkit
 widgets
 for the view and JSON_RPC for server communication), but i don't
 like it.
 
 Does it exists a better approach?
 
 Cheers,
 Ahmet
 
 Von: Mike Schrag [EMAIL PROTECTED]
 Datum: Thu, 18 May 2006 15:53:58 +0200
 An: WebObjects Development webobjects-dev@lists.apple.com
 Betreff: Re: AJAX WebObjects Integration
 
 I have been looking at Dojo and actually have a couple Dojo things
 wrapped (the rich text component, for instance) in my local
 Ajax.framework to try them out.  I have not been as impressed with
 Dojo when I compare its cross-browser support to, say, Scriptaculous,
 but they have a HUGE set of libraries available.  That alone may make
 it compelling enough to support.
 
 ms
 
 On May 18, 2006, at 8:23 AM, Tokalak, Ahmet. D-IT2 wrote:
 
 Hi,
 
 I want integrate AJAX in my WO apps, but i'm facing big problems.
 The
 biggest problems i see is the stucture of a WO application.
 
 Has anybody gained experience of WO-AJAX integration  ?  (I wanna
 work with
 the DOJO Toolkit, but the tookit is not important)
 
 Cheers
 
  ___
 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/mschrag%
 40mdimension.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/ahmet.tokalak
 %40be
 rtelsmann.de
 
 This email sent to [EMAIL PROTECTED]
 
 
 
 


-- Ende der weitergeleiteten Nachricht


-- Ende der weitergeleiteten Nachricht

 ___
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 archive@mail-archive.com


Re: AJAX WebObjects Integration

2006-05-19 Thread Jean-François Veillette
From a quick read, you have to replace the php/asp handling with WO  
handling.  A quick and easy way to do it is by using DirectAction, just  
so you can easily write the url directly in the html file.

This will give you the bare essential just so it run.
This is not how you would like a WO integration on long-terme.
If you want to integrate Dojo and WO, you would do it the reverse way.   
Instead of adapting WO to act like PHP just so that Dojo tutorial can  
keep simple, you would instead look at it from a WO perspective.   
Attack the problem from a WO point of view ... In a WO workflow, how  
would you integrate a nice javascript/ajax library.  This is how the  
wonder's ajax framework look at the problem.  On long terme, you want  
to be able to drag-drop wo-components from a wobuilder palette for  
example.



- jfv

Le 06-05-19, à 09:32, Tokalak, Ahmet. D-IT2 a écrit :



I would be very glad if anybody can say how to run the DOJO HelloWorld
example under WO.

The URL of DOJO HelloWorld example:
http://dojo.jot.com/WikiHome/Tutorials/HelloWorld

Greetings,
Ahmet


Von: Mike Schrag [EMAIL PROTECTED]
Datum: Fri, 19 May 2006 14:32:04 +0200
An: Tokalak, Ahmet, D-IT2 [EMAIL PROTECTED]
Betreff: Re: AJAX WebObjects Integration

Incidentally, which features of Dojo are you specifically interested  
in?


On May 19, 2006, at 4:48 AM, Tokalak, Ahmet. D-IT2 wrote:


Hi Mike,

If you have worked with Dojo can you tell how you integrated it in
WO? (I'm
not a WO expert ;))

Currently i'm looking in project wonder and wondering how to
integrate the
Dojo toolkit.

The way the Wonder Ajax.Framework is designed is using the JSON-RPC
library.
With this design it not possible to integrate the Dojo toolkit as
it is
intended usage. I have to adapt it to my needs (i.e. Dojo Toolkit
widgets
for the view and JSON_RPC for server communication), but i don't
like it.

Does it exists a better approach?

Cheers,
Ahmet


Von: Mike Schrag [EMAIL PROTECTED]
Datum: Thu, 18 May 2006 15:53:58 +0200
An: WebObjects Development webobjects-dev@lists.apple.com
Betreff: Re: AJAX WebObjects Integration

I have been looking at Dojo and actually have a couple Dojo things
wrapped (the rich text component, for instance) in my local
Ajax.framework to try them out.  I have not been as impressed with
Dojo when I compare its cross-browser support to, say,  
Scriptaculous,
but they have a HUGE set of libraries available.  That alone may  
make

it compelling enough to support.

ms

On May 18, 2006, at 8:23 AM, Tokalak, Ahmet. D-IT2 wrote:


Hi,

I want integrate AJAX in my WO apps, but i'm facing big problems.
The
biggest problems i see is the stucture of a WO application.

Has anybody gained experience of WO-AJAX integration  ?  (I wanna
work with
the DOJO Toolkit, but the tookit is not important)

Cheers

 ___
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/mschrag%
40mdimension.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/ahmet.tokalak
%40be
rtelsmann.de

This email sent to [EMAIL PROTECTED]









-- Ende der weitergeleiteten Nachricht


-- Ende der weitergeleiteten Nachricht

 ___
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/ 
jean_francois_veillette%40yahoo.ca


This email sent to [EMAIL PROTECTED]



http://www.freeiPods.com/?r=21419063

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.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 archive@mail-archive.com


Re: WO Web Services + Cocoa

2006-05-19 Thread Mike Schrag
Yes, I agree .. The ns1: sounds fishy, and I don't know WHY it is  
being produced.  I only know that it is by printing the result  
dictionary, and that is the value of the key.


For what it's worth, I have not SEEN an ns2.  However, there are  
tns1: and tns2: references inside of the WSDL.  I wonder if you had  
classes in multiple packages that are returned, if that might result  
in an ns2 coming back for the second package?  I think that ns1 and  
ns2 are namespace aliases?


The reference to wsmakestubs and invalid indentifiers is specifically  
referring to this problem.  If you use WSMakeStubs stock (at least  
with WO 5.3 as you mentioned -- I had not tried this on older  
versions), the key that it uses for the return value (sans ns1:) just  
doesn't exist in the dictionary and will return nil.


ms

On May 19, 2006, at 9:25 AM, Marc Respass wrote:


Mike,

I've been dealing with this for over a year. Thanks for the  
valuable info.


I have a question about the return value. The ns1: in the key is  
new since WO 5.3 (more likely, the version of Axis that ships with  
it). I guessed ns1 to stand for namespace 1 so I figured there is  
the possibility of ns2 showing up and felt uncomfortable  
modifying my key to start with ns1:. I wrote a new method to look  
for the first : and strip everything up to and including the colon.


What do you think of that? If you have an Axis client, of course,  
everything works fine. You said that WSMakeStubs doesn't produce a  
valid identifier for retrieving a WO web service return value.  
What does that mean? I haven't done enough research to understand  
why Axis is now generating that ns1:.


Thanks a lot
Marc

On May 19, 2006, at 8:16 AM, Mike Schrag wrote:

I just went through the pain of getting a cocoa client to call a  
WO Web Service.  For anyone who would like to avoid this same  
pain, I wrote up the steps in the Wikibook:


http://en.wikibooks.org/wiki/Programming:WebObjects/Web_Services/ 
Web_Service_Provider#Consuming_with_WebServicesCore.framework


It's actually a relatively small set of changes required to get  
things working properly, and it works quite well once the changes  
are made.


ms

___
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/marcrespass% 
40mac.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 archive@mail-archive.com


Re: WO Web Services + Cocoa

2006-05-19 Thread Anjo Krank
These normally appear in the tag declaration as sometag  
xmlns:ns1=http://blabla;. It might be that they go away if you  
start your namespace with sth more sensible than http://;...


Am 19.05.2006 um 15:49 schrieb Mike Schrag:

Yes, I agree .. The ns1: sounds fishy, and I don't know WHY it is  
being produced.  I only know that it is by printing the result  
dictionary, and that is the value of the key.


For what it's worth, I have not SEEN an ns2.  However, there are  
tns1: and tns2: references inside of the WSDL.  I wonder if you had  
classes in multiple packages that are returned, if that might  
result in an ns2 coming back for the second package?  I think that  
ns1 and ns2 are namespace aliases?


The reference to wsmakestubs and invalid indentifiers is  
specifically referring to this problem.  If you use WSMakeStubs  
stock (at least with WO 5.3 as you mentioned -- I had not tried  
this on older versions), the key that it uses for the return value  
(sans ns1:) just doesn't exist in the dictionary and will return nil.


ms

On May 19, 2006, at 9:25 AM, Marc Respass wrote:


Mike,

I've been dealing with this for over a year. Thanks for the  
valuable info.


I have a question about the return value. The ns1: in the key is  
new since WO 5.3 (more likely, the version of Axis that ships with  
it). I guessed ns1 to stand for namespace 1 so I figured there  
is the possibility of ns2 showing up and felt uncomfortable  
modifying my key to start with ns1:. I wrote a new method to  
look for the first : and strip everything up to and including  
the colon.


What do you think of that? If you have an Axis client, of course,  
everything works fine. You said that WSMakeStubs doesn't produce  
a valid identifier for retrieving a WO web service return value.  
What does that mean? I haven't done enough research to understand  
why Axis is now generating that ns1:.


Thanks a lot
Marc

On May 19, 2006, at 8:16 AM, Mike Schrag wrote:

I just went through the pain of getting a cocoa client to call a  
WO Web Service.  For anyone who would like to avoid this same  
pain, I wrote up the steps in the Wikibook:


http://en.wikibooks.org/wiki/Programming:WebObjects/Web_Services/ 
Web_Service_Provider#Consuming_with_WebServicesCore.framework


It's actually a relatively small set of changes required to get  
things working properly, and it works quite well once the changes  
are made.


ms

___
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/marcrespass% 
40mac.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/krank% 
40logicunited.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 archive@mail-archive.com


Re: AJAX WebObjects Integration

2006-05-19 Thread Mike Schrag
As far as convincing you that it's not true that WO clashes with Ajax  
and that it doesn't make sense, obviously the Wonder Ajax frameworks  
essentially demonstrate the counterexample.  It's both possible  
(clashless?) and DOES make sense :)


However, it is true that making Ajax behave in the way WO users have  
become accustomed is not necessarily simple. Getting drag-and-drop to  
just work with object bindings, etc, makes for some slightly funky  
code, but the end result is really cool.  I suspect if you look at  
the code INSIDE of Ruby of Rails for making Ajax integration work,  
it's much the same.  The vast majority of users just use the end  
product, they're not writing the rails framework.  Because WO's Ajax  
support is fairly new, you're sort of at the writing the Rails  
framework level at the moment.


As Jean-François mentioned, using DirectActions will give you the  
quickest route to success for something like the Hello World  
example.  The tighter the integration, the trickier the code will  
become.  The source to Ajax framework is in Wonder, though, and it  
provides all the basic tools to create just about anything these  
example do, it's just varying levels of cleverness to make them nice  
depending on how complicated the desired behavior is.


ms

On May 19, 2006, at 9:29 AM, Tokalak, Ahmet. D-IT2 wrote:




-- Weitergeleitete Nachricht
Von: Tokalak, Ahmet. D-IT2 [EMAIL PROTECTED]
Datum: Fri, 19 May 2006 14:40:48 +0200
An: Mike Schrag [EMAIL PROTECTED]
Betreff: Re: AJAX WebObjects Integration

Hi Mike,

I'm primarily interested in general widgets and form widgets.

I'm tired of trying to bring together WO and Dojo, so wanna give  
up. I think

WebObjects clashes with AJAX. It doesn't make sense to use AJAX with
WebObjects.

If anybody wants to convince me of the opposite, i'm willing ...

Greetings,
Ahmet


Von: Mike Schrag [EMAIL PROTECTED]
Datum: Fri, 19 May 2006 14:32:04 +0200
An: Tokalak, Ahmet, D-IT2 [EMAIL PROTECTED]
Betreff: Re: AJAX WebObjects Integration

Incidentally, which features of Dojo are you specifically  
interested in?


On May 19, 2006, at 4:48 AM, Tokalak, Ahmet. D-IT2 wrote:


Hi Mike,

If you have worked with Dojo can you tell how you integrated it in
WO? (I'm
not a WO expert ;))

Currently i'm looking in project wonder and wondering how to
integrate the
Dojo toolkit.

The way the Wonder Ajax.Framework is designed is using the JSON-RPC
library.
With this design it not possible to integrate the Dojo toolkit as
it is
intended usage. I have to adapt it to my needs (i.e. Dojo Toolkit
widgets
for the view and JSON_RPC for server communication), but i don't
like it.

Does it exists a better approach?

Cheers,
Ahmet


Von: Mike Schrag [EMAIL PROTECTED]
Datum: Thu, 18 May 2006 15:53:58 +0200
An: WebObjects Development webobjects-dev@lists.apple.com
Betreff: Re: AJAX WebObjects Integration

I have been looking at Dojo and actually have a couple Dojo things
wrapped (the rich text component, for instance) in my local
Ajax.framework to try them out.  I have not been as impressed with
Dojo when I compare its cross-browser support to, say,  
Scriptaculous,
but they have a HUGE set of libraries available.  That alone may  
make

it compelling enough to support.

ms

On May 18, 2006, at 8:23 AM, Tokalak, Ahmet. D-IT2 wrote:


Hi,

I want integrate AJAX in my WO apps, but i'm facing big problems.
The
biggest problems i see is the stucture of a WO application.

Has anybody gained experience of WO-AJAX integration  ?  (I wanna
work with
the DOJO Toolkit, but the tookit is not important)

Cheers

 ___
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/mschrag%
40mdimension.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/ahmet.tokalak
%40be
rtelsmann.de

This email sent to [EMAIL PROTECTED]









-- Ende der weitergeleiteten Nachricht

 ___
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/mschrag% 
40mdimension.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 

Re: WO Web Services + Cocoa

2006-05-19 Thread Mike Schrag
Any idea how to control the namespace that is produced by WO's WSDL  
generator?  I dug around and it was not obvious at the time ...


ms

On May 19, 2006, at 10:04 AM, Anjo Krank wrote:

These normally appear in the tag declaration as sometag  
xmlns:ns1=http://blabla;. It might be that they go away if you  
start your namespace with sth more sensible than http://;...


Am 19.05.2006 um 15:49 schrieb Mike Schrag:

Yes, I agree .. The ns1: sounds fishy, and I don't know WHY it is  
being produced.  I only know that it is by printing the result  
dictionary, and that is the value of the key.


For what it's worth, I have not SEEN an ns2.  However, there are  
tns1: and tns2: references inside of the WSDL.  I wonder if you  
had classes in multiple packages that are returned, if that might  
result in an ns2 coming back for the second package?  I think that  
ns1 and ns2 are namespace aliases?


The reference to wsmakestubs and invalid indentifiers is  
specifically referring to this problem.  If you use WSMakeStubs  
stock (at least with WO 5.3 as you mentioned -- I had not tried  
this on older versions), the key that it uses for the return value  
(sans ns1:) just doesn't exist in the dictionary and will return nil.


ms

On May 19, 2006, at 9:25 AM, Marc Respass wrote:


Mike,

I've been dealing with this for over a year. Thanks for the  
valuable info.


I have a question about the return value. The ns1: in the key  
is new since WO 5.3 (more likely, the version of Axis that ships  
with it). I guessed ns1 to stand for namespace 1 so I figured  
there is the possibility of ns2 showing up and felt  
uncomfortable modifying my key to start with ns1:. I wrote a  
new method to look for the first : and strip everything up to  
and including the colon.


What do you think of that? If you have an Axis client, of course,  
everything works fine. You said that WSMakeStubs doesn't produce  
a valid identifier for retrieving a WO web service return value.  
What does that mean? I haven't done enough research to understand  
why Axis is now generating that ns1:.


Thanks a lot
Marc

On May 19, 2006, at 8:16 AM, Mike Schrag wrote:

I just went through the pain of getting a cocoa client to call a  
WO Web Service.  For anyone who would like to avoid this same  
pain, I wrote up the steps in the Wikibook:


http://en.wikibooks.org/wiki/Programming:WebObjects/Web_Services/ 
Web_Service_Provider#Consuming_with_WebServicesCore.framework


It's actually a relatively small set of changes required to get  
things working properly, and it works quite well once the  
changes are made.


ms

___
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/marcrespass 
%40mac.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/krank% 
40logicunited.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 archive@mail-archive.com


Re: AJAX WebObjects Integration

2006-05-19 Thread Anjo Krank

Well said.

And first and foremost, make sure what it is that you *actually* want  
to do. Doing Ajax just says nothing. Do you want some special  
widget? Call server side code? What for and why will that make your  
app better? Because if you haven't made sure that you know what you  
want is a sure recipe for wasted time, ours and yours.


Cheers, Anjo


Am 19.05.2006 um 16:06 schrieb Mike Schrag:

As far as convincing you that it's not true that WO clashes with  
Ajax and that it doesn't make sense, obviously the Wonder Ajax  
frameworks essentially demonstrate the counterexample.  It's both  
possible (clashless?) and DOES make sense :)


However, it is true that making Ajax behave in the way WO users  
have become accustomed is not necessarily simple. Getting drag-and- 
drop to just work with object bindings, etc, makes for some  
slightly funky code, but the end result is really cool.  I suspect  
if you look at the code INSIDE of Ruby of Rails for making Ajax  
integration work, it's much the same.  The vast majority of users  
just use the end product, they're not writing the rails framework.   
Because WO's Ajax support is fairly new, you're sort of at the  
writing the Rails framework level at the moment.


As Jean-François mentioned, using DirectActions will give you the  
quickest route to success for something like the Hello World  
example.  The tighter the integration, the trickier the code will  
become.  The source to Ajax framework is in Wonder, though, and it  
provides all the basic tools to create just about anything these  
example do, it's just varying levels of cleverness to make them  
nice depending on how complicated the desired behavior is.


ms

On May 19, 2006, at 9:29 AM, Tokalak, Ahmet. D-IT2 wrote:




-- Weitergeleitete Nachricht
Von: Tokalak, Ahmet. D-IT2 [EMAIL PROTECTED]
Datum: Fri, 19 May 2006 14:40:48 +0200
An: Mike Schrag [EMAIL PROTECTED]
Betreff: Re: AJAX WebObjects Integration

Hi Mike,

I'm primarily interested in general widgets and form widgets.

I'm tired of trying to bring together WO and Dojo, so wanna give  
up. I think

WebObjects clashes with AJAX. It doesn't make sense to use AJAX with
WebObjects.

If anybody wants to convince me of the opposite, i'm willing ...

Greetings,
Ahmet


Von: Mike Schrag [EMAIL PROTECTED]
Datum: Fri, 19 May 2006 14:32:04 +0200
An: Tokalak, Ahmet, D-IT2 [EMAIL PROTECTED]
Betreff: Re: AJAX WebObjects Integration

Incidentally, which features of Dojo are you specifically  
interested in?


On May 19, 2006, at 4:48 AM, Tokalak, Ahmet. D-IT2 wrote:


Hi Mike,

If you have worked with Dojo can you tell how you integrated it in
WO? (I'm
not a WO expert ;))

Currently i'm looking in project wonder and wondering how to
integrate the
Dojo toolkit.

The way the Wonder Ajax.Framework is designed is using the JSON-RPC
library.
With this design it not possible to integrate the Dojo toolkit as
it is
intended usage. I have to adapt it to my needs (i.e. Dojo Toolkit
widgets
for the view and JSON_RPC for server communication), but i don't
like it.

Does it exists a better approach?

Cheers,
Ahmet


Von: Mike Schrag [EMAIL PROTECTED]
Datum: Thu, 18 May 2006 15:53:58 +0200
An: WebObjects Development webobjects-dev@lists.apple.com
Betreff: Re: AJAX WebObjects Integration

I have been looking at Dojo and actually have a couple Dojo things
wrapped (the rich text component, for instance) in my local
Ajax.framework to try them out.  I have not been as impressed with
Dojo when I compare its cross-browser support to, say,  
Scriptaculous,
but they have a HUGE set of libraries available.  That alone  
may make

it compelling enough to support.

ms

On May 18, 2006, at 8:23 AM, Tokalak, Ahmet. D-IT2 wrote:


Hi,

I want integrate AJAX in my WO apps, but i'm facing big problems.
The
biggest problems i see is the stucture of a WO application.

Has anybody gained experience of WO-AJAX integration  ?  (I wanna
work with
the DOJO Toolkit, but the tookit is not important)

Cheers

 ___
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/mschrag%
40mdimension.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/ 
ahmet.tokalak

%40be
rtelsmann.de

This email sent to [EMAIL PROTECTED]









-- Ende der weitergeleiteten Nachricht

 ___
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:

Re: Setting a Default toOne Relationship

2006-05-19 Thread Chuck Hill


On May 19, 2006, at 3:02 AM, David Avendasora wrote:


Hi Ken,

The objects must get inserted upon instantiation. What would the  
point be of having a context that you don't use until you save the  
information to the database? Might just as well do direct JDBC  
calls then.


Well, you might be unpleasantly surprised.  Many of the Apple  
tutorials show some very bad examples of EOF usage.  I am pretty sure  
that D2W uses the don't insert until save paradigm in the add  
entity pages.  D2W is pretty near impossible to use well unless you  
are  using the Wonder extensions/patches.I would not be surprised  
to learn that D2JC also suffers from this bit of nasty design.  Try  
saving the object and see if awakeFromInsertion gets called.


This seems to suggest that this is not what is happening but an  
experiment would confirm / deny this:
According to the WebObjects Java Client Programming Guide (http:// 
developer.apple.com/documentation/WebObjects/DesktopApplications/ 
WODesktopApps.pdf), Chapter 6, the section on specifying initial  
values (page 123) if you add setters in the awakeFromInsertion()  
method, these values will show up immediately.


...
Build and run the application and create a new student record.  
You’ll notice that some of the fields are populated in the new  
record as shown in Figure 6-11.



Have you tried this example?  Does it work?


Chuck



On May 19, 2006, at 10:48 AM, Ken Anderson wrote:


David,

I would guess that the object won't actually get inserted into the  
context on the server side until you try to save.  I could be  
wrong, since I've never done Java client work before, but that's  
what I would suspect.  Can you confirm or deny this?


I suggest doing some experiments saving the object to see when  
awakeFromInsertion() gets called on the server side...


Ken



 ___
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/chill% 
40global-village.net


This email sent to [EMAIL PROTECTED]


--
Coming in 2006 - an introduction to web applications using WebObjects  
and Xcode http://www.global-village.net/wointro


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 archive@mail-archive.com


Re: Setting a Default toOne Relationship

2006-05-19 Thread Anjo Krank


Am 19.05.2006 um 17:11 schrieb Chuck Hill:



On May 19, 2006, at 3:02 AM, David Avendasora wrote:


Hi Ken,

The objects must get inserted upon instantiation. What would the  
point be of having a context that you don't use until you save the  
information to the database? Might just as well do direct JDBC  
calls then.


Well, you might be unpleasantly surprised.  Many of the Apple  
tutorials show some very bad examples of EOF usage.  I am pretty  
sure that D2W uses the don't insert until save paradigm in the  
add entity pages.  D2W is pretty near impossible to use well unless  
you are  using the Wonder extensions/patches.


It depends on what you do in your D2W.factory(), but is you are using  
the default, I'm pretty sure that it inserts immediately.


The reason you need Wonder is that the default rule system and the EC  
locking strategy sucks.


Cheers, Anjo
___
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 archive@mail-archive.com


Re: WO 5.3 and Tomcat property files?

2006-05-19 Thread David Aspinall
I encountered problems with WebSphere using properties files.  The  
first problem is that either the Framework properties files were NOT  
read, or they were not read in time (for me to initialize from  
them).  The second is that when the properties are loaded, there is  
only ONE System.properties object.  See:


http://www.google.com/search?q=webobjects+servlet+properties

http://developer.apple.com/documentation/WebObjects/JSP_and_Servlets/ 
SpecialIssues/chapter_4_section_2.html


Additionally you can set properties in the container and WO will load  
them from JNDI.  Which is cool in a way and familiar for clients with  
their own administration processes and policies.


Our solution is to have one property defined in the container to  
identify an additional properties file.  That file we manually read  
(from filesystem/war/ear) using a standard java Properties object and  
then for each property we set the key and value into NSProperties.   
If we do this early enough (Application initialization) then we can  
control/override all the standard WebObjects properties (including  
custom jdbc/jndi connection info).


Hope this helps,
David

On 19-May-06, at 2:39 AM, Dave Elsner wrote:


Hi,

What the best approach to use property files from development in  
and for deployment within tomcat? Because it seems they are  not  
being read in at run time


System.getProperty(foo)  always returns null under tomcat, but  
works perfectly in development in Xcode.
I tried printing out System.getProperties()  and none of my  
application properties have been loaded only the built in Java ones  
are there.


How does every one else handle this?

1) Manually add properties as   env-entry in the web.xml file?

2) Avoid properties altogether ?

3) Something else?

I had a quick look at LEConfigServletEnvEntryMergeTool from  
lejstuff from Andrew Lindesay and it looks promising. As it appears  
to convert property files to env-entry in the web.xml file, but  
running it out of the box I got IO.exceptions.


- Dave

___
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/daspinall% 
40ticoon.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 archive@mail-archive.com


Re: Setting a Default toOne Relationship

2006-05-19 Thread Paul Lynch


On 19 May 2006, at 10:25, David Avendasora wrote:

This is probably the crux of my problem. What you see above is the  
entire extent of the custom code written for the application so  
far. This is IT. NOTHING else. Everything else is managed by WO's  
D2JC framework. How would I check to see if it's been inserted?


I have to wonder if your D2JC app is ignoring your eo classes, and  
acting directly on the database, by way of EOGenericRecord?  I  
believe that, in some circumstances, if WO can't find your class from  
the eomodel, it will fall back on EOGenericRecord.


IIRC, JC uses some form of 2 stage commit - first is within the JC  
app, then a further commit back to the server.  If you follow this  
idea through the documentation, something useful might pop up (I hope).


Paul

___
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 archive@mail-archive.com


Re: AJAX WebObjects Integration

2006-05-19 Thread Pierce T. Wetter III


I read your earlier WebObjects on Rails post with much interest  
and started to throw together a small sample application that used  
EZ... classes.  I slowed and stalled because I had to fill in a lot  
of the gaps -- I'm not adverse to doing that, but time is money/ 
precious and I'll have to wait till the weekend to get the spare  
time!!


In reading your posting today, I had the same, this is neat, I  
need to try this desire.


Where I'm headed with this is to wonder if you have a small,  
functional example of the various ideas you've put together on this  
topic or, if not, if this is something that you think would be good  
to do.  People learn by example and I'd be happy to assist in  
putting something together.




  The Wrox site has the sample code from my old book chapter, let me  
look...  here it is, you want Chapter 7:


http://support.apress.com/books.asp?bID=1861004311s=0

  As for the Ajax stuff, the problem is that Marketocracy is  
Objective-C not Java, so all my stuff is coded in ObjC at the moment.  
That's why my posts have been more conceptual then code lately.  
It's the same API, but I don't want to scare people with lots of [].


  I interviewed at the iTMS on Monday, so maybe that will change. :-)

  What I really want to do though is put this all together into a  
framework to help jumpstart people with WO. Wonder is cool, but its  
kind of more focused at the advanced WO practitioner then someone who  
just wants to get something done.


   Maybe Wonder just needs a WO Recipes section. I've come to love  
Recipes books...


In passing, I'll note that the aspects of WebObjects that you are  
highlighting are the ones that I find so powerful.  Many people say  
the power of WO is EOF, and while EOF is an astonishing piece of  
work, I'll argue that WO without EOF is still extremely powerful.   
I particularly like your Myth: WebObjects generates HTML comment!


Thanks for your contribution, you're more articulate than I would  
be on this ...


 Thanks, its very encouraging when I get feedback like this from one  
of my long posts.


 Pierce
___
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 archive@mail-archive.com


Re: AJAX WebObjects Integration

2006-05-19 Thread Pierce T. Wetter III


On May 19, 2006, at 11:53 AM, Chuck Hill wrote:


Pierce, thank  you.  That was superb!  One small edit and a note:

On May 19, 2006, at 10:48 AM, Pierce T. Wetter III wrote:


 Reality: WebObjects is actually a better framework for use with  
WebObjects then Rails because it has a better component system  
then Rails.


Think this should read Reality: WebObjects is actually a better  
framework for use with AJAX than Rails because it has a better  
component system then Rails.


 Doh. Yep.





 [[[However, there's a gotcha there, because component actions  
called from javascript count towards your backtracking count.  
Since someone might be going down through the page clicking rating  
after rating, that could be a problem. If your max backtracking  
count was 10, and you had 20 postings on a page, they wouldn't be  
able to rate the 11th page. ]]]


To avoid problems like this, I have added methods like this to  
Session:


public void savePage(WOComponent aPage)
{
if (shouldCachePage(aPage))
{
super.savePage(aPage);
}
}




/**
 * Returns codetrue/code if the passed WOComponent is  
eligible to be added to the page cache.  This is used to keep pages  
that do not need to be cached from the page cache.  For example,  
pages that are generated only from Direct Actions and which do not  
contain Component Action URLs do not need to be cached.

 *
 * @param aPage the WOComponent to check for eligibility
 * @return codetrue/code if the passed WOComponent is  
eligible to be added to the page cache

 */
public boolean shouldCachePage(WOComponent aPage)
{
return ! (aPage instanceof PartialPage);
}


Where PartialPage is an interface that components can implement to  
indicate that they don't belong in the page cache.


  Hey, great tip. That makes component actions easier to use with Ajax.

  Hmmm... So I'll have to go adjust my component class hierarchy:

  WOComponent
EZComponent
  EZPagelet
 EZPage

  So both EZPagelet and EZPage can pull stuff out of a direct action  
URL via key value coding, but EZPagelet's default to not being  
cacheable. I can avoid the instance of call by doing:


public void savePage(WOComponent aPage)
{
if (((EZPagelet) aPage).shouldCache())
{
super.savePage(aPage);
}
}

and making sure that EZPagelet and EZPage both implement shouldCache 
() (pagelet returns false, page returns true).


  That's going to enforce that all direct actions are subclasses of   
EZPage or EZPagelet, but that's a good thing for security anyways.


 Pierce


 
   
___

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 archive@mail-archive.com


Re: AJAX WebObjects Integration

2006-05-19 Thread Mike Schrag

WOW! Thanks Pierce.

I vote for inclusion of this on the WikiBook.

excellent tour de force overview snipped
It will be -- it made my interesting post list, I'm just not up to  
current yet :)  But if someone wants to put it in there before me,  
that's fine too ... There's a top level Ajax entry that's empty at  
the moment.


ms
___
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 archive@mail-archive.com


Re: WebObjects Apache Connection Problems

2006-05-19 Thread Michelle Parker

or try
sudo SystemStarter restart WebObjects Services

mich

On 19/05/2006, at 4:44 AM, Art Isbell wrote:


On May 17, 2006, at 11:16 PM, Dev WO wrote:


Then you should either start wotaskd, but I'm not sure it would work:
SystemStarter start WebObjects


Try:

sudo SystemStarter start WebObjects

Aloha,
Art

___
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/mich% 
40webobjectives.com.au


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 archive@mail-archive.com