I recommend you to check the way the BeanEditForm Works. U might dynamically use a strategy to create the beanModels for a specific form. Even if this doesn't apply directly u can get very good ideas from the source code of the BeanEditForm
On Tue, Jul 6, 2010 at 11:27 AM, t5_lothar <lothar_n...@gmx.de> wrote: > > Hi all, > > I am using Tapestry in a product that will be used by multiple customers. > There will slight alterations in the pages depending on the customer's > preference like a few more edit fields, additional buttons etc. My question > is how to handle these variations of one page the most elegantly. > > These are my ideas: > > (1) If/Else approch: <t:if test=${customerA}> ... display some fields ... > <p:else> ... display other fields ... </p:else> </t:if> > > (2) CSS Approch: <div class="customerA"> ... some fields ...</div> > <div class="customerB"> ... other fields ...</div> and set one of the > styles as 'display:none'. > > (3) Page inheritance approch: Put the common stuff in a BasePage and build > two customer dependent variants inheriting from it. Don't know exactly if > this supported by Tapestry. > > (4) Component approch: Put the common stuff in a component and have to > specialized pages use this component. > > Any suggestions, possibliy new ideas? > > Thanks, > Lothar > -- > View this message in context: > http://old.nabble.com/-T5--Best-practices-for-customer-specific-code-in-pages-tp29083515p29083515.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org