• 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: Templates and Reusbale Components
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Templates and Reusbale Components


  • Subject: Re: Templates and Reusbale Components
  • From: Cornelius Jaeger <email@hidden>
  • Date: Mon, 26 Jan 2004 13:38:20 +0100

hi owen

i use a naming scheme and a woswitchcomponent. the user has a popup where she can select the appropriate component. this is stored in a field in the database.
at runtime i just drop the component into the woswitchcomponent (viz wo does ot for me)


hth

cornelius

On Jan 8, 2004, at 4:36 AM, Owen McKerrow wrote:

Hi All,

Im working on a project that allows the user to create there own questionnaires. What I want to do is have a variety of different question types available to choose from ( text, multiple choice, single choice etc etc ). And each of these question types I would like to have 2-3 ways of displaying it ( say its a text question, so we have a text box and an associated image layout has the image on the left hand side, layout 2 has it on the right ). So I would make it up as a reusable component with a binding to say show type 1 or ype 2.

The bit Im unsure about is how to select what reusable component you wish to use at run time. Let me explain. The user has decided to have 4 questions, a text based,a multiple choice and two text areas. I guess I would then use a WORepition to cycle through the questions, BUT how at run time do I determine that cause the first one is text based I should use text filed component ? I guess I could just put lots of conditional's in the repetition ( one for each question type ) and so the right question's component is shown.

Is that the best way of doing it ? Or is there a better way ?

Thanks
Owen

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

"I like the way this project has somehow, against all common sense, got itself made."
- Peter Jackson, "The Lord of The Rings"
_______________________________________________
webobjects-deploy mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-deploy
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.

  • Prev by Date: Re: Project Wonder questions...
  • Next by Date: Help: D2W Configuration Names?
  • Previous by thread: Is the list working
  • Next by thread: Help: D2W Configuration Names?
  • Index(es):
    • Date
    • Thread