Re: Programmatically instantiating WOComponents

Yann Bizeul <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
Thanks to Miguel and John for their usefull answers.

The result is I make a big red cross to my idee to programmatically  
generate components :-)

Using WOSwitchComponent, I'm almost successfull implementing exactly  
what I want, but I have a problem with the dynamic part of the code  
(the javascript that realods a DIC content).

When my page is loaded, the components hierarchy is a full page with  
my header, the global component, my address component, each field in  
it, etc...

But when I use Javascript to get a new form for the new address  
format, it is completely out of the context, and for example, my City  
text field that look like this in the code with the original request :

<input size="15" type="text" name="7.6.1.4.0.CityComponent">

Become that after the DIV update :
<input size="15" type="text" name="1.4.0.CityComponent">

As you can see, since the root component is itself, the identifiers  
are wrong.

How can I deal with that ?


Yann Bizeul • yann at tynsoe.org
Cocoa Developer

Tynsoe Projects
BuddyPop • GeekTool • SSH Tunnel Manager • ...
http://projects.tynsoe.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.