measuring herbal penis size size

just another regularban.info web blog

MEMBERS:

Passing Parameters In A Data Table Using JSF

Some working knowledge of J2EE or JSF is assumed for this article.

Like some of you I've been frustrated with this technology known as JSF or Java Server Faces. There are several different flavors out there that are built on the shoulders of JSF. For instance Oracle's ADF (Application Development Framework). Oracle ADF Faces Components is a set of over a 100 JSF components that let you build a richer user interface for your Java EE applications. Oracle ADF Faces also includes many of the framework features most needed by JSF developers today.

That is great, and in many ways it will make life easier to develop in a JSF environment. Some items you will find available in these "add on" packages have a real benefit. For instance, as of the date of this article, I was very surprised that a File Upload is a feature still not implemented in JSF in respect to using natural jsf tags. There are ways to accomplish this task in JSF but they are not native JSF approaches. The process is a "no brainer" in just about every other framework available today, including asp.net.

Another simple task (I thought) was having a data table present the results of a query in an editable format. Possibly to update a user record or shopping cart. After working in other technologies it was very efficient to return a result set to a data table object and let that object take care of some of the trivial behaviors and characteristics of the table itself. When I started exploring JSF I was frequently and at every turn becoming more and more frustrated in trying to duplicate some of the most basic of processes similar to managing records through data tables.

There are not a whole lot of resources out there yet on JSF although it is growing steadily, and I found that all too often the resources that I was finding on the internet either didn't apply to the more simple tasks or the information was just completely wrong. One example of that was that it was stated in one article I read that you cannot use command buttons inside of a JSF data table. The recommendation was to use JSF hyperlinks instead when trying to perform an action from a data table due to a bug in the framework that prevented command button actions to fire if the button resided inside of a data table.

At first I thought "you've got to be kidding me"! Then I remembered that I've been finding a fair amount of "bogus" information in regards to JSF development so I decided to do further research and discovered that information to be less than accurate as well.

I simply had to find a way to populate a data table through a result set and get a command button to fire an action and pass all of the data in the data table to the backing bean to update the record. Multiple command buttons would exist as well as hidden fields pertaining to id numbers and so forth. Pretty basic stuff and we've all done it before with relative ease.

It turned out that the solution was in fact a simple one. "Binding". You've heard about it and read about it. But this approach was something a little different as far as I could find.

Many of the blogs and articles that I read dealt with passing the values as parameters and following the steps to define the parameters in faces.config files etc., then retrieving the parameters in a backing bean. Processing the passed data required another set of procedures to utilize mapping to each of the field parameters passed and then processing could begin.

That seemed like a whole heck of a lot to me just to retrieve form data. Then it occurred to me that I should be able to "bind" a text field component on a page to a backing bean. Once it is bound then all I have to do is extract the data. And that's all there is to it. My query returned results and pre-populated a data table including text fields with the values of the query pre-populated in the text fields.

Each one of those text fields was bound to a "HtmlInputText" type in my backing bean. It was not a String type like other approaches define. Doing that does require you to map parameters and populate that String variable through your set methods once the form is submitted.

What I found is that if I bind my text field to a property of text field type that it solved my problem of passing values from a data table, and I didn't have to define parameter fields anywhere in any xml file. Now that I had that figured that out I needed to figure out how to get the value of that property that I've bound my form field to, well why not getValue()?

I personally hadn't seen any examples online or in books for retrieving the value from a form binding it to the type of form element it was and simply use the getValue() to pull out the value of the object. Used like this getParameterFromForm().getValue().

Let me clarify that I am NOT saying that trying this approach isn't documented anywhere, I find it hard to believe that I've had some stroke of genius that no one has had before in the world of java, especially since I'm coming from .NET and ColdFusion.

After doing that I no longer had any problems passing form data to my backing bean. I was able to dynamically populate data tables with any number of records including any number of command buttons within that data table and I didn't have to concern myself with remembering to define parameters in any other areas of the application.

So put simply you can bind your form fields to properties of the same type in your backing bean, and then extract the value of that object using getValue() if you prefer over utilizing parameter string mapping and similar approaches for processing form data. I found it to be easier and less time consuming which has costs associated to it as well.

Ben Cortese is a developer and business analyst for the financial industry.

Copyright 2008. Article can be reprinted as long as author credits are given and content remains unchanged and intact.

 


Learn How To Design and Build Websites With Dreamweaver

If you are considering building your own website and do not know anything about building or designing websites the fast way to learn is getting involved with a tutorial of some kind. Learn from somebody that already knows how things are done and just follow their examples as you start building your website. There are two way to go, you can find a e-book Dreamweaver course or a Video course where Dreamweaver is explained.

Both ways will work it all up to you to find the best way that will help you get started the fastest, I have included a few mistakes that you want to avoid when building your first website with dreamweaver.

1) Splash pages

Splash pages are the first pages you see when you arrive at a website, normally with a big image or something like this. These pages does not make much sense when building your site as you always have to keep in mind how does navigation works for my visitors and how does search engines like Google see my page. So if you can avoid it do not make a splash page as your index.htm page.

2) Banner advertisements

If you want to make money with your website, then AdSense will make the most sense for your users, banner ads takes up a lot of space and history tells us that people do no click on them. So don't waist your space on banner ads.

3) Clear navigation

Navigation on your website is very important for your customers but even more important for your search engine ranking. By making easy 1-click navigation is a must on all pages. If your customers do not know how to navigate your site people will not see what you want them to see. So forget flash and drop down menus

4) Clear indication of where the user is

When visitors are deeply engrossed in browsing your site, you will want to make sure they know which part of the site they are in at that moment. That way, they will be able to browse relevant information or navigate to any section of the site easily. Don't confuse your visitors because confusion means "abandon ship"!

5) Avoid using audio on your site

People will leave your site if they get loud audio from your site and they have to jump to turn down their speakers so avoid audio on your site.

So use the Dreamweaver tutorial to learn website building and saves alot of money by doing it yourself. Even if you don't know HTML or anything about building your own website you can learn it really fast by using an online tutorial.

Jim Power is a freelance copywriter. For more information on a Dreamweaver tutorial courses visit http://www.dreamweaverguider.com/

Jim Power - EzineArticles Expert Author

 


Benefits of Outsourcing Web Development Services to India

Today more and more number of IT companies is outsourcing their web development services to developing countries like India. There are plenty of good quality outsourcing web development companies located in India and provide a ready resource of quality talent.

So why outsource?

There are many reasons why many a web development company in India has received lucrative outsourced projects from abroad. Most IT companies find that they incur greater cost savings by leveraging services from a web development company India. In addition to that most of the Indian software engineers possess a high quality of education and even language does not pose a problem as with other countries such as China etc.

Much more than cost savings!

There are several benefits an IT company can obtain by outsourcing its web development services to India. While earlier the main focus used to be on cost savings, today the reason India is a preferred outsourcing destination is because of the high caliber of talent here. The Indian standard of education is very high and hence the quality of engineering talent is also high.

Realization of ROI

By leveraging dedicated website development services in India, many foreign companies are finding tremendous benefits, not to mention an almost immediate realization of ROI. With dedicated timelines and strict adherence to project schedules product launches are made on time, with the result that the IT company can now begin to realize ROI that much faster.

Flexible engagement model

In addition many web site development company India are following a stringent and highly process oriented engagement model. That means that irrespective of whether the IT Company is a start up or a full fledged organization, the relative go to market timelines will be eventually accelerated.

Non-core issues handled

Apart from this several outsourcing web development companies also seek to undertake infrastructure issues. For example a regular ODC modeled company that also incubates the client's development facility will most often take care of tertiary issues like HR, legal aspects as well as recruitment functions. That also means that the IT company can now focus on only its core competencies as most tertiary aspects are handled by the outsourcing company in India!

Domain expertise

Many companies located in India specialize in dedicated niches of various industry verticals. That means that no matter what your niche is or what category your product belongs to, India can deliver high quality web development services. The engineers here possess a high quality of domain and technical expertise. India is preferred for outsourcing projects not just for cost savings but also for the quality of services offered.

For high quality, innovative and cost effective dedicated PHP, ASP and ASP.net developers for your web development solutions, visit some of the renowned web development Companies in India: Tisindia.com and India-designers.net.

For SEO of your site visit: Seo.india-designers.net.

 


Pages 
* About

Archives
    * February 2008
    * January 2008

Categories:
* Uncategorized

Last Updated:

regularban.info is proudly powered by WordPress MU running on  regularban.info.
Create a new blog and join in the fun!
Entries (RSS) and Comments (RSS).