views:

608

answers:

3

Dear Lazyweb,

I'm using the displaytag tag library, and it's worked amazingly so far. However, i don't see a simple option or way to put the export banner at the top of the table instead of the bottom. How can this be accomplished?

Thanks, Roy

A: 

Hi Roy, Were you able to figure out a way to do this? I have a large data table that I'm formatting using display tag. But the users don't want to scroll all the way to the end in order to export it. It would be better if there was a way to show the export options banner at the top. Please let me know?

Thanks, Sreekar.

No, I was not able to do this functionality directly with displaytag, I did see this feature is requested for a future release. While I'm not able to on my implementation, but a workaround could be done: you could use javascript which, once the page loads, copies the content of the div containing the links and pastes them to the top of the page.
Roy Rico
A: 

UP! Any news from that?

Tami
This would probably be best posted as a comment, but No, I was not able to do this functionality directly with displaytag, I did see this feature is requested for a future release. While I'm not able to on my implementation, but a workaround could be done: you could use javascript which, once the page loads, copies the content of the div containing the links and pastes them to the top of the page.
Roy Rico
A: 

We've been able to place the export menu at the top using some css against 'exportTypes' id. I'm not the Front End guy that did it in our team, so there might be more to it, but it looks like you can do something like:

div.framed-outer.guttered #exportTypes {
    *top: -10px;
}

Where framed-outer and guttered are just some div ids around the table we use.

In the displaytag.properties we've defined:

export.banner=<div id="exportTypes"><span class="label">Export: </span>{0}</div>

Again that may not be the whole story but that's what I can see that'd do it in our project. Hope this helps a bit.

Lancelot