File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes problem : For input string: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "problem : For input string: "  "" Watch "problem : For input string: "  "" New topic
Author

problem : For input string: " "

bee fouda
Greenhorn

Joined: Mar 20, 2013
Posts: 14

i have a problem that i didn't understand
and i have no idea how to resolved
please i need your help

here is the problem


my Managed bean


my Dao



my html file

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16305
    
  21

I cannot see the total problem - that would be more work than they pay me for - but I did notice 2 things:

1. You should almost always wrap a Collection (List or Array) that is being used as a table model object inside a JSF DataModel object and use that object as the dataTable's value.

2. The "get" method is going to be invoked multiple times (often 5 times or more), so doing a database fetch within the "get" or its sub-routines is not only very expensive in terms of performance, but may actually return inconsistent data in the event that other processes are updating the database at the time.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem : For input string: " "