aspose file tools*
The moose likes JSF and the fly likes problem with <h:selectOneMenu component --- javax.el.PropertyNotFoundException: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "problem with <h:selectOneMenu component --- javax.el.PropertyNotFoundException: " Watch "problem with <h:selectOneMenu component --- javax.el.PropertyNotFoundException: " New topic
Author

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

Giannis nasdades
Greenhorn

Joined: Feb 27, 2009
Posts: 10
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

Joined: Oct 08, 2006
Posts: 2458
As specified in the documentation, the f:selectItems expects a SelectItem[] or List<SelectItem>, not List<SomeCustomObject>.
Giannis nasdades
Greenhorn

Joined: Feb 27, 2009
Posts: 10
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

Joined: Oct 08, 2006
Posts: 2458
Did you recompile, redeploy and restart correctly?
Giannis nasdades
Greenhorn

Joined: Feb 27, 2009
Posts: 10
Bauke Scholtz wrote:Did you recompile, redeploy and restart correctly?


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

thanks for your help honestly.

giannis
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with <h:selectOneMenu component --- javax.el.PropertyNotFoundException: