File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes JSF form problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF form problems" Watch "JSF form problems" New topic

JSF form problems

John Fivekiller

Joined: Jun 18, 2010
Posts: 1
Hello and I was just wondering if anybody could help me with this problem.....
I have this piece of code and I have no clue why it is not working. It is a Line item JSF page where the user can add line items as necessary but my problem is that when the user clicks add line a new line is posted with the default values and not the forms values any way here is the code for the managed bean class

And the code for the JSF page

I have all getters and setters for the ServiceLineItemInvoice class
Thanks John
Tom Reilly

Joined: Jun 01, 2010
Posts: 618
This code seems rather elaborate. Is it new or has it been working but now doesn't? You talk about the "user clicking" which sounds like it is in production and, therefore, used to work. Please post the faces-config.xml file (or whichever xml file controls the JFS workflow) and explain the workflow. Also post any other code that is relevant, I see you have a System.out line. Does it display in the log file or console?
I agree. Here's the link:
subject: JSF form problems
It's not a secret anymore!