[
https://issues.apache.org/struts/browse/WW-2269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Don Brown updated WW-2269:
--------------------------
Fix Version/s: (was: 2.1.4)
2.2.x
> 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
> 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
> 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.