New attribute tdIdPostfix for column
------------------------------------

                 Key: DISPL-401
                 URL: http://jira.codehaus.org/browse/DISPL-401
             Project: DisplayTag
          Issue Type: New Feature
          Components: HTML Generation
    Affects Versions: 1.1.1
            Reporter: Martin Soltis
             Fix For: 1.1.1


It would be nice if display:column tag had attribute tdIdPostfix.
If this attribute is set in some column, this column in every row should have 
unique id which consist of: tableId, rowNumberOnPage and tdIdPostfix.
We have JS object which can really easy access values, inputs ... in particular 
rows and columns in specified table via tdIdPostfix and row# so validation is 
therfore very easy to specify.

Example src:
<display:table id="fileCtx" ... >
<display:column title="File Name" tdIdPostfix="name">
...
<display:column>
...
</display:table>

Example html:
<table class="disptag" id="fileCtx">
<thead>
<tr>
<th>File Name</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td id="fileCtx_0_name"><input .../></td>
<td>...</td>
</tr>
<tr class="even">
<td id="fileCtx_1_name"><input .../></td>
<td>...</td>
</tr>
<tr class="odd">
<td id="fileCtx_2_name"><input .../></td>
<td>...</td>
</tr>
</tbody>
</table>


Martin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/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
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to