File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Varshini Priya
Ranch Hand
Posts: 95
Eclipse IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 17620
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic