About Gökhan Ozar

Gökhan Ozar is an IT professional fluent in English, French and Turkish, with more than 9 years of IT experience including both hands-on and outsourcing expertise in the areas of application development, database design, data analysis, project management, systems implementation, training, support and delegation of support. Gökhan Ozar can easily translate business needs into technology requirements that support the company’s objectives and manage projects from needs analysis and requirements definition to platform and vendor selection, implementation, and training.

SAP BusinessObjects XI Administration

SAP BusinessObjects is an enterprise software company, specializing in business intelligence (BI). BusinessObjects was acquired in 2007 by German company SAP AG. The company claimed more than 46,000 customers worldwide in its final earnings release prior to being acquired by SAP. The company’s flagship product is BusinessObjects XI, with components that provide performance management, planning, reporting, query and analysis and enterprise information management.

Business Objects Enterprise is a flexible, scalable, and reliable business intelligence reporting system that can be tightly integrated into your information technology infrastructure. Support for many industry-standard database systems makes it easier to access your organization’s data for analysis. The use of common industry standards for security allow you to use your existing authentication systems to control access to SAP BusinessObjects Enterprise. And broad platform support allows you to implement the operating systems and hardware architecture that you prefer.

BO Administration Guide

BO Administrators will be faced with many choices when installing SAP BusinessObjects Enterprise. There is a documentation which helps admins to make the right decisions and create a reliable and powerful business intelligence reporting system for the organization.

This document provides information on how to configure and deploy SAP BusinessObjects Enterprise web applications to a supported Java web application server. In particular, this guide contains detailed information for users of the WDeploy web application deployment tool that ships with SAP BusinessObjects Enterprise.

In this document you can also find relevant information on how to install BO web application on Java EE application servers such as IBM WebSphere.

New to HTML 5? First steps

If you have some experience with previous versions of HTML such as version 4.01 but new to HTML 5, here are the first things you need to learn. So what’s new with HTML 5?

1. The doctype definition at the top of the file is simplifed:

The doctype definiton for HTML version 4.01 was something similar to the following

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

The doctype in HTML 5 is now simply:

<!doctype html>

2. The content meta tag is also simplified

Before HTML 4

<meta http-equiv="content-type" content="text/html; charset=UTF-8">

After HTML 5

<meta charset="utf-8">

All browsers old and new already understand this meta description to my knowledge, so you can use it on any page and it just works.

3. The <link> tag within the <head> element slightly changed

What was before HTML 5

<link type="text/css" rel="stylesheet" href="style.css">

is now

<link rel="stylesheet" href="style.css">

4. The <script> tag can lose the type attribute for JavaScript

With HTML5, JavaScript is now the standard and default scripting language, so you can remove the type attribute from your script tags, too. Here’s what the new script tag looks like without the type attribute:

<script src="betik.js"></script>

or if you prefer to type inline code rather than an external .js file:

   var harikasin = true;

Win a free copy of my book MySQL Management and Administration with Navicat

MySQL Management and Administration with Navicat

MySQL Management and Administration with Navicat

I am pleased to announce that I have teamed up with Packt Publishing and we are organizing a giveaway especially for my recent book.

All you need to do is just comment about the book below the post, and win a free e-copy of MySQL Management and Administration with Navicat.

Three lucky winners stand a chance to win a  free copy of the e-book. Keep reading to find out how you can be one of the Lucky Ones.

Overview of MySQL Management and Administration with Navicat

  • Master Navicat’s visual design tools and editors with thorough examples
  • Tips, tricks and fast-paced tutorials for getting the most out of Navicat

Read more about this book and download a free sample chapter: http://www.packtpub.com/mysql-management-administration-with-navicat/book

How to Enter?

All you need to do is head on over to this page and look through the product description of these books, and then drop a line via the comments below to let us know what interests you the most about this book. It’s that simple!

Continue reading

A Simple JSF Tutorial with PrimeFaces and JSON Object Parsing in Java

In this tutorial, you will see an example of parsing JSON objects containing exchange rates for certain currencies and displaying them on a web page using JSF 2.1 and PrimeFaces 2.2 which is a rich-component framework for JSF adding AJAX and Web 2.0 capabilities to your web application.

What you need for this tutorial

  • Oracle JDK 1.6 or later
  • Netbeans 7.0 or later (if you choose a different IDE, you will need to manually get the necessary libraries and components for this tutorial. See the following section)
  • Tomcat 7

Technologies and libraries used

  • JSF 2.1 (Mojarra 2 libraries a.k.a. jsf-api.jar, jsf-impl.jar, jstl.jar and standard.jar)
  • PrimeFaces 2.2.1
  • JSON (for Java)
  • commons-logging-1.1.1.jar
  • log4j-1.2.16.jar
  • httpcore-4.1.4.jar
  • httpclient-4.1.3.jar

Setting up the Project with JSF 2 and PrimeFaces Support

Launch Netbeans, and then go along the following steps:
Continue reading

Some thoughts on JSF…

Developed through the Java Community Process (JCP) by a group of technology leaders, including Sun Microsystems later acquired by Oracle, Borland, BEA, and IBM, along with a collection of Java and Web experts well known in the industry under JSR – 314, Java Server Faces technology establishes the standard for building server-side user interfaces. With the contributions of the expert group, the JavaServer Faces APIs are being designed so that they can be leveraged by tools that will make web application development even easier.

What is JSF?

JSF LogoJSF is a request-driven MVC web framework based on component-driven UI design model, using XML files called view templates or Facelets views. Requests are processed by the FacesServlet, which loads the appropriate view template, builds a component tree, processes events, and renders the response (typically HTML) to the client. The state of UI components (and some other objects) is saved at the end of each request (called state saving), and restored upon next creation of that view. Several types of state-saving are available, including client-side and server-side state saving. Out of the box, JSF 1.x uses Java Server Pages (JSP) for its display technology, but can also accommodate other technologies (such as XUL and Facelets). JSF 2 uses Facelets by default for this purpose. Facelets is a more efficient, simple, and yet more powerful view description language (VDL).

What’s the difference between JSF and JSP/Servlets?

JSP (Java Server Pages) is a Java view technology running on the server machine which allows you to write template text in (the client side languages like HTML, CSS, JavaScript and so on). JSP supports the so-called tag libraries shortly denoted as taglibs which are backed by pieces of Java code with which you can control the page flow and/or output dynamically (programmatically). A well known taglib is JSTL. JSP also supports the Expression Language which can be used to access back-end data (actually, the attributes which are available in page, request, session and application scopes), mostly in combination with taglibs.

When a JSP is requested for the first time or when the web application starts up, the servlet container will compile it into a servlet, which is a class extending HttpServlet and use it during the lifetime of the web application. In Tomcat, for example, you can find the source code of the generated servlet in the server’s work directory. On a JSP request, the servlet container will execute the compiled JSP class and send the generated output (usually just HTML/CSS/JS) through the web server over the network to the client side which in turn displays it in the web browser.

Continue reading

Create a Blog with JBoss Seam, Hibernate JPA and JSF then Deploy it to Tomcat in the Cloud – Part IV

Seam Tomcat Deployment Tutorial Part 4
In this part of the tutorial we will correct the bugs inherent in version 2.2 of Seam-gen and we will add some code to spice up our blog CMS.

First of all, our PostEdit.seam page is not working at all as it is. We shall fix this:

Fixing the PostEdit.xhtml page

Figure 4.1 - Fixing the PostEdit.xhtml page

Open PostEdit.xhtml from the WebContent folder and find the <rich:tabPanel switchType=”ajax”> block. This is what’s causing the problem, because it has more than one tab – one to have the user select a category from a grid on another page, and the second one for selecting a user, since these two entites have @ManyToOne relationships to the post entity, and Seam-gen can’t handle generating more than one joined object selection user interface item in this version.

I don’t want an external grid for selection of a category anyway, so we will delete the entire <rich:tabPanel> block on this page, and instead make the category selectable from a pop-up menu using a typical JSF selectOneMenu UI component.

After you delete the <rich:tabPanel> go towards the beginning of the page and locate the code block starting with <s:decorate id=”titleField” template=”layout/edit.xhtml”>.
Within that block replace <h:inputTextarea id=”title” cols=”80″ rows=”2″ required=”true” value=”#{postHome.instance.title}”/> with <h:inputText id=”title” required=”true” value=”#{postHome.instance.title}”/>

Next, add the following code block below the closing tag (</s:decorate>) for titleField:

           <s:decorate id="categoryField" template="layout/edit.xhtml">
                <ui:define name="label">Post Category</ui:define>
                <h:selectOneMenu id="category"
                     <s:selectItems value="#{categoryList.resultList}" var="cat" label="#{cat.name}" noSelectionLabel="Please select..." />
                     <s:convertEntity />

Continue reading

Create a Blog with JBoss Seam, Hibernate JPA and JSF then Deploy it to Tomcat in the Cloud – Part III

Seam Tomcat Deployment

In this part III of the tutorial, we’ll build the entity classes from the database we created in Part I and configure the Seam project we created in Part II so as to make it fully compatible with Apache Tomcat.

Creating The Model Layer

We’ll use Hibernate‘s reverse engineering tool (hbm2java) embedded in Seam-gen to create the entity classes from the database we created in part 1.

Seam Generate Entities

Figure 3.1 - Generating entities from database in JBoss Seam

Right-click the project blog in project explorer and select New > Seam Generate Entities.

Continue reading

Create a Blog with JBoss Seam, Hibernate JPA and JSF then Deploy it to Tomcat in the Cloud – Part II

JBoss Seam - Tomcat

In part I of the tutorial, I provided the instructions about the development environment and  how to create the blog’s database. In this part II, using Eclipse’s JBoss tools plugin, we’ll create and configure the JBoss Seam web project and prepare it for full Tomcat-compatibilty and for the creation the basic CRUD (create, read, update and delete) functionality of entities which will be reverse engineered from the database using hbm2java embedded in Seam-gen whose GUI version comes built-in with JBoss Tools.

The Development Environment

To be able to follow the tutorial and reproduce the same results, it’s best (if not mandatory) that you have exactly the same version of the tools and plug-ins I mentioned in the previous post. As of this part (and so on) I’ll instruct on Eclipse Helios with JBoss Tools 3.2. You can also refer to my post titled ‘Matrix of compatible platforms and runtimes with JBoss Tools‘ to see which version of Eclipse and other stuff (such as Seam framework version) is compatible with which version of JBoss tools plugin, etc.

So here we go. Now launch Eclipse if you already haven’t done so.

Changing perspective in Eclipse

Figure 2.1 - Changing perspective in Eclipse

First of all, we shall change the perspective in Eclipse to Seam – that option, however, is only available if you have JBoss tools installed. See figure 2.1 and 2.2.
Continue reading