Hello

I'm forwarding this from my sent messages as sending to
[email protected] appeared not to work.

Mark

---------- Forwarded message ----------
From: Mark Lowe <[EMAIL PROTECTED]>
Date: Feb 11, 2006 12:43 PM
Subject: Component advice
To: MyFaces Discussion <[email protected]>


Hello

I'm writing a component that caters for internationalised bank account
numbers. The idea is that the component renders different form
elements and validates differently for different countries.

I'm making decent progress, but during my faces component writing
travels I've come across the following dilemma..

To keep things tidy I've created a InputBban component that extends
UIPanel, the Panel will that contain a InputBankCode and an
InputAccountNumber component.. Now i could just render the lot in the
Parent (InputBban), but should I really have a different renderer for
each child and wire the parent to render the children?

At the moment I'm doing everything in the Parent. I'm assuming that I
wont need to use the children independently and that they will always
be rendered as children of the parent (InputBban). Is this a good or
bad thing to be doing?

The other issue i could do with some help on is a tidy way to approach
the rendering of different output and different validations for
different countries. I guess its going to long whatever I do as the
rules are going to be different between each country but any
suggestions appeciated..

Mark

Reply via email to