[jboss-user] [EJB 3.0] - Re: MappingException: Repeated column in mapping for entity
You do not need to define the discriminator column at all. It doesn't even have to have a getter/setter. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119255#4119255 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119255 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Regarding mail send on linux server
You need to add the servers ssl certificate to the keystore or use an officilly sihgned certificate. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102444#4102444 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102444 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: More About SEO
1.) Create a file index.seam with the following content: | <%-- | Please DO NOT delete this file. This file is used | to trick tomcat to detect index.seam as the | welcome file and will load index.xhtml instead. | --%> | Add to web.xml: | | index.jsf | | Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099773#4099773 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099773 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Eager loading in EntityQuery
Have you tried this? | SELECT c FROM Comment c | INNER JOIN FETCH c.user | Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099771#4099771 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099771 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Why not JAAS for security?
AFAIK you cannot JAAS security policies do not allow you to grant permission depending on the runtime value of a parameter, e.g. a user may edit products that belong to "his" department. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097375#4097375 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097375 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Some thoughts about abstracting everything from everythi
I think one think should not be forgotten: The dependency on Seam is different than the dependency on another library. True, if you use annotations the Seam lib has to be present at build time (You can actually work araound this by using XML). But Seam is not required to use these components if you do not rely on Seam in your own logic. So it is perfectly possible to reuse a JPA data model or session beans that are Seam annotated in an application that does not use Seam. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094978#4094978 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094978 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: How to define unique constraint on foreign keys ?
According to spec you can use | @javax.persistence.JoinColumn(name = "EMPLOYE_FK",unique=true) | However, if you are creating the schema from scratch I suggest you use a @OneToOne relationship which does exactly what you want. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094876#4094876 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094876 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Jboss Seam Generates wrong mapping for char(2) type.
Use | @Column(columnDefinition="CHAR(2)")) | Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094756#4094756 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094756 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: multiple calls to same method from
Why don't you use: a.) Datasources. Opening connections is an expensive operation. b.) Use a SELECT statement instead of a call to a stored procedure if you want to retrieve data. c.) @Factory for choices? d.) Use entities and to create select items. e.) Use Hibernate caching to avoid db roundtrips. f.) Use Seam's query object to retrieve a filtered list of entities. No offense, but if your requirements are totally different from the "Seam way of doing things" (TM) you will propably be better off without it. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088607#4088607 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4088607 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Target Unreachable
Use @In(create=true) or acces tickets directly via #{tickets.subject}. Regards Felix P.S.: I would prefer to use the sungular for entity names. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088409#4088409 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4088409 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Entity Convert
You have to specify the entity class on the convertentity tag. It can not automatically detect the entity class of a collection. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088407#4088407 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4088407 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: - primary key equality
Not if you are in a long running conversation so the backing list for your selection is kept in memory the whole time. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088378#4088378 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4088378 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JBoss EL performance vs Sun EL
Well, if you don't have a profiler you should at least test EL performance only. Instead of building a tree of 1.000.000 components you could simply loop 1.000.000 times over a single EL evaluation (no ui component). That would exclude JSF from the list of suspects. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087677#4087677 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087677 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: the TransientObjectException with
Two, possible reasons: 1.) Your entity was not retrieved by the same session as convertentity uses and you are using Seam 2.0 Beta1. If so upgrade to a nightly build. 2.) The groups in the list have never been persisted. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085371#4085371 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085371 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Manual flush not working
AFAIK flush() sends the data to the database but does not commit the transaction. So depending on your transaction isolation level you may not be able to see the new records in another transaction. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084802#4084802 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084802 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JBoss EL performance vs Sun EL
I very much doubt that. The reason why rendering large tables is slow in JSF is the building of the component tree. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084717#4084717 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084717 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Foreign keys with 0 and not NULL
Use Integer instead of int as the property type. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084315#4084315 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084315 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: conceptual question about concurrency
1: Maybe the documentation is a bit unclear there. If you access stateless components concurrently, the container will supply enough instances from the pool so that each thread will get its own instance. To put this another way: From a threads perspective the connection between a component name and a certain bean instance is lost. The name of the stateless compoennt might be resolved to a different been instance next time. 2: Don't know. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084313#4084313 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084313 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to Handle POST Callbacks from a third party appliati
Start JBoss in debug mode and set a beakpoint in us.ziacom.vm.action.JbillingCallbackHandlerAction.processPost(). Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082523#4082523 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082523 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to Handle POST Callbacks from a third party appliati
Use page parameters and a page action. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082394#4082394 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082394 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: General Performance concerns on presentation and busines
Well, I am not a Seam developer but my stance on these issues is this: anonymous wrote : - security: presentation layer is the only one that gets exposed to the internet and it take hackers more layer to crack. | Once the machine hosting the view is hacked your are usually lost anyway. You usually need some direct access between the view layer and the database (fast lane pattern, authentification ...). Once they can hijack a machine with a ddatabase connecetion everything is lost ... anonymous wrote : - scalability: easier to scale either/both presentation and business layer if they are separated. In 99% of all projects improving the code has a far more dramatic effect than simply scaling out a poorly designed and implemented project. So it is usually not necessary to distribute the layers over different machines. If it is it is usually possible to cut the application into different functional units that can be distributed over different machines. Even once these options show to be insufficient the costs of RMI make (IMHO) distributing view layer and business code over different machines hardly worthwhile. Simply scaling out the combined view/business layer is (IMHO) the simpler approach. anonymous wrote : - easier division of labor: presentation and business-logic developers only care about their components and they can become more skillful/specialized in their area. Ease of division of labour is an issue of good design which should take place before the actual implementation is happening. A good design can not and should not enforced by choosing a certain technology. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4081819#4081819 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4081819 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam email problem
Is this secure SMTP? This is a highly unsual setting. I think before TLS could be initialized during the session the port was used for secure SMTP. Anyway since you are transfering to localhost port 25 should be fine. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080237#4080237 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080237 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 2.0: Why does @Datamodel require a setter?
Okay. Thanks for the comprehensive information! Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078773#4078773 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078773 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 2.0: Why does @Datamodel require a setter?
I think I am finally getting you. IMHO it is acceptable that the backing list would be null during the second call but than null would be outjected again and the dataModel removed from its scope after the call which is probably a bit confusing :-). But if this is correct doesn't this problem apply to any case where the scope of the datamodel is longer than that of the action bean outjecting it? The same could happen with a stateless action bean and a conversation scoped datamodel. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078717#4078717 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078717 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: File upload - performance has taken a dive
... or download the nightly builds from http://hudson.jboss.org/hudson/job/JBossSeam/. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078607#4078607 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078607 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Can't validate inputsecret with Ajax and hibernate valid
Have your tried redisplay="true" on the inputSecret? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078608#4078608 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078608 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 2.0: Why does @Datamodel require a setter?
Maybe I am a bit thick here but I still don't get why a setter should be needed. If the datamodel is page scoped I would expect it to go back into page context (= Contexts.getPageContext().set("name", dataModel)) after deserialization. What sense does it make to reinject it into the action bean even if that particular action bean is not called in a second request. I always thought that @DataModel works pretty much like @Factory: Once a datamodel is created it becomes a completly independent, fist-class component. The difference is of course that @Factory is called automatically and @DataModel is only used if the annotated bean is called. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078522#4078522 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078522 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 2.0: Why does @Datamodel require a setter?
Done. http://jira.jboss.com/jira/browse/JBSEAM-1868 IMHO a setter should not even be required when susing @DataModelSelection. The datamodel should be available from the context it was outjected to. Pre Seam 2.0 this was not required so this is a clear regression to me. On the other hand adding emty setters is not that hard... Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078483#4078483 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078483 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EAR Scoped PersistenceUnit
Have you defined your class loader reporitory in jboss-app.xml? Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078289#4078289 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078289 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 2.0: Why does @Datamodel require a setter?
bump View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078271#4078271 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078271 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Entity-query of Contact List sample does not run against
String concatenation in SQL is either done by the concat() function (ANSI) or by using two pipes (|| - supported by almost all rdbms). Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078032#4078032 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078032 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam 2.0: Why does @Datamodel require a setter?
Hello! This patch http://lists.jboss.org/pipermail/jboss-cvs-commits/2007-August/039852.html requires all methods annotated with @Datamodels to have a corresponding setter. This makes the Seam 2.0 migration much harder than necessary. My project has lots of lists that are created on the fly when the get-Method is called. So these are really readonly. Seam 2.0 will require to add empty setters to all these components. Is this change of behaviour intended? Regards Felix P.S.: Does anybody know why deployment exceptions are swalloed? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077956#4077956 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4077956 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Quartz configuration in Seam 2.0B
I would like to see something too. Building a frontend for quartz - or at least supllying some components to enable me to do so myself - would be immensly useful. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076455#4076455 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076455 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Complex query generated by 4 non-lazy relations
Have you looked at the execution plan? Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076311#4076311 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076311 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Wich contexts can be accesed directly by JSF ?
In whatever scope you declared them to be. Just for clarification: You really do have to use @Out if the scope of your action bean and your form backing bean differ, e.g. your action bean is stateless and you want your data to do to page context. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076307#4076307 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076307 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Complex query generated by 4 non-lazy relations
You can use native queries with the entitymanager. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076182#4076182 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076182 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Mail examples broken in CVS?
anonymous wrote : | anonymous wrote : | | The docs states that "Most seam annotations will work inside a MDB but you musn't access the persistence context." - Why is this? Isn't that quite a severe limitation? Can anything be done to get around this? | IIRC this is a limitation of EJB3. You need to inject an SFSB/SLSB into the | MDB (or Seam component) and do your persistence work in them. | I haven't looked at the code but I think the reason behind it is that the entitymanager is not thread-safe. You can still inject (or do a JNDI-Lookup for) the EntityManagerFactory and use a new a new EntityManager for ervery mail processed. (For more infomation see http://weblogs.java.net/blog/ss141213/archive/2005/12/dont_use_persis_1.html) Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076180#4076180 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076180 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: ajax and EntityHome (Conversation) bug?!
Do you pass the conversationId in your ajax call? Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075448#4075448 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075448 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to mask credit card output?
Why don't yu simply add another getter to your bean that returns the masked CC number. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075036#4075036 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075036 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Any way to invoke Seam method from an applet?
The easiest way to do this is to use page actions. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075034#4075034 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075034 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JSF way to conditionally add attributes
Have you tried the ternary operator? Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074701#4074701 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074701 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to use EntityManager for SELECT COUNT(1)?
Or you could try | SELECT count(a) FROM TableA | (untested) Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074694#4074694 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074694 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: EntityHome.persist fails with @GeneratedValue
If you want to update an entity use merge (not persist). Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074692#4074692 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074692 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Mixing JSP and Facelets in Seam?
No, it is not used because you can have AFAIK use only one view handler. But it should not be too difficult to write a *.taglib.xml. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074691#4074691 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074691 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: getting Seam bean name as a string
At least I think that is what yoou want since the bean name is already a string. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074578#4074578 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074578 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: getting Seam bean name as a string
| Component.getComponentName(yourBean.getClass()); | The API doc is your friend. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074577#4074577 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074577 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam s:link fetchs list multiple times. big error !
Yes, but who has ever guaranteed you that the value binding of a datatable would be evaluated once and only once. @Pete: This might be fixable by modyfing UISeamCommandBase.getSelection() and UISelection to directly set the datamodel instead of the datamodel value expression. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073246#4073246 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073246 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: selectItems & noSelectionLabel
... or add an additional to the view. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073245#4073245 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073245 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: using
This is a value binding so el will look for authenticator.getDisplay(). Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073244#4073244 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073244 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Joined Inheritance Strategy Problem
Hibernate only uses the discrimnator value if it is really needed (single table strategy). Since the class type for the strategy joined is clear by itself the discriminator value will be null. You can use the following hack to work around this: | /* | * This is workaround for a hibernate bug: | * -> http://opensource.atlassian.com/projects/hibernate/browse/ANN-140?page=all | */ | @Column(name="DISCRIMINATOR",length=31) | public String getDiscriminatorValue() { | DiscriminatorValue discriminatorValueAnnotation = this.getClass().getAnnotation(DiscriminatorValue.class); | if (discriminatorValueAnnotation != null) { | return discriminatorValueAnnotation.value(); | } | return this.getClass().getSimpleName(); | } | | public void setDiscriminatorValue(String dummy) { | } | You will have to tweak it to use an integer as the discriminator value. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072913#4072913 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072913 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam s:link fetchs list multiple times. big error !
TBH I don't see the problem at all. What is so bad if the getter of your list is called multiple times. As you have already written it is not a performance issue. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072900#4072900 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072900 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam s:link fetchs list multiple times. big error !
I can guess what happens: is trying to find out the datamodel selection and is acessing the list behing the value of its UIData parent. I would say this behaviour is expected. Something similiar should happen if the poster uses instead of the ... hack. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072766#4072766 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072766 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: ManyToOne OneToMany
| @In Athlete athlete; | You get the error message because athlete is not found in any context. You have to outject the athlete when it "selected" (not sure what you mean by that) so it is available in one of the Seam contexts. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072424#4072424 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072424 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: ManyToOne OneToMany
| @OneToMany(mappedBy="workout", cascade=CascadeType.REMOVE) | private List workouts = new ArrayList(); | You propably mean mappedBy="athlete". Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072217#4072217 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072217 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: deleted entity passed to persist
Do you also remove the entity from the datamodel and/or list that is backing the table? Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071888#4071888 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071888 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: DataModel from components.xml
Okay, this is working for me. However, I think this would be a nice enhancement. I will put a feature request to JIRA. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071562#4071562 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071562 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - DataModel from components.xml
Is it possible to create a data model from components.xml the same way a factory can be used? I have an entity managed by a home object that has a list of related entities. I would like to loop over these and select them without adding getter and setters for these to the home object or some other hack. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071502#4071502 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071502 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Storing Password as MD5 Hash
It is common to put the encryption method into curly brackets and prepend that to the hash to show whether it is plaintext or a hash. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069109#4069109 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069109 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Why no @Local interface for EntityHome sub-classes?
It is a plain Seam component not an enterprise bean. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068522#4068522 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068522 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: s:selectDate control within RichFaces Tab
Simply add | div.seam-date | { | /* ... */ | z-index: 200; | } | to your css file. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068326#4068326 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068326 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to prevent double submit
Or you can use this javascript hack: |
[jboss-user] [JBoss Seam] - Re: onMessage method not called with MailListener MDB
Have you declared the seam interceptor? Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066756#4066756 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066756 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Quick entity question
anonymous wrote : | It doesn't have to be a repository or something that persists data. | Not sure what you mean by that. The whole point of an entity bean is to hold persitent data. anonymous wrote : | I might have entities that are domain objects which I happen to want to inject with other domain objects that provide certain services (all my business logic is the domain layer). Shouldn't we be able to do that? Otherwise I'd have to use singletons or pass the referenced service to my domain object as a parameter in each method call (not desirable at all) | Why not inject the entity bean into the service objects? If you use Seam, you might as well do things the Seam way. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066754#4066754 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066754 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: The Right Scope
Are you rendering or redirecting to searchResultsPage? Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066748#4066748 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066748 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Quick entity question
I think it would be a very bad design decision because you might inadvertently modify persistent data. IMHO it is better to use a manager pattern for that like Seam's home objects. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066505#4066505 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066505 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: compüonents .xml not scanned on Linux...
The problem is related to be JDK 1.6.0 which is installed on my windows machine. Using 1.5.0_08 produces jars which work under Linux and Windows. Not sure what the problem might be but maybe this should go into the release notes. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066445#4066445 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066445 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: compüonents .xml not scanned on Linux...
Has anybody got an idea about this one? Is there any information I should supply? If not I will create a JIRA issue. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066107#4066107 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066107 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: compüonents .xml not scanned on Linux...
This only happens with Seam CVS as of 7/18. Seam 2.0.0 BETA1 works well on Windows and Linux! Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066003#4066003 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066003 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - compüonents.xml not scanned on Linux...
I have a strange problem: On my development machine running windows my application work fine. When I deploy it to the server it fails because the components.xml file is not scanned properly. The odd thing is that components.xml is found: | 2007-07-19 00:09:10,785 DEBUG [org.jboss.seam.deployment.Scanner] archive: /opt/jboss-4.2.0.GA/server/default/tmp/deploy/tmp42377go100-backoffice.ear-contents/go100-model-ejb-0.1-SNAPSHOT.jar | ... | 2007-07-19 00:09:10,785 DEBUG [org.jboss.seam.deployment.Scanner] found: META-INF/components.xml | The only hint I have is the following warning during deployment: | 2007-07-19 00:09:10,905 WARN [org.jboss.seam.init.Initialization] namespace declared in components.xml does not resolve to a package annotated @Namespace: http://jboss.com/products/seam/persistence | My compnents.xml looks like this: | http://jboss.com/products/seam/components"; | xmlns:persistence="http://jboss.com/products/seam/persistence"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.0.xsd";> | | | | | | | | Does anybody know why this might work under Windows and not under Linux? My first suspicion that this might be about the upper/lower case. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065571#4065571 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065571 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EntityNotFoundException during Entity load
If you say nullable = false it means nullable = false. So the Customer can't be set to null. Remove it and alter table accordingly. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063276#4063276 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063276 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: using LDAP with Seam security framework
It just works(tm). All you have to do is to create a JAAS domain. See http://wiki.jboss.org/wiki/Wiki.jsp?page=LdapLoginModule. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061755#4061755 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061755 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Automatic table creation
Can the database user "see" those tables, e.g. get meta data about them? Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061592#4061592 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061592 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 2.0 Multiple applications 'see' each others compone
You need scoped class loading. Add a class loader entry to yur jboss-app.xml ord jboss-web.xml. See examples or http://www.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061282#4061282 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061282 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: LazyInitializationException explination
If you want to know the size of a collection it has to be fetched. So using fetch-type eager is the best approach. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061157#4061157 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061157 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Deployment: Where to put richfaces-*.jar for rich:tree?!
Plz post the whole stack trace. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060719#4060719 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060719 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: how to extend EntityQuery
The error has nothing to do with extensind EntityQuery. | there should be exactly one value binding in a restriction: p.featured=true | You must have exactly one value binding in your restriction. Try using | p.features=#{true} | Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060196#4060196 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060196 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How does one @In(ject) a component from components.xml?
The component.xml file is required to mark the jar as a seam jar. If it is missing the deployment scanner will not scan the jar and any seam annotation will not be detected. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059423#4059423 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059423 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe
Is it possible that Toplink requires resource references as per EJB spec? Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059374#4059374 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059374 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How does one @In(ject) a component from components.xml?
Have you added autocreate="true" to you component? Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059372#4059372 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059372 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 1.2.0 with Jboss 4.2.0
It will run if you remove the classloader scoping from application.xml - or more exactly: One single Seam application will run per JBoss instance. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059327#4059327 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059327 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 1.3.0.ALPHA entity converter: The instance was not
|@PersistenceContext(type=PersistenceContextType.EXTENDED) |private EntityManager entityManager; | Doesn't look very Seam managed to me. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059326#4059326 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059326 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe
Why are you using TopLink? Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058214#4058214 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058214 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam 1.3.0.ALPHA entity converter: The instance was not asso
Hello! Seam 1.3.0.ALPHA gives me the following exception: | org.hibernate.TransientObjectException: The instance was not associated with this session | at org.hibernate.impl.SessionImpl.getIdentifier(SessionImpl.java:1375) | at org.jboss.seam.persistence.HibernatePersistenceProvider.getId(HibernatePersistenceProvider.java:51) | at org.jboss.seam.framework.EntityIdentifier.(EntityIdentifier.java:15) | at org.jboss.seam.ui.EntityConverterStore.put(EntityConverterStore.java:61) | at org.jboss.seam.ui.EntityConverter.getAsString(EntityConverter.java:68) | | I can only guess what happens: For performance reasons I have a factory that outject the result of an entity query into the user's sessions, so the db is hit only once per session. Everthing work well the first time, but the second time I hit that page - in a completly new conversation - the entities in that cached list are not associated with the current entitymanager anymore and the mentioned exception is thrown. Not sure if I am doing something wrong here but this used to work in Seam 1.2.1.GA. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055051#4055051 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055051 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Isolated Classloader with JPA (java.lang.ClassCastExcept
Well, I am not a jboss and memeber and everything but an expert on class loading but shouldn't you be able to simply remove the (now uneeded) Hibernate libs from the EAR? Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054713#4054713 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054713 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam-app not working with
Okay, I will upgrade and report back. Thanks Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054239#4054239 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054239 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam-app not working with
Hi! I'm running Seam 1.2.1.GA on JBoss AS 4.2.0.GA. Everything works well unless I add class loading isolation. If I do I get the following stack trace: | | Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: com.sun.faces.application.ApplicationImpl.addELResolver(javax.el.ELResolver) | at org.jboss.seam.jsf.SeamApplication12.(SeamApplication12.java:46) | at org.jboss.seam.jsf.SeamApplicationFactory.getApplication(SeamApplicationFactory.java:29) | at com.sun.faces.config.ConfigureListener.application(ConfigureListener.java:483) | at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:529) | at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:503) | at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:402) | ... 91 more | Caused by: java.lang.NoSuchMethodException: com.sun.faces.application.ApplicationImpl.addELResolver(javax.el.ELResolver) | at java.lang.Class.getMethod(Class.java:1605) | at org.jboss.seam.jsf.SeamApplication12.(SeamApplication12.java:35) | ... 96 more | This looks to me as if a JSF version < 1.2 is used but I have no jsf jars in my ear and there is no myfaces etc in the jboss lib directory anymore. Or is this issue fixed in Seam 1.3.0? Thanks Felix P.S.: Classloader-config looks like this: | http://www.jboss.org/j2ee/dtd/jboss-app_4_0.dtd";> | | | seam.jboss.org:loader=go100-backoffice | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054163#4054163 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054163 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: with template property?
Okay, thanks for the information. I use maven and used simply the latest available version. Could you add a hint to the documentation? I think quite a lot of people might bump into this. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052947#4052947 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052947 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Event scope question....
Well, this is really a Seam question. But you do NOT save server resources by using event scope. It is true that you save resources on the app server but you pay for this by a much higher load on the database. And the database layer is the limiting factor in almost any meaningful application. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052426#4052426 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052426 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: with template property?
Here's the code of the form: | http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> | http://www.w3.org/1999/xhtml"; | 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:c="http://java.sun.com/jstl/core"; | xmlns:s="http://jboss.com/products/seam/taglib"; | xmlns:rich="http://richfaces.ajax4jsf.org/rich"; | template="/WEB-INF/templates/standard.xhtml"> | | Title | | | | | | | | | | | | | | | Username: | | | | | | | | | | And the decorateField.xhtml: | | http://www.w3.org/1999/xhtml"; | xmlns:ui="http://java.sun.com/jsf/facelets"; | xmlns:h="http://java.sun.com/jsf/html"; | xmlns:f="http://java.sun.com/jsf/core"; | xmlns:s="http://jboss.com/products/seam/taglib";> | | | | | | * | | | | | | | | | | | | | | | The result looks like this: http://felix.dyndns.tv/static/s-decorate-error.png Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051081#4051081 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051081 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: with template property?
Otherwise it doesn't work. It will insert the body of the page I defined and not just the input. It seems like a bug to me. I will post the code once I am at home. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051046#4051046 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051046 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - with template property?
Hi! I am trying to use the template property of (instead of facets) in Seam 1.2.1 .GA but it doesn't work for me. The in the decorateField.xhtml does not only insert the input child of but the whole page (which is in a because it uses a page template). If I explicilty define and ajust the decorateField.xhtml file it works. Is this a mistake in the documentation or am I missing something? Regards Felix P.S.: facelets 1.1.11 / JSF RI 1.2 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050777#4050777 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050777 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Wrong column type: CREATE_TIME, expected: date
You could try @Column(name = "CREATE_TIME", columnDefinition="timestamp",length=6) I actually doubt it will work because Hibernate seems to mix the name and the type value of your annotation. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050661#4050661 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050661 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: inject/outject servlet context init parameter
As far as I know the Servelt api doesn't allow to modify init params and even if it was possible doing so by might cause severe inconsitities in your app. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050431#4050431 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050431 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Trying to understand how Seam Data Binding updates the m
A book on JSF will answer all those questions. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050144#4050144 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050144 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: javax.naming.NameNotFoundException: MyEjb3 not bound :(
Use the JNDIViewer in the jmx-console. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050141#4050141 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050141 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB-QL Convert timestamp to date
But this only works if a.) the truncated value is a parameter in the query b.) you are actually truncing to the day. It will not work for something like this: | SELECT c, d FROM Cat c, Dog d | WHERE extract(month from c.birthday) = extract(month from d.birthday)# AND extract(year from c.birthday) = extract(year from d.birthday) | which will return all cat/dog tuples which were born in the same month. Regards Felix P.S.: All untested, of course. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050032#4050032 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050032 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: ejb-ql relations/mapping problem
You probably want a @ManyToOne relationship since you have a collection on the Document side. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050025#4050025 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050025 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB-QL Convert timestamp to date
Have you tried 'cast(foo.timestamp AS date)' and 'extract(year from foo.timestamp)'? For the later one there are also abbraviations like day(xxx) etc. but these are Hibernate specific. I have never tried these myself but they are definitly in the manual. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049518#4049518 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049518 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: can any one help me - having a bad day with ejb3 server
You have to add jndi.proeprties to set the proper InitialContext() to get dependency injection working. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048950#4048950 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048950 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: can any one help me - having a bad day with ejb3 server
You have to use @Remote(RemoteInferface.class) on the bean or @Remote on the remote inteface. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048944#4048944 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048944 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user