Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[newbie-ish] sending message from a direct action



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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.