Re: Detecting eo changes when they happen

2006-10-11 Thread Pierre Bernard
Hi! Using the ChangeNotificationCenter from http://www.bernard-web.com/ pierre/webobjects/code.html you may be notified that an object has changed. It won't however tell you which attribute was affected. Pierre On Oct 10, 2006, at 6:03 PM, Florijan Stamenkovic wrote: Hi all, I am tryin

Component Java class lookup

2006-10-11 Thread Logi Helgu
I have a Framework[FW] and Project[PR] that both a JAVA file with the same name. In my FW it's a single file and a Component in my PR. When I run the PR the Component looks for the Java file in the FW but not the one in the PR. Is there any way to tell a Component in witch package or "namespace"

Re: Detecting eo changes when they happen

2006-10-11 Thread Florijan Stamenkovic
Hi Pierre, Thanks for pointing the code, it is however not what I need. It was my first thought to listen for EditingContext notifications, but they only are posted on some EditingContext actions, like saveChanges(), and not when an edit on an EO happens in the client editing context. I

[SOLVED] Re: Detecting eo changes when they happen

2006-10-11 Thread Florijan Stamenkovic
Sacha, Chuck, I suppose I simply have to subclass EOGenericRecord, and add my notification posts. I will try first with subclassing takeStoredValue...() and include/excludeObject...() methods, seems more clean and less dependent on generated EO classes. Still have to see how exactly meth

Re: [SOLVED] Re: Detecting eo changes when they happen

2006-10-11 Thread Ken Anderson
Florijan, How many cases do you need this information in? Personally, I would use EOGenerator, generate 2 class files (the underscore and regular classes) and add set and get methods with special names to the class. Then you could hook up your UI to those methods instead of the regular

Re: Detecting eo changes when they happen

2006-10-11 Thread Florijan Stamenkovic
Hi Ken, How many cases do you need this information in? Personally, I would use EOGenerator, generate 2 class files (the underscore and regular classes) and add set and get methods with special names to the class. Then you could hook up your UI to those methods instead of the regular me

Re: Detecting eo changes when they happen

2006-10-11 Thread Florijan Stamenkovic
Why are two class files needed? Ah, EOGenerator. Sorry for the newbie question, I have never used it before. Flor ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) He

Re: Detecting eo changes when they happen

2006-10-11 Thread Mike Schrag
*gasp* http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/Using_EOF/ EOGenerator run, don't walk :) On Oct 11, 2006, at 10:09 AM, Florijan Stamenkovic wrote: Why are two class files needed? Ah, EOGenerator. Sorry for the newbie question, I have never used it before. Flor __

Re: Detecting eo changes when they happen

2006-10-11 Thread Ken Anderson
If you need a generalized solution, you can change your generated methods to do exactly what you want through the template. This would then give you all the functionality you want in the standard generated methods. With EOGenerator, you generate 2 class files. One is a subclass of the o

Re: Detecting eo changes when they happen

2006-10-11 Thread Florijan Stamenkovic
If you need a generalized solution, you can change your generated methods to do exactly what you want through the template. This would then give you all the functionality you want in the standard generated methods. With EOGenerator, you generate 2 class files. One is a subclass of the o

Re: Detecting eo changes when they happen

2006-10-11 Thread Ken Anderson
On Oct 11, 2006, at 10:31 AM, Florijan Stamenkovic wrote:Anyway, I assumed your two-class solution was a design idea for the problem at hand, and not standard EOG behavior Nope - it IS standard EOGenerator behavior.And if your situation is broad, rather than write custom methods like I suggested be

Use of the "formatter" binding on a WOString?

2006-10-11 Thread Matt Kime
I'm terribly confused as to how to use a formatter in on a WOString in a WOComponent. How is the "formatter" binding to be used? Must there be code in the component? I've used the date and number formatters so I guess I'm expecting something similar. I'd appreciate even a point towards simple docu

Re: Use of the "formatter" binding on a WOString?

2006-10-11 Thread Sacha Michel Mallais
On Oct 11, 2006, at 8:09 AM, Matt Kime wrote: I'm terribly confused as to how to use a formatter in on a WOString in a WOComponent. How is the "formatter" binding to be used? Must there be code in the component? I've used the date and number formatters so I guess I'm expecting something similar.

Re: WOUnittest2 Error JavaNoneAdaptor

2006-10-11 Thread Christian Pekeler
Hi all, im have some problems when working with wounittest2, when i run one test here junit show me this error: java.lang.IllegalStateException: Unable to get the name of the class to instantiate for the adaptor framework JavaNoneAdaptor. The possible causes for this error are: the adaptor

WOGenericContainer Question

2006-10-11 Thread Chip Myers
Hi, I'm working with a table and have the need to create an embedded WOGenericContainer with 7 different columns, also contained within a WORepetition.  I've had no trouble placing the repetition within the table, since WebObjects provides this functionality.In other words, it should not display th

Re: Use of the "formatter" binding on a WOString?

2006-10-11 Thread David Holt
I use it as a method call in Application that strips out certain characters from my database record before displaying in HTML. For example, in the formatter field I bind it to application.formatCode I apply the formatter to a text area in most cases. David On 11 Oct 2006, at 8:09 AM, Matt Ki

Re: WOGenericContainer Question

2006-10-11 Thread David LeBer
On 11-Oct-06, at 11:38 AM, Chip Myers wrote: Hi, I'm working with a table and have the need to create an embedded WOGenericContainer with 7 different columns, also contained within a WORepetition. I've had no trouble placing the repetition within the table, since WebObjects provides this

Re: WOGenericContainer Question

2006-10-11 Thread Chip Myers
David:  I'm trying to achieve alternating colors for each row that is generated within the repetition.  To do this, I need to create a bgcolor attribute which uses a session variable.Your email actually helped me think through my problem a bit more.  I simply had to make my dynamic, and upon this,

Re: Use of the "formatter" binding on a WOString?

2006-10-11 Thread Chuck Hill
And in case you need further clarification of David's suggestion... In Application.java add this (for example) private NSTimestampFormatter dmyFormatter = new NSTimestampFormatter ("%d/%m/%y"); public NSTimestampFormatter dmyFormatter() { return dmyFormatter; } And then in your bindings

Re: Use of the "formatter" binding on a WOString?

2006-10-11 Thread Paul Lynch
On 11 Oct 2006, at 16:09, Matt Kime wrote: I'm terribly confused as to how to use a formatter in on a WOString in a WOComponent. How is the "formatter" binding to be used? Must there be code in the component? I've used the date and number formatters so I guess I'm expecting something similar. I'

Re: Component Java class lookup

2006-10-11 Thread Robert Walker
Logi,I'd say your best bet is to avoid that situation altogether by avoiding name conflicts.  It's the job of WOComponent.pageWithName(String) to lookup the java file for a particular WOComponent name.  There may be a workaround, but avoidance is the best practice here.This is really a side-effect

WO doesn´t find correct "Session" class

2006-10-11 Thread Georg von Bülow
Hi, I get the following strange error message when trying to run a .woa through terminal (or JavaMonitor). /java.lang.IllegalArgumentException: Class 'Session' exists (class javax.mail.Session) but is not a subclass of WOSession.../ True, there is a Session.class in ERJavaMail, which I

Re: WO doesn´t find correct "Session" cla ss

2006-10-11 Thread Mike Schrag
When you are embedding frameworks, the order of the classes in the applications NSBundle is effectively random (at this point, anyway). I'm guessing this is what you're seeing. The order of classloading with embedding does not respect classpath ordering. I just stumbled onto this exact p

Re: roblem with XSLT Trasformations - was problem generating PDF using FOP

2006-10-11 Thread Amedeo Mantica
Hello, Yes, I need to go into pdf (I'm "trying" to use apache fop 0.92 at the moment) "trying" because of accent proiblems my generatePDF method works well, but because to wrong XML source encoding PDF is also bad Also tried FOP command line, … that return bad results. see: http://down

Newbie WOImageButton Question

2006-10-11 Thread Chip Myers
Hi, I'm having trouble accessing an image I'd like to display in a WOImageButton.  Until now, I've only been able to generate a '?' mark image.  According to the apple website, the filename attribute of WOImageButton is as follows:filename - Path to the image relative to the WebServerResources dire

Re: WO doesn´t find correct "Session" cla ss

2006-10-11 Thread Chuck Hill
Something seems odd here. The docs state: The method goes through several steps to locate the class to use for instantiating this object: First it looks for a class of name "Session" that is a subclass of WOSession and is in the same package as the subclass of WOApplication being used.

Re: Component Java class lookup

2006-10-11 Thread Robert Walker
Jon,WOComponent nextPage = pageWithName(MyComponentClass.class.getName());Cool.  I hadn't considered that, but since I avoid these issues I never really thought about it.On Oct 11, 2006, at 3:26 PM, Jon Nolan wrote:You may also use the following convention:WOComponent nextPage = pageWithName(MyComp

Re: Detecting eo changes when they happen

2006-10-11 Thread Pierre Bernard
Florijan, the code I am proposing builds upon the ObjectsChangedInEditingContextNotification. This notification is posted as changes happen. It is not delayed until saveChanges(). This is actually used in the Java client to update the UI as changes happen. This is also posted when changes

Re: WO doesn´t find correct "Session" class

2006-10-11 Thread Georg von Bülow
Thanks Mike, I would like to cheat, but where and how I can set this? The class _NSUtilities is final... Greetings, Georg When you are embedding frameworks, the order of the classes in the applications NSBundle is effectively random (at this point, anyway). I'm guessing this is what you're

Re: WO doesn´t find correct "Session" cla ss

2006-10-11 Thread Chuck Hill
Well, if cheating is what you want... :-) In Application.java add this: public WOSession createSessionForRequest(WORequest aRequest) { return new br.nist.nust.prontuario.basico.Session(); } On Oct 11, 2006, at 1:37 PM, Georg von Bülow wrote: Thanks Mike, I would like to cheat, but whe

Re: WO doesn´t find correct "Session" class

2006-10-11 Thread Georg von Bülow
Hi Chuck, thank you, I'll try to get through with cheating :-) To your first response, I´m doing all the way you said. Ok, I call ERXApplication.main( argv, Application.class ); but this shouldn´t make any difference. I start command line ./Prontuario. Actually I can see that everything start

Re: Newbie WOImageButton Question

2006-10-11 Thread Paul Lynch
On 11 Oct 2006, at 21:03, Chip Myers wrote: Hi, I'm having trouble accessing an image I'd like to display in a WOImageButton. Until now, I've only been able to generate a '?' mark image. According to the apple website, the filename attribute of WOImageButton is as follows: filename - P

Re: Detecting eo changes when they happen

2006-10-11 Thread John Bruce
Hi Florijan, One option that might be worth considering is adding standard java bean property change support to your eo's since this is a Swing app. You could do that via EOGenerator as previously described but another way could be to do it using aspects. I remember reading an article about this

Re: Newbie WOImageButton Question

2006-10-11 Thread Tarun Reddy
On Oct 11, 2006, at 3:26 PM, Paul Lynch wrote: On 11 Oct 2006, at 21:03, Chip Myers wrote: Hi, I'm having trouble accessing an image I'd like to display in a WOImageButton. Until now, I've only been able to generate a '?' mark image. According to the apple website, the filename attribu

Re: Newbie WOImageButton Question

2006-10-11 Thread Chuck Hill
On Oct 11, 2006, at 8:37 PM, Tarun Reddy wrote: On Oct 11, 2006, at 3:26 PM, Paul Lynch wrote: On 11 Oct 2006, at 21:03, Chip Myers wrote: Hi, I'm having trouble accessing an image I'd like to display in a WOImageButton. Until now, I've only been able to generate a '?' mark image. Acc

Re: Newbie WOImageButton Question

2006-10-11 Thread Tarun Reddy
On Oct 11, 2006, at 9:37 PM, Tarun Reddy wrote: [snip] Along these lines, I would like to use static paths to images and CSS files that work both in development and in deployment. Is there some magic I can do for this? It seems a bit of an over kill to use a WOImage for the images (and I b

WOLips and EOModel

2006-10-11 Thread Jeff Schmitz
Any tips on migrating an EOModel from my xCode project to Eclipse?  I tried just copying it over, but when I run from Eclipse I get the following error:An exception occurred while trying to open a channel: com.webobjects.jdbcadaptor.JDBCAdaptorException: No suitable driverIs there some special plac

Re: WOLips and EOModel

2006-10-11 Thread Chuck Hill
Check the the Eclipse project includes JavaJDBCAdaptor.framework. Chuck On Oct 11, 2006, at 9:11 PM, Jeff Schmitz wrote: Any tips on migrating an EOModel from my xCode project to Eclipse? I tried just copying it over, but when I run from Eclipse I get the following error: An exception o

Re: Newbie WOImageButton Question

2006-10-11 Thread Tarun Reddy
On Oct 11, 2006, at 10:01 PM, Chuck Hill wrote: On Oct 11, 2006, at 8:37 PM, Tarun Reddy wrote: It seems a bit of an over kill to use a WOImage for the images (and I believe there is a Project Wonder component for CSS) if they are static and have no access restrictions. Ideally, I would

Re: Newbie WOImageButton Question

2006-10-11 Thread Chuck Hill
On Oct 11, 2006, at 9:22 PM, Tarun Reddy wrote: On Oct 11, 2006, at 10:01 PM, Chuck Hill wrote: On Oct 11, 2006, at 8:37 PM, Tarun Reddy wrote: It seems a bit of an over kill to use a WOImage for the images (and I believe there is a Project Wonder component for CSS) if they are static

Re: Newbie WOImageButton Question

2006-10-11 Thread Tarun Reddy
On Oct 11, 2006, at 10:31 PM, Chuck Hill wrote: Haven't looked into the second part since I was originally planning on using tomcat to deploy my app, but maybe this is the time to look at it. Off to figure that out Not much to do. Just go into System Preferences - Sharing and turn

Re: Newbie WOImageButton Question

2006-10-11 Thread Art Isbell
On Oct 11, 2006, at 7:11 PM, Tarun Reddy wrote: Should I just start up wotaskd at startup (what is the right way to do that under Mac OS X) or is it supposed to get launched by mod_WebObjects.so? You need to configure wotaskd (and optionally, JavaMonitor) to start up at boot time. You'l