Hi,
thank you that did help.
I am however still having problems getting the parameters to work.
My old working code looks like
<display:table name="nameForm.name" id="ids" requestURI="/companyName/admin/home.do" width="100%" pagesize="10" sort="list" defaultsort="1" decorator="com.companyName.web.decorator.nameTableDecorator">
<display:column class="list" width="20%" property="fullName" title="name Name" sortable="true" headerClass="sortable"/>
<display:column class="list" width="15%" property="nameCode" title="name Id" sortable="true" headerClass="sortable"/>
<display:column class="list" width="30%" property="peopleFullName" title="people" sortable="true" headerClass="sortable"/>
<display:column class="list" width="5%" href="" paramId="id" paramProperty="nameId">Details</a></display:column>
<display:column class="list" width="5%" href="" paramId="id" paramProperty="nameId"><c:out value="${ids.nameId}"/></a></display:column>
<display:setProperty name="paging.banner.include_first_last" value="true" />
<display:setProperty name="paging.banner.placement" value="bottom" />
</display:table>
I change the peopleSurvey.do page to open in a new window:
<display:column class="list" width="5%" ><a target="_blank" href="" paramID="<c:out value="${ids.id}"/>" paramProperty="<c:out value="${ids.nameId}"/>"> <c:out value="${ids.nameId}"/> </a></display:column>
but I can't get the parameters to work. I've tried a bunch of different ways to do it, the above example is my latest desperate attempt which doesn't work either, but should illustrate what I'd like it to do.
Any help is appreciated, thanks Asta.
Date: Fri, 24 Mar 2006 11:17:29 -0800 (PST)
Subject: Re: [displaytag-user] Re: Open new window/target tag
From: "Rick Herrick"
To: [email protected]
Reply-To: [email protected]
Asta Slade wrote:
> Thanks for replying. Didn't realize one could add links when sorting
> the list...
>
> Anyway, I'm using displaytag 1.1 and the link is in a table cell:
>
> Details
>
> I tried adding the target tag and it didn't work (error message said
> Attribute target invalid for tag column according to TLD).
>
> Does this help?
Somewhat, although I'm wondering what you expect to happen and/or how
you're getting links from a column. So I'm guessing you have something
like this:
<?xml:namespace prefix = display />
So if you have list of beans with a getProp() method, you might get this:
Value1
Value2
Value3
The tital would be a sorting link. The values wouldn't be links,
though, so I'm not sure what you're expecting to click on that you want to
have appear in another window. I'll just make something up though, so see
if this is close to what you want:
value="${item.prop}"/>
Now you'd get the same behavior as the first example, but each row would
be a link to the doSomething.do action. You can also use item properties
in the href so that you get different behavior each time. Like suppose
your bean has id and name properties:
" target="_blank">
<?xml:namespace prefix = c />
Does that help?
--
Rick Herrick
[EMAIL PROTECTED]
I haven't got time for inner peace.
"No reasonable definition of reality could be expected to permit
this."--Albert Einstein, Boris Podolsky and Nathan Rosen in 1935
Ann Saust Rossi, Ph.D.
Senior Software Developer, Polaris Health Directions
267-583-6336 x 30
[EMAIL PROTECTED]
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

