Re: Programmatically instantiating WOComponents

"John Bruce" <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
Can you let me know what the javascript is trying to do? Is it to edit
the address in the particular format for that country?

Depending on what you are trying to do it may be better to not use
Javascript - either way it might be best to get it working using
normal wo actions and then try to do it with javascript.

-John

On 8/15/06, Yann Bizeul <[email protected]> wrote:
> 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/
>
>
> _______________________________________________
> WebObjects-dev mailing list
> [email protected]
> http://www.omnigroup.com/mailman/listinfo/webobjects-dev
>
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.