Ponder and ERXNavigation

James Cicenia <[email protected]>
Newsgroups gmane.comp.web.webobjects.wonder-disc
Message-ID <[email protected]>
Ramsey-

That worked automagically. My question is how? 

I am not used to not specifying an action in my nav plist. And all examples I see also have an explicit action associated with the menu item.
Originally, I had explicitly set the action and action class to call the loginAction. That didn't work. But when I leave it blank like you suggested it works.

However, the url associated with Login is not the correct url:port. It defaults in just "localhost" without a port number. Is that because I am using direct connect?

Finally, if I wanted to create my own link in the menu and just call it "Create an Account" vs. CreateERUser, how would it now know which action to call.

Curious and moving forward,
James







On Dec 1, 2012, at 2:49 PM, Ramsey Gurley <[email protected]> wrote:

> All you need to add is to your app's plist is children (Login). The nav manager will find the login nav item in the framework's nav.plist. The login action doesn't give you a page, it logs you in. The entityName is passed by the login component's direct action.
> 
> James Cicenia <[email protected]> wrote:
> 
> Ok -
> 
> I added a new action to the nav plist, gave it the ERAuthDirectAction class and the login directActionName.
> 
> However, when it runs the login it gets a null entityName. It looks as though it wants "ERAuthenticationRequest".
> 
> public WOActionResults loginAction() {
> 		ERXRequest request = (ERXRequest)request();
> 		EOEditingContext ec = ERXEC.newEditingContext();
> 		String entityName = request.stringFormValueForKey("entityName");
> 		EOEnterpriseObject eo = EOUtilities.createAndInsertInstance(ec, entityName);
> 
> What is the entityName supposed to be set... in a rule?
> 
> Thanks
> James
> 
> 
>

------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
DESIGN Expert tips on starting your parallel project right.
http://goparallel.sourceforge.net/

_______________________________________________
Wonder-disc mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wonder-disc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.