Giannis nasdades

Greenhorn
+ Follow
since Feb 27, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Giannis nasdades

Bauke Scholtz wrote:

Giannis nasdades wrote:
The bean was generated automatically by jboss tools as was geenrated the whole project. So i do not think this is the issue.


Trust me, the exception tells otherwise. I was just translating it. The bean is nowhere in the scope!

So there is either a bug in Seam or you misconfigured it. Try posting the issue at the Seam forums.
I haven't seen high experienced Seam boys walking around here before.



ok now you are the man.. you gave me the idea of what the error. The error was that inside the page i was not refering to bean with the name that i have put in @Name annotation. Now this part is working fine .. but my problem is that as soon i click the button the queryMotorcycles is not executed.

Thanks a lot for your help.

Regards,
giannis
16 years ago
JSF

Bauke Scholtz wrote:

Giannis nasdades wrote: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.

You read it wrong. It is 'motorcycleCat' which is null, not 'category'.
So, this managed bean is nowhere available in the JSF scope?
I am not that familiar with Seam, but shouldn't you declare the bean as managed bean in faces-config.xml?




Hi,

The bean was generated automatically by jboss tools as was geenrated the whole project. So i do not think this is the issue. For your reference i give yuo the whole bean code:



furntermore, this is the content of faces-config.xml "it was also generated by jboss tools".



if you have any more ideas please let me know.

Thanks in advance,
giannis
16 years ago
JSF
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

16 years ago
JSF

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



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

thanks for your help honestly.

giannis
16 years ago
JSF

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
16 years ago
JSF
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
16 years ago
JSF
Hi all,

I made an application using seam gen from an existing database.. the application was running fine untill i made some changes... not the application will notdeploy no matter what..

Bellow are the files that i changed:



now i have an action class which is as follows:



the interface for the clas is:



my web.xml file is:



ant the error log is:




any help would be appreciated as i am struggling with this for more than 10 hours now.

Regards,
giannis
16 years ago
HI all,

I am trying to learn seam with jsf hibernate ajax by creating a simple advert application.

I used seam gen in to create a new project and generate the entity classes (i already had tables in the database).

After this i am tryign to follow the seam "hotel booking example" in the online documentation and create a new action to search for soemthjing "motorcycle category in my case".

I have an action class called MotorcycleCategImpl which holds some actions. Code below:



My entity bean is as follows:


Now i have a simple xhtml page from where i am trying to call the find method from the MotorcycleCategImpl class (as done the seam documentation roughly).

My xhtml page searchMotorcycles is as follows:

Now the problem is that as soon i try to load the above page i get the following error: Could not instantiate Seam component: motorcycleCategService

Any help would be appreciated. Find the stack trace below:
16 years ago
JSF

Tim Holloway wrote:1. I don't see an <h:form> tag. JSF builds on HTML, and HTML won't submit without a form. Thus, neither will JSF.

2. The signature for a JSF Action processor MUST be:

public String xxxxxx() {
....
return "zzzzz";
}

Where "zzzz" can be whatever you want the JSF navigator to key on. It's common to return "success" for successful actions and "failure" for failed ones, but all that really matters is that you return a string.

If your signature doesn't match, the action won't fire.




ok great i got it.. very stupid mistake....

thanks a lot for your help,
giannis
16 years ago
JSF
Hi,

I am currently into making a seam application with ajax,jsf etc in order to make myself familiar with those technologies.
The problem is that i am trying to create a button. When this button is clicked, a method should be execute, which in turn executes a hibernate query. The results should be rendered in an <h:dataTable . When i clicked the buttong nothing at all happens... it is like the button is not registered at all...

My web page:


<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
xmlns:a="http://richfaces.org/a4j"
template="layout/template.xhtml">

<ui:define name="body">
model: <h:inputText id="searchString" value="#{motorcyclesearchaction.model}"
style="width: 165px;">
<a:support event="onkeyup" action="#{motorcyclesearchaction.find}"
reRender="searchResults" />
</h:inputText>
<a:commandButton id="findMotorcycles" value="Find Motorcycles" action="#{motorcyclesearchaction.find}"
reRender="searchResults"/>
<h:commandButton action="#{motorcyclesearchaction.find}" value="Find Motorcyclesh" reRender="searchResults"/>

<a:outputPanel id="searchResults">
<div class="section">

<h:dataTable id="motorcycles" value="#{motorcycles}" var="motor"
rendered="#{motorcycles.rowCount>0}">
<h:column>
<f:facet name="make">Address</f:facet>
#{motor.make}
</h:column>

</h:dataTable>
<s:link value="More results" action="#{motorcyclesearchaction.nextPage}"
rendered="#{motorcyclesearchaction.nextPageAvailable}"/>
</div>
</a:outputPanel>


</ui:define>

</ui:composition>




Below is my action class:




Any help is appreciated.

Thanks in advance,
giannis
16 years ago
JSF