• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
LogIn
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LogIn


  • Subject: LogIn
  • From: Arturo Villarreal <email@hidden>
  • Date: Mon, 17 Nov 2003 18:12:24 -0500

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.

  • Prev by Date: Swing method call makes WOBootstrap appear
  • Next by Date: Re: Fixing JVM From 1.3.1 to 1.4.1 in Xcode WO 5.2.2
  • Previous by thread: Re: Swing method call makes WOBootstrap appear
  • Next by thread: EOUtilities.rawRowsForSQL Deprecated?
  • Index(es):
    • Date
    • Thread