Solved

Developing Business logic in Netbeans Visual JSF Web Application

Posted on 2008-06-17
3
1,233 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
maven java path setting 5 50
java  and programming certification ? 4 65
Java and GPO 11 47
compre toata in where clue oracle 4 44
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

747 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now