This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
problem with <h:selectOneMenu component --- javax.el.PropertyNotFoundException:
Giannis nasdades
Greenhorn
Joined: Feb 27, 2009
Posts: 10
posted
0
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
Bauke Scholtz wrote:As specified in the documentation, the f:selectItems expects a SelectItem[] or List<SelectItem>, not List<SomeCustomObject>.
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
Joined: Oct 08, 2006
Posts: 2458
posted
0
Did you recompile, redeploy and restart correctly?
Giannis nasdades
Greenhorn
Joined: Feb 27, 2009
Posts: 10
posted
0
Bauke Scholtz wrote:Did you recompile, redeploy and restart correctly?