Re: DirectAction & User login Questions.

2008-02-13 Thread Guido Neitzer
On 13.02.2008, at 22:33, Daniel Brajkovic wrote: I think people might have misunderstood what I was trying to ask. Specifically, I thought that this line: setDefaultRequestHandler (requestHandlerForKey( directActionRequestHandlerKey() )); was supposed to set the default handler to "wa" s

Re: Converting from one subclass to another

2008-02-13 Thread David Elliott
Hi David, On Feb 13, 2008, at 5:06 PM, David Avendasora wrote: Alright, maybe I'm doing something completely wrong (yeah, yeah, Chuck), but this isn't an apples and oranges thing. They are both nutritional values, for example: "Calories: 120" You may have unwittingly just solved your own

Re: DirectAction & User login Questions.

2008-02-13 Thread Guido Neitzer
On 13.02.2008, at 19:39, Lachlan Deck wrote: WOSubmitButton is fine -- just bind it's directActionName rather than action to whatever's appropriate. Right - it's just so easy to get a session with these ... Something to be careful about, lots of the dynamic input elements create sessions.

Re: Servlet HttpSession in webobjects?

2008-02-13 Thread Jeff Schmitz
On Feb 13, 2008, at 11:22 PM, Lachlan Deck wrote: Hi Jeff, On 14/02/2008, at 3:31 PM, Jeff Schmitz wrote: Ok, after a little more study, I don't think I've been explaining things quite right, although I think ultimately I still have the same basic question. I think we do too :-)... i.e.

Re: DirectAction & User login Questions.

2008-02-13 Thread Lachlan Deck
On 14/02/2008, at 4:33 PM, Daniel Brajkovic wrote: I think people might have misunderstood what I was trying to ask. Specifically, I thought that this line: setDefaultRequestHandler (requestHandlerForKey ( directActionRequestHandlerKey() )); No, we've not misunderstood. The above is only

Re: DirectAction & User login Questions.

2008-02-13 Thread Daniel Brajkovic
I think people might have misunderstood what I was trying to ask. Specifically, I thought that this line: setDefaultRequestHandler (requestHandlerForKey( directActionRequestHandlerKey() )); was supposed to set the default handler to "wa" so when I type into my browser http://127.0.0.1:55

Re: Servlet HttpSession in webobjects?

2008-02-13 Thread Lachlan Deck
Hi Jeff, On 14/02/2008, at 3:31 PM, Jeff Schmitz wrote: Ok, after a little more study, I don't think I've been explaining things quite right, although I think ultimately I still have the same basic question. I think we do too :-)... i.e., have you debugged the incoming WORequest, printed

Re: Servlet HttpSession in webobjects?

2008-02-13 Thread Jeff Schmitz
Ok, after a little more study, I don't think I've been explaining things quite right, although I think ultimately I still have the same basic question. Anyway, here's the servlet/jsp/j2ee whatever it's called code that works correctly under tomcat, and that I want to implement using a web

Re: Rapid Turnaround - RESOLVED BUT RUNS SLOW -

2008-02-13 Thread Ricardo Parada
On Feb 13, 2008, at 8:38 PM, Ricardo Parada wrote: I figured it out. It turned out that the superclass for my application has this in there in the constructor: this.setCachingEnabled(true); So I just changed that to true and now it works. Oops... I meant to say that I change

Re: Rapid Turnaround - RESOLVED BUT RUNS SLOW -

2008-02-13 Thread Ricardo Parada
I figured it out. It turned out that the superclass for my application has this in there in the constructor: this.setCachingEnabled(true); So I just changed that to true and now it works. Now it seems to run slow. I seem to recall Mike Schrag saying that was caused by some I

Re: DirectAction & User login Questions.

2008-02-13 Thread Lachlan Deck
On 14/02/2008, at 9:36 AM, Guido Neitzer wrote: use a standard html submit button to submit, handle your login in the direct action that was called. WOSubmitButton is fine -- just bind it's directActionName rather than action to whatever's appropriate. with regards, -- Lachlan Deck __

Re: [ANN] JBND update

2008-02-13 Thread Florijan Stamenkovic
On Feb 13, 2008, at 16:40, Chuck Hill wrote: Also, please let me know if I should not post these announcements on the list (since there is an RSS feed on the JBND site that people can use). Seems appropriate to me that the announcements continue on this list - given that other 3rd party

Re: [OT][ANN] Nanoki

2008-02-13 Thread Chuck Hill
Hi PA, nice to see you around again. What are you up to these days? Chuck On Feb 13, 2008, at 3:27 PM, Petite Abeille wrote: [Not even remotely related to WebObjects, EOF, Java, Apple or anything] Nanoki, a sweet little wiki engine implemented in Lua [1]. http://alt.textdrive.com/nanoki/

[OT][ANN] Nanoki

2008-02-13 Thread Petite Abeille
[Not even remotely related to WebObjects, EOF, Java, Apple or anything] Nanoki, a sweet little wiki engine implemented in Lua [1]. http://alt.textdrive.com/nanoki/ Online demo: http://svr225.stepx.com:3388/nanoki Kind regards, PA. [1] http://www.lua.org/about.html __

Re: Servlet HttpSession in webobjects?

2008-02-13 Thread netBrackets
Is your intent that you need the >other application's sessionid so that you can redirect users back to >that app later and maintain their original session? That's close. In my reply to the invoking J2EE app I need to send back the session ID I was sent from it, more as a security measure I

Re: DirectAction & User login Questions.

2008-02-13 Thread Guido Neitzer
On 13.02.2008, at 14:24, Daniel Brajkovic wrote: However, after doing so I run my app, and it goes straight to main and creates a session. You'll need to get rid of everything on that page that creates a session (WOTextField, WOPasswordField probably) and replace it with the standard html

Re: DirectAction & User login Questions.

2008-02-13 Thread Andrew Lindesay
Hello; Thanks. Re: your question: I do MOT want multiple people logging in at the same time using a single login. Username sharing. Maybe you could keep a table of who's logged-in wherein an entry expires just after of the session timeout in your application? Then keep populating the tab

Re: Converting from one subclass to another

2008-02-13 Thread David Avendasora
Alright, maybe I'm doing something completely wrong (yeah, yeah, Chuck), but this isn't an apples and oranges thing. They are both nutritional values, for example: "Calories: 120" The difference between my two subclasses is simply how the value of the valueQuantity() attribute is derived. In

Re: DirectAction & User login Questions.

2008-02-13 Thread Daniel Brajkovic
Thanks. Re: your question: I do MOT want multiple people logging in at the same time using a single login. Username sharing. Sent from my iPhone's On Feb 13, 2008, at 3:41 PM, Andrew Lindesay <[EMAIL PROTECTED]> wrote: Hello Daniel; I want the app to create no session until a user successfu

Re: Converting from one subclass to another

2008-02-13 Thread Thomas
Why not just have one class, have a flag in that class that says whether it is calculated or stored, and have a cover method that returns the calculated or stored value depending on the value of that flag? You can then change the flag as often as you like without having to create new object

re: DirectAction & User login Questions.

2008-02-13 Thread Andrew Lindesay
Hello Daniel; I want the app to create no session until a user successfully logs in. Based upon what I have found this is the right way to do it: public Application() { NSLog.out.appendln("Welcome to " + name() + " !"); /* ** put your initialization cod

DirectAction & User login Questions.

2008-02-13 Thread Daniel Brajkovic
Hi, I am working on a pretty significant WO App and you will likely see lots of questions from me over the next few weeks (months). I've done some minor apps, and am no WO genius. So Question 1, I want the app to create no session until a user successfully logs in. Based upon what I hav

Re: Converting from one subclass to another

2008-02-13 Thread Mike Schrag
The problem I'm having is that I'm somehow getting two instances of the target subclass. Maybe someone can look at this code and tell me what I'm doing wrong. It's a big red flag to be deleting and "replacing" yourself inside your own set method ... This is going to really cause weird problem

Re: Converting from one subclass to another

2008-02-13 Thread Chuck Hill
On Feb 13, 2008, at 12:26 PM, David Avendasora wrote: Well, I've got it working, somewhat. I'm creating a new instance of the other subclass, copy all the attributes and relationships over, then delete the old instance. The problem I'm having is that I'm somehow getting two instances of

Re: [ANN] JBND update

2008-02-13 Thread Chuck Hill
On Feb 13, 2008, at 12:32 PM, Lachlan Deck wrote: On 14/02/2008, at 3:10 AM, Florijan Stamenkovic wrote: I've just uploaded a new version of JBND to the website: http://web.mac.com/flor385/JBND/ Release notes can be found at, check it out, it has some nice new features: http://web.mac.c

Re: [ANN] JBND update

2008-02-13 Thread Lachlan Deck
On 14/02/2008, at 3:10 AM, Florijan Stamenkovic wrote: I've just uploaded a new version of JBND to the website: http://web.mac.com/flor385/JBND/ Release notes can be found at, check it out, it has some nice new features: http://web.mac.com/flor385/JBND/news.html Also, please let me know i

Re: Converting from one subclass to another

2008-02-13 Thread David Avendasora
Well, I've got it working, somewhat. I'm creating a new instance of the other subclass, copy all the attributes and relationships over, then delete the old instance. The problem I'm having is that I'm somehow getting two instances of the target subclass. Maybe someone can look at this code

Re: Converting from one subclass to another

2008-02-13 Thread Ken Anderson
David, I've been down this path many times, and my current recommendation is to just have some kind of type on the object that identifies it as one or the other. I have a situation where I store the class name of a 'calculator' class in the EO, and then dynamically call static methods on

Re: NSNumberFormatter vs NumberFormat

2008-02-13 Thread Chuck Hill
Gentlemen, On Feb 9, 2008, at 9:21 AM, Georg Tuparev wrote: I watched the NSTimestampFormatter discussion initially with amazement that changed to annoyance. Now I have to voice my frustration! Please do. I think more people need to be more vocal about the work that this change is goin

Re: help for newbie with WO Apple example on Eclipse+WOLips

2008-02-13 Thread Alexander Spohr
Am 11.02.2008 um 00:53 schrieb Luigi Giannini: error: java.lang.IllegalStateException: Unable to find framework named "HelloWorld" on my Safari. Mike Schrag wrote in "die terrible error message": You have done one of the following: 1) return new NextPage(context) instead of pageWithName("Nex

Re: Converting from one subclass to another

2008-02-13 Thread David Avendasora
Thanks for the very clear, informative and helpful answer! Even if it's the one I didn't want to hear. :) Dave On Feb 13, 2008, at 11:15 AM, Mike Schrag wrote: I could just create a new object of the new class and delete the existing one yes What is the best way to get WO to pickup the sub

Re: Converting from one subclass to another

2008-02-13 Thread Mike Schrag
I could just create a new object of the new class and delete the existing one yes What is the best way to get WO to pickup the subclass change immediately? Or is this just a bad way of doing things? yes Inheritance hierarchy is to be treated like a PK -- It's an unchanging attribute of

[ANN] JBND update

2008-02-13 Thread Florijan Stamenkovic
Hi all, I've just uploaded a new version of JBND to the website: http://web.mac.com/flor385/JBND/ Release notes can be found at, check it out, it has some nice new features: http://web.mac.com/flor385/JBND/news.html Also, please let me know if I should not post these announcements on the

Converting from one subclass to another

2008-02-13 Thread David Avendasora
Hi all, I have the following structure: NutritionBlock <->> NutritionValue The abstract NutritionValue is subclassed by StoredNutritionValue and CalculatedNutritionValue. The two sublcasses are identical in their implementation except for the method valueAmount(). In StoredNutritionValue

Re: Servlet HttpSession in webobjects?

2008-02-13 Thread Mr. Pierre Frisch
Is the SessionID passed in the url? You could make WO use the same session ID (not the same session) by changing the wosid identifier. This is configurable in WO 5.4. That way you have both session sharing the same ID. Pierre -- Pierre Frisch [EMAIL PROTECTED] On Feb 13, 2008, at 5:31, Mi

Re: Servlet HttpSession in webobjects?

2008-02-13 Thread Mike Schrag
Can we step back again and have you explain what you're trying to achieve, at a higher level than just this single session value? For instance, when you say "otherj2eeAppSession", do you actually mean session.getId() from the other app? Is your intent that you need the other application's