|
just another regularban.info web blog |
| MEMBERS: | Tips For Website Creation
Many business owners or ordinary individuals consider building a website so as to give themselves a presence online. In the event you are considering building a site you might want to go online to visit some sites to get a few ideas first. A website can add credibility to your business. These days many folks jump online in order to research products and services. Having a website will enable prospective clients find out more about your business. This will also help you to present your products and services in a more detailed fashion. The key to building a successful website lies within understanding what the web is all about. The internet in its former years was called the information super highway. The reason why people use the internet is to gather information for multiple reasons. What is needed is to understand how people search for information online. What keywords they use and how best to get your website in front of their eyes. So while they may not search for your particular product or service you may find relative terms that you can use that would be relevant. Once you do this you then need to consider constructing your web pages so that they are both relevant to the individual searching and relevant to the search engines. This way your web pages will get indexed and ranked for your chosen keywords sooner rather than later. This will enable your site to get free traffic and having your site found in the search engines will also add further credibility. To conclude the main reason any business considers building a website is to enable them to reach a broader range of customers and as a result increase their business. So when building your website understand the fundamentals and build it with the customer and search engines in mind.
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.
Pointers to Designing a Successful Website
Creation of a website is not as simple as it used to be, thanks to Google and its innumerable algorithm changes. Surely, you want to create a website to carve an online presence. You could make the swankiest website, but if it does not receive eyeballs (aka traffic), it is worth little to you. There are a lot of things to keep in mind before you set out to plan your website design, layout, content and other details. With the power of Google looming large over the Internet world, you could well be doomed if your site does not feature high in Google rankings. While Google rankings may not be your current concern, with the nuances of the website to take care of, it is advantageous to keep it in mind while deciding your site layout, content and coding language. More on that in the next article. Lets deals with simple non-technical stuff first. While many people build websites to please the search engines, do not ignore your human visitors completely. Remember, they are your primary audience. You need to find the right balance, make your website meet the requirements of both. Your website should have a specific goal. It could be to create an online presence, provide information, make money, generate leads, or just about anything. Next, you need to chalk out a plan for the development of the website. Be aware of the target audience. The audience could be local, international, young, old, men or women, students, professionals. Once you know the segment of people you want to attract, you will find it easier to decide upon the layout, color scheme, tone of language etc. This is because you will then orient your website design to suit your target audience's tastes. Design a layout that enables the eye to naturally move from one information segment to another effortlessly taking them to the desired part of the website. This could be a signup form, a set of testimonials, a particular product or simply an advertisement. Choose a good brandable name. This helps in the long run. Create good original content that provides all the necessary information to the audience. Add appropriate images to add to the appeal and beauty of the page. It is advisable to use a good CMS (Content Management System) so that things are easier in the long run. Adding, modifying and deleting pages are a breeze with a good CMS. Keep your page light to improve loading time. Choose lighter images over heavier ones. After all, YOU will be paying for the bandwidth. A great idea is to check out how your competitors have designed their websites. If the research has already been done by someone else, make use of it. Do not reinvent the wheel. Focus on improving upon the wheel design. This has covered the basics. In the next article, we can talk about important onpage optimization aspects to keep in mind while designing your website. You will need to do this if you are hoping to receive traffic from the Search Engines. You can either take your time to learn the nuances of website design, onpage optimization and Internet Marketing yourself, or you can hire a website design company, depending on what your time is worth. Either ways, it is highly recommended that you begin preparing for the online competition from day one.
|
* About Archives
Categories:
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). |