[jboss-user] [EJB 3.0] - Re: MappingException: Repeated column in mapping for entity

2008-01-11 Thread fhh
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=bbop=viewtopicp=4119255#4119255 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Regarding mail send on linux server

2007-11-07 Thread fhh
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=bbop=viewtopicp=4102444#4102444 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Eager loading in EntityQuery

2007-10-29 Thread fhh
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=bbop=viewtopicp=4099771#4099771 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4099771

[jboss-user] [JBoss Seam] - Re: More About SEO

2007-10-29 Thread fhh
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: | welcome-file-list |

[jboss-user] [JBoss Seam] - Re: Why not JAAS for security?

2007-10-22 Thread fhh
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 :

[jboss-user] [JBoss Seam] - Re: Some thoughts about abstracting everything from everythi

2007-10-14 Thread fhh
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

[jboss-user] [EJB 3.0] - Re: How to define unique constraint on foreign keys ?

2007-10-13 Thread fhh
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 :

[jboss-user] [JBoss Seam] - Re: Jboss Seam Generates wrong mapping for char(2) type.

2007-10-12 Thread fhh
Use | @Column(columnDefinition=CHAR(2))) | Regards Felix View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4094756#4094756 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094756

[jboss-user] [JBoss Seam] - Re: s:convertEntity - primary key equality

2007-09-25 Thread fhh
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=bbop=viewtopicp=4088378#4088378 Reply to the post :

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

2007-09-25 Thread fhh
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=bbop=viewtopicp=4088407#4088407 Reply to the post :

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

2007-09-25 Thread fhh
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=bbop=viewtopicp=4088409#4088409 Reply to the post :

[jboss-user] [JBoss Seam] - Re: multiple calls to same method from s:div rendered...

2007-09-25 Thread fhh
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 s:selectitems to create select items. e.) Use Hibernate caching

[jboss-user] [JBoss Seam] - Re: JBoss EL performance vs Sun EL

2007-09-23 Thread fhh
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

[jboss-user] [JBoss Seam] - Re: the TransientObjectException with s:convertEntity /

2007-09-18 Thread fhh
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 :

[jboss-user] [JBoss Seam] - Re: Manual flush not working

2007-09-16 Thread fhh
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 :

[jboss-user] [JBoss Seam] - Re: JBoss EL performance vs Sun EL

2007-09-15 Thread fhh
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=bbop=viewtopicp=4084717#4084717 Reply to the post :

[jboss-user] [EJB 3.0] - Re: Foreign keys with 0 and not NULL

2007-09-14 Thread fhh
Use Integer instead of int as the property type. Regards Felix View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4084315#4084315 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4084315

[jboss-user] [JBoss Seam] - Re: conceptual question about concurrency

2007-09-14 Thread fhh
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

[jboss-user] [JBoss Seam] - Re: How to Handle POST Callbacks from a third party appliati

2007-09-10 Thread fhh
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=bbop=viewtopicp=4082523#4082523 Reply to the post :

[jboss-user] [JBoss Seam] - Re: How to Handle POST Callbacks from a third party appliati

2007-09-09 Thread fhh
Use page parameters and a page action. Regards Felix View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4082394#4082394 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4082394 ___

[jboss-user] [JBoss Seam] - Re: General Performance concerns on presentation and busines

2007-09-06 Thread fhh
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

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

2007-09-01 Thread fhh
property name=mail.smtp.port value=465/ 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

[jboss-user] [JBoss Seam] - Re: File upload - performance has taken a dive

2007-08-28 Thread fhh
... or download the nightly builds from http://hudson.jboss.org/hudson/job/JBossSeam/. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4078607#4078607 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4078607

[jboss-user] [JBoss Seam] - Re: Seam 2.0: Why does @Datamodel require a setter?

2007-08-28 Thread fhh
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

[jboss-user] [JBoss Seam] - Re: Seam 2.0: Why does @Datamodel require a setter?

2007-08-28 Thread fhh
Okay. Thanks for the comprehensive information! Regards Felix View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4078773#4078773 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4078773

[jboss-user] [JBoss Seam] - Re: Seam 2.0: Why does @Datamodel require a setter?

2007-08-27 Thread fhh
bump View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4078271#4078271 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4078271 ___ jboss-user mailing list jboss-user@lists.jboss.org

[jboss-user] [EJB 3.0] - Re: EAR Scoped PersistenceUnit

2007-08-27 Thread fhh
Have you defined your class loader reporitory in jboss-app.xml? Regards Felix View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4078289#4078289 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4078289

[jboss-user] [JBoss Seam] - Re: Seam 2.0: Why does @Datamodel require a setter?

2007-08-27 Thread fhh
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

[jboss-user] [JBoss Seam] - Re: Seam 2.0: Why does @Datamodel require a setter?

2007-08-27 Thread fhh
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

[jboss-user] [JBoss Seam] - Re: Entity-query of Contact List sample does not run against

2007-08-25 Thread fhh
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=bbop=viewtopicp=4078032#4078032 Reply to the post :

[jboss-user] [JBoss Seam] - Seam 2.0: Why does @Datamodel require a setter?

2007-08-24 Thread fhh
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

[jboss-user] [JBoss Seam] - Re: Mail examples broken in CVS?

2007-08-21 Thread fhh
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.

[jboss-user] [EJB 3.0] - Re: Complex query generated by 4 non-lazy relations

2007-08-21 Thread fhh
You can use native queries with the entitymanager. Regards Felix View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4076182#4076182 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4076182

[jboss-user] [JBoss Seam] - Re: Wich contexts can be accesed directly by JSF ?

2007-08-21 Thread fhh
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 :

[jboss-user] [EJB 3.0] - Re: Complex query generated by 4 non-lazy relations

2007-08-21 Thread fhh
Have you looked at the execution plan? Regards Felix View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4076311#4076311 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4076311 ___

[jboss-user] [JBoss Seam] - Re: Quartz configuration in Seam 2.0B

2007-08-21 Thread fhh
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=bbop=viewtopicp=4076455#4076455 Reply to the post

[jboss-user] [JBoss Seam] - Re: ajax and EntityHome (Conversation) bug?!

2007-08-18 Thread fhh
Do you pass the conversationId in your ajax call? Regards Felix View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4075448#4075448 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4075448

[jboss-user] [JBoss Seam] - Re: Mixing JSP and Facelets in Seam?

2007-08-16 Thread fhh
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=bbop=viewtopicp=4074691#4074691 Reply to the post :

[jboss-user] [JBoss Seam] - Re: EntityHome.persist fails with @GeneratedValue

2007-08-16 Thread fhh
If you want to update an entity use merge (not persist). Regards Felix View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4074692#4074692 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4074692

[jboss-user] [JBoss Seam] - Re: How to use EntityManager for SELECT COUNT(1)?

2007-08-16 Thread fhh
Or you could try | SELECT count(a) FROM TableA | (untested) Regards Felix View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4074694#4074694 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4074694

[jboss-user] [JBoss Seam] - Re: JSF way to conditionally add attributes

2007-08-16 Thread fhh
Have you tried the ternary operator? Regards Felix View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4074701#4074701 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4074701 ___

[jboss-user] [JBoss Seam] - Re: Any way to invoke Seam method from an applet?

2007-08-16 Thread fhh
The easiest way to do this is to use page actions. Regards Felix View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4075034#4075034 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4075034

[jboss-user] [JBoss Seam] - Re: How to mask credit card output?

2007-08-16 Thread fhh
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=bbop=viewtopicp=4075036#4075036 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4075036

[jboss-user] [JBoss Seam] - Re: getting Seam bean name as a string

2007-08-15 Thread fhh
| Component.getComponentName(yourBean.getClass()); | The API doc is your friend. Regards Felix View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4074577#4074577 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4074577

[jboss-user] [JBoss Seam] - Re: getting Seam bean name as a string

2007-08-15 Thread fhh
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=bbop=viewtopicp=4074578#4074578 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4074578

[jboss-user] [JBoss Seam] - Re: seam s:link fetchs list multiple times. big error !

2007-08-10 Thread fhh
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=bbop=viewtopicp=4072900#4072900 Reply to the post

[jboss-user] [EJB 3.0] - Re: Joined Inheritance Strategy Problem

2007-08-10 Thread fhh
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

[jboss-user] [JBoss Seam] - Re: using s:div rendered=

2007-08-10 Thread fhh
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=bbop=viewtopicp=4073244#4073244 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073244

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

2007-08-10 Thread fhh
... or add an additional f:selectitem / to the view. Regards Felix View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4073245#4073245 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073245

[jboss-user] [JBoss Seam] - Re: seam s:link fetchs list multiple times. big error !

2007-08-10 Thread fhh
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

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

2007-08-09 Thread fhh
| @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 :

[jboss-user] [JBoss Seam] - Re: seam s:link fetchs list multiple times. big error !

2007-08-09 Thread fhh
I can guess what happens: s:link / 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 h:commandLink / instead of the ... hack. Regards Felix

[jboss-user] [JBoss Seam] - Re: deleted entity passed to persist

2007-08-08 Thread fhh
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=bbop=viewtopicp=4071888#4071888 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4071888

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

2007-08-08 Thread fhh
| @OneToMany(mappedBy=workout, cascade=CascadeType.REMOVE) | private ListWorkout workouts = new ArrayListWorkout(); | You propably mean mappedBy=athlete. Regards Felix View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4072217#4072217 Reply to the post

[jboss-user] [JBoss Seam] - DataModel from components.xml

2007-08-07 Thread fhh
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

[jboss-user] [JBoss Seam] - Re: DataModel from components.xml

2007-08-07 Thread fhh
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=bbop=viewtopicp=4071562#4071562 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Why no @Local interface for EntityHome sub-classes?

2007-07-29 Thread fhh
It is a plain Seam component not an enterprise bean. Regards Felix View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068522#4068522 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068522

[jboss-user] [JBoss Seam] - Re: How to prevent double submit

2007-07-27 Thread fhh
Or you can use this javascript hack: | script | function disableButtons(formular) | { | |for (var iter = 0; iter formular.elements.length; iter++) { | | if (formular.elements[iter].type == submit | || formular.elements[iter].type == button |

[jboss-user] [JBoss Seam] - Re: s:selectDate control within RichFaces Tab

2007-07-27 Thread fhh
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=bbop=viewtopicp=4068326#4068326 Reply to the post :

[jboss-user] [JBoss Seam] - Re: The Right Scope

2007-07-23 Thread fhh
Are you rendering or redirecting to searchResultsPage? Regards Felix View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4066748#4066748 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4066748

[jboss-user] [JBoss Seam] - Re: Quick entity question

2007-07-23 Thread fhh
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

[jboss-user] [JBoss Seam] - Re: onMessage method not called with MailListener MDB

2007-07-23 Thread fhh
Have you declared the seam interceptor? Regards Felix View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4066756#4066756 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4066756 ___

[jboss-user] [JBoss Seam] - Re: Quick entity question

2007-07-22 Thread fhh
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=bbop=viewtopicp=4066505#4066505

[jboss-user] [JBoss Seam] - Re: compüonents .xml not scanned on Linux...

2007-07-21 Thread fhh
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 :

[jboss-user] [JBoss Seam] - Re: compüonents .xml not scanned on Linux...

2007-07-20 Thread fhh
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=bbop=viewtopicp=4066107#4066107 Reply to the post :

[jboss-user] [JBoss Seam] - Re: compüonents .xml not scanned on Linux...

2007-07-19 Thread fhh
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=bbop=viewtopicp=4066003#4066003 Reply to the post :

[jboss-user] [JBoss Seam] - compüonents.xml not scanned on Linux...

2007-07-18 Thread fhh
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

[jboss-user] [EJB 3.0] - Re: EntityNotFoundException during Entity load

2007-07-11 Thread fhh
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=bbop=viewtopicp=4063276#4063276 Reply to the post :

[jboss-user] [JBoss Seam] - Re: using LDAP with Seam security framework

2007-07-08 Thread fhh
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=bbop=viewtopicp=4061755#4061755 Reply to the post :

[jboss-user] [EJB 3.0] - Re: Automatic table creation

2007-07-07 Thread fhh
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=bbop=viewtopicp=4061592#4061592 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4061592

[jboss-user] [EJB 3.0] - Re: LazyInitializationException explination

2007-07-06 Thread fhh
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=bbop=viewtopicp=4061157#4061157 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Seam 2.0 Multiple applications 'see' each others compone

2007-07-06 Thread fhh
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=bbop=viewtopicp=4061282#4061282

[jboss-user] [JBoss Seam] - Re: Deployment: Where to put richfaces-*.jar for rich:tree?!

2007-07-05 Thread fhh
Plz post the whole stack trace. Regards Felix View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4060719#4060719 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4060719 ___ jboss-user

[jboss-user] [JBoss Seam] - Re: how to extend EntityQuery

2007-07-03 Thread fhh
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 :

[jboss-user] [JBoss Seam] - Re: How does one @In(ject) a component from components.xml?

2007-06-30 Thread fhh
Have you added autocreate=true to you component? Regards Felix View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4059372#4059372 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4059372

[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

2007-06-30 Thread fhh
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=bbop=viewtopicp=4059374#4059374 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4059374

[jboss-user] [JBoss Seam] - Re: How does one @In(ject) a component from components.xml?

2007-06-30 Thread fhh
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=bbop=viewtopicp=4059423#4059423 Reply

[jboss-user] [JBoss Seam] - Re: Seam 1.3.0.ALPHA entity converter: The instance was not

2007-06-29 Thread fhh
|@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=bbop=viewtopicp=4059326#4059326 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Seam 1.2.0 with Jboss 4.2.0

2007-06-29 Thread fhh
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=bbop=viewtopicp=4059327#4059327 Reply to the post :

[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

2007-06-27 Thread fhh
Why are you using TopLink? Regards Felix View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4058214#4058214 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058214 ___ jboss-user

[jboss-user] [JBoss Seam] - Seam 1.3.0.ALPHA entity converter: The instance was not asso

2007-06-17 Thread fhh
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

[jboss-user] [EJB 3.0] - Re: Isolated Classloader with JPA (java.lang.ClassCastExcept

2007-06-15 Thread fhh
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=bbop=viewtopicp=4054713#4054713 Reply to

[jboss-user] [JBoss Seam] - Re: Seam-app not working with loader-repository /

2007-06-14 Thread fhh
Okay, I will upgrade and report back. Thanks Felix View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4054239#4054239 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4054239 ___

[jboss-user] [JBoss Seam] - Seam-app not working with loader-repository /

2007-06-13 Thread fhh
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: | snip | Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException:

[jboss-user] [JBoss Seam] - Re: s:decorate / with template property?

2007-06-10 Thread fhh
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 :

[jboss-user] [EJB 3.0] - Re: Event scope question....

2007-06-08 Thread fhh
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.

[jboss-user] [JBoss Seam] - Re: s:decorate / with template property?

2007-06-04 Thread fhh
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=bbop=viewtopicp=4051046#4051046 Reply to the post

[jboss-user] [JBoss Seam] - Re: s:decorate / with template property?

2007-06-04 Thread fhh
Here's the code of the form: | !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; | ui:composition xmlns=http://www.w3.org/1999/xhtml; | xmlns:ui=http://java.sun.com/jsf/facelets; |

[jboss-user] [JBoss Seam] - s:decorate / with template property?

2007-06-03 Thread fhh
Hi! I am trying to use the template property of s:decorate / (instead of facets) in Seam 1.2.1 .GA but it doesn't work for me. The ui:insert / in the decorateField.xhtml does not only insert the input child of s:decorate / but the whole page (which is in a ui:define / because it uses a page

[jboss-user] [EJB 3.0] - Re: Wrong column type: CREATE_TIME, expected: date

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

[jboss-user] [JBoss Seam] - Re: inject/outject servlet context init parameter

2007-06-01 Thread fhh
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=bbop=viewtopicp=4050431#4050431 Reply to the post :

[jboss-user] [EJB 3.0] - Re: ejb-ql relations/mapping problem

2007-05-31 Thread fhh
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=bbop=viewtopicp=4050025#4050025 Reply to the post :

[jboss-user] [EJB 3.0] - Re: EJB-QL Convert timestamp to date

2007-05-31 Thread fhh
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

[jboss-user] [EJB 3.0] - Re: javax.naming.NameNotFoundException: MyEjb3 not bound :(

2007-05-31 Thread fhh
Use the JNDIViewer in the jmx-console. Regards Felix View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4050141#4050141 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4050141 ___

[jboss-user] [JBoss Seam] - Re: Trying to understand how Seam Data Binding updates the m

2007-05-31 Thread fhh
A book on JSF will answer all those questions. Regards Felix View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4050144#4050144 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4050144

[jboss-user] [EJB 3.0] - Re: EJB-QL Convert timestamp to date

2007-05-29 Thread fhh
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

[jboss-user] [EJB 3.0] - Re: can any one help me - having a bad day with ejb3 server

2007-05-27 Thread fhh
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=bbop=viewtopicp=4048944#4048944 Reply to the post :

[jboss-user] [EJB 3.0] - Re: can any one help me - having a bad day with ejb3 server

2007-05-27 Thread fhh
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=bbop=viewtopicp=4048950#4048950 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Seam security question, in vpn environment

2007-05-26 Thread fhh
Add a page action to /admin/* check the ip. You can get via the facesContext. Regards Felix View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4048840#4048840 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4048840

[jboss-user] [EJB 3.0] - Re: Best Practice Question

2007-05-26 Thread fhh
This problem is not jpa specific. What database schema works best is at least depending on a.) the relationship of the attributes, b.) how many of those attributes are actually needed during procesing, c.) the expected amount of data. So I would suggest you create an entity relationship

  1   2   3   4   >