Solved

Developing Business logic in Netbeans Visual JSF Web Application

Posted on 2008-06-17
3
1,241 Views
Last Modified: 2013-12-14
Hello,

I am a beginning developer trying to develop a very simple, basic store using Netbeans Visual JSF Web Application.  I've already developed the layout and design of the page, but I'm having some trouble implementing the business logic.

Specifically, what I'm trying to accomplish is passing numbers enter in the Order Quanity fields for each item to an "Order Summary" page that displays the items ordered, quantity ordered, and pricing for each.
How can I pass the data from my main page to my summary page when the user clicks the "Submit Order" button?  Then, how can I calculate the data and then display the results on that Order Summary page?  Specific advice or relevant examples would be greatly appreciated!  

Thanks in advance!
0
Comment
Question by:SpeedsterZ28
3 Comments
 
LVL 13

Expert Comment

by:MicheleMarcon
ID: 21810428
0
 
LVL 10

Accepted Solution

by:
Nellios earned 500 total points
ID: 21810819
When working with "Visual JSF Web Application" by default you have an Application Bean, a Session Bean, a Request Bean and a Baking Bean for the first page.

You can use the Session Bean and the Request Bean to pass information among the whole session (using the session bean) or just a request (using the request bean). More details here http://www.netbeans.org/kb/60/web/scopes.html.

The business logic for caluclation can reside inside the page bean. For example int page bean of the summary page inside the preprocess method you can fetch the data from your session/request beans do the calculations.

In general a lot of usefull examples can be found in: http://www.netbeans.org/kb/60/web/index.html

I would suggest you to review all of them if you intend to use visual jsf.
0
 

Author Closing Comment

by:SpeedsterZ28
ID: 31468023
Very helpful...thank you!
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Best environment for cross platform web development? 5 69
mysql jsp example issue 32 68
Where are the c++ header files to use in Eclipse? 4 46
Java array 21 77
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question