Actually this is supported since 5.2:
https://issues.apache.org/jira/browse/TAP5-1094

On Tue, Sep 27, 2011 at 4:52 PM, Howard Lewis Ship <hls...@gmail.com> wrote:

> Good idea; A "symbol" binding prefix could do this quite easily, which
> would make your straw man proposal accurate.
>
> On Tue, Sep 27, 2011 at 7:49 AM, Steve Eynon
> <steve.ey...@alienfactory.co.uk> wrote:
> > To enhance Tapestry, what are people's thoughts about defining default
> > component values for some components as Symbols?
> >
> > For example, the Grid component has the following:
> >
> > @Parameter("25")
> > private int rowsPerPage;
> >
> > meaning if I wish for a pagination of 50 rows, I have to find all
> > instances of the Grid component in my application and manually add a
> > "rowsPerPage" parameter.
> >
> > But if the parameter was defined as:
> >
> > @Parameter("symbol:tapestry.grid.rowsPerPage")
> > private int rowsPerPage;
> >
> > then all I would need to do is override the symbol contribution and
> > voilĂ , it changes everywhere.
> >
> > While converting developers to T5 a common question I'm asked is,
> > "That's cool - but how do I now make that change happen everywhere in
> > the app?" At the moment all I can do is shrug and say, "Um, it's
> > complicated." (*)
> >
> > Other specific component defaults I've been asked about are, the
> > "update" parameter for Zone et al (because the classic "yellow fade"
> > doesn't work for everyone!) and a date format for DateField (I know
> > this one is a bit tricky, but the default format for the default
> > formatter could be supplied by a symbol).
> >
> > To me, this why Symbols exist, for extensible configuration - so, err,
> > how about it!? Or have I overlooked / missed something really obvious
> > here?
> >
> > Regards,
> >
> > Steve.
> >
> > (*) I know workers and mixins can accomplish the same, but a T5 newbie
> > isn't going to appreciate that!
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Best regards,

Igor Drobiazko
http://tapestry5.de

Reply via email to