Archive | April, 2007

All I Need To Know To Be A Better Programmer

Programming is complicated stuff, but a lot of what makes a good programmer isn’t all that different from the earliest learning we did in school. 1. Share everything.Use open source where possible, and contribute to it when you are able. The collective wisdom of the entire community is better than the limited vision of a [...]

2 Comments Continue Reading →

New Year’s Resolutions for Java Coders

An interesting post I found here and have taken some of the points, making myself how many I can implement. Which ones if any would you adopt from this list… I will realize that design patterns are a guide, not a religion. I will bother to research the security issues relevant to my work. I [...]

8 Comments Continue Reading →

Accessing a selected row from h:dataTable

Javascript to Select One Radio Button JSF Code of h:dataTable Table on JSP Page We will use valueChangeListener for this, as when user check the radio button we will get the binded value of bean. It is one column. NOTE: Please remove all spaces after : sign. In f and h tags. Page Bean Code [...]

3 Comments Continue Reading →

Ten things every Java developer should know about UNIX

  One of the great things about Java is how multi-platform it really is. While cross platform glitches do occur, they are not really all that common. But since the law of unintended consequences is all pervasive, we now have the common sight of teams of developers building Java programs meant to run on Unix [...]

Leave a comment Continue Reading →

How to make an executeable jar

Delivering desktop application developed in java, its very interactive that you give your software in a executable jar, rather giving .bat files (running java <main>.class) To do that, try these steps. First, jar all of your class files and let Java create it’s own manifest. First, make sure you are in the directory of your [...]

1 Comment Continue Reading →

Getting and setting Managed Bean objects in JSF

Get appplication from FacesContext FacesContext ctx = FacesContext.getCurrentInstance(); Application app = ctx.getApplication(); Setting in Managed Bean Object app.createValueBinding(“#appSessionBean.userDataBean}”).setValue(ctx, userDataBean); Getting Managed Bean Object(s) AppSessionBean appSessionBean = (AppSessionBean)app.createValueBinding(“#{appSessionBean}”).getValue(ctx); userDataBean = (UserDataBean)appSessionBean.getUserDataBean(); where userDataBean is object in ApplicationSessionBean class and this said class is in faces-config with session scope.

Leave a comment Continue Reading →

Inserting value in SQL Server’s datetime by java.sql.Timstamp

6 Comments Continue Reading →

Getting HTTP Session in JSF

3 Comments Continue Reading →

Getting request parameters in JSF

Here is the way, how we get request parameters from a JSP page (which is JSF enabled) in a HTTP request object. Where formName is refer to the id of your form and controlId is referred to the id of your control.

5 Comments Continue Reading →

Faces Console: A utility for JSF configurations

Faces Console is a free utility get integrated in many IDEs as plugin and provide JSF (faces-config.xml) configuration facility in a GUI. if you are using NetBeans5.0 or Eclipse3.x you must try it. http://www.jamesholmes.com/JavaServerFaces/console/

Related Posts Plugin for WordPress, Blogger...
Leave a comment Continue Reading →
Page 1 of 212

Switch to our mobile site