Solved

Developing Business logic in Netbeans Visual JSF Web Application

Posted on 2008-06-17
3
1,243 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand column That will then direct you to their download page. From that p…
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…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

707 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