You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Ted Husted (JIRA)" <ji...@apache.org> on 2007/10/29 19:44:40 UTC

[jira] Updated: (WW-2269) Form tags : addition of shortdescription and longdescription attributes

     [ https://issues.apache.org/struts/browse/WW-2269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Husted updated WW-2269:
---------------------------

    Flags: [Patch]

> 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
>             Fix For: 2.1.3
>
>
> 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.