Hi Ramesh,
to include CRUD functionality to your displaytag table, add a column called
"ACTION" to your table with links to your backend actions (e.g. struts
actions). The id of the current row is all you need
Example:
<!-- Actions -->
<display:column title="Action" sortable="false" class="nowrap">
<c:if test="${! focus.guestRole}">
<a href="editfeature.do?fid=${row.hwFeatureId}"
style="text-decoration: none;">
<html:img src="theme/img/edit1.gif" border="0"
altKey="components.feature.list.edit" titleKey="components.feature.list.edit" />
</a>
<a href="javascript:doDelete(${row.hwFeatureId})"
style="text-decoration: none;">
<html:img src="theme/img/delete1.gif" border="0"
altKey="components.feature.list.delete"
titleKey="components.feature.list.delete"/>
</a>
</c:if>
<a href="historyfeature.do?oid=${row.hwFeatureId}"
style="text-decoration: none;">
<html:img src="theme/img/insert.gif" border="0"
altKey="components.feature.list.history"
titleKey="components.feature.list.history" />
</a>
</display:column>
Cheers
André
-------- Original-Nachricht --------
Datum: Wed, 22 Nov 2006 15:43:24 -0500
Von: "Patnayakuni, Ramesh" <[EMAIL PROTECTED]>
An: [email protected]
Betreff: Re: [displaytag-user] How Can I Select a row in display tag
> Thanks Ed..Can you please tell me from where I can get the sample code
> for select and update kind of features.
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Ed
> Webb
> Sent: Wednesday, November 22, 2006 3:14 PM
> To: [email protected]
> Subject: Re: [displaytag-user] How Can I Select a row in display tag
>
> Patnayakuni, Ramesh wrote:
> >
> > Hi,
> >
> > I am new to display tag and I would like to know how can I select
> > a row using display tag?
> >
> If you want to select, edit, delete, update, change or do anything with
> the data in your table it's up to you to write the code to do it.
>
> > Can somebody tell me whether this feature is there or not?
> >
> No. DisplayTag does what it says; it only displays your data and does it
>
> very well.
>
> Ed!
>
> ------------------------------------------------------------------------
> -
> 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=DEVDE
> V
> _______________________________________________
> displaytag-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
> -------------------------------------------------------------------------
> 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-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
--
"Ein Herz für Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de
Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht!
-------------------------------------------------------------------------
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-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user