wood burning stoves 2.0*
The moose likes JSF and the fly likes Issues with Extracting values from List in Managed Beans JSF2.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Issues with Extracting values from List in Managed Beans JSF2.0" Watch "Issues with Extracting values from List in Managed Beans JSF2.0" New topic
Author

Issues with Extracting values from List in Managed Beans JSF2.0

Varshini Priya
Ranch Hand

Joined: Feb 17, 2008
Posts: 93

I have been trying to display some values from the list in a input text box in JSF 2.0. The value is not getting displayed.Below is the code that im trying to run



Below is the error message that Im getting when I try to run the page containing the above code in a xhtml page.



The code works fine in a datatable, I assign the list to the datatable & create a variable for the same and when I use the variable with the fieldname I want to display, the same works fine. But doesnt work when I try to display the value="#{demandBean.filterSelectionVOList.targetDays}"

Please Assist. Thanks in Advance.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16019
    
  20

What this seems to be saying is that it thinks you typed the string "targetDays" into a control which was expecting only numeric characters.

I'm not quite sure how it's doing that, but your property "targetDays" seems to itself be a property of an object named "filterSelectionList". Usually when a class has a name like "xxxxList", it's a collection, and since an input expression can only reference a single property instance, I would have expected some sort of index qualifier on that list.


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: Issues with Extracting values from List in Managed Beans JSF2.0