herbal penis size photo vagina

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.

 


A Primer On Automatic Website Builder

In the recent past, the Internet has become the prime means of media connection around the world. Aside from providing a fast and inexpensive means of imparting and extracting information, cyberspace has also redefined the very lifestyle of people around the world. From shopping to taking up courses, people have found immeasurable uses for the Internet.

No wonder then that everyone wants a space in cyber world. A website is the means of publishing personal or corporate information over the Internet. It is like a unique telephone number over a vast circuit of telephone lines; or better put, a unique address in the wide world of cyber space.

However, it is a well-known fact that not everybody knows how to create a website. A vast majority of Internet users who would like their very own web address in cyberspace do not have either the skills or the time to learn the intricacies of creating a website.

This is where an awb comes in handy. As the name indicates, an automatic website builder is an application or a group of applications that lets an individual who has no knowledge of underlying website software applications and languages involved build a website without sweat.

Unlike an HTML editor which merely facilitates in the creation of correct HTML scripts, an automatic builder provides the user with web page templates that are already built and can be modified by the user according to his or her preferences. Aside from pre-fabricated templates, some awb provide other important features as well. A number of automatic website builders have Shipping Cart feature that enables web visitors to shop for goods offered at the website. Still, other programs have built-in survey counters that can monitor the traffic of users who visited the website.

An automatic builder makes the process of putting the latest and most relevant information or content in a user's website quick and easy. Having the freshest content in a website means satisfied web visitors. This translates to higher traffic; therefore, improving a website's list ranking in search engines like Google.

Some websites come with a price. The range of prices may be as wide as a few bucks per month for subscription setting to more than a hundred dollars for one-time purchase arrangements. Others can be availed for free.

A purchased website builder provides premium features than a free program. A purchased program can come with unlimited number of website designs which could easily be a means to make money. By creating unique websites for friends and other customers, a user can easily earn additional income. Plus, this type of builder has tie-ups with other certified applications that can be enjoyed for free.

A free application, like the one commonly used for blog websites, has a limited number of website design concepts. There is a high probability that using this type of builder will be prone to pop-ups and third party piggyback advertisements. However, while the uniqueness or even the security of a website may be compromised, a free automatic website builder has zero cost.

Automatic website builders can be classified into to basic types; online and offline. An online builder enables users to edit the website they created using a web browser like Internet Explorer or Netscape. While an offline builder requires users to edit the site in a computer's local application before the edited website can be published. But no matter what type of automatic website builder application is used, the user is sure to have an efficient, effective and a fun way of building websites.

For more internet marketing tips and strategies be sure to follow the link in the resource box below:

Daegan Smith is an Expert Internet Network Marketer. "Learn
How To Make $10,717 In Less Than a Week While Quickly And
Easily EXPLODING Your Network Marketing Organization Without
EVER Buying a Single Lead?"
==> http://www.easymlmprofits.com
==> MLM Success Secrets

Daegan Smith - EzineArticles Expert Author

 


Free Templates - How Do They Rate Against Free HTML Editors?

Millions of websites being launched year after year can only signify two important things. One, the importance of being on the net, regardless of whether yours is a small business website, a home page, an ecommerce or even a portal, and two, easy availability of variety of free templates which make website building a child's play.

In this article, let us try to explore whether templates, free or paid, offer suitability and ease of working and why they are taking the newbie web owners and builders as well as professionals by storm.

Website templates are pre made web designs into which you can start filling in your information straight after downloading. Easily, this eliminates the cumbersome task of having to design an appealing layout and more than that, it does not want you to have any knowledge of HTML at all.

At this point in time, you might be tempted to ask, if this is all, how good it is over HTML editors which don't require a template to be downloaded for every time you are building a website? True, they don't require you to possess knowledge of HTML but they still rest the task of creating an appealing layout upon you, juggling with color schemes, and placement of different sections on your page etc which are really not your job. It is precisely here that the website templates fill the void- import web templates into your favorite HTML editor and get-set-go with site building.

Conventional method of web designing is out of date as it takes a lot of manual labor a web entrepreneur can hardly afford to waste. When web presence matters to you for reasons beyond passion, you would never want to waste time and efforts on designing your own templates or even purchase them in bulk.

Free templates are in no way inferior to paid templates but you have to be choosey about your source. They do not limit your aspirations; instead you can have a variety of them such as free CSS templates, PSD templates, besides the plain HTML types. The very reason these templates are a matter of big business today is their aesthetics, functionality, easy of use and of course, the huge demand.

Free templates also make business sense considering the number of websites the ordinary people launch every month. To get your business off by launching hundreds of websites you know what makes sense and what not. Choose your templates without compromising on your needs and let the cost be condoned by the world.

Alevoor Rajagopal, MBA, is very passionate about cricket and maintains a huge, cricket based funny videos collection. He is a business consultant and a professional copy writer to write most compelling content for your websites.

Alevoor Rajagopal - EzineArticles Expert Author

 


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).