Re: Passing values between elements

Siegfried Makedanz <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
Paul, thanks for the quick response, but my level of WO knowledge does 
not fit yours. My dynamic elements are both on the same page. What do 
you mean by page level component?

Thanks,
Siegfried

Paul Lynch wrote:
>
> On 29 Mar 2006, at 12:46, Siegfried Makedanz wrote:
>
>> I have two dynamic elements (WOPopUpButton) named Locations and 
>> Buildings. Now I would like to set the list binding in the Buildings 
>> array based on the selection in Locations. Probably an easy one, but 
>> as a sporadic WO user I have no clue yet.
>
> Set an instance variable in the page level component from one list, 
> use it to create the list for the other, possibly with a a method that 
> fetches the values.  You may want to mess with some javascript or css 
> depending on how you want your page to behave (if so, it's not really 
> a WebObjects question).
>
> The reason we do it this way is to maintain separation between 
> controller and view layers in MVC.
>
> Paul
>
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.