• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

problem with <h:selectOneMenu component --- javax.el.PropertyNotFoundException:

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I have made a simple seam application.

I am trying to create a selectOneMenu which takes the values from a list from a specified action but i keep getting the error:

javax.el.PropertyNotFoundException: /motorcycleSearchAction.xhtml @21,50 value="#{motorcycleService.categories}": Property 'categories' not found on type org.javassist.tmp.java.lang.Object_$$_javassist_5

My code is as follows:

the java page with the action etc is:


The interface of this file is:



The xhtml page is :



The full trace is as follow from the log file:



Any help would be much appreciated.

Thanks in advance,
giannis
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As specified in the documentation, the f:selectItems expects a SelectItem[] or List<SelectItem>, not List<SomeCustomObject>.
 
Giannis nasdades
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bauke Scholtz wrote:As specified in the documentation, the f:selectItems expects a SelectItem[] or List&lt;SelectItem&gt;, not List&lt;SomeCustomObject&gt;.



I tried this and my action class now is:



but i keep getting the same error.

Any more ideas?

Thanks in advance
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you recompile, redeploy and restart correctly?
 
Giannis nasdades
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bauke Scholtz wrote:Did you recompile, redeploy and restart correctly?



yes but nothing happens... i dont understand..

thanks for your help honestly.

giannis
reply
    Bookmark Topic Watch Topic
  • New Topic