Hi

I want to userID, agency name to action using display column.

Please suggest how can I do..

I used the following code but it is not working


                        <display:column property="createdOn"
title="CreatedOn"
                                        sortable="true" />
                                <s:url id="editURL" action="editUser">
                                        <s:param name="name"
value="%{userId}"></s:param>
                                </s:url>
                                <display:column
href="EditUser.jsp">Edit</display:column>
                                <display:column media="html" title="Disable"
                                        style="text-align:center">

                                        <s:url id="disableURL"
action="disableUser">
                                                <s:param name="userId"
value="%{#attr.row.userId}"></s:param>
                                        </s:url>
                                        <s:a
href="%{disableURL}">Disable</s:a>
                                </display:column>

                                <display:column media="html" title="Active"
                                        style="text-align:center">
                                        <s:url id="activeURL"
action="activeUser">
                                                <s:param name="name"
value="%{userId}"></s:param>
                                        </s:url>
                                        <s:a
href="%{activeURL}">Active</s:a>
                                </display:column>
                                <display:column>
                                        <s:url id="changePasswordURL"
action="changePasswordUser">
                                                <s:param name="name"
value="%{userId}"></s:param>
                                        </s:url>
                                        <s:a
href="%{changePasswordURL}">Change Password</s:a>
                                </display:column>

Thanks & Regards,
Shilpa Gandhi
 
 
-----Original Message-----
From: displaytag-devel-requ...@lists.sourceforge.net
[mailto:displaytag-devel-requ...@lists.sourceforge.net] 
Sent: Thursday, July 28, 2011 11:51 AM
To: displaytag-devel@lists.sourceforge.net
Subject: displaytag-devel Digest, Vol 54, Issue 1

Send displaytag-devel mailing list submissions to
        displaytag-devel@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/displaytag-devel
or, via email, send a message with subject or body 'help' to
        displaytag-devel-requ...@lists.sourceforge.net

You can reach the person managing the list at
        displaytag-devel-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of displaytag-devel digest..."


Today's Topics:

   1. [jira] Commented: (DISPL-292) Export to Excel, PDf y RTF
      doesn't export all the LIST (Martin Irigaray (JIRA))
   2. [jira] Commented: (DISPL-184) I18nStrutsAdapter does not
      resolve i18n resources (Toby Neumann (JIRA))
   3. Related Display-Tag (Shilpa)


----------------------------------------------------------------------

Message: 1
Date: Mon, 13 Jun 2011 00:22:42 -0500 (CDT)
From: "Martin Irigaray (JIRA)" <j...@codehaus.org>
Subject: [displaytag-devel] [jira] Commented: (DISPL-292) Export to
        Excel, PDf y RTF doesn't export all the LIST
To: displaytag-devel@lists.sourceforge.net
Message-ID:
        
<23750819.459.1307942562975.JavaMail.haus-jira@codehaus01.managed.contegix.c
om>
        
Content-Type: text/plain; charset=ISO-8859-1


    [
http://jira.codehaus.org/browse/DISPL-292?page=com.atlassian.jira.plugin.sys
tem.issuetabpanels:comment-tabpanel&focusedCommentId=270244#comment-270244 ]


Martin Irigaray commented on DISPL-292:
---------------------------------------

Ok, i saw the problem is on class TableWriterTemplate, in the line
RowIterator rowIterator = model.getRowIterator(false); Is calling always
with false, that's why always use the page result. Insted of changing the
source of displaytag, i copied the TableWriterTemplate and all the classes
(export and render folder) that dependes on it, to my project and rename it.
Then selected my new classes in the displaytag properties file. And changed
the parameter for true.

> Export to Excel, PDf y RTF doesn't export all the LIST
> ------------------------------------------------------
>
>                 Key: DISPL-292
>                 URL: http://jira.codehaus.org/browse/DISPL-292
>             Project: DisplayTag
>          Issue Type: Bug
>          Components: Export
>    Affects Versions: 1.1
>            Reporter: Jaume Guillamon
>            Priority: Critical
>             Fix For: 1.3
>
>         Attachments: DISPL-292-displaytag-patch.txt,
DisplayTag_1.1.ExportAll_Jaume.jar, displaytag-good-1.1.1.jar
>
>
> When I use the Export utility and I code the line <display:setProperty
name="export.excel.export_amount" value="list"></display:setProperty>, or I
use the propertites, displaytag only exports the PAGE (10 records), not the
LIST. but it only happens when I export to EXCEL, PDf y RTF.
> When I export to XML and  CSV all runs fine (1604 records are exported).
> Any of you with the same problem ?
> Thx,
> Jaume

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



------------------------------

Message: 2
Date: Mon, 25 Jul 2011 08:38:42 -0500 (CDT)
From: "Toby Neumann (JIRA)" <j...@codehaus.org>
Subject: [displaytag-devel] [jira] Commented: (DISPL-184)
        I18nStrutsAdapter does not resolve i18n resources
To: displaytag-devel@lists.sourceforge.net
Message-ID:
        
<18214080.24471.1311601122695.JavaMail.haus-jira@codehaus01.managed.contegix
.com>
        
Content-Type: text/plain; charset=ISO-8859-1


    [
https://jira.codehaus.org/browse/DISPL-184?page=com.atlassian.jira.plugin.sy
stem.issuetabpanels:comment-tabpanel&focusedCommentId=274124#comment-274124
] 

Toby Neumann commented on DISPL-184:
------------------------------------

This is not a problem of the various adapter implementations. In fact, these
adapters are only involved resolving the resources for table title and
column titles. All the built-in texts which are listed in the file
displaytag.properties do not use that mechanism but access the properties
directly (in file TableProperties.java). I think that is what is wrong.

Is there a reason why it could not be done in the same way?

> I18nStrutsAdapter does not resolve i18n resources
> -------------------------------------------------
>
>                 Key: DISPL-184
>                 URL: https://jira.codehaus.org/browse/DISPL-184
>             Project: DisplayTag
>          Issue Type: Bug
>          Components: I18N, Paging/Sorting
>    Affects Versions: 1.0
>            Reporter: Dominik Drzewiecki
>             Fix For: TBD
>
>
> This is odd. I18nStrutsAdapter cannot resolve *part* of internationalized
resources. The resources for tablecolumn header name, passed as a titeKey
parameter in <display:column> *do get* resolved according to provided
request locale while the messages that appear in a paging banner
(paging.banner.*) seem to get resolved from the displaytag.properties rather
than from messages defined in struts-config.xml. There's no fancy
configuration: struts, tiles, displaytag and accompanying libraries are
placed within webapp's WEB-INF/lib.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



------------------------------

Message: 3
Date: Thu, 28 Jul 2011 11:53:08 +0300
From: "Shilpa" <shi...@kuwaitasp.net>
Subject: [displaytag-devel] Related Display-Tag
To: <displaytag-devel@lists.sourceforge.net>
Message-ID: <005901cc4d03$c7edc1b0$57c94510$@net>
Content-Type: text/plain; charset="us-ascii"

 

Hi 

 

 

 

I am using struts2 in my project. I want to edit ,delete ,activate and

disable user.

 

 

 

Previously it is working using s:iterator wthout display:table

 

 

 

Please suggest me. What is problem. Currentrow of userID is not getting.

 

 

 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd";>

 

<%@ page contentType="text/html; charset=UTF-8"%>

 

<%@ taglib prefix="s" uri="/struts-tags"%>

 

<%@ page import="java.io.*,java.util.*,java.sql.*,dao.*"%>

 

<%@taglib
<mailto:%25@taglib%20uri=%22http://displaytag.sf.net%22%20prefix=%22display%
22%25>  uri="http://displaytag.sf.net"; prefix="display"%>

 

<%@taglib
<mailto:%25@taglib%20uri=%22/WEB-INF/struts-logic.tld%22%20prefix=%22logic%2
2%25>  uri="/WEB-INF/struts-logic.tld" prefix="logic"%>

 

<%@taglib
<mailto:%25@taglib%20uri=%22/WEB-INF/struts-bean.tld%22%20prefix=%22bean%22%
25>  uri="/WEB-INF/struts-bean.tld" prefix="bean"%>

 

<html>

 

 

 

<head>

 

 

 

<title>All User</title>

 

<link href="css/style.css" rel="stylesheet" type="text/css" />

 

</head>

 

 

 

<body>

 

      <div id="divMenuBar"

 

            style="width: 100%; height: 3%; border: solid; border-width:

2px; float: left; background: #E5E5E5;">

 

            <h3>

 

                  <font color="red" size="4pt"> All Users</font>

 

            </h3>

 

      </div>

 

      <div id="divbody" style="width: 100%; height: 90%; float: right;">

 

            <display:table id="data" name="userDetailsList"

 

                  requestURI="getAllUser.action" pagesize="20">

 

                  <display:column property="fullName" title="FullName"

sortable="true" />

 

                  <display:column property="userId" title="User ID"

sortable="true" />

 

                  <display:column property="agencyName" title="AgencyName"

 

                        sortable="true" />

 

                  <display:column property="userLevel" title="UserLevel"

 

                        sortable="true" />

 

                  <display:column property="userStatus" title="UserStatus"

 

                        sortable="true" />

 

                  <display:column property="createdOn" title="CreatedOn"

 

                        sortable="true" />

 

                  <s:url id="editURL" action="editUser">

 

                        <s:param name="name" value="%{userId}"></s:param>

 

                  </s:url>

 

                  <display:column href="EditUser.jsp">Edit</display:column>

 

                  <display:column media="html" title="Disable"

 

                        style="text-align:center">

 

 

 

                        <s:url id="disableURL" action="disableUser">

 

                              <s:param name="userId"

value="%{#attr.row.userId}"></s:param>

 

                        </s:url>

 

                        <s:a href="%{disableURL}">Disable</s:a>

 

                  </display:column>

 

 

 

                  <display:column media="html" title="Active"

style="text-align:center">

 

 

 

                        <s:url id="activeURL" action="activeUser">

 

                              <s:param name="name"

value="%{userId}"></s:param>

 

                        </s:url>

 

                        <s:a href="%{activeURL}">Active</s:a>

 

                  </display:column>

 

 

 

            </display:table>

 

 

 

      </div>

 

</body>

 

</html>

 

 

 

 

 

 

 

Thanks & Regards,

 

Shilpa Gandhi

 

 

 

 

 

 

Thanks & Regards,

Shilpa Gandhi

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

----------------------------------------------------------------------------
--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey

------------------------------

_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel


End of displaytag-devel Digest, Vol 54, Issue 1
***********************************************



------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to