Hm, that seems useful also.
Thanks.

----- Original Message ----- From: "Aleksei Valikov" <[EMAIL PROTECTED]>
To: "MyFaces Discussion" <[email protected]>
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


Reply via email to