Hy,

I have some special needs for using displaytag. It seems displaytag can't do what I 
need and I'll
have to patch the source to get it, but before asking on the developers list about 
what would be
the best way to patch the source to fulfill my needs,
I want to ask here if the things I need really can't be done or if I'm just too blind 
to see how.

What do i wanna do?

1.) I want to add a custom, non-data table row in a displaytag table between the 
header row
    and the first real data row. In my special case, i have a table with search 
results from
    a database, and the row between the header an the first data row should show text 
input
    fields to enter the user's search request with search criteria for each data 
column.

2.) In the table's data rows i want to add special contents in the data fields, 
    not just simple td tags with css-classes and some text content, but i want
    to add things like select boxes, for example, because i want the user to select
    some or more of the table entries to do something with the data.

    This might be best realized if i could access the table data directly with
    something like a "fieldata" tag which inserts only the data into the jsp while 
layout
    and everything would be to be implemented in the jsp.


The idea how this both needs could loook like in a jsp is like this:

<form method="post">

<!-- displaytag generated code start -->
<display:table name="result" sort="list" pagesize="4">
  <display:column property="lastname" title="LASTNAME" sortable="true"/>
  <display:column property="firstname" title="FIRSTNAME" sortable="true"/>
  <display:column property="phonenumber" title="PHONE"/>
  <display:column property="email" title="EMAIL"/>
  <display:column property="department" title="DEPARTMENT" sortable="true"/>
  <display:column property="company" title="COMPANY" sortable="true"/>

  <display:staticrow>
        <tr>
                <td class="TableCol">
                        <input name="search" type="submit" class="FormButton" 
id="Edit223" value="Search">
                </td>
                <td class="TableColDesc">
                        <input name="lastname" type="text" 
class="FormTextFieldColDesc" value="<phonebook:criterium name="lastname"/>">
                </td>
                <td class="TableColDesc">
                        <input name="firstname" type="text" 
class="FormTextFieldColDesc"  value="<phonebook:criterium name="firstname"/>">
                </td>
                <td class="TableColDesc">
                        <input name="phonenumber" type="text" 
class="FormTextFieldColDesc"  value="<phonebook:criterium name="phonenumber"/>">
                </td>
                <td class="TableColDesc">
                        <input name="email" type="text" class="FormTextFieldColDesc"  
value="<phonebook:criterium name="email"/>">
                </td>
                <td class="TableColDesc">
                        <input name="department" type="text" 
class="FormTextFieldColDesc"  value="<phonebook:criterium name="department"/>">
                </td>
                <td align="center">
                        <select name="company" class="FormSelect">
                                <phonebook:companyoptions />
                        </select>
                </td>
        </tr>   
  </display:staticrow>
  <display:row>
                <td class="TableData">
                        <input type="radio" value="<display:InvisibleFieldData: 
name="rowId"/>"><display:FieldData/>
                </td>
                <td class="TableData"><display:FieldData/></td>
                <td class="TableData"><display:FieldData/></td>
                <td class="TableData"><display:FieldData/></td>
                <td class="TableData"><display:FieldData/></td>
                <td class="TableData"><display:FieldData/></td>
                <td align="TableData"><display:FieldData/></td>
  <display:row>  
</display:table>
<!-- displaytag generated code end -->
</form>



Thank in advace for any help and ideas,

Henning


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to