[ http://mc4j.org/jira/browse/STS-311?page=comments#action_10530 ] Kai Grabfelder commented on STS-311: ------------------------------------
yes, please add a comment in the documentation - maybe along with a link to e.g. http://today.java.net/pub/a/today/2003/11/14/tagfiles.html If that is done, I think this issue can be closed... > Proposal: textfield label auto creation > --------------------------------------- > > Key: STS-311 > URL: http://mc4j.org/jira/browse/STS-311 > Project: Stripes > Issue Type: New Feature > Components: Tag Library > Affects Versions: Release 1.5 > Environment: It's a common case that all textfield labels are created > in the same way (to keep a consistent look and feel). > Reporter: Ignacio Coloma > Assigned To: Tim Fennell > > This proposal consists in defining a new attribute for the textfield tag, > autoLabel=true. If true, the textfield would create automatically a label > before itself. To customize this creation a LabelFactory interface would be > needed. Example: > * Config parameter for default automatic label creation (defines if the > default value would be true or false) > autolabel.default=false > * Default label factory: > autolabel.factoryClass=net.sourceforge.xxx.DefaultAutoLabelFactory > Example of use: > <stripes:text autoLabel="true" name="name"/> > HTML output: > <label for="name">Name translated</label>: <input type="text" name="name"/> > The label factory can be changed, for example if you are a usability freak, > to allow certain type of design with ease: > http://www.uxmatters.com/MT/archives/000107.php > If you feel this interesting I can have a patch developed in about a week, > test case included. Only tell me because I need to know if I should develop a > separate custom tag or extend stripes. Of course thi is open to discussion > (if you feel a generic pattern like a decorator is more appropiate, or > whatever) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://mc4j.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Stripes-development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-development
