Hi Eric
the second solution seems a bit of a hack to me, though it's working of
course.

For me the best solution would be another taglib usage like this
<display:exportsection/> which i could place anywhere on my page.

But if there is no such possibility i think i have to stick with your first
solution.

Thanks,
Felix

On 06/03/07, Eric Lentz <[EMAIL PROTECTED]> wrote:

 Felix,
The links section can be a div with a class attribute (depends on your
displaytags.properties).  As such you can put it anywhere on the page via
CSS. For example, this puts the links at the top / left corner of the page:

Assuming a displaytags.properties entry of:
paging.banner.full=<div class="pagelinks"><a href={1}><img
src="../icons/dt/first.gif"></a><a href={2}><img
src="../icons/dt/prev.gif"></a>{0}<a href={3}><img
src="../icons/dt/next.gif"></a><a href={4}><img
src="../icons/dt/last.gif"></a></div>

.pagelinks {
    position:absolute;
    top: 10%;
    left: 10%;
}

An "easier" solution might be to make your static links as you mentioned
and leave the hrefs empty.  Then have javascript on the body onload event,
which finds your page links (set the ID of the DIV via the
paging.banner.full, for example) by using document.findElementById (or
$(element) if you're using the prototype framework) and collect all of the
hrefs and set the blank hrefs in your menu to the hrefs on the displaytag
table.  Now you have them in two places which is probably not desirable, so
add a CSS for the ID of the DIV on the displaytag table to display:none.

Eric

 Hello,
is it possible to include the export section of a table at a custom position
in the page (e.g. a menu).
When i use static links, changes made to the table e.g. sorting are lost.

Thanks for any hints,
Felix




--
Please join my contacts at:
http://www.xing.com/go/invite/355156.c2dd18
-------------------------------------------------------------------------
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

Reply via email to