[newbie-ish] sending message from a direct action
[newbie-ish] sending message from a direct action
- Subject: [newbie-ish] sending message from a direct action
- From: Michael Warner <email@hidden>
- Date: Sun, 9 Nov 2003 13:44:56 -0800
I am trying to implement a stateless (until successful login)
login prototype application.
I have a full component called Template.
Template contains 2 subcomponents:
a partial component called ErrorMessage
and a WOComponentContent.
I have a page (partial component) called LoginPage.
Inside the LoginPage a have a Template and inside
the WOComponentContent of the Template a have
a partial component called LoginForm.
I have a loginAction in a custom DirectAction class
that works if username and password
are correct. I have a badUsernameAction that take returns the user to
the
same page, LoginPage.
Now, I have two questions, given that the app is currently sessionless.
1. How do I, from within badUsernameAction, to
the value of its String 'message' in the ErrorMessage partial component?
2. how do I, from within badUsernameAction, set the static field
'username' in LoginForm to be the same as the
username that the user originally entered?
Thanks,
Mike W.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.