Solved

Developing Business logic in Netbeans Visual JSF Web Application

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses

739 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