Tag Archives: Time API

Utilizing the Java 8 Date-Time API with JSF and Java EE 7

via Josh’s Dev Blog – Java, Java EE, Jython, Oracle, and More…: Utilizing the Java 8 Date-Time API with JSF and Java EE 7.

If you are using Java 8 with Java EE 7, then there may be some quirks that you run into when trying to utilize some of the Java 8 new features.  One such quirk is that the new Date-Time API does not work with many of the Java EE 7 APIs by default since they are built to work with java.util.Date and/or the older Date APIs.  However, this is not a road block, as there are many ways to work around such issues.  In this post, I will demonstrate how you can tweak your JSF application to allow use of the Java 8 Date-Time APIs along with JPA and date converters.

Improving Site Performance with the Navigation Timing API

Click to Read

The web is evolving at a crazy pace. Every day new frameworks, tools, and libraries are released with the ambition, if not the potential, to become the next jQuery. As a developer, I feel that sometimes it’s really hard to stay up-to-date with all the new software, techniques and practices introduced by top-notch developers and designers out there. Nonetheless, this trend seems to be driving the web platform forward on issues like performance, security, and accessibility.

In part because of these efforts, organizations like the W3C are pushing toward the creation, the standardization, and the adoption of new APIs focused on these areas, in particular performance. Over the past few years, a lot of new JavaScript APIs have been proposed and implemented by browsers to help developers gauge and improve the performance of web applications. For example, you can use the User Timing API to accurately measure the performance of a snippet of code by having access to high precision timestamps, and the Timing Resource API to collect complete timing information related to resources in a document.

However, when it comes to performance, the loading time of a page is an especially important aspect of the overall user experience. If a web page loads too slowly, users quickly become frustrated and are more likely to abandon the page. Hence, your business loses potential customers and revenue. The loading time of a page can be influenced by many factors such as the network speed, the server load, the user latency, and the performance of the code of the page.

In this article I’ll introduce you to a new JavaScript API, called the Navigation Timing API, that will help you in measuring the performance of your web pages.