Posts

Showing posts from December, 2010

JSF Bean Validation (JSR 303) Quick Tutorial

Image
There are two type of validation available to Java EE applications. As stated in the [1], most of the tedious error checking and error handling is done outside of the model tier. Validators are usually instance of the javax.faces.validator.Validator . Validation normally happen early during the Process Validations phase of the request processing life-cycle. The following validation are possible View/Page validation Model validation Page level validation is the requirement of the user interface. Cross field validation is the most important. For example, without filling address line one, you cannot start to fill the address line 2. Sometimes, you need to accept the declaration or term and conditions before the submit. The new feature of new days web submit is verification code to avoid denial of attacks. Page level validations are change page to page. Model validation is important to execute business functionality on consistent model. Model is composed by number of Java beans (POJ...

Quick step to Ruby on Rails on Fedora Linux Platform

This is a simple not how to install Ruby on Rails on Fedora platform and run your first database application. 1. Install Ruby on Rails is simple in Fedora platform. You can find the version of your Fedora 'uname -a'. Execute the following command to install Logging as root before install     <...>su -        <...>sudo yum install rubygem-rails rubygem-sqlite3-ruby 2. Setup the workspace. I have my all ruby applications under the one folder. This best practice I learnt from the Eclipse.     home>mkdir rubyws     home>cd rubyws 3. Next create your first ruby application, for example myapp (from the http://wiki.rubyonrails.org/getting-started/first-rails-app-walkthrough which was not worked form me -:  that is why I wrote this blog)     home>rails myapp     home>cd myapp     myapp> This will create myapp directory under the workspace. 4. Start the server in the different console     myapp>script/server 5. create the database     myapp>rake db:cre...

Configure Eclipse, Derby and SQuirrel Client for Java Development

I k now this is easy for Linux experts. Novice programmers this note will be helpful. You can find enough informations to install and  run the application in Fedora without any problem. But how to add the entry to "Application" menu to fast access the application. login as a admin, ex: su - go to the /usr/share/applications create a file with the desktop extention, eg: gedit squirrel.desktop write a shortcut [Desktop Entry] Encoding=UTF-8 Name=SQuirrel Comment=SQuirrel Client Exec=/opt/squirrel-sql-3.2.0/./squirrel-sql.sh Icon=/opt/squirrel-sql-3.2.0/icons/acorn.png Terminal=false Type=Application Categories=GNOME;Application;Development; StartupNotify=true Now you are ready to access the squirrel client via "Applications->Programming"