This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to display a barcode in the form

 
Stu Quinn
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good day,

Web page development really is not my area and I need to determine the best approach to display a barcode. Any suggestions and snippets would be appreciated.

Note I am restricted to JDK 1.4 and JSF 1.1 running on Websphere 6.0.

Thanks for any assistance,
Stu

 
Tim Holloway
Bartender
Posts: 18422
60
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hasn't IBM dropped support for WebSphere 6.0? Everyone I know is running WAS 6.1. Which supports Java 5. And speaking of support, Sun - a/k/a "Oracle America' stopped supporting Java 1.4 quite some time ago. Back before Oracle bought them, in fact. Don't look now, but your boat is slowly sinking.

Barcodes can be rendered on JSF pages in 2 ways.

One way is to render them as graphic images on the server and then display them just like you would any other dynamically-created image.

The second way involved setting up a web page to actually invoke a barcode font and output the data as text to be rendered using that font.

The second way is more precise, but harder to do, since it basically requires a font download.
 
Stu Quinn
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I am aware my platform is dated, however that was the hand I was dealt. I need a bumper sticker that reads "I would rather be coding EJB3 on JBOSS".

As for displaying the barcode I am supporting in-house PCs so I can load up a font. I will head down that route.

I ran across a JSF component that uses Barbeque. I will take a look at that as well.

Thanks,
Stu
 
Stu Quinn
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I neglected to mention where I found the solution:

http://www.jroller.com/mert/entry/jsfbarcodecreator_released_in_jsf_comp#comments

Life is good,
Stu
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!