anonymous wrote : to pass the entry identifier to the PersonHome
But than the example reads like:
|
|
|
|
If i understand it correctly, the personHome.id will be passed, not the entry
identifier. And i do not see any further reference to personID in the doc.
For me it
I have reread the docs (chapter 10 for seam 1.1.5GA) many times.
My objects are never created because i do not know how to specify the ID.
If i use the old method (without namespaces) all is well.
@petermuir
To which paragraph in the docs do you reference?
What i like to do is described by you her
Hello
(3 questions at the body, please take a look)
I am interested if you are able to run any example with entityHome objects. For
me, the examples do not work (seam-pay,ui etc)
-
Could it be that i missunterstand the conzept?
So far i have used entityHome objects this way:
|
|
Hello,
Yes i use them. But only the Hibernate form.
For Seam 1.5.0 the application framework is described in chapter 10.
I was using them till the early beginning. The framework went to heavy
refactoring but it was usefull for me to follow. Now i am refactoring the code
to use the full power o
Many, many Thanks.
I have forgotten to scroll down the mentioned page, all the time i visited it:-(
Ciao,
Carsten
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006338#4006338
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply
Hello,
i would like to make the footprint of my application a certain amount smaller.
My app is running on tomcat without ejb3. So i removed jboss-elb3-all.jar and
inserted the libs contained in the hibernate2 example.
Now i was realizing that thirdparty-all contains some of the librarys in the
Hello,
i was using Conversation.instance().endAndRedirect() in my app.
This function returns a String in 1.1.0Beta1
But now it returns a boolean.
My usage is:
| public String saveProtocol() {
| //
|
| return Conversation.instance().endAndRedirect();
Hello ,
the registration example throws exception.
A patch is filed to the jira.
http://jira.jboss.org/jira/browse/JBSEAM-437
2006-10-25 08:55:37,078 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/seam-registration].[jsp]]
Servlet.service() for servlet jsp threw excepti
Hello,
the uploaded trinidad example is just the adf example (also found at the wiki)
converted to trinidad. I must state that i am not the author of the adf example.
The uploaded example works for me on JBoss AS 4.0.4GA and on JBoss 4.0.5GA
Yes, the mentioned warning is rendered, but the button
Hello,
anonymous wrote : about your third solution, would you please explain more?
Sure.
try to search your complete project for the string hsql.
Not only the source code, check the generated artifacts also.
Even check the deployed project.
There must be an erroneus configuration. And this need to
Hello,
First, try to not use autoReconnect
|
jdbc:mysql://192.168.0.157:3306/seamtest?autoReconnect=true&useUnicode=true&characterEncoding=UTF8
|
>From the MySQL Connector/J documentation about autoReconnect:
anonymous wrote : The use of this feature is
| no
Hello,
i modified the ADF registration example on the wiki to use trinidad.
This example uses selfcompiled (19.11.2006) librarys for trinidad.
You can find this new example in the EXAMPLE section of the wiki.
As of today, trinidad does not support opera as browser:-(
but firefox works.
Ciao,
Carst
Hello,
i would like to ask which tag librarys can be used?
In the seam documentation i found:
anonymous wrote : We recommend the Ajax4JSF and
| ADF faces (now Trinidad) tag libraries for use with Seam. We do not
recommend the use of the Tomahawk tag
| library.
But,
i compiled trinidad for myse
Hello Gavin,
thanks for the note.
I will wait.
Ciao,
Carsten
Note:
I have not expected the examples to run,
i expected that seam will start (but it does not)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976908#3976908
Reply to the post :
http://www.jboss.c
Hello,
totally my fault. now solved.
With HibernateManagedEntity you could outject only Objects of type String,
So HibernateManagedEntity has to convert a String to the real object type
(e.g.long) .For this purpose ther was the attribute idclass.
Now,
with HibernateEntity, you can outject the rea
Hello,
i do have a little problem with the upgrade to HibernateEntity.
a ClassCastException: java.lang.String is raised at
org.hibernate.type.LongType.set(LongType.java:42)
see below.
My question: how must an id of type other than String be handled? The idclass
seems to be gone.
My configuration
Solved.
My app runs again. Only a little change in one of my facelets templates.
I have disobeyed that jscook menu must be rendered inside a form.
If this is not the case tomahawk renders a dummy form which do not work with
the latest seam version.
@ codelion
The warning is about Tomahawk.
The ne
one sentence more:
the property jndiName from jboss-beans.xml must match jta-data-source from
persistence.xml
In your case
jndiName = java:/testDatasource
and
jta-data-source =testDatasource
Ciao,
Carsten
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p
Hello,
i think your problem has nothing to do with seam running on tomcat.
If i am not completly misleaded your problem is with the jndi name of the
datasource.
Instead of
anonymous wrote : testDatasource
try
java:/testDatasource
If this doesn't help i am out of clues. Perhaps someo
Hello,
We are using seam with tomcat.
Seams comes with great documentation for its configuration.
Please read this:
http://docs.jboss.com/seam/latest/reference/en/html/configuration.html.
You can use the embeddable EJB3 container
http://docs.jboss.com/seam/latest/reference/en/html/configuration.h
Hello,
i have compiled the latest seam version out of cvs. I am aware that it is at
heavy development.
We are using tomcat with hibernate in the microcontainer
Besides the copying of the new seam jars to the apps lib folder i have to adapt
components.xml. No other files are changed.
With the n
Hello
anonymous wrote : it was rather unexpected to lose the class without any traces.
Not for us. This kind of functinality was never integrated in a production
stable seam library.
anonymous wrote : ut we try to use Seam in some kind of commercial development
If this is the case why are you us
Hello,
i am used to use HibernateManagedEntity.
Both classes HibernateManagedEntity and ManagedEntity are renamed.
Please refer to this thread:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=92311
We have to wait.
There will be an example which shows how to use the refectored (renamed )
xception.
After copying the newest thirdparty-all.jar into my app the
NoClassDefFoundError: net/sf/cglib/proxy/Factory does not vanish.
09:51:17,812 ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/baz]: Exception
sending context initialized event to listener instance of class
Hello,
some additions:
- my app runs on tomcat (hibernate in the microcontainer)
The abovementioned error occurs when starting up tomcat.
Ciao,
Carsten
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976898#3976898
Reply to the post :
http://www.jboss.com/ind
Hello,
i like to test
But i have some problems with building and using the latest seam jars.
When i execute the build and testcore targets this error occur in the tests
anonymous wrote :[testng] FAILED:
org.jboss.seam.test.ContextTest.testContexts()
|[testng] java.lang.IllegalStateExce
anonymous wrote : Does anyone have experience with setting up Seam-managed
persistence context set-up in Tomcat?
Do you want to use embedded EJB or do you want a Hibernate session in a
microcontainer. The later is described in the seam docu and there is the
hibernate example in the seam distrib
Hello,
The mentioned URL is a live example of the tomahawk components.
You can found more infos in the myfaces wiki:
http://wiki.apache.org/myfaces/
anonymous wrote : It would have taken someone about 3 minutes to say, "Hey this
is what is in head.inc" or "you need to put this line in web.xml so
Hello,
anonymous wrote : 1) the nwFile.jsp I am trying to view is just a simple JSP
file why does it try to parse it?
This is because you are using https://facelets.dev.java.net/. This stiuff is
parsing your pages and complains about well formdness.
>From your exception:
| ...must be well-forme
Thanks,
the example app is now working.
A questiion: Is this security framework applicable in a pure tomcat environment.
I do have a seam app running on a tomcat where hibernate is running in the
jboss microcontainer. This app was dewrived from the seam hibernate example.
Ciao,
Carsten
View the
Hello,
when deploying the sample application i got an exception:
13:25:09,078 ERROR [[/seam-security]] Exception sending context initialized
event to listener instance of class org.jboss.seam.servlet.SeamListener
| java.lang.RuntimeException: error while reading components.xml
| at
o
Hello,
try
| @DataModel(scope=ScopeType.SESSION,)
| private List members;
|
| @Factory("members")
| public void getmembers(){
|members = em.createQuery(" from members member order by
member.joinDate").getResultList();
| }
You do not n
Hello,
good to here that it is working.
anonymous wrote :
| The logger should work in this case as well, right?
For me the logger works for entity beans (but they are all plain pojos)
My environment is tomcat with hibernate setup in the microcontainer(derived
from the seam, hibernate example)
S
Hello,
would you be so kind to post the code of your bean for which you use the Logger
annotation.
Maybe, the stacktrace of the NPE will help also. There must be one, if your
logger is uninitialized.
Ciao,
Carsten
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&
Hello,
i am using this facility successfully with javabeans.
Do you try to use a log statement in a constructor?
This will not function. The bean is first constructed and then injection take
place. So you can not use the logger in a constructor.
If you need it, you have 2 possibilities:
1. use the
Hello,
i am experience hundreds of exceptions, see below. Nevertheless the component
bazDatabase gets initialized sometimes. So the app could access the database.
Any ideas what went wrong.
My app works with tomcat5.15
hibernate is set up in the microcontainer (configuration after the exception
Hello,
Thanks for your answer.
anonymous wrote : you should not convert the id to a string.
if i do not convert, i get a class cast exception. This is due to this
codefragment from getInstance
return (Serializable) idConverter.getAsObject(
|facesContext,
|
Hello,
anonymous wrote : The only difference is that bazProject is used in an html
page while bazExperiment is not.
That is the difference.
I accessed bazExperiment in a html page and..
voila it is injected.
If i do not access such a component in a html page it won't be injected.
Gavin can you he
Hello,
i do have 2 Manged Entitys set up:
| de.bafz.lims.model.Project
| #{bazDatabase}
| #{bazProjectID}
| java.lang.String
|
|
| de.bafz.lims.model.Experiment
| #{bazDatabase}
|
Hello,
after determining that with the current CVS you have to have specify idClass
|
| de.bafz.lims.model.Project
| #{bazDatabase}
| #{bazProjectID}
| java.lang.String
|
|
it works for me.
In my case, i do not need the new
Hi Gavin,
i will change back to my own manager, if you have the opinion that my change
does not make sense.
IMHO, it can always happen that 'getInstance()' from the Manager is called
when there is no Id in any context. This will result in an exception. But if
there is no Id than there is no obj
Hello Gavin.
anonymous wrote : It makes it unclear what "null" means ... does null mean "no
id", or does it mean "no object for the id".
When getInstance is called and there is no Id in any context, session.get is
not callable. So the if statement should ensure the pre condition for
session.get
anonymous wrote : And then, whenever the id of the object is available in a
context variable or request parameter, we can just inject the correct instance.
Hi Gavin,
i have tried your approach with a ManagedHibernateEntity.
i must learn what the word 'whenever' means:
if the id is not available i
201 - 243 of 243 matches
Mail list logo