posted 15 years ago
Hi all,
I have made a simple application with seam but i am facing problems with selectOneMenu and s:selectItems make them work together.
The functionality is as follows:
I have an xhtml page from where i want to use selectOneMenu and s:selectItems (which gives me a list of values from the database) in order to select one value.
After this when i click the button i want to search in another table and render the results in the page. Right now, when i click the link the page renders fine and i can successfully select one falue from the selectOneMenu list. After that, when i click the submit button I get the exception javax.el.PropertyNotFoundException: /motorcycleSearchAction.xhtml @23,44 value="#{motorcycleCat.category}": Target Unreachable, identifier 'motorcycleCat' resolved to null. The property that becomes null is the property that should be set
from the selectOneMenu.
I would be more than greatfull if you could asist me on this as i am stuck two days now.
The contents of my files are:
MotorcycleSearchAction.xhtml
My action jave file MotorcycleActionImpl is:
The interface is:
And below is the stack trace:
Any help would be appreciated.
Thanks in advance,
giannis