AJAX w/WO
AJAX w/WO
- Subject: AJAX w/WO
- From: "Runyan, Darich" <email@hidden>
- Date: Mon, 10 Aug 2009 16:55:20 -0400
I currently have an application that is build both in WebObjects. It was
originally build in WO following a traditional WO path. The company moved
to Flex as the "standard" for web applications and we re-wrote the WO app as
a Flex app; however, the user wants to increase its use and Flex is not
allowed at the levels that the app needs to run. I need the interactivity
that I have with Flex but with the WO backend. I looked in WOX and while it
looks interesting it appears to be experimental at best. AJAX is allowed on
the domain that this system will need to run on so my question is, what is
the best route to take to put an AJAX frontend on a WO application. I did
some test where I had the JS loaded to allow for interaction on the client
side, dragging items around, etc. but I have not figured out how to have the
entities refreshed without reloading the page. Would AJAXUpdateContainer in
Project Wonder provide this?
Thank,
Darich
-----Original Message-----
From: webobjects-dev-bounces+darich.runyan=email@hidden
To: email@hidden
Sent: 8/10/2009 4:20 PM
Subject: Re: Session... when are they created?
I think I handle sessions in the default way (not with cookies.. maybe
in the future if I need to save something in the client-side..).
This is what I'm doing:
The user select a category (direct action, no session), the user want
to see a product (direct action, no session), the user add a product to
a cart (direct action but I create the session).
Now.. the user wants to log in... (direct action, have a session BUT
during the direct action "doLogin" it seems it doesn't have a session
and another is created)..
Direct actions are handled by the class DirectAction, but all the direct
actions related to login are handled by a Login class.
This is the login form:
<webobject name = "loginForm">
<table>
<tr><td>Username:</td><td><webobject name = "userField"/></td></tr>
<tr><td>Password:</td><td><webobject name = "passwordField"/></td></tr>
<tr><td></td><td><webobject name = "loginButton"/></td></tr>
</table>
</webobject>
loginForm: WOForm {
name = "loginForm";
actionClass = "Login";
directActionName = "doLogin";
?redirect = redirectTo;
}
userField: WOTextField {
name = "username";
value = username;
}
passwordField: WOPasswordField {
name = "password";
value = password;
}
loginButton: WOSubmitButton {
actionClass = "Login";
directActionName = "doLogin";
?redirect = redirectTo;
}
Now.. I noticed that the url show the action name and not the page name,
after the login...
http://192.168.1.87:5100/cgi-bin/WebObjects/PNStore.woa/wa/Login/doLogin
<http://192.168.1.87:5100/cgi-bin/WebObjects/PNStore.woa/wa/Login/doLogi
n>
but I'm in the showAccount page...
Francesco
On 10/ago/09, at 20:03, Mark Gowdy wrote:
2) Let's say an anonymous user has a session... then he logs in. And...
I don't want the session change!!
This is the code (it's a direct action, called from a submit button in a
form)
In the case where the user has a session, can you show us:
1) The component html (in eclipse) for this login form.
2) And can you show us the rendered html source from the browser and the
URL that got you to that login page.
Are sessions being handled in the default way, or are you using cookies
(or another way)?
Regards,
Mark
<<ATT452618.txt>>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden