Re: newbie: basic question on getting a value from an entity

2007-03-03 Thread Guido Neitzer
On 03.03.2007, at 19:31, Chuck Hill wrote: String desiredComponent = ((NameOfClassThatImplementsPageTemplate) pagesDisplayGroup.selectedObject ()).pageTemplate(); Ah, I missed that one ... was totally on the KVC trip ... cug ___ Do not post admin r

Re: newbie: basic question on getting a value from an entity

2007-03-03 Thread Chuck Hill
Paul, I think that what you need is a good book on Java. Bruce Eckel's Thinking in Java is one that I would highly recommend. On Mar 3, 2007, at 2:42 PM, Paul Marvine wrote: I am using pagesDisplayGroup.selectedObject() successfully in other actions of the page. Also, on the page I hav

what to do with the key

2007-03-03 Thread Baiss Eric Magnusson
I watched, a bit aghast, as a Windows user was on my Mac and constantly hitting the key in the middle of form entry. Well, I don't handle that situation well at times, and, well what does one do to trap, or better yet, to disable the return key from doing a of the form. I see that the R

newbie: basic question on getting a value from an entity

2007-03-03 Thread Gilles MATHURIN
Hello, maybe u shoudl cast ur statement like this : String desiredComponent = (String)pagesDisplayGroup.selectedObject ().pageTemplate(); … just a guess i am a newbie too. Gilles Le 3 mars 07 à 18:42, Paul Marvine a écrit : I am using pagesDisplayGroup.selectedObject() successfully in

Re: newbie: basic question on getting a value from an entity

2007-03-03 Thread Paul Marvine
I am using pagesDisplayGroup.selectedObject() successfully in other actions of the page. Also, on the page I have a WOtextField with value = pagesDisplayGroup.selectedObject.pageTemplate that shows the data which I am trying to use. So selectedObject() is not null and the attribute "page

Re: newbie: basic question on getting a value from an entity

2007-03-03 Thread Guido Neitzer
On 03.03.2007, at 13:36, Paul Marvine wrote: But the trouble starts when I change the action to this... public String desiredComponent; public WOComponent doWebTemplate() { String desiredComponent = pagesDisplayGroup.selectedObject ().pageTemplate(); WOComponent nextPa

newbie: basic question on getting a value from an entity

2007-03-03 Thread Paul Marvine
Hello, For test purposes on a page I have a hyperlink set with this binding.. pageName = pagesDisplayGroup.selectedObject.pageTemplate This hyper link does as expected, when clicked it returns the component listed by "pagesDisplayGroup.selectedObject.pageTemplate". But when I try to set up a

Re: Javamonitor help

2007-03-03 Thread Guido Neitzer
On 03.03.2007, at 09:44, James Cicenia wrote: Maybe I read that wrong.. however, I ran it.. looked at all my logs.. and there is nothing! This goes to webobjects.err - whereever that is, it is defined in the startup scripts for the WebObjects services. You have to change this file (make a

Re: JavaScript / WOBuilder Question

2007-03-03 Thread Chuck Hill
The advantage of my solution is that if you are using a page wrapper you just add this to your project once and then never think about it again. Chuck On Mar 3, 2007, at 3:56 AM, Mike Schrag wrote: You can also use FocusTextField in Ajax.framework to do this, btw (though it doesn't use a

Re: Javamonitor help

2007-03-03 Thread James Cicenia
Did all that. Nothing of note in those logs either. :-( On Mar 3, 2007, at 10:59 AM, Mike Schrag wrote: By default, SpawnOfWotaskd.sh redirects stderr to /dev/null, which is a really annoying default behavior. Since kill -QUIT writes to stderr, you won't be able to see this stack trace unt

Re: Javamonitor help

2007-03-03 Thread Mike Schrag
By default, SpawnOfWotaskd.sh redirects stderr to /dev/null, which is a really annoying default behavior. Since kill -QUIT writes to stderr, you won't be able to see this stack trace until you modify SpawnOfWotaskd.sh (there's a wikibook entry on this somewhere). On Mar 3, 2007, at 11:44 A

Re: Javamonitor help

2007-03-03 Thread James Cicenia
More info - Ok I just killed the offending instance with a -9 and now my javamonitor is all happy. sigh. - James ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Hel

Re: Javamonitor help

2007-03-03 Thread James Cicenia
Ok - Maybe I read that wrong.. however, I ran it.. looked at all my logs.. and there is nothing! And, even if I try to force my url to use that instance.. It gets redirected. This is good as otherwise my users would scream at me again. This is a very baffling deployment problem. - James

Re: Javamonitor help

2007-03-03 Thread Mike Schrag
So I run, as per the wiki:sudo kill -QUIT pid(with the proper number there). kill -QUIT will not actually kill a java application. kill -QUIT causes a dump of all thread stack traces to stderr of the java process (very useful for debugging). Is there a wiki page that claims that will

Re: Javamonitor help

2007-03-03 Thread James Cicenia
I am so confused with this JavaMonitor and this particular application. I have had JavaMonitor running on my browser all day personally monitoring it. Well eventually, JavaMonitor seems to die because of one instance going awry. This means that the number of sessions, transactions, then nev

wo tips

2007-03-03 Thread Mike Schrag
For anyone who's interested, I just setup a "wotips" Google Group (http://groups.google.com/group/wotips). Lots of times I (and I know other folks do too) run across cool things in WebObjects, Eclipse, Xcode, WOLips, Wonder, or whatever that people might not be aware of, but I always think

Re: JavaScript / WOBuilder Question

2007-03-03 Thread Mike Schrag
You can also use FocusTextField in Ajax.framework to do this, btw (though it doesn't use an onLoad -- it just drops a