Posted: 3/13/2008 4:27:46 PM EDT
|
I am doing an assignment for class. Here's my problem: I make a Bank. The Bank has Customers, and Customers have Accounts. I have to create a front end using JSF/NetBeans for this mess. Here's what I have so far: --User logs in. (Done) --User creates bank. (Done) --User can create Customers, and the Bank displays them in a listbox if I click on a button. I'd really like them to display automagically, but I haven't had a chance to get there yet. --Now I need to deal with the Accounts. A customer can have multiple Accounts. Account is an abstract class with SavingsAccount and CheckingAccount derived from it. Each Customer will have an array of Accounts, possibly of both types, encapsulated in the Customer object. I need to display this information coherently somehow. What I need to know: 1. What control(s) should I use to display the accounts? SavingsAccount and CheckingAccount have different information in them. Both inherit balance from the abstract superclass Account. CheckingAccount has a double called overdraftProtection, and SavingsAccount has a double called interestRate. So basically I need to display 2 fields that are different. Assume I already have the Customer selected, so it's just a matter of getting the data into a control on a page coherently. 2. How to display that data? I'm guessing he was wanting us to use binding, but he didn't specify. I have literally spent my entire break doing homework, and tomorrow I have to go back to work all weekend. Nothing like spending 40 hours working on something you get to practice once for 30 minutes. ![]() The real problem I have is that I know NOTHING about the inner workings of JSF. The hell of it is that I could knock this out in ASP.NET in a couple of hours. |
