Mailing Lists: Apple Mailing Lists

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

LogIn



I'm new in Dev. in webObjects. I dev a desktop application. It work  
fine.
I construct a logIn window and also work fine.
I write a rules for suppress the default query window and for remove  
the document menu.
In the loginInterfaceController.java, the java for the logIn window, I  
use this code:
public void login() {
	if (this.clientSideRequestLogin()) {
	    performLaunchSequence();
	     
EOControllerFactory.sharedControllerFactory().queryControllerWithEntity( 
"Foto");
	    this.makeInvisible();

and

     protected void performLaunchSequence() {
         EOApplication application = EOApplication.sharedApplication();
         boolean flag = application.quitsOnLastWindowClose();
         application.setQuitsOnLastWindowClose(false);
	
	
         NSArray subcontrollers = application.subcontrollers();
	int count = subcontrollers.count();
         for (int i = count - 1; i >= 0; i--) {
             EOController controller =  
(EOController)(subcontrollers.objectAtIndex(i));
             controller.removeFromSupercontroller();
             controller.dispose();
	}
	
	EOControllerFactory factory =  
EOControllerFactory.sharedControllerFactory();
         factory.invalidateRules();

         _distributedObjectStore().invalidateAllObjects();
         application.refreshData();

         factory.activateDefaultControllers();
	

         application.setQuitsOnLastWindowClose(flag);
	EOSwingUtilities.eventEnded();
     }
At the end, never display the query window.
What I miss?
How reload the default query window, for all the entities, as original?
In the rule side is possible to know who is logIn? How?
What type of rule I need to display again the enumeration menu?
Where I can find more info about the rule system?

I only have 2 weeks in this project, I try to find a solution for a 4  
days and I can't. I know this is a basic question but I can't find any  
solution.
Best Regards
Arturo
_______________________________________________
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.