[jboss-user] [JBoss Seam] - Re: Who uses EntityHome objects?

2007-02-07 Thread baz
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

[jboss-user] [JBoss Seam] - Re: Who uses EntityHome objects?

2007-02-07 Thread baz
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

[jboss-user] [JBoss Seam] - Re: Who uses EntityHome objects?

2007-02-07 Thread baz
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: | |

[jboss-user] [JBoss Seam] - Re: Who uses EntityHome objects?

2007-02-06 Thread baz
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

[jboss-user] [JBoss Seam] - Re: thirdparty-all.jar - which libraries are contained

2007-01-25 Thread baz
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

[jboss-user] [JBoss Seam] - thirdparty-all.jar - which libraries are contained

2007-01-25 Thread baz
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

[jboss-user] [JBoss Seam] - 1.1.0.BETA2 endAndRedirect (how do i use it)

2006-11-14 Thread baz
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();

[jboss-user] [JBoss Seam] - registration example throws exception

2006-10-25 Thread baz
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

[jboss-user] [JBoss Seam] - Re: Trinidad example uploaded to wiki

2006-10-24 Thread baz
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

[jboss-user] [JBoss Seam] - Re: How to configure an embedded Ejb to connect to MySql not

2006-10-24 Thread baz
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

[jboss-user] [JBoss Seam] - Re: How to configure an embedded Ejb to connect to MySql not

2006-10-23 Thread baz
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

[jboss-user] [JBoss Seam] - Trinidad example uploaded to wiki

2006-10-20 Thread baz
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

[jboss-user] [JBoss Seam] - which tag librarys do you use?

2006-10-19 Thread baz
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

[jboss-user] [JBoss Seam] - Re: Problems using current cvs version of seam

2006-10-13 Thread baz
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

[jboss-user] [JBoss Seam] - Re: Problem with HibernateEntity when id is not of type Stri

2006-10-12 Thread baz
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

[jboss-user] [JBoss Seam] - Problem with HibernateEntity when id is not of type String

2006-10-12 Thread baz
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

[jboss-user] [JBoss Seam] - Re: no application context with latest seam version

2006-10-12 Thread baz
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

[jboss-user] [JBoss Seam] - Re: is there a complete reference to configure Tomcat for a

2006-10-11 Thread baz
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

[jboss-user] [JBoss Seam] - Re: is there a complete reference to configure Tomcat for a

2006-10-11 Thread baz
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

[jboss-user] [JBoss Seam] - Re: is there a complete reference to configure Tomcat for a

2006-10-11 Thread baz
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

[jboss-user] [JBoss Seam] - no application context with latest seam version

2006-10-11 Thread baz
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

[jboss-user] [JBoss Seam] - Re: ManagedEntity class has gone

2006-10-09 Thread baz
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

[jboss-user] [JBoss Seam] - Re: ManagedEntity class has gone

2006-10-09 Thread baz
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 )

[jboss-user] [JBoss Seam] - Problems using current cvs version of seam

2006-10-09 Thread baz
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

[jboss-user] [JBoss Seam] - Re: Problems using current cvs version of seam

2006-10-09 Thread baz
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

[jboss-user] [JBoss Seam] - Re:

2006-10-06 Thread baz
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

[jboss-user] [JBoss Seam] - Re: Seam-managed persistence context set-up in Tomcat - help

2006-09-05 Thread baz
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

[jboss-user] [JBoss Seam] - Re: Any experiences with the Tomahawk components?

2006-08-27 Thread baz
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

[jboss-user] [JBoss Seam] - Re: JSP insted XHTMLS (DVD store example)

2006-08-24 Thread baz
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

[jboss-user] [JBoss Seam] - Re: Invitation to try new Seam authentication features

2006-08-23 Thread baz
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

[jboss-user] [JBoss Seam] - Re: Invitation to try new Seam authentication features

2006-08-23 Thread baz
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

[jboss-user] [JBoss Seam] - Re: In attribute requires value for component: Register.memb

2006-08-14 Thread baz
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

[jboss-user] [JBoss Seam] - Re: When can @Logger be used?

2006-08-13 Thread baz
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

[jboss-user] [JBoss Seam] - Re: When can @Logger be used?

2006-08-11 Thread baz
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&

[jboss-user] [JBoss Seam] - Re: When can @Logger be used?

2006-08-10 Thread baz
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

[jboss-user] [JBoss Seam] - Hundreds of IllegalArgumentException: SessionFactory not fou

2006-08-10 Thread baz
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

[jboss-user] [JBoss Seam] - Re: Managed(Hibernate)Entity usage question

2006-08-10 Thread baz
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, |

[jboss-user] [JBoss Seam] - Re: Managed(Hibernate)Entity usage question

2006-08-09 Thread baz
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

[jboss-user] [JBoss Seam] - Managed(Hibernate)Entity usage question

2006-08-09 Thread baz
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} |

[jboss-user] [JBoss Seam] - Re: @Begin and @End

2006-07-24 Thread baz
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

[jboss-user] [JBoss Seam] - Re: @Begin and @End

2006-07-22 Thread baz
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

[jboss-user] [JBoss Seam] - Re: @Begin and @End

2006-07-20 Thread baz
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

[jboss-user] [JBoss Seam] - Re: @Begin and @End

2006-07-20 Thread baz
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

<    1   2   3