If you have a drop-down list that allows multiple selections, you may want to add a filter for that list. Every time you type a character in the filter textbox, you can traverse along the list and hide unmatched elements.
It is pretty easy to preview pdf files with PrimeFaces media component as explained in official page.
If you try this already there are two common problems that may find you.
Jersey RESTful Web Services framework is open source, production quality, framework for developing RESTful Web Services in Java that provides support for JAX-RS APIs and serves as a JAX-RS (JSR 311 & JSR 339) Reference Implementation.
This stackoverflow post  explains how it is possible to build and run an image for Java Web Application on Tomcat, via Docker, but if you are working on Windows, probably it is not going to work for you, because you may face with
cannot enable tty mode on non tty input. 
Let’s try something to get over this.
There is a very good “Hello World” tutorial exists in offical site, I must say.
So I’m going to write another “Hello World” example with ActiveMQ, but I also show you how you can get statistics (enqueue/dequeue count etc.) in your code.
ActiveMQ architecture simply consist of a producer which sends messages to a broker and a consumer which listens that broker to receive messages. We will create a Queue on this broker to keep messages.