• 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
Re: Dynamically Swapping Components
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamically Swapping Components


  • Subject: Re: Dynamically Swapping Components
  • From: Tom Woteki <email@hidden>
  • Date: Tue, 27 May 2003 16:10:55 -0400

What about this:

In its appendToRepsonse method, your component inspects the state of EOs etc and builds the actual response accordingly.

Here is how it might build the response. I've never tried this, but if I understand the behavior of appendToResponse it should (might actually) work:

Assume that within your central component there are embedded N child components corresponding to the N states of interest in your app. Now, when your central component receives appendToResponse, it dispatches the call to the one child that corresponds to the state of the app, but it ignores the rest. In other words, it doesn't invoke super.appendToResponse(), which defaults to propagating to all the child components.

There my be some component synchronization issues with this, but it would be easy to test at least a prototype of the idea.

Tom

On Tuesday, May 27, 2003, at 03:29 PM, Andrew Lindesay wrote:

Hello;

I want to be able to create a "page component" for which the central area is another component. What I would then like to do is to dynamically swap that central component out for another one when the page is requested, based on the state of various EO's and stuff in the session. It's impractical to use WOConditional's owing to the large number of possible components. For what I'm doing, this would be a very cool design if it's possible. Has anybody tried such a thing?

Regards;

___
Andrew Lindesay
http://www.lindesay.co.nz/
+64 21 47 0929
_______________________________________________
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.
_______________________________________________
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.

References: 
 >Dynamically Swapping Components (From: Andrew Lindesay <email@hidden>)

  • Prev by Date: WebObjects and MySQL...
  • Next by Date: Re: Dynamically Swapping Components
  • Previous by thread: Dynamically Swapping Components
  • Next by thread: Re: Dynamically Swapping Components
  • Index(es):
    • Date
    • Thread