struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Don Brown (JIRA)" <>
Subject [jira] Updated: (WW-2269) Form tags : addition of shortdescription and longdescription attributes
Date Fri, 13 Jun 2008 00:04:05 GMT


Don Brown updated WW-2269:

    Fix Version/s:     (was: 2.1.4)

> Form tags : addition of shortdescription and longdescription attributes
> -----------------------------------------------------------------------
>                 Key: WW-2269
>                 URL:
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Plugin - Tags
>            Reporter: Sami Dalouche
>             Fix For: 2.2.x
> Motivation: When you create a form, either you have plenty of space and you put all the
labels / controls linearly (label, <br /> input <br /> label2 <br /> input2
.....), or you have too much information and you have to make efficient use of the space.
> The default taglib easily allows linear forms, but creating forms where you have data
on the left, right and bottom/top of the input is much harder.
> Wish: So, it would be nice to have, by default, two additional attributes in all form
elements : shortdescription and longdescription, for instance. For instance, the shortdescription
could be displayed on the same line as the control itself, and the longdescription as a block
after/before the control.
> The implementation I currently use displays the short description on the same line, and
the long description after the control :
> <#if parameters.wwinfo?exists><div class="${parameters.wwinfoCssClass?default("wwinfo")}"><label
> <#if parameters.wwdescription?exists>
> <div class="wwdescription">
> 	<label for="${}">${parameters.wwdescription}</label>
> </div>
> </#if>
> <#-- Add the stupid clear hack because of the float'ed divs -->
> <div class="clearhack"></div>

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message