Scrollable Fixed Header Table – A JQuery Plugin

March 22, 2010 at 7:51 am | Posted in JQuery | 109 Comments
Tags: , , ,

This plugin allows html tables to be scrollable horizontally and vertically while headers are still visible and in tack with the columns. This plugin can be used in two modes:

  • With column select – Columns to view can be selected. The select state can be persisted in a named cookie.
  • Without column select

Continue Reading Scrollable Fixed Header Table – A JQuery Plugin…

Combining MyFaces, Tiles 2, and Tomahawk jscookmenu

March 19, 2010 at 3:14 am | Posted in jsf | 5 Comments
Tags: , , , , , ,

I had this jsf project has common page parts (such as headers, footers, etc,) and menus like the ones on top your your desktop apps.

Having developed struts project before, Tiles was my choice of templating framework which is already a separate project known as Apache Tiles.

There are lots of javascript menus out there such as JSCookMenu and JQuery menu plugin but none of them were easy to integrate with JSF. So I used Tomahawk jscookmenu because of its integration with JSF navigations and actions.

I thought combining MyFaces, Tiles 2, and Tomahawk, was a bit of a challenge. Good thing I checked out samples from the svn repository http://myfaces.apache.org/tomahawk/source-repository.html for the Tiles integration with JspTilesTwoViewHandlerImpl. This combination was a big help in our project making page templating easier and more manageable.

So, I created a sample starter application combining these three technologies.

Continue Reading Combining MyFaces, Tiles 2, and Tomahawk jscookmenu…

Basic Spring Web Service Tutorial From Contract to Security

February 25, 2010 at 4:37 am | Posted in Web Services | 23 Comments
Tags: , ,

.

Contents

Introduction

I have developed web services using the so called easy way, which is the code first approach. In this kind of technique, the xml schema and the wsdl are generated by the framework. The ones I’ve used were Metro web services and Apache CXF. Both of them uses JAX-WS annotations. It was so easy to use that you simply use annotations, deploy it to a web server, then … poom! There goes the xml schema and the wsdl generated on the fly. I didn’t care about it as long as it works! It too works very well with a client generated by wsimport from the command line.When I got a break, I checked out Spring web services which uses the conract first approach. Contract first web service approach is an industry standard best practice when developing web services.

Honestly speaking, spring web services was a lot harder to learn that JAX-WS based frameworks. It requires knowledge of SOAP, xml schema, xml frameworks, and marshallers. Despite the learning curve, the reward is so rewarding. Once you get used to programming spring web services, it will be as easy as coding a JAX-WS based framework. I’m gonna check out RESTful services soon.

After enjoying soap web service development with Spring, I decided to make my own article that will get up and running spring web services from contract to security.

Continue Reading Basic Spring Web Service Tutorial From Contract to Security…

Blog at WordPress.com.
Entries and comments feeds.

Follow

Get every new post delivered to your Inbox.