Re: Retrieving values from nested components

2006-03-12 Thread John Menke
Peter, thanks for you help. this is what eventually worked the renderComponent method is what you seem to need to transfer values out of contained components to the parameter jwc: Phone.java public abstract class Phone extends BaseComponent implements IFormComponent, Vali

Re: Retrieving values from nested components

2006-03-10 Thread Peter Svensson
Hmm. It's very odd. Could you try a smaller exampler just to see if there is something strange going on. For instance if you make a very small component that just shows a textfield; foo.html foo.jwc And you have get/setBar() etc. in the class (Foo.java) you could then refer to the c

Re: Retrieving values from nested components

2006-03-10 Thread John Menke
I tried your suggest but ending up getting errors stating that parameters were unbound. I thought the binding tags below bind the values on the form. If i put parameter tags on top of these declarations i get errors. Can anyone show me an example of what you are talking about and how to referenc

Re: Retrieving values from nested components

2006-03-10 Thread Peter Svensson
Hmm. OK. You have to have a parameter definition in your component. that's what accepts the bindings to it you make in the page file where you refer to it, like; .. etc.. in the Phone.jwc file Cheers, PS On 3/10/06, John Menke <[EMAIL PROTECTED]> wrote: > > Peter, > > I have getter and setter

Re: Retrieving values from nested components

2006-03-10 Thread John Menke
Peter, I have getter and setter methods in my Phone.java and in my Parent file NestedPhoneTest.java here: is what i have TestNestedPhone.page: Phone.jwc:

Re: Retrieving values from nested components

2006-03-10 Thread John Menke
i only have 1 Phone component at the moment - just looking forward to another being added on a another part of my form at some point. On 3/10/06, Wayland Chan <[EMAIL PROTECTED]> wrote: > > What you're describing isn't really a nested component. Rather a > collection > of components. > > Have you

Re: Retrieving values from nested components

2006-03-10 Thread Wayland Chan
What you're describing isn't really a nested component. Rather a collection of components. Have you considered simply using the @For component to render all 3 (or n) of your phone number objects? > On 3/10/06, John Menke <[EMAIL PROTECTED]> wrote: > > > > I want to write a "Phone" component th

Re: Retrieving values from nested components

2006-03-10 Thread Peter Svensson
I think you just give them different names/ids like you already do. And since you have named the values already, you need only add some abstrcat access methods in your class,like; public abstract String getPhone1(); public void setPhone1(String s); And you're done :) I don't think that the "type