Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
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
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