When I was using displaytag to export to excel, one of my columns contained text which was being recognized as numeric (scientific notation). When googling for a possible solution, seems like a LOT of people have had this problem in various ways (displaytag or otherwise). Thanks to this webpage, my solution was to write the following column decorator:
I have not run into any issues with this approach yet. If you do, I would appreciate a comment back. Thanks again to the guy who posted the hint that I reference previously.
p.s. Someone also suggested that I prepend the text with a unicode non-breaking space (see code following). Visually, it has the desired effect but it also modifies the text in the field so I do not like the solution as well. I just offer that solution to those who might want to use it.
I strongly encourage Java client/server/web technologies.
However, scripting languages continue to have a significant place in the market. Will Java be replaced? or will they live happily together?
Showing posts with label displaytag excel export text scientific notation decorator. Show all posts
Showing posts with label displaytag excel export text scientific notation decorator. Show all posts
Subscribe to:
Posts (Atom)
VisualVM on Windows with SDKMAN
7/31/2024 - I have been using SDKMAN on Windows via Git Bash for some time now and truly like it. I did however come across an interesting...
-
So... this may not be completely advisable for a production environment, but if you are using this stack, here is a snippet to show you how ...
-
The long and the short of it is that I am getting an exception when using declarative transactions with Spring + postgreSQL (GreenPlum varia...