• 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
Basic WO question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Basic WO question


  • Subject: Basic WO question
  • From: Daniel Mejia <email@hidden>
  • Date: Mon, 14 Mar 2005 23:35:42 -0600

Hi all,

I have a basic question that I know somebody can help me to answer in this group.

The question is: how many times a component is created in WO (stateful component). I have a small application with two components, Main and ComponenteTres. The Main is a very basic page that has only a WOHyperlink to the ComponenteTres component.

ComponenteTres component is a Form with one field and an action binded to the sumit button that just print the value in the text field in the form and a WOHyperlink to go back to the Main page.

Both Components Main and ComponeteTres has a System.out.println in the constructor to display a message when the component is created.

What I expected was to have just one display from the constructor of each component, but what I got is a message from the constructor every time when I access the page and what is more extrange for me is that when I click in the sumit button in the form of the secod component I get a message from both, the Main component and the PageOne component. Is this the expected behaviour?

When I click in the WOHyperlink to go back to the Main page I get a message from the Main constructor method twice (?).

I'm developing with WO 5.2 and Mac OS 10.3.8.

Regards,

Daniel Mejia.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Basic WO question
      • From: Doug Andrews <email@hidden>
  • Prev by Date: Re: Why can't I get <addObjectToBothSidesOfRelationshipWithKey> right?
  • Next by Date: Re: One last mop-up battle
  • Previous by thread: [RESOLVED]: Why can't I get <addObjectToBothSidesOfRelationshipWithKey> right?
  • Next by thread: Re: Basic WO question
  • Index(es):
    • Date
    • Thread