Re: How to contribute ?

2013-01-15 Thread Mark Morris
As I recall the .api files were used by WOBuilder to indicate the component's bindings, including data types, required/optional, etc. This was really useful for reusable components. And editing the components on the fly... that takes me back. My first WO app was originally written in WebScript,

Re: How to get each CheckBox value inside a WORepetition Bind to the same variable

2011-06-17 Thread Mark Morris
I should think before firing off emails next time. I was thinking of the "checked" binding, not "value". I haven't used the "selection" and "value" bindings since being seduced by the power of "checked" long ago. Sorry for increasing the confusion level! Regards, Mark On Jun 17, 2011, at 7:14

Re: How to get each CheckBox value inside a WORepetition Bind to the same variable

2011-06-16 Thread Mark Morris
Hi, On Jun 16, 2011, at 8:23 AM, naneon.raym...@neuf.fr wrote: > [snip] > masterCheck : WOCheckBox { > class = "texte"; > name = "master"; > selection = selectedMaster; ->Variable bind to check box value > value = master.diplSpecAbr; --->CheckBox value > onclick = "MstChecked(this.for

Re: database design patterns for the desperate

2011-05-11 Thread Mark Morris
Similarly, could your templates be modeled using one table, with a one-to-many to itself? This might be more flexible in general, but of course I don't know your specifics. Either way (either using a single class or a superclass of your three classes), perhaps you could teach the template to cr

Re: OS X Java Deprecation & JVM Source Code

2010-10-22 Thread Mark Morris
On Oct 21, 2010, at 3:12 PM, Stefan Klein wrote: > Can't remember the exact years but: > > 1990 I started with NeXTstep on a black box > > and then the horror began: > > Operating Systems: > - NeXTstep on several plattforms > - OpenStep > - Black Hardware dies > - YellowBox (anyone remenber?) >

Re: ERD

2010-10-12 Thread Mark Morris
You could also try "Oracle SQL Developer Data Modeler". Version 3 is now available for download, it's free, and it supports reverse engineering and printing of ERDs. I use it with an Oracle database, but I believe, like SQL Developer, it will work with other databases. Regards, Mark On Oct 6,

Re: Little help with a Db design quesiton

2009-11-16 Thread Mark Morris
Hi Gustavo, I agree with Dave, add the information to the Invoice. At that point, the information is no longer the client's address, it has logically become an attribute of the Invoice (where were these goods sent?). Regards, Mark On Nov 16, 2009, at 11:19 AM, Gustavo Pizano wrote: > Thanks

Re: ReportMill [was Re: WOWODC 2010 : call for presenters]

2009-11-03 Thread Mark Morris
vast majority of the cases. Regards, Mark On Nov 3, 2009, at 10:25 AM, Mark Morris wrote: Other than price and "open-source-ness", are there disadvantages to ReportMill versus other tools? I've been pretty happy with it, so much so that I haven't been paying much attention

ReportMill [was Re: WOWODC 2010 : call for presenters]

2009-11-03 Thread Mark Morris
Other than price and "open-source-ness", are there disadvantages to ReportMill versus other tools? I've been pretty happy with it, so much so that I haven't been paying much attention to alternatives lately. Thanks, Mark On Nov 2, 2009, at 2:04 PM, Ricardo J. Parada wrote: I'm interested

Re: Snow Leopard and WebObjects

2009-09-04 Thread Mark Morris
On Sep 4, 2009, at 5:54 PM, Chuck Hill wrote: On Sep 3, 2009, at 11:37 PM, Mark Morris wrote: While in Europe long ago I had some non-export, domestic Guinness, and you just about needed a knife and fork for that stuff! Have to admit, much as I like beer, it would be hard for me to

Re: Snow Leopard and WebObjects

2009-09-03 Thread Mark Morris
While in Europe long ago I had some non-export, domestic Guinness, and you just about needed a knife and fork for that stuff! Have to admit, much as I like beer, it would be hard for me to acquire a taste for it -- Mark On Sep 3, 2009, at 9:55 PM, Chuck Hill wrote: Guinness VERY goo

Re: WebObjects with ReportMill

2009-09-02 Thread Mark Morris
Hi Santhosh, FYI, ReportMill 11 requires Java 1.5. With Java 1.4, ReportMill 10 is as high as you can go. Regards, Mark On Sep 2, 2009, at 8:07 AM, SantoshGundu wrote: Hi, We have our Project running with WebObjects 5.2.4 , with jdk 1.4 , ReportMill 7 Now we want to upgrade Reportmil

Re: Listening for changes on an EO

2009-07-09 Thread Mark Morris
Just a clarification, do you want to know when the value changes, even if it's not saved to the database? Or do you just want to know if a change is being saved? That would make a difference. ;-) Regards, Mark On Jul 9, 2009, at 3:28 PM, Lon Varscsak wrote: Uh, another question. :) Sin

Re: A WebObjects article on Appleinsider

2009-07-08 Thread Mark Morris
On Jul 8, 2009, at 11:01 AM, Chuck Hill wrote: On Jul 8, 2009, at 5:46 AM, William Hatch wrote: On Jul 8, 2009, at 7:04 AM, David Avendasora wrote: Yeah, this is really good news. Now that WO releases won't be tied to OS X and Xcode releases, I'm betting we'll see far more frequent rele

Re: Completely OT: question for US ADC members

2009-07-02 Thread Mark Morris
rds, Mark On Jul 2, 2009, at 2:51 PM, Janine Sisk wrote: Wow - I swear the last time I tried that, it told me I had to have a paid membership to see it. Thanks! janine On Jul 2, 2009, at 12:40 PM, Mark Morris wrote: Hi Janine, Anyone can view ADC pricing, they just make the li

Re: Completely OT: question for US ADC members

2009-07-02 Thread Mark Morris
Hi Janine, Anyone can view ADC pricing, they just make the link hard to find. Go to: ... and click on the link in step #1 of "Ordering Information". Regards, Mark On Jul 2, 2009, at 2:35 PM, Janine Sisk wrote: Sorry to waste the b

Re: csv report download -> Safari adding .html to filename?

2009-04-06 Thread Mark Morris
Leif, I haven't tested this lately, but in my code in addition to the filename in the "content-disposition" header, I have the equivalent of this for the "content-type": response.setHeader( "test/csv; name=\"" + reportFilename + "\"", "content-type" ); Maybe that was why? Regards, Mar

Re: Sometime WebObjects drives me a little crazy!

2009-01-26 Thread Mark Morris
That was (is) the NSObject's version of toString, so I think it might be okay now that we're in Javaland. But I never use it either, out of habit -- Mark On Jan 26, 2009, at 3:24 PM, Ken Anderson wrote: Doesn't it still? I NEVER use it :) On Jan 26, 2009, at 4:22

Re: Sometime WebObjects drives me a little crazy!

2009-01-26 Thread Mark Morris
Back in the old days, an attribute named "description" would cause you grief. ;-) -- Mark On Jan 25, 2009, at 9:50 AM, James Cicenia wrote: Don't feel so bad. I once named a component "Request". Took me a whole day to finally figure out it was the name of the component that fubar'd it.

Re: computeQueryDictionaryInContext error

2008-12-18 Thread Mark Morris
works/ERExtensions.framework/Resources/Java/ ERExtensions.jar) Still not confident I've deciphered the details on that one Thanks again, Mark On Dec 18, 2008, at 3:37 PM, Chuck Hill wrote: Is there a stack trace? A more complete error message? Chuck On Dec 18, 2008, at 1:29 PM, Mark M

Re: computeQueryDictionaryInContext error

2008-12-18 Thread Mark Morris
I'm struggling with the exact same error right now, and also have the console message symptoms Randall mentions. I was thinking perhaps I have incompatible versions of something. Here's what I have (after trying to update everything to see if it would help): WebObjects 5.4.3

Re: Workflow framework?

2008-11-25 Thread Mark Morris
On Nov 24, 2008, at 5:32 PM, Michael DeMan (WO) wrote: The cool thing about thinking about it is a finite state engine is that the technical stuff is so thoroughly documented. Plus, visualizing it is easier. A bunch of circles on a piece of paper with arrows coming in from other circles

Re: Workflow framework?

2008-11-24 Thread Mark Morris
rds-based framework? Just thinking out loud - no idea how hard this would be geoff 2008/11/23 Mark Morris <[EMAIL PROTECTED]>: I'll have to look in my archived stuff, I don't have it on my laptop anymore. It was done in WO 4.5 (Java), so it will definitely need some updating.

Re: Workflow framework?

2008-11-23 Thread Mark Morris
s. Once it was implemented, approvals that had been taking a week or more averaged about a day. Now to find the hard drive and/or DVDs it's stored on ;-) Regards, Mark On Nov 23, 2008, at 1:22 PM, Lachlan Deck wrote: On 23/11/2008, at 4:27 AM, Mark Morris wrote: I wrote one a few y

Re: Workflow framework?

2008-11-22 Thread Mark Morris
I wrote one a few years ago. From time to time I've thought about updating it as well as another framework and contributing them, if people might find them useful. There are a few ways to approach workflow. Email me and we can see if what I have might be a good fit for your project. I pu

Re: Charting question

2008-10-30 Thread Mark Morris
I've used JFreeChart. The factory methods make it pretty easy to generate many kinds of charts, and you have lots of opportunity to customize: http://www.jfree.org/jfreechart/ Regards, Mark On Oct 30, 2008, at 4:41 PM, Randy Wigginton wrote: I've looked at the google charting clas

Re: [solved] Re: Apple dropping WO from own sites

2008-10-03 Thread Mark Morris
Also, you can go to me.com and view the source to see that good old WO URLs are still in there. Regards, Mark On Oct 3, 2008, at 9:36 AM, Miguel Arroz wrote: Hi! On 2008/10/03, at 15:29, Alexander Spohr wrote: Because Apple bought me.com and the URLs look different I thought they also bo

Re: open programmatically a component in a new browser window

2008-08-28 Thread Mark Morris
A technique I used like 6 years ago (and so which may be superseded by newer, better ideas) is to have the submit return the current page in the existing window all the time, but have an onload that conditionally opens the new window with the contents you want. Hope this helps! Regards, Ma

Re: open programmatically a component in a new browser window

2008-08-28 Thread Mark Morris
I wonder also. I think this might be a case of it being so simple, you've overlooked it. Using the code you sent below doesn't stop you from using target="_blank" or javascript (although here you might need a WOActionURL). Maybe you could describe more in detail what you want to happen?

Re: WWDC debrief..

2008-05-23 Thread Mark Morris
Coincidentally, I went to the Winchester House in 1999 while attending WWDC (as an Apple employee at the time, though). Interesting place. -- Mark On May 23, 2008, at 1:40 PM, David LeBer wrote: On 23-May-08, at 2:21 PM, Chuck Hill wrote: On May 23, 2008, at 8:58 AM, Joe Little wrote:

Anyone having trouble finding a close hotel? (Was: Need WWDC 08 ticket) [OT]

2008-05-23 Thread Mark Morris
me know before I go ahead and cancel on Monday. Regards, Mark On May 21, 2008, at 11:01 AM, Mark Morris wrote: Hi all, I also was planning to go this year, including WOWODC, but procrastinated on buying my WWDC ticket and missed out. (I even prepaid my hotel!) I've been checkin

Re: Need WWDC 08 ticket [OT]

2008-05-21 Thread Mark Morris
Hi all, I also was planning to go this year, including WOWODC, but procrastinated on buying my WWDC ticket and missed out. (I even prepaid my hotel!) I've been checking eBay, but prices there are ridiculous. If there's anyone else out there with a spare ticket they're willing to sell

Re: Removing extra blank lines from generated html?

2008-04-22 Thread Mark Morris
I think if you look at your component, you'll see that the blank lines are in there, not generated by WebObjects. I've put enough conditionals in the middle of a line that I definitely would have been bit by now if that was the case! ;-) Regards, Mark On Apr 18, 2008, at 4:35 PM, John Hus

Re: Workdays between dates? (OH HOW I HATE DATES)

2008-03-05 Thread Mark Morris
Hi James, Just looking at your list, you're getting what I would expect, i.e. it's 4 days from Monday to Friday. But I think if you want the calculation to be inclusive, it looks like you would always be safe in adding one day to the end date before performing the calculation. Regards, M

Re: Converting to a static site.

2008-02-25 Thread Mark Morris
Doesn't the BBC do this on their main news site as part of their standard workflow? They must have figured out how to streamline it. Regards, Mark On Feb 25, 2008, at 2:43 PM, Guido Neitzer wrote: On 25.02.2008, at 11:51, James Cicenia wrote: I thought I had remembered a document somewhere

Re: Batch inserts

2007-12-19 Thread Mark Morris
I've never seen this insert syntax. Is this new, or have I just missed it? Thanks, Mark On Dec 19, 2007, at 11:45 AM, Charles Koppelman wrote: So ERX provides us with a great way to do massive updates (ERXEOAccessUtilities.updateRowsDescribedByQualifier). Is there a way that anyone on t

OT: whywebobjects.org domain

2007-11-07 Thread Mark Morris
Hello all, (Sorry if this is a bit off topic. I sent this to the talk list yesterday, but apparently activity over there is way down.) Unfortunately, I never organized anything with whywebobjects.org (or whywebobjects.net or whywebobjects.info). I grabbed these back when we realized tha

Re: Multiple submit button form

2007-07-30 Thread Mark Morris
Hi Pierre, WebObjects knows because each submit button has a unique value that is submitted along with the rest of the form values. I believe I remember seeing on this list mention of a Wonder component that would do what you want. (My very next project, I'm going to start using Wonder,

Re: Keep WebObjects, Remove cgi-bin

2007-06-25 Thread Mark Morris
I think I'm just restating what you've said, but your web server resources by default fall under /WebObjects, and by changing your WebObjectsAlias to /WebObjects those requests are being routed to the WebObjects adaptor and aren't being serviced by the web server. So to avoid this name conf

Re: historical context ...

2007-06-14 Thread Mark Morris
arket. atze ps. We started using WO with version 0.9... Am 14.06.2007 um 16:19 schrieb Mark Morris: As I recall (and I didn't start with WebObjects until 1997, so it could have been different in 1995 ;-), it was $50K for an unlimited deployment license. I believe the per devel

Re: historical context ...

2007-06-14 Thread Mark Morris
As I recall (and I didn't start with WebObjects until 1997, so it could have been different in 1995 ;-), it was $50K for an unlimited deployment license. I believe the per developer costs were much, much less, but I can't remember specifics. -- Mark On Jun 14, 2007, at 3:49 AM, Cheong Hee

Re: Nested Editing Contexts

2007-05-30 Thread Mark Morris
Although I do agree the defaultEditingContext is not the best way to go, I didn't have problems with it, and I used it for years. However, I had navigation methods in my superclass that would (by default) either abort the navigation if there were unsaved changes, or simply revert (assuming

Re: InsertObject

2007-05-30 Thread Mark Morris
I might have missed something, but for his case I'm not sure he needs anything more than the default editing context, and since he's new to some of the concepts, that might be easier. Frederic, I usually just use the EOUtilities.createAndInsertInstance method to take care of both creation a

Re: dynamic database connection

2007-05-07 Thread Mark Morris
ant to automate some processes. thanks for the thought! On May 7, 2007, at 10:56 AM, Mark Morris wrote: Hi Tom, Here's a slightly different thought. It's easy to set the database connections dynamically per instance at the application level. Could you have a different instance defin

Re: dynamic database connection

2007-05-07 Thread Mark Morris
For some reason I got a "too many hops" returned mail error, so I thought I'd try again: - Hi Tom, Here's a slightly different thought. It's easy to set the database connections dynamically per instance at the application level. Could you have a different instance defined for each or

Re: Trouble with Popup Button form

2007-04-17 Thread Mark Morris
Hello Kevin, Yes, your bindings are a little confused. It sounds like aClub should be bound to item, if aClub.name is the displayString. Here "item" is each object from the "list" as it's displayed in the pop-up button, which means its value is getting changed as the page is displayed.

Re: pageWithName

2007-04-09 Thread Mark Morris
Hello Drew, On Apr 8, 2007, at 5:32 PM, Drew Thoeni wrote: I'm sure I'm missing a small bit of common WOKnowledge, because this seems pretty basic. But help would be greatly appreciated. I'm sending an HTML email using a WOComponent as the source. I've done this before from within another

Re: How to Retrieve Session User?

2007-04-04 Thread Mark Morris
m at a loss on how to retrieve a user EO from the session. :-( But thanks for your help/input! Mark Morris wrote: Hi Fred, On Apr 4, 2007, at 3:10 PM, Fred Shurtleff wrote: Hello, I have a basic question on how to access the logged in user for later use in updates. After authenticating a

Re: How to Retrieve Session User?

2007-04-04 Thread Mark Morris
Hi Fred, On Apr 4, 2007, at 3:10 PM, Fred Shurtleff wrote: Hello, I have a basic question on how to access the logged in user for later use in updates. After authenticating a user I enter him into the session, but when I later try to retrieve this user in another page, it fails(returns n

Re: Returning a PDF file

2007-03-28 Thread Mark Morris
Just to be clear, I also still include the content-disposition header. So the file name is in the headers twice. -- Mark On Mar 28, 2007, at 10:51 AM, Mark Morris wrote: Looking at my generic PDF code (from 4 years ago it appears, wow...), it looks like I'm doing almost exactly what G

Re: Returning a PDF file

2007-03-28 Thread Mark Morris
Looking at my generic PDF code (from 4 years ago it appears, wow...), it looks like I'm doing almost exactly what George suggested, but my content-type header is different: response.setHeader( "application/pdf; name=\"" + fileName () + "\"", "content-type" ); (Where fileName()

Re: Is there an easy way

2007-02-22 Thread Mark Morris
Gino, One approach would just be to treat this as two separate problems. Creating a repetition (or maybe just an array of numbers, to potentially be used in a repetition) that goes from the current month back 11 (2, 1, 12, 11, ..., 3) is not too hard, and creating an EOQualifier that lim

Re: Form update

2007-02-20 Thread Mark Morris
Hi John, This is probably understood, but just in case, if you choose Chuck's method #3 below, you might need some way to differentiate between the user checking the checkbox and the user pressing the submit button, since both will submit the form. One way that comes to mind to do this w

Re: How do I change default button in JSConfirmPanel?

2006-12-20 Thread Mark Morris
Hello Calven, So you gave the user two opportunities to click the correct button, and that still isn't good enough for them? ;-) I don't believe you can change anything about a javascript confirm panel except its message. The simplest solution is probably to return a whole new page with

Re: WORepetition, checked attribute question

2006-12-05 Thread Mark Morris
Hi David, Glad we were of help! :-) Unless there is some reason outside what you've sent here, you should be able to directly use user.favouriteElements() instead of going through selectionList. In other words, elementChecked and setElementChecked can directly work on userFavouriteElemen

Re: WORepetition, checked attribute question

2006-10-25 Thread Mark Morris
Mike,I just want to second David's comments.  onClick is not what you're looking for here, and just have the WOForm in your Edit.wo, with the Display.wo embedded within your form (and with no form of its own).  All of your bound variables and methods will get called properly, regardless of which co

Re: WORepetition, checked attribute question

2006-10-25 Thread Mark Morris
Mike, When a WOForm is submitted, the values in the form are pushed into your application using the value bindings you specified. If you bind a variable, it's clear that the variable value is set. However, you don't have to bind variables, you can also bind methods. In the case below,

Re: WORepetition, checked attribute question

2006-10-24 Thread Mark Morris
Hi Mike, When you bind the SetSelectedItem() method to onClick, since onClick is a client action and not a WO action, you're telling WO to call SetSelectedItem() to determine the String to place in the HTML, i.e. onClick="". Since I doubt SetSelectedItem is returning a String, this is no

Re: Adding cookies in a DA method

2006-10-18 Thread Mark Morris
Hi Kieran, Whatever you're returning from the DA implements WOActionResults, so you can generateResponse and add the cookies to the resulting WOResponse object. If you're returning a WOComponent, you could still use the returnPage.context().response().addCookie(...) technique before you

Re: constructing a url...

2006-09-26 Thread Mark Morris
James, I've done something similar to this, but quite a few years ago. I haven't followed this whole thread, but maybe the same concept will work for you. I created a "ClosePopUpPage" component that I would call from my pop up page submit action. (So right off the bat, any changes in th

Re: WOBrowser

2006-09-10 Thread Mark Morris
Hello Mike, This is just the way the select works in the browser. To deselect the last item, you have to command-click (on a Mac) or control-click (on WIndows). It shouldn't be hard to add a button that deselects all, using javascript, if you want to give the users another alternative.

Re: whywebobjects.org - WWDC followup [and URLs], Lets Start doing it

2006-08-21 Thread Mark Morris
Hello all, Sorry I've been out of the loop for a couple of days. Been swamped with work! There seems to be so many great resources and volunteers to help, it looks like it would make the most sense for me to point whywebobjects. [org|net|info] at the server Wolfram has generously offered,

Re: RE Little starter help with instance and action of a WOConponent

2006-08-18 Thread Mark Morris
Hello Richard,WO components can access instance variables just as well as set/get methods, so that's not the issue.  (They don't even need to be public.)  Perhaps your Main.java has the wrong target, or some other similar scenario.  Because although you are seeing them in the source code, they're n

Re: whywebobjects.org - WWDC followup [and URLs]

2006-08-16 Thread Mark Morris
Yes, that one's good! ;-) However, we may be mixing up two (or more!) conversations here. whywebobjects is meant to be a WO advocacy site, with comparisons, testimonials, links to sites and companies using WO, etc. I got the domain names (whywebobjects.org, .net, and .info) last year, and

Re: WOComponent - Sub-Component Form Design Question

2006-08-16 Thread Mark Morris
Hello, On Aug 16, 2006, at 1:06 PM, Baiss Eric Magnusson wrote: I had a Sub-Component on all my pages and I decided I had to have a "submit();" as a binding for a WOPopup in the Sub-Component. I'm not sure what that will do as typed. submit() is a method on the form, no

whywebobjects.org - WWDC followup

2006-08-16 Thread Mark Morris
I hope everyone had a good trip and is settled back in after WWDC. Was there any discussion when you met up there regarding the direction of whywebobjects? I think that prior to WWDC we had agreed it should focus on advocacy, and it was suggested that we use a wiki to allow direct communi

Re: Event update ; notice

2006-08-03 Thread Mark Morris
ve that if either attempts to fulfill the objectives of the other, it will weaken it in its primary purpose. They should remain separate and distinct. Regards, Jerry On Aug 3, 2006, at 11:40 AM, Guido Neitzer wrote: On 03.08.2006, at 17:20 Uhr, Mark Morris wrote: When I heard that whywebo

Re: Event update ; notice

2006-08-03 Thread Mark Morris
Yes, that should probably be at the very top of a list of resources. Also, in keeping with the domain name, there should be an advocacy/ comparison/testimonial type section, I would think. -- Mark On Aug 3, 2006, at 10:40 AM, Guido Neitzer wrote: On 03.08.2006, at 17:20 Uhr, Mark Morris

Re: Event update ; notice

2006-08-03 Thread Mark Morris
When I heard that whywebobjects.com had been taken (as I understand it, just by someone who then wanted to sell it back at an inflated rate), I registered whywebobjects.org, whywebobjects.net and whywebobjects.info before the same could happen to them. I posted a message asking what we sho

Re: Turning on HTML comments

2006-07-23 Thread Mark Morris
Hello Miguel, There is a WOApplication method called includeCommentsInResponses and a property WOIncludeCommentsInResponses. You could, for instance, override the method in Application to return true. Regards, Mark On Jul 23, 2006, at 2:01 PM, Miguel Arroz wrote: Hi! I noticed that W

Re: Many-to-many w/ one entity

2006-07-23 Thread Mark Morris
Hello Clark, You can manually model this almost the same way you would a many-to- many involving two tables. (Names are examples only. ;-) First create the RELATED_PRODUCT table with just PRODUCT_ID and RELATED_PRODUCT_ID columns. Make a to-many join from PRODUCT to RELATED_PRODUCT using

Re: Locations of resources ye again

2006-07-03 Thread Mark Morris
Hello Vincent, There are a few different approaches, each with their pros and cons. And there are really 3 environments you're interested in: WOBuilder, development, and deployment. For images, especially app-specific ones, I think the consensus would be to place them in the "Web Server

Re: How to skip items in a WORepetition ?

2006-06-29 Thread Mark Morris
Hello Gavin, This may not be elegant enough ;-) but you could just wrap the contents of the WORepetition in a WOConditional. Regards, Mark On Jun 29, 2006, at 4:13 PM, Gavin Eadie wrote: I want to display the contents of an NSArray and WORepetition is the perfect dynamic element to do tha

Re: dynamic popup list

2006-06-27 Thread Mark Morris
Hello, Are you using javascript to update the list, or doing a submit onChange to handle it? Can you the relevant portions of the code (bindings and javascript)? Regards, Mark On Jun 26, 2006, at 7:40 PM, PS ps wrote: Hi, We have a country list in our application which we want to make

Re: Design for "archiving" data in EOF

2006-06-19 Thread Mark Morris
Hello Georg, This may not be appropriate for your entire problem, but for the example you've given, I think I would just model it to take examination versions into account. Something like: Exam -->> ExamVersion -->> Question Having: ExamVersion -->> StudentExam -->> Answ

Re: javadoc for webobjects

2006-06-09 Thread Mark Morris
And, of course, use the appropriate paths and path format for your OS -- Mark On Jun 9, 2006, at 10:00 AM, Mark Morris wrote: I believe you also have to add -link /Developer/Documentation/WebObjects/Reference/API/ (At least, that's the way I do it. ;-) Regards, Mark On

Re: javadoc for webobjects

2006-06-09 Thread Mark Morris
I believe you also have to add -link /Developer/Documentation/WebObjects/Reference/API/ (At least, that's the way I do it. ;-) Regards, Mark On Jun 9, 2006, at 9:38 AM, Stefan Klein wrote: Hi, you had to define the classpath attribute in javadoc like classpath=" ...; C:\Apple\Librar

Re: Newbie: File upload w/Direct Actions and added parameters

2006-05-24 Thread Mark Morris
Hello Lindsey, Perhaps the hidden field is not inside the form, or inside the same form as is the WOFileUpload? Regards, Mark On May 24, 2006, at 2:35 PM, Lindsey Hotchkies wrote: Thanks for your help! I tried setting a hidden field in the form, but in the direct action, request().formValu

Re: EOModler and Multiple Primary Keys

2006-05-24 Thread Mark Morris
Hello Owen, Are you joining on both TopicID and TrackingObjectID? Since that is the primary key of TopicName, you must use both to uniquely identify a row to get a to-one relationship. To join on more than one attribute in EOModeler.app, first join on one attribute (click Connect), then

Re: Need help building an EOQualifier with session values

2006-05-23 Thread Mark Morris
Hello Reid, First of all, I hope your child feels better soon. :-) I have been through that phase with 3 of my own, so I can empathize. Ok, let's look at what you have below: On May 23, 2006, at 12:27 PM, Reid Bundonis wrote: Ken, Mark, and Chuck, Thanks for taking the time out of your w

Re: Need help building an EOQualifier with session values

2006-05-21 Thread Mark Morris
Ach! Skimmed right over that one. :-) And you'd have thought valueForKeyPath would have been on my mind, as it just came up in a post last night -- Mark On May 21, 2006, at 10:44 AM, Chuck Hill wrote: On May 21, 2006, at 2:06 AM, Reid Bundonis wrote: NSArray bindings = new NSArr

Re: Need help building an EOQualifier with session values

2006-05-21 Thread Mark Morris
Sorry, I meant if user is a public variable or accessor, not client, in the second paragraph below.-- Mark On May 21, 2006, at 9:59 AM, Mark Morris wrote:Hello Reid,Ken's post has already pointed out how your approach, on the surface anyway, raises a little warning flag.  The code for what

Re: Need help building an EOQualifier with session values

2006-05-21 Thread Mark Morris
Hello Reid,Ken's post has already pointed out how your approach, on the surface anyway, raises a little warning flag.  The code for what he's talking about would be something like: NSArray bindings = new NSArray( session().valueForKey("user.client") ); qual = EOQualifier.qualifierWithQualifierForma

Re: Total A Column Using Code

2006-05-20 Thread Mark Morris
Hello David,Try this:       item.jobActions.valueForKeyPath( "@sum.jaDuration" );Hope this helps!Regards,MarkOn May 20, 2006, at 5:15 PM, David Griffith wrote:Hi all,I know I've done this before but I just can't seem to remember how.  What's the equivalent code for this WO binding:[EMAIL PROTECTED]

Re: Class Generation in Xcode 2.2.1 using Modeler plugin

2006-05-10 Thread Mark Morris
Just a comment, I've never had the problem with EOModeler overwriting the .java files.  When you make changes to the model, click the ".java" button, then choose the "merge" option.  This will open FileMerge, and you can get the new changes while keeping your existing modifications.Regards,MarkOn M

Re: Foreign Key Constraints

2006-05-09 Thread Mark Morris
Hi Dave,You've understood it correctly.  Rename away!  :-)Regards,MarkOn May 9, 2006, at 10:45 PM, Dave Elsner wrote:Hi,I'm generating Foreign Key Constraints from with in EO Modeler, but due to Oracles limitation of 30 character long identifiers most of my relationship constraints exceed this limi

Re: Want to iterate over items in EditingContext for validation before save

2006-05-03 Thread Mark Morris
Hi Bill,It might be interesting to also print donor.getClass().getName().-- MarkOn May 3, 2006, at 4:34 PM, WebObjects wrote: I can't seem to get around java.lang.ClassCastException I know the EO's are of a known type, and using System.out.println("Here is entity name: " + myObjectToTest.entityNam

Re: Switch Component question...

2006-04-27 Thread Mark Morris
Uh, right, what Jerry said, quicker and in more detail. ;-) -- Mark On Apr 27, 2006, at 8:44 AM, Jerry W. Walker wrote: Hi, James, On Apr 27, 2006, at 9:29 AM, James Cicenia wrote: Hello - I am developing a new website and decided correctly or incorrectly, to have my wrapper page(s) be t

Re: Switch Component question...

2006-04-27 Thread Mark Morris
Hello James, I don't know that what you're doing is "just wrong" ;-) but another option which I've used often is to design your with a WOComponentContent instead of the WOSwitchComponent. This allows you to still call your pages normally, access their variables, etc., but still let you h

Re: Custom PopUp Problems

2006-04-26 Thread Mark Morris
Hi Scott, Just to add my voice here, from my understanding of your problem I think Ken and Jerry are pointing you in the right direction. But even if there is not a one-to-many from your User object to the objects that go in the pop-up, you could still place a method in your User object

Re: multiple submit - possible workaround advice

2006-04-25 Thread Mark Morris
Hello, On Apr 25, 2006, at 8:50 AM, Robert Walker wrote: Ondra, Therefore, I am afraid that if you need a consistent behaviour of Enter, there are only two solutions: (a) single-submit form; (b) JavaScript. Yes, I understand your point here Even the concept of multiple-submits itself

Re: java 101 question "integer compare"

2006-04-20 Thread Mark Morris
Hello Bill, Is the intGender method returning an Integer, or (more likely) an int? If an int, then of course it isn't as object and therefor has no "compareTo" method. ;-) Regards, Mark On Apr 20, 2006, at 10:25 AM, WebObjects wrote: Perhaps it's an off-blend of coffee that is obscuring

Re: Beginners question... objectsMatchingKeyAndValue not working as expected

2006-04-14 Thread Mark Morris
Hello Tarun, Try looking at the SQL being generated. To do this, you can right-or- control-click on your executable under the "Executables" group in Xcode, select "Get Info", and in the arguments tab add: -DEOAdaptorDebugEnabled=true Then when you run it, you'll see the SQL in the

Re: WOFileUpload

2006-03-30 Thread Mark Morris
Hello Zac, I would suspect that you have the WOFileUpload bound directly to the BLOB in the db. So like any other field, checkbox, etc., when the form is submitted, the value in the form is pushed up to the object, and is committed to the database upon the saveChanges. But in the case o

Re: New Web Components failing to compile?

2006-03-23 Thread Mark Morris
To add a new WOComponent, I find it easiest to use "New File..." from Xcode's menu, then choose WebObjects Component from the list. But, in fairness, at the point where I name the new component I am presented with a list of targets, where I have to verify that only "Application Server" is

Re: Automatic operation at application statup - once for each instance

2006-03-23 Thread Mark Morris
I think it should be: -DmainInstance=TRUE Regards, Mark On Mar 23, 2006, at 3:10 AM, François Reboursier wrote: This seems very seductive, but when I configure my instance and try to retreive the property ('String isMainInstance = System.getProperty("mainInstance");' ) all I get i

Re: Basic Question

2006-03-22 Thread Mark Morris
On Mar 22, 2006, at 4:56 PM, Paul Lynch wrote: On 22 Mar 2006, at 22:45, Mark Morris wrote: This thread is getting a little confusing, because there are at least two different topics being discussed. ;-) At least. Images and the like can be kept in some static location, such as

Re: Basic Question

2006-03-22 Thread Mark Morris
This thread is getting a little confusing, because there are at least two different topics being discussed. ;-) But I would like to make sure there isn't confusion about images and other "web server resources", and really just reiterate and summarize what Jean Pierre has already said. Im

Re: Thoughts on choosing a source code control system?

2006-03-12 Thread Mark Morris
My experience goes along with Janine's. Even when it's just me on a project, I still prefer to use source control. For me, the ability to get back to any previous version of a file or to a previous release is worth the small overhead, and I'm not sure how I would manage collaboration with

Re: System time

2006-03-09 Thread Mark Morris
int date = myCalendar.get(GregorianCalendar.DATE); System.out.println("Now: "+year+"-"+month+"-"+date);the year and date is returns the correct value. But for month, it returns february instead of march. can anyone enlighten me on this? Warmest Regards,Jim Wong[EMAIL PROT

  1   2   >