Hello,
I posted this question to the displaytag-users but realized that I should probably ask it here. I need help ASAP to modify the displaytag codebase. I have the whole source tree checked out and it builds fine. But I need to figure out how to get DisplayTag integrated as an eclipse project and debugging in Tomcat, preferably in conjunction with my Appfuse project.
Here's the question I posted yesterday to the users list. Any help greatly appreciated!
Nat
--------------------
Hi, I havent seen any responses about this so I just wanted to ask, can somebody please give me some direction as to what might be a good way to solve the problem I outlined below; I would like to modify the DisplayTag source code to add the feature that I need, but blindly poking through the source is going to take me much longer than if somebody can just explain to me the basics of the inner workings of the package:
1) what is the basic flow of control when a JSP requests DisplayTag to render a table to the page ?
2) what would be the key classes to examine if I wanted to extend the library to solve the following requirement:
- I want to pass a parameter to the point where the <td> tag is written. The parameter would tell the object rendering the <td> tag to look inside the current list item for a value for a property such as colspan. Then the object rendering the <td> tag would add the property COLSPAN to that <td> tag.
3) How can I get tomcat to step through displaytag source in Eclipse ?
4) how can I turn on debugging in the library?
I apologize for these newbie questions but I could not find much info in the docs. I really would like to extend the functionality of Displaytag and I believe others would have use for this too.
Yes, you are correct, accidentally put <tr> instead of <td> in the question. I am looking for a capability for creating different <td> parameters inside the displaytag table.
It would be something like this :
<display:table name="${myDataSet}" id="myData">
<display:td_pass_thru_properties>
<display:tdproperty name="colspan" value="${myData.size}"/>
<display:tdproperty name="bgcolor" value="${myData.color}"/>
</display:td_pass_thru_properties>
</display:table>
when displaytag is rendering the table it would query each data element for the properties specified, and add them as parameters to each <td> tag .
I would be interested in tinkering with the source to get something like this to work... could somebody point me to the general set of classes/files/workflow that I would need to inject this into?
I humbly confess that I have not even seen the source for DisplayTag and know very little about the way it works on the inside.
NatOn 9/2/06, Rick Herrick < [EMAIL PROTECTED]> wrote:Your <tr> tags are actually the same. I'm assuming you mean changes in the <td> tags for different column structures? I don't believe that there is a way to do that.
Rick Herrick
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Nathaniel Rahav
Sent: Friday, September 01, 2006 5:48 PM
To: displaytag-user@lists.sourceforge.net
Subject: [displaytag-user] <TD Colspan=X> inside displaytag ?
Dear Displaytaggers,
Greetings. Does anybody know of a way in DisplayTag to specify individual <tr> attributes that may be variable across different columns and different rows in a table?
For example, how could I build a table using DisplayTag to display the following:
<table >
<tr><th>Day 1</th>
<th>Day 2</th>
<th>Day 3</th>
<th>Day 4</th>
</tr>
<tr>
<td COLSPAN="3">Reserved</td>
<td COLSPAN="1">Available</td>
</tr>
<tr>
<td colspan="1">Available</td>
<td colspan="2">Reserved</td>
<td colspan="1">Available
</tr>
</table>
I'm attaching an image of this table so you see what Im trying to do.
Thanks
Nat
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ displaytag-devel mailing list displaytag-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-devel