posted 6 years ago
In my applicaion I have one base entity called general, this entity use to contain all the fields, but with normalisation in mind I seperated them in 8 different entities. All other 7 have an one to one relationship with eather general or one of the other entities which has in it's turn again a one to one to general.
I'm using seperate forms to ask the user to create the entities, but having some problems.
The genral idea was after filling in the previous form the user would automaticly be redirected to the next form. I'm struggleing to make it work.
I can't even really explain what is going wrong, so let me just post what I got and maybe you guys can give me some tips on how to tackle this problem.
The one thing I can say, because I'm sure someone will make a remark about it. The reasson why I call the getInvoices method, is because if I redirect like I tried, spring dosn't create a bean for the webform so I get an 404.
The redirecting works, but when I trie to post the invoiceform, nothing happens, I putted a system.out in the postMethod to see if it get's called and it isn't.
InvoiceForm:
newReecord.jsp (to created the generalEntity and addressEntity)
The GeneralEntity:
The Controller:
I thought of making an menu-entry for every form I use, instead of redirecting, but I still have to acces the generalentity to update it with the new entities created.
Any ideas...?
It's good to be able to use someting, it's better to understand how it works.
www.goanation.net