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
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
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
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
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:
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
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
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