Hi,
Use the same decorator class for each column and in decorator method use
like this
*return* "<a href=\"javascript:ur function name(); "\">"
+object.getUrFieldValue
+ "</a>";
and from ur java script function declared in your JSP call window.open
and for style with in decorator:column u can use style="width:20%" so on
like that..
Thanks,
Naveen
On Tue, Jul 5, 2011 at 3:08 AM, Raaja G <raaj...@gmail.com> wrote:
>
> Hi,
>
> I want to make an entire row in display tag (each and every row) as a link.
> So that if I click on the row a new window should be open with the
> contents.
> And also how to change the width of the display column.
>
> I want to make like this
>
> <tr style="cursor:pointer;"
>
> onclick="window.open('/changeOwnerShip12.do?departmentId='+<%=departmentId%>+'&&fileId='+<%=fileId%>,'welcome','width=450,height=350,menubar=yes,status=yes,scroll=auto')"
> >
>
> my table is
>
> <display:table id="data" name="documentsList"
> requestURI="/documentsByProfile.do"
> decorator="com.krishct.efiler.user.documents.DownloadDecorator"
> pagesize="10" cellpadding="2" cellspacing="2" >
> <display:column property="profileName" title="Profile"
> sortable="true"
> style="text-align:center;" />
> <display:column property="docName" title="Doc Name"
> sortable="true"
> style="text-align:center;" />
> <display:column property="createdBy" title="Owner"
> sortable="true"
> style="text-align:center;" />
> <display:column property="departmentName" title="Department"
> sortable="true"
> style="text-align:center;" />
> <display:setProperty name="paging.banner.placement"
> value="bottom"/>
> <display:setProperty name="export.xml" value="false" />
> <display:setProperty name="export.csv" value="false" />
> <display:setProperty name="export.pdf" value="false" />
> </display:table>
>
> How to do it.
>
> Please guide me.
>
> Thanking you.
>
> --raaja. g
> --
> View this message in context:
> http://old.nabble.com/Is-it-possible-to-make-an-entire-row-as-link-using-display-tag-tp31978042p31978042.html
> Sent from the DisplayTag - General mailing list archive at Nabble.com.
>
>
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> displaytag-user mailing list
> displaytag-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user