aspose file tools*
The moose likes JSF and the fly likes Problem getting values from JSP to JSF Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Problem getting values from JSP to JSF Bean" Watch "Problem getting values from JSP to JSF Bean" New topic
Author

Problem getting values from JSP to JSF Bean

Muhammed Patel
Greenhorn

Joined: Feb 26, 2009
Posts: 5
Hey guys and gals,

i am pretty new to JSF and having the strangest of problems.
i have a JSP page that looks like this :




my bean looks like the following :





As you can see that i am logging what i am getting from the bound bean. but for some reason when i get the value from JSF it gives me something to the effect of:

2009-02-27 07:48:38,247 INFO [za.co.fpc.controller.ClientController] - Logging information to client system javax.faces.component.html.HtmlInputText@d9ceea
2009-02-27 07:48:38,247 INFO [za.co.fpc.controller.ClientController] - Logging information to client system javax.faces.component.html.HtmlInputText@19f9c7a


I hope some one has encountered as i am sure they have as i am probably missing something silly somewhere.


In my world they are all ponies and eat rainbows and poop butterflies
Muhammed Patel
Greenhorn

Joined: Feb 26, 2009
Posts: 5
Never mind i found the problem :

In my JSp i was using the binding attribute instead of the value attribute.
i am sure everyone knew that but just for newbies i was doing this :



when i should have been doing this

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem getting values from JSP to JSF Bean