-
1. Re: Are interfaces need when using EAR as deployment?
obfuscator Oct 28, 2008 7:58 PM (in response to magoicochea)Probably unrelated. I'm guessing that you have a variable in page scope which is an id, and you think it is an object. So you do
#{var.itemId}
. Problem is, var is a Long, not an object. -
2. Re: Are interfaces need when using EAR as deployment?
magoicochea Oct 28, 2008 8:05 PM (in response to magoicochea)But I thought that Long was the object wrapper for the primitive long. At least the java documentation says
The Long class wraps a value of the primitive type long in an object. An object of type Long contains a single field whose type is long.
.My entity declares the id as Long, not long.
-
3. Re: Are interfaces need when using EAR as deployment?
admin.admin.email.tld Oct 28, 2008 11:40 PM (in response to magoicochea)there is no getItemId() or itemId() method here in the java.lang.Long API:
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Long.htmlshow all your facelet code that relates to this fragment: #{var.itemId}
are you using a h:dataTable or something?
You do not need to annotate JavaBean with @Stateful (b/c they're not EJBs). And AFAIK, if you have no EJBs in your project, you can simply build and deploy a WAR, no need for an EAR.
-
4. Re: Are interfaces need when using EAR as deployment?
magoicochea Oct 29, 2008 12:49 AM (in response to magoicochea)This is a post I made before that got no answers about this, it contains all the info.
I am using a rich:datatable component.