You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Daniel Leffel <da...@gmail.com> on 2007/06/10 22:37:27 UTC
Advice for building a Form Component in 4.1.2
Hi All,
I'm starting to develop a new form component and I wanted to see if
anyone had any suggestions on the best design. I'd be happy to share
it back (once finished) with anyone who is interested.
I'm building a form component used to "rate" something (i.e. 3 out of
4 stars etc.). A few key points:
- I'm going to make the scale flexible ( 4 stars vs. 5 stars) - set
as a parameter.
- Image used (i.e. star versus something else) flexible, controlled by the css
- Setting the rating will be done asynchronously (no postback)
- Component will manage changing the image used for each star based
on the current value
So, I'm thinking I'd extend AbstractFormComponent, however, since I
can't build DirectLinks dynamically, that's where I'm unclear as what
to do.
The alternative was to extend BaseComponent, but then I loose the
unwind functionality needed.
Any thoughts on the best way to proceed?
Danny
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org