Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Giannis nasdades
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • 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
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
Did you recompile, redeploy and restart correctly?
 
Giannis nasdades
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic