-
1. Re: Creating a simple Action not working
coolex Jun 23, 2008 11:09 PM (in response to mikool)Maybe you should try it with the seam-gen?
-
2. Re: Creating a simple Action not working
lich Jun 24, 2008 7:37 AM (in response to mikool)Hi,
getOutputText() is a Method not a Property. so you should...
helloWorld.getOutputText -
3. Re: Creating a simple Action not working
mikool Jun 24, 2008 9:44 AM (in response to mikool)Hi!
I tried it but I still get the same output with the
property not found
, now forgetOutputText
.I have copied the example from this book.
Is it a mistake in the book? -
4. Re: Creating a simple Action not working
coolex Jun 24, 2008 10:30 AM (in response to mikool)Even Eclipse does not suggest to write the method name instead Eclipse suggest just to write outputText. But still the same problem.
So how can I solve it? Isn't it possible to use methods with return values?
-
5. Re: Creating a simple Action not working
mikool Jun 24, 2008 11:37 AM (in response to mikool)So Axel, since you have the same problem, I guess it is not possible in SEAM to create methods with return values in actions.
It is working in entities only I think.Am I right?
-
6. Re: Creating a simple Action not working
mail.micke Jun 24, 2008 12:00 PM (in response to mikool)Use the property way of calling it, it is the JSF way. Seam adds the posibility of calling methods, but that is not needed when it follows the java beans naming standard.
This bit of the error message seems interesting :
not found on type org.javassist.tmp.java.lang.Object_$$_javassist_1
Seems like it is proxying java.lang.Object which won't have that method, so the question is why isn't it proxying the correct object? (seem to remeber seeing something similar in the forum but can't remeber where).
-
7. Re: Creating a simple Action not working
manilche Mar 31, 2011 3:56 PM (in response to mikool)As the error says, the component class defined by helloworld has no property called outputText, eg no getOutputText method. If you the component class implements an interface you may have forgot to specify the method declaration there
-
8. Re: Creating a simple Action not working
manilche Mar 31, 2011 3:57 PM (in response to mikool)
anil guru wrote on Mar 31, 2011 15:56:
As the error says, the component class defined by helloworld has no property called outputText, eg no getOutputText method. If you have the component class implements an interface you may have forgot to specify the method declaration thereClick HELP for text formatting instructions. Then edit this text and check the preview.