Prevent multiple clicks on ajax4jsf command button

August 14th, 2007

One of the problems with implementing an ajax4jsf command button on your site is that it gives the user the ability to submit the button as many times (and as quickly) as they can click the button. If the ajax4jsf button is tied to an action that performs intensive work on the backend, this could seriously hamper performance. A quick way to prevent this is to disable the button when it is clicked and the re-enable it when the action finishes. The ajax4jsf command button actually provides a quick and easy way to do this.



oncomplete=”this.disabled=false” action=”…”/>

This will disable the button as soon as the action is fired and enable it once the action completes.

*** Correction *** See comment from Sergey Smirnov below. My mistaken assumption was based on me misreading the cause of the behavior. It turns out that my commandButton is actually located inside an ajax4jsf outputPanel that is being re-rendered. I’m guessing that it is the re-rendering of the panel that is enabling the button after I had disabled it.

Due to the advancement in the technology communications throughout the world has become very fast and easy. People are now communicating with each other not only via telephone but also through internet. The new technology used in this respect is broadband phone service. Many companies are using services like voip calling services to communicate around the globe. They have to install internet voip software to implement this over the network. There is much software which supports voip calls. You can get this free from internet. The example of this is skype phone software.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati

Clear Choice Window Cleaning

August 7th, 2007

Clear Choice Logo

This past Friday I put the finishing touches on the Clear Choice Window Cleaning and Pressure Washing site. Jake, the owner of Clear Choice, was one of the easiest clients I’ve had to work with in a while. He had all of his content together and we were able to knock out his site in less than 48 hours. The site is pretty minimal and is mostly html except for a php form mailer.

In order to attract the internet traffic on your website you need to promote your website and services. First of all you need a hosting company to host your website. There are many companies providing asp hosting, jsp hosting and php hosting as well. You can update your website by using html calendar template as well. Promotion can be done through affiliate as well as direct marketing. You can get a comprehensive guide of affiliate marketing techniques that includes a complete directory of affiliate program software, industry news, forums, and helpful resources and affiliate information as well. Many companies offer pay per click ppc advertising, others go for a link exchange or paid links etc.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati

Pioneer Videography Goes Live

August 7th, 2007

Pioneer Videography

So I’m finally putting the finishing touches on Pioneer Videography’s site. The site utilizes php, xhtml, css, and javascript. The navigation menu utilizes scriptaculous to provide a sliding open/closed effect. The site is very minimal other than that. The only things left are to do some small edits on the videography page and shore up the SEO keywords and descriptions. See the site here.

Marketing your product over the internet has become practice of today. People are readily launching website of their product or services. Many institutes are offering web development courses over the internet. They have professional employees having a professional web development degree with them. They have complete knowledge of web templates, flash templates and certificate templates. However you can design and update the contents your own website with the help of free web templates like joomla templates. You can add an html calendar template to update the date as well.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati

How to create a sliding effect menu with scriptaculous

July 3rd, 2007

Note: You can see this code in action at one of my projects at Pioneer Videography’s website.

I have received a few requests from friends and coworkers to discuss a sliding menu that I created for a client using the scriptaculous javascript library. If you haven’t yet heard of scriptaculous, it’s a simple web 2.0 javascript library that many people use for adding Flash-like effects to their web applications. It is freely downloadable here.

There are many plusses and minuses to using scriptaculous, but the one thing to keep in mind is that if you think your visitors will be coming to your site with javascript turned off, they are not going to be able to use your site due to the fact that your menu links will not expand.

The first step to creating a sliding menu is to add the necessary scriptaculous and prototype js files to your page. Expand your downloaded files into a “scripts” directory in the root of your web site and put the following tags in the head of every page that will use the scriptaculous libraries. If you want to lighten the amount of javascript that you use, don’t use the “scripts/scriptaculous.js” script, but instead import just the scripts that you need, suchas “effects.js”. Put the following in the HEAD section of your html





..To be continued…

With the advancement in the internet and wireless technology most of the companies are now moving their whole setup over the internet. They are introducing wireless internet service at their work place to ensure fast and reliable services. By installing wireless internet coverage they can take the review of the whole work place as well. Another technology which is readily becoming popular is the wireless internet hotspots which enable people to get free WiFi services at different locations. The most reliable company to but wireless accessories is at&t wireless company which was previously known through out the world as cingular wireless company.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati