Form tags : addition of shortdescription and longdescription attributes
-----------------------------------------------------------------------
Key: WW-2269
URL: https://issues.apache.org/struts/browse/WW-2269
Project: Struts 2
Issue Type: New Feature
Reporter: Sami Dalouche
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
for="${parameters.id}">${parameters.wwinfo}</label></div></#if>
<#if parameters.wwdescription?exists>
<div class="wwdescription">
<label for="${parameters.id}">${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.