You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Jana Parvanova <ja...@sirma.bg> on 2006/01/20 08:20:15 UTC
Custom components
Hi!
Can someone point me to an example of real-life complex custom component - I
mean something with several inputs inside, complex validation, change
listeners etc.
All samples I've seen so far are of simple components extending UIInput or
UIOutput.
Tnanks,
Jana
Re: Custom components
Posted by Jana Parvanova <ja...@sirma.bg>.
Hm, that seems useful also.
Thanks.
----- Original Message -----
From: "Aleksei Valikov" <va...@gmx.net>
To: "MyFaces Discussion" <us...@myfaces.apache.org>
Sent: Friday, January 20, 2006 3:15 PM
Subject: Re: Custom components
> Hi.
>
>> Can someone point me to an example of real-life complex custom
>> component - I mean something with several inputs inside, complex
>> validation, change listeners etc.
>> All samples I've seen so far are of simple components extending UIInput
>> or UIOutput.
>
> To make a complex component, I usually instantiate and populate existing
> components in backing beans and use binding attribute of tags withing
> JSPs:
>
> <t:panelTabbedPane binding="#{recordEditorBean.component}"/>
>
> The recordEditorBean has get/setComponent methods. I create, populate and
> configure the component in the constructor and simply return it in the
> getter.
>
> Bye.
> /lexi
>
Re: Custom components
Posted by Aleksei Valikov <va...@gmx.net>.
Hi.
> Can someone point me to an example of real-life complex custom component
> - I mean something with several inputs inside, complex validation,
> change listeners etc.
> All samples I've seen so far are of simple components extending UIInput
> or UIOutput.
To make a complex component, I usually instantiate and populate existing
components in backing beans and use binding attribute of tags withing JSPs:
<t:panelTabbedPane binding="#{recordEditorBean.component}"/>
The recordEditorBean has get/setComponent methods. I create, populate
and configure the component in the constructor and simply return it in
the getter.
Bye.
/lexi