How to Create a Java EE 6 Application with JSF 2, EJB 3.1, JPA, and NetBeans IDE 6.8

There are many articles and tutorials out there that discuss how to use the individual technologies in Java EE 6, e.g., JSF 2, EJB 3.1, JPA, etc, to develop an application, but I haven’t seen one that puts together the said technologies and showcases them in one tutorial with an end-to-end demonstration. As such, I thought I would create one here for the benefit of those who are new to JEE6 and NetBeans IDE 6.8 and those who are seriously looking at NetBeans IDE 6.8 as a tool for developing their enterprise applications.

This article published on Netbeans Zone aims to provide detailed steps to develop a web-based application based on technologies in the JEE6 specs, i.e., JavaServer Faces 2.0 (JSF), Enterprise Java Beans 3.1 (Session Bean and Message-Driven Bean) and Java Persistence API (JPA) with the help of NetBeans IDE 6.8 as the development & deployment tool. The example in this tutorial creates a web application called “CustomerApp” that performs only the Retrieve and Update functions of CRUD on the customer records provided by the NetBeans Sample database served by the Glassfish built-in database server, JavaDB (Derby). In addition to the above-mentioned technologies from JEE6, PrimeFaces for JSF2 will also be used as the Ajax-based Framework for the Web UI portion which is lacking in the stack. So, this tutorial also discusses how PrimeFaces can be integrated into NetBeans IDE and to enable Ajax capabilities for Web projects.

The objective of the tutorial is to demonstrate the ease of using the various JEE6 technologies and putting them together to create an enterprise-ready web-based application. Although the application is developed for demo purposes, its architecture represents the best practices in developing an enterprise application, whereby modularity, scalability, and reusability are taken into consideration.

Read the rest of the article and tutorial >>

How to transfer a value from a grid in a modal popup to a textbox on the page in ASP. NET?

Anybody knows how to transfer a value from a grid in a modal popup to a textbox on the page? When you click on a value from the grid view the value should be transferred to the textbox. . . . .

Liferay An Open Source Portal Development Platform

Liferay Portal has proved itself as the world’s leading open source portal platform in open source web development. Because of its reliability, cost effectiveness and capability to support the development of innovative internet-based applications, Liferay portal is increasingly being used globally across industries for their most challenging information technology needs. Liferay Portal is the only open source portal that is compatible with any application server, database server, or operating system. It also supports many different servlet containers.

Liferay Enterprise Edition Vs Liferay Professional Edition

Liferay Portal comes in two flavors: Professional and Enterprise editions. Below is a brief comparison between the two.

Liferay Portal Enterprise edition is based on Java Enterprise Beans whereas the Liferay Professional version is based on POJO and uses Spring framework. Thus building EJBs should only be done using Liferay Portal Enterprise. Liferay Portal Enterprise requires a complete J2EE application server whereas Liferay Professional can run on any simple servlet container. Liferay Portal Enterprise Edition (EE), being the most stable version of the product, serves�companies targeting to maintain one stable version of the product for an extended period of time.

Companies worldwide have been using Liferay Portal because of its high-end functionality, compatibility with most major application servers and database platforms, and scalability. One can consolidate, organize and access all the data and applications via a single point of access that the Liferay portal provides. Single sign-on allows end-users to log-in just once to access all their information needs. After signing in, it allows you to customize and gives controlled accessibility to users of sensitive information and add-on functionalities.

Following are some of noticeable benefits of the Liferay Portal solutions:

Liferay Portal is the world’s leading open source enterprise portal solution using the latest in Java and Web 2. 0 technologies. Liferay Portal offers dynamic, intuitive and time saving features:

It provides out-of-the-box tools offering over 60 portlets Liferay CMS and Liferay Collaboration offers�content management, web publishing, collaboration and social networking options. Based on SOA strategy for enterprise application integration of existing systems Role-based access granting varying levels of control and editing rights Users can be grouped together with each group having their own separate mini portal Offers drag & drop feature allowing users to move different elements around in the portal. Out of the box support for 22 languages Personal space for users that can be customized for accessibility and look and feel. Can run on all major application servers, databases and operating systems Benchmarked among the most secure portal platforms

Created for enterprise use, Liferay Portal provides a virtual space where you can centralize, share and collaborate. Built with the end user in mind, user interface developed using Liferay Portal is easy to understand even by the technically ignorant user.

JBoss Seam: Simplicity and Power Beyond Java? EE

Product Description
This is the eBook version of the printed book. A new edition of this title is available, ISBN-10: 0137129394 ISBN-13: 9780137129393

Discover JBoss Seam: the Unified Framework for Simpler, More Powerful Web Development � JBoss Seam integrates EJB 3. 0 and JSF components under a unified framework that simplifies and accelerates Java EE web development. Now, JBoss Seam?s project leader and technology evangelist take you inside this powerful new technology, showing exactly how to put it to work. � � Michael Yuan and Thomas Heute show how JBoss Seam enables you to create web applications that would have been difficult or impossible with previous Java frameworks. Through hands-on examples and a complete case study application, you?ll learn how to leverage JBoss Seam?s breakthrough state management capabilities; integrate business processes and rules; use AJAX with Seam; and deploy your application into production, one step at a . . . More >>

JBoss Seam: Simplicity and Power Beyond Java? EE

JSP + Servlets + EJB: Java EE 6 & GlassFish 3 using NetBeans 6.9 (Part 1 of 5)


This multi-part screencast series shows how NetBeans 6.9 provides comprehensive tooling for Java EE 6 & GlassFish 3. The different parts show: 1. A simple Java EE 6 application (JSP, Servlets, EJB) 2. Reading database table using Java Persistence API 2 3. Using Facelets with Java Server Faces 2 4. Contexts & Dependency Injection with JSF 2 5. RESTful Web services using JAX-RS This is part #1 and all screencasts are hosted at blogs.sun.com

Native Seam Support Wanted for NetBeans & Glassfish

Jboss Seam logoJboss SEAM is by far the best programming framework for Java EE development as it solves most of the problems which arose for achieving a true MVC 2 implementation. All of the other frameworks like Struts and Spring MVC when used with presentation layer specifications like JSP and JSF 1.x while almost succeeding in the arena, when it came to agile development, they created at least as many other problems – if not more - as the ones they solved. Enter Jboss Seam which uses JSF 2 for the presentation layer which is truely a Java EE specification and for the rest of the MVC paradigm which consists of the business logic and the data persistence layer achieved respectively by EJB and JPA.

Joesph Faisal Nusairat had this to say in his book Beginning Jboss Seam from Novice to Professional. 

For years developers realized that the JavaServer Pages (JSP)/servlets paradigm was not enough to create enterprise-level web pages. That model provided the capability for a web tier that could pass objects from the client to the server, but essentially that was it. For most developers, this simple paradigm was not enough; more-complex operations were needed, and developers found themselves writing infrastructure code to deal with the shortcomings of the Servlet specification. Eventually, all the ideas learned from creating custom infrastructure code resulted in the web frameworks we know today, such as Apache’s Struts and Tapestry, OpenSymphony’s WebWork, and so forth. The Java community also got together and through the Java Community Process (JCP) created the JSF specification to tackle some of the issues raised and deal with the shortcomings of the Servlet specification.

Even though we now have web and business tiers with improved functionality, we have still been forced to create the plumbing code needed to connect them together. With Seam, however, these two areas can now focus more exclusively on what they do best—presentation and business logic.

Continue reading “Native Seam Support Wanted for NetBeans & Glassfish”

How to set MySQL date from a result set to a PHP datetime object?

i am trying to set the date and time (DateTime stored in mysql database) to a php DateTime object, one way is to override the class some how to make that happen, but is there any easier way than that?e. g. $date = new DateTime();$date->setDate($mysql_resultset[‘date_time’]);and then format that date according and display it.

Effectiveness of ASP.NET

Active Server Pages (ASP), also known as Classic ASP or ASP Classic, was Microsoft’s first server-side script engine for dynamically-generated web pages. Initially released as an add-on to Internet Information Services (IIS) via the Windows NT 4. 0 Option Pack, it was subsequently included as a free component of Windows Server (since the initial release of Windows 2000 Server). It has now been superseded by ASP. NET.

Developing functionality in ASP websites is enabled by the active scripting engine’s support of the Component Object Model (COM), with each object providing a related group of frequently-used functions and data attributes. In ASP 2. 0 there were six built-in objects: Application, ASPError, Request, Response, Server, and Session. Session, for example, is a cookie-based session object that maintains the state of variables from page to page. Functionality is further extended by objects which, when instantiated, provide access to the environment of the web server; as an example FileSystemObject (FSO) is used to create, read, update and delete files.

In order to evaluate and assess ASP. Net you have to first understand the acronym and then access the support provided. The full form of the acronym is Active Server Pages . Net. This dedicated Microsoft application has been developed to create web pages and wireless or internet enhanced Microsoft . Net web programming technologies.   ASP. net is rife with efficiency and effectiveness and forms an integral part of the software giant’s . Net vision. It is in this capacity that the . Net framework becomes indispensible to web programmers and developers. The end result created is dynamic and sophisticated. Continue reading “Effectiveness of ASP.NET”

PHP Tutorial #2 – Variables and comments


Remember this video has been uploaded in full HD, 1280X720 (720P)! If you have a good internet connection please view in HD for better viewing. In this lesson we will show you the some of the items needed in everyday PHP programming, variables and comments. A short overview about what is talked about in the video: -PHP comments. -PHP variables (Strings [text], Integers [numbers], and some variable rules). Thank you for watching. PS: You can now see this tutorial on the XCodec Official gallery, gallery.thexcodec.com

How can I update,Insert and Delete a DataList’s value at run time through ASP C#. Net?

I have a datalist where I like to manipulate the data at run time. How will I do that ? please help me through ASP. Net C#

Powered by Y! Answers

ASP.NET Tutorial – Configuring, Building and Deploying a Web Site- Part2


In this lesson, you will see what is required to make your ASP.NET applications available to everyone. This includes configuring, building, and deploying your web site. For Best View: watch the video in Full Screen Mode.

Oracle Web Application Programming for PL/SQL Developers

Product Description
This book covers everything you need to know to master Web application development in an Oracle environment – using PL/SQL. It is packed with practical tips that save the reader time, effort and frustration while developing and deploying Internet-ready, e-commerce applications using Oracle 9i. The book also provides important information on core topics such as HTML, Java, XML, WML, Perl and PHP, as well as covering various maintenance duties, such as troubleshooting, debugging, indexing, testing and site analysis. As Oracle’s premier tool for building store procedures, PL/SQL uniquely supplements the standard relational database language, SQL, with the features needed to build real-world applications. . . . More >>

Oracle Web Application Programming for PL/SQL Developers