[jboss-user] [JBoss Seam] - Re: EntityManager: For newbies or to close gaps in your know

2006-12-12 Thread bfo81
@Gavin: This thread, page three, two posts by bfo81 on Dec 1st :). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993066#3993066 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode

[jboss-user] [JBoss Seam] - Re: EntityManager: For newbies or to close gaps in your know

2006-12-07 Thread bfo81
Gavin? If you got a minute could you tell me if my assumptions in my two posts from Dec 1 are correct? I'd be happy to have some more knowledge about that stuff ;). Thx View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992111#3992111 Reply to the post : http:

[jboss-user] [JBoss Seam] - Re: EntityManager: For newbies or to close gaps in your know

2006-12-01 Thread bfo81
The Extended Persistence Context only says, that the entities "live" in the managed state for multiple method invocations, in opposition to the "normal" Persistence Context, in which the entities get detached after a method has finished. Transactions are completely indepent from that. And alway

[jboss-user] [JBoss Seam] - Transactions in Perstistence Context

2006-12-01 Thread bfo81
Sorry for my late answer :). Those transactions are independent from each other. But step by step: During the existence of an Extended Persistence Context there can be multiple Java Transactions (JTA). And each Java Transaction will encapsulate write accesses to the database in a database tran

[jboss-user] [JBoss Seam] - Re: s:link cannot understand Facelets params?

2006-11-09 Thread bfo81
Hm... maybe the problem is caused by something else. I found another exception some lines above in the log. java.lang.StringIndexOutOfBoundsException: String index out of range: -1 |at java.lang.String.substring(String.java:1768) |at org.jboss.seam.jsf.AbstractSeamPhaseListener.select

[jboss-user] [JBoss Seam] - s:link cannot understand Facelets params?

2006-11-09 Thread bfo81
Yes, I'm back *g*. Simplified scenario: I'm using a template for data tables listing entities with an edit link at the end of each row. The concrete list entries and the editor bean are put into the template via ui-params. The list template: | |

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

2006-10-07 Thread bfo81
Well, there are many useful Tomahawk components that I do not want to miss anymore (e.g. t:inputFileUpload or t:column). But there are even many sloppy components or code parts. E.g. the schedule component supports a lot of custom style classes (as per API) but the corresponding attributes are

[jboss-user] [JBoss Seam] - Re: Seam in production (Tomcat, JSF RI, Hibernate, Tomahawk,

2006-10-06 Thread bfo81
I'll give it a try. Thank you ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976647#3976647 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976647 ___ jboss-user mailing lis

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

2006-10-05 Thread bfo81
Tomahawk has (as well as Sandbox) dependencies on MyFaces. So it's mandatory to have a up to date version. I even had to upgrade both Sandbox and Tomahawk to 1.1.5 in order to make the schedule component work. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=39

[jboss-user] [JBoss Seam] - Re: Logout and Back Button

2006-10-05 Thread bfo81
Is there a a possibility (e.g. meta attributes in html header) to force the browser to reload any page? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976293#3976293 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=397629

[jboss-user] [JBoss Seam] - Re: AJAX4JSF: Problems with validation.

2006-09-27 Thread bfo81
Yes, found the solution :) | Ajax4jsf Filter | ajax4jsf | org.ajax4jsf.Filter | | forceparser | false | | View the original post : http://www.jboss.com/index.html?m

[jboss-user] [JBoss Seam] - Re: AJAX4JSF: Problems with validation.

2006-09-27 Thread bfo81
Another huge bunch of s...uper nice probs with AJAX4JSF. It screws up my DOCTYPE definition as it automatically adds to the top of any processed document and displaces the doctype definition downwards. And since Internet Explorer only parses the very first line for a doctype it falls back to qu

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

2006-09-26 Thread bfo81
Have you experience with AJAX4JSF? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974208#3974208 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974208 ___ jboss-user mailing l

[jboss-user] [JBoss Seam] - Re: s:validateAll does not work, s:validate does. Why?

2006-09-26 Thread bfo81
Show the exception. I'm using s:validateAll and it works great. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974209#3974209 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974209 ___

[jboss-user] [JBoss Seam] - Re: Seam component as converter with EntityManager/Persisten

2006-09-26 Thread bfo81
@Scope(ScopeType.SESSION) | @Name("whateverConverter") | @Interceptors(SeamInterceptor.class) | | public class WhateverConveter implements Converter, Serializable { | | @In(create=true) | private EntityManager em; //Hint: There needs to be an "em" in your components.xml,

[jboss-user] [JBoss Seam] - Re: Seam Injection of Collections into backing beans

2006-09-26 Thread bfo81
I think via @In(value="#{myComponents}"). Like that it's possible to inject non-Seam-components. I don't know if you can uses an index number to access array elements. Try it out. But I'd suggest that you use ui:repeat or h:dataTable instead in order to iterate over all elements. View the orig

[jboss-user] [JBoss Seam] - Re: Seam booking example doesn't work correctly

2006-09-23 Thread bfo81
btw: What exactly is this lifecycle bug? Read much of it, but didn't understand it yet *g* View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973706#3973706 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973706 ___

[jboss-user] [JBoss Seam] - Re: ..:: Questions about Seam design!!!

2006-09-22 Thread bfo81
I didn't say you CANNOT use DAOs anymore. I just said you CAN leave them out (in many cases). Look at the AppFuse framework (Spring + Hibernate): - Entity class - DAO interface - DAO implementation - Manager interface - Manager implementation - Backing bean for presentation layer *dh* Same

[jboss-user] [JBoss Seam] - Re: .seam files

2006-09-20 Thread bfo81
That's just a mapping. Usually you have .xhtml files, but in the web.xml you say that the web server shall simulate another extension. In traditional JSF it's often like that: Original file: whatever.jsp Acessible via: whatever.faces or faces/whatever (those are two often used ways) Got the idea

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

2006-09-19 Thread bfo81
It works. That's what this thread is about. Maybe you should open a new one and explain your problem in detail. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972701#3972701 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&

[jboss-user] [JBoss Seam] - Re: AJAX4JSF: Problems with validation.

2006-09-19 Thread bfo81
You're right. I tried out a lot with regions, too, but somehow I misunderstood you completely. But ok, the problem is that I first didn't catch at all what regions are good for ;). Thanks again for your help, though I was to dumb to adapt it *g*. View the original post : http://www.jboss.com/i

[jboss-user] [JBoss Seam] - Re: the database of Seam application

2006-09-19 Thread bfo81
By default yes. The data is only stored in memory. So all your bookings get lost. The hotels are only still there cause they are created upon starting the server. There's a file called import.sql that contains the hotels ;). But there is a possibility to save the data on the disk instead. I'm no

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

2006-09-19 Thread bfo81
And the logfile? Nothing? I had a similar situation, but I think with something else (Tobago maybe). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972521#3972521 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972521 _

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

2006-09-18 Thread bfo81
Is there an exception? Or does just nothing happen? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972253#3972253 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972253 ___ jbo

[jboss-user] [JBoss Seam] - Re: Stateful session bean serialization error.

2006-09-18 Thread bfo81
For the sake of completeness: During serialization all properties of an object get serialized. Therefor they need to implement the interface Serializable. If they don't, then you need to make them "transient". Like this they are omitted during serialization and get re-injected after deserializa

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

2006-09-18 Thread bfo81
I must confess I don't know exactly what this tag does *g*. Do you have an entry for dojoInitializer in your tomahawk-sandbox(or a name like that).taglib.xml? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972235#3972235 Reply to the post : http://www.jboss

[jboss-user] [JBoss Seam] - Re: AJAX4JSF: Problems with validation.

2006-09-18 Thread bfo81
I finally found the solution (or let's say wcasatti from Exadel forum told me how to do it right): With the a4j:region tag you can define which components shall be decoded during the JSF lifecycle. This is where the language barrier was a problem for me since didn't understand that "decode" mea

[jboss-user] [JBoss Seam] - Re: AJAX4JSF: Problems with validation.

2006-09-16 Thread bfo81
I thought it would be more difficult (I remember some thread here where one had problems with a select menu). Thanks for your tip ;). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972091#3972091 Reply to the post : http://www.jboss.com/index.html?module=bb&

[jboss-user] [JBoss Seam] - Re: Does injection perform standard JSF conversion?

2006-09-15 Thread bfo81
Hm... that's a little like programming against interfaces or not. If you do so, then you can easyly switch the implementation, but you have more "overhead" code and files. And here your @In annotation "grows", though it's only some chars. But I always intend to have the smallest and simplest cod

[jboss-user] [JBoss Seam] - Re: AJAX4JSF: Problems with validation.

2006-09-15 Thread bfo81
How do you handle select items? Does it work? If yes could you give me a short extract of your code? I'm really a little exhausted and I'd be very thankful if you could save my weekend :). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972029#3972029 Reply t

[jboss-user] [JBoss Seam] - Re: Does injection perform standard JSF conversion?

2006-09-15 Thread bfo81
You can leave out that stuff in the brackets since its exactly the same like the property name. You only need to explicitely type it in when the property's name differs from the request parameters name ;). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972027

[jboss-user] [JBoss Seam] - Re: Stateful Session Bean Instances and Conversations

2006-09-15 Thread bfo81
@Stateful | @Scope(ScopeType.CONVERSATION) //I think this is the default scope so you might leave it out | @Name("...") | public class WhateverBean implements Whatever, Serializable { | | @In(required=false) //should be initially created in here | @Out | private AnEntity

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

2006-09-15 Thread bfo81
Sorry, but if you use JSP this might be correct. But for Facelets you do defintely need an extra *.taglib.xml file plus an entry in the web.xml referencing that file. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971972#3971972 Reply to the post : http://w

[jboss-user] [JBoss Seam] - Re: AJAX4JSF: Problems with validation.

2006-09-13 Thread bfo81
That's an interesting approach. One can invoke an action in the a4j:support tag and via immediate="true" it gets executed during APPLY_REQUEST_VALUES - so this would be possible. But yes, it is weird and I refrain from using this *brrr* ;). I even tried out a4j:region and multiple other tags, bu

[jboss-user] [JBoss Seam] - Re: ..:: Questions about Seam design!!!

2006-09-13 Thread bfo81
Seam still uses a 3-layered architecture. Ok, it breaks with traditional J2EE patterns like DAOs and stuff. But hey, this is called "progress". You do not need this fat old architecture paradigmas. Keep your code small, simple and maintainable. Seam enables you to do so ;). View the original po

[jboss-user] [JBoss Seam] - Re: Seam in production (Tomcat, JSF RI, Hibernate, Tomahawk,

2006-09-13 Thread bfo81
CVS and production? Not an easy marriage... But thanks for the answer ;). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971416#3971416 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971416

[jboss-user] [JBoss Seam] - Re: Problem: Custom validate methods in EJBs crash

2006-09-13 Thread bfo81
Thanks for your answer. But the PC only exists during editing one single entity (in a conversation), so I think it's ok... it works without problems ;). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971324#3971324 Reply to the post : http://www.jboss.com/in

[jboss-user] [JBoss Seam] - AJAX4JSF: Problems with validation.

2006-09-13 Thread bfo81
First of all: Yes I know, this isn't a pure Seam topic and it usually doesn't belong here. BUT 1. There are 2 weeks left for me to solve this single issue. If I don't suceed I'll have to fallback to static stuff :(. have mercy with me ;). 2. The Exadel forum is quite empty, and the forum here is

[jboss-user] [JBoss Seam] - Re: Hibernate Validation issue

2006-09-13 Thread bfo81
@denis-karpov: You mean, something like this does fail?: template (common stuff like the form or action buttons) | | | | <... save, delete and cancel button > | | | concrete input fields | | | | | I can only say that t

[jboss-user] [JBoss Seam] - Re: Problem: Custom validate methods in EJBs crash

2006-09-13 Thread bfo81
Ok, found out that "hosed" is it slang and means "broken" ;). However... @Gavin, could you explain me why using setRollbackOnly() causes isn't good for the PersistenceContext? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971221#3971221 Reply to the post

[jboss-user] [JBoss Seam] - Re: Faces context not found. getResponseWriter will fail.

2006-09-13 Thread bfo81
So the dir tomcat55.sar/jsf-lib gets completely useless as soon as you switch the JSF implementation? Silly question by me *g*: where to put common jars then if you don't want to deploy them with every app? The "normal" lib dir didn't work. View the original post : http://www.jboss.com/index.h

[jboss-user] [JBoss Seam] - Re: Seam in production (Tomcat, JSF RI, Hibernate, Tomahawk,

2006-09-11 Thread bfo81
Die you have this problem: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=90343(Exception "Local server is not initialized)? If yes, how did you solve it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970783#3970783 Reply to the post : http://www

[jboss-user] [JBoss Seam] - Re: TROUBLE RUNNING BOOKING EXAMPLE ON TOMCAT

2006-09-11 Thread bfo81
I tried to deploy my Seam application to "pure" Tomcat 5.5. Of course, I used "ant deploy.tomcat" instead of "ant deploy", too ;). And I even get that "Local server is not initialized" exception. I tried some stuff written in the forum and in a certain wiki, but it still didn't work... Someone

[jboss-user] [JBoss Seam] - Re: Problem: Custom validate methods in EJBs crash

2006-09-09 Thread bfo81
Gavin, maybe we misunderstood each other. It's important to mention that the actionMethod above shall perform "complex" validation and then save if everything is alright. | @Stateful | @Scope(CONVERSATION) | @Name("whateverEditor") | @TransactionAttribute(TransactionAttributeType.NOT_SU

[jboss-user] [JBoss Seam] - Re: Multi lang question

2006-09-09 Thread bfo81
"Normal" JSF internationalization cannot be used here, and so I think a converter is a good approach ;). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970519#3970519 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=39705

[jboss-user] [JBoss Seam] - Re: Problem: Custom validate methods in EJBs crash

2006-09-08 Thread bfo81
"[EMAIL PROTECTED]" wrote : There is one problem with performing validation during the action phase: if you are using an extended persistence context, you would prefer to do validation before applying values onto the model object. But by the time we get to the action method, the values have alre

[jboss-user] [JBoss Seam] - Re: Can you merge multiple annotations in one?

2006-09-06 Thread bfo81
Thanks for your hints. But I think I'll give it up (for now). There are too many other problems to handle with at the moment (JSF Chart Creator doesn't render images, AJAX4JSF doesn't change the values of SelectMenus correctly, ...) and I'm short of time. View the original post : http://www.jb

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

2006-09-05 Thread bfo81
It would be nicer if the taglib file would be integrated in the jar (like ajax4jsf or others have it), but for some reason the Tomahawk team decided to put that "burden" on you (though it's a light one). However, your step-by-step-howto works perfectly - and that's the important thing ;). View

[jboss-user] [JBoss Seam] - Re: Can you merge multiple annotations in one?

2006-09-05 Thread bfo81
That's a pity. Thanks for your help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969384#3969384 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969384 ___ jboss-user mailing

[jboss-user] [JBoss Seam] - Can you merge multiple annotations in one?

2006-09-04 Thread bfo81
Many of my beans are annotated like this: @Stateful | @Scope(...) | @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) | @Conversational(ifNotBegunOutcome="main") | @Name("...") Is it possible to create a new annotation that encapsulates all those annotations? e.g. @MyBean(scop

[jboss-user] [JBoss Seam] - Re: 2 DataModel questions

2006-09-01 Thread bfo81
You could use ui:repeat and render the html table yourself. I found a page that could be interesting for you (regarding that "conditional" row): http://www.nabble.com/%3Cc:if%3E-block-within-%3Cui:repeat%3E--t1855407.html View the original post : http://www.jboss.com/index.html?module=bb&op=vi

[jboss-user] [JBoss Seam] - Re: ActiveX with JSF and Seam

2006-09-01 Thread bfo81
That little object tag shouldn't be a problem (btw. make it xhtml compliant by using small letters for the tag and its properties and quotes around the numbers) ;). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968889#3968889 Reply to the post : http://www

[jboss-user] [JBoss Seam] - Re: ActiveX with JSF and Seam

2006-08-31 Thread bfo81
Are ActiveX controls written into HTML code? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968643#3968643 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968643 ___ jboss-user

[jboss-user] [JBoss Seam] - Re: Integrating Seam and Icefaces

2006-08-31 Thread bfo81
Look at the bottom lines. A simple Java Exception is the root cause for the error. Have a look at your eu.mpulse.contactes.user.User class and check if there's something wrong with the public non-argument constructor. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtop

[jboss-user] [JBoss Seam] - Re: 2 DataModel questions

2006-08-31 Thread bfo81
-+ | | Stefan Berkmiller | bfo81 | Deutschland | Frank Hoyer | | | | | | Florian Mueller | | | | | | ... | | +---+---+-+-+ | | . Problem here: The dat

[jboss-user] [JBoss Seam] - Re: 2 DataModel questions

2006-08-31 Thread bfo81
better idea for deleteSelected, with a real delete query (that's faster): Vector idsToDelete = new Vector(); | | for (Item item: listOfItems) | if(item.isDelete()) | idsToDelete.add(item.getId()); | | if (idsToDelete.size() == 0) | return null; | | String ids =

[jboss-user] [JBoss Seam] - Re: 2 DataModel questions

2006-08-31 Thread bfo81
I've already seen an example with a nested table. But the problem is that you cannot put that nested table in a new ROW, since rows are "connected" only to the entities you iterate. But you can put a "sub-table" in a COLUMN. 2) I had an idea about your second question. You might add a property d

[jboss-user] [JBoss Seam] - Re: Problem: Custom validate methods in EJBs crash

2006-08-31 Thread bfo81
Well, forget it. There's another problem. That "complex" validation would work well on an existing person that you edit. But when you create a new person all its properties are null. And when you fill in the fields in a form and click save, then the persons properties are still null during vali

[jboss-user] [JBoss Seam] - Re: 2 DataModel questions

2006-08-31 Thread bfo81
1) You can access the DataModelSelection from another bean or you can pass the id via request parameter. There are 2 examples in Seam showing both possibilities: The booking example and the blog example. 2) sry, don't know ;) View the original post : http://www.jboss.com/index.html?module=bb&o

[jboss-user] [JBoss Seam] - Problem: Custom validate methods in EJBs crash

2006-08-31 Thread bfo81
Well, custom validators belong to a real-life JSF web apllication like coffee to a good start into the day ;). Let's take an example (there are many occurences of such a situation in my current app, but I love easy examples *g*): - Entity Person - has a n:m relation to multiple other persons (f

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

2006-08-31 Thread bfo81
I don't think it's necessary to alter jars. Have a look at the way I made it work ;). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968572#3968572 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968572

[jboss-user] [JBoss Seam] - Re: when and how does the seam create tables in the databas

2006-08-31 Thread bfo81
In a Seam project (or maybe for kinds of EJB projects using Hibernate?) the database is created during server start (plus import.sql gets imported). This is an important difference to e.g. AppFuse (Spring + Hibernate), where the database gets created by an ant task which you have to call explice

[jboss-user] [JBoss Seam] - Re: TransactionException: Could not register synchronization

2006-08-30 Thread bfo81
RollbackException: Already marked for rollback. Do you call setRollbackOnly() somewhere in your code? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968369#3968369 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968369

[jboss-user] [JBoss Seam] - Re: ajax4jsf+seam redployment fails

2006-08-30 Thread bfo81
anonymous wrote : /WEB-INF/incl/store_nav.jsp @8,62 Check what's invoked at this place of your JSP. That's the point to start seraching for the reason. btw: if you have some time I'd like to ask you if you could give us a short tutorial for using ajax4jsf+seam (if there are any special things to

[jboss-user] [JBoss Seam] - Re: Merging objects problems.

2006-08-28 Thread bfo81
Not a bill... a bell of course ;). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967779#3967779 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967779 ___ jboss-user mailing l

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

2006-08-28 Thread bfo81
Sorry guys, I wanted to post a complete documentation some days ago. I even typed it in. But somehow I forgot to click the submit button (maybe because I went to lunch and wanted to read over it again) and due to something else I really forgot it witched the window tab and must have closed it ac

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

2006-08-26 Thread bfo81
I uses the Tomahawk calendar and it works fine :). Just follow the manual and use it ;). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967631#3967631 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967631 _

[jboss-user] [JBoss Seam] - Re: LazyInitializationException; I thought it wasn't possibl

2006-08-26 Thread bfo81
I think so :). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967630#3967630 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967630 ___ jboss-user mailing list jboss-user@lists

[jboss-user] [JBoss Seam] - Re: EntityManager newibe Question

2006-08-26 Thread bfo81
anonymous wrote : Seam's whole mission in life is managing your persistence context across multiple... Wait? Do you want to say that the Seam Managed Persistence Context is the same for ALL components? That would be a difference to @PersistenceContext(type=EXTENDED) as this one injects a uniqu

[jboss-user] [JBoss Seam] - Re: Merging objects problems.

2006-08-26 Thread bfo81
No, your stateless bean does not keep the group since it's stateless ;). It only knows about the group cause it gets injected. As I said it's quite difficult to GUESS what the problem causes. It would be better to LOOK at your code ;). But I think that you only call new Group(); once. Or you us

[jboss-user] [JBoss Seam] - Re: Can't inject entityManager into application component?

2006-08-26 Thread bfo81
Maybe it's because of the phase. Injection by default only takes part when beginning the INVOKE_APPLICATION phase. I think the init() method gets called before the injection and so the EntityManager is null. Try to annotate the bean with @Intercept(ALWAYS). View the original post : http://www.

[jboss-user] [JBoss Seam] - Re: Merging objects problems.

2006-08-25 Thread bfo81
There's something important I forgot to mention: You might think that a group gets newly created here: @In(create=true) @Out @Valid |private Group group; But that's wrong, it already exists: org.hibernate.PersistentObjectException: DETACHED (!!) entity passed to persist: group

[jboss-user] [JBoss Seam] - Re: Merging objects problems.

2006-08-25 Thread bfo81
No, he wants to create a new group and uses another group as a template. That's how I understood it (I hope there's no misunderstanding ;)). sjmenden, are you sure you read the thread I posted above? It's very important to understand the 4 states entities can have. If you want to create a new gr

[jboss-user] [JBoss Seam] - Re: JSF 1.2 RI + Faceletes + Hibernate + Seam = empty screen

2006-08-24 Thread bfo81
Could it be that the source code of your pages isn't blank? Have a look at it. If there are a lot of tags the page just didn't get interpreted. This could be due to using the wrong suffix in the browser, e.g. .xhtml instead of .seam. View the original post : http://www.jboss.com/index.html?modu

[jboss-user] [JBoss Seam] - Re: Question about Seam component properties and it's lifecy

2006-08-24 Thread bfo81
Thanks for the hint, Gavin. I just read in the reference that the default interception type is INVOKE_APPLICATION. So by default injected components are null from (1) to (4) and thy have their correct value only from (5) to (6). But it's good that you want to change the default behaviour. btw:

[jboss-user] [JBoss Seam] - Re: Merging objects problems.

2006-08-24 Thread bfo81
em.persist should work. But there are some mistakes in your architecture. If there is a underlying JSF page that uses the "group" component, you need to make the bean a Stateful Bean. Furthermore, the PersistenceContext needs to be EXTENDED. Otherwise the entity will get detached, and that's the

[jboss-user] [JBoss Seam] - Re: Seam component as converter with EntityManager/Persisten

2006-08-24 Thread bfo81
Well, those converter beans are really weird... In the getAsObject method you might load entities over and over via the em. So I decided to cache them (I even have a method to check if something is dirty). Well this cache is a inner class with a HashMap. It works well, entities get filled into

[jboss-user] [JBoss Seam] - Question about Seam component properties and it's lifecycle

2006-08-23 Thread bfo81
We're in a Seam component (e.g. Stateful Session Bean) and it's got the following property: @In @Out private Whatever property; >From RESTORE_VIEW(1) till the end of PROCESS_VALIDATIONS(3) the property is >null. Then it gets injected before UPDATE_MODEL_VALUES(4) and keeps its state till the e

[jboss-user] [JBoss Seam] - Re: Seam component as converter with EntityManager/Persisten

2006-08-22 Thread bfo81
There is something important I forgot to say in that conclusion above: MAKE IT SERIALIZABLE ;) I did not succeed in running a Seam component converter with an EntityManager in it without making the class serializable. And I tried all combinations of scopes and interceptors. But that is somethi

[jboss-user] [JBoss Seam] - Re: Seam component as converter with EntityManager/Persisten

2006-08-22 Thread bfo81
@c_eric_ray: See Chapter 9.4.2 in the reference ;). @all: I tried using SLSB as converters some weeks ago. Thanks to js8523's third post I now know why it doesn't work. However, JavaBean Seam Components do work. But you have to add an interceptor ( @Interceptors(SeamInterceptor.class) or @Inte

[jboss-user] [JBoss Seam] - Re: why booking example does not work when i try to change t

2006-08-21 Thread bfo81
anonymous wrote : note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs. Please have a look in your log file to see the whole stuff. The exception shown here occurs after many different errors, and it provides no real information ;). View the original post :

[jboss-user] [JBoss Seam] - Re: validation not performed after submit

2006-08-18 Thread bfo81
Yep, @NotNull validation WOULD work... if JSF wouldn't skip validation on null values *g*. That's the reason why I even leave out @NotNull annotations completely, since I don't think they make sense. Ok, with them the database field cannot get NULL. But when a field has required="true" in JSF t

[jboss-user] [JBoss Seam] - @LoggedIn kills injection in beans

2006-08-17 Thread bfo81
I have an abstract bean that encapsulates common functions (store, delete, etc.). It also contains some properties like the EntityManager or the Logger, which are injected. (If you wonder why I want abstract classes, then look at the DRY thread: http://www.jboss.org/index.html?module=bb&op=viewt

[jboss-user] [JBoss Seam] - Re: CRUD to seam-booking

2006-08-17 Thread bfo81
Did you call the xhtml files with xyz.xhtml or xyz.seam? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965896#3965896 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965896 __

[jboss-user] [JBoss Seam] - Re: Design Question and Seam/JSF question

2006-08-17 Thread bfo81
You can start nested conversations even without having a parent conversation. It's just like a normal top-level conversation then. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965881#3965881 Reply to the post : http://www.jboss.com/index.html?module=bb&op=

[jboss-user] [JBoss Seam] - Re: Design Question and Seam/JSF question

2006-08-17 Thread bfo81
If I understood correctly that A, B and C are nested, then the comversations should be nested, too. As an example (I'm not sure if this is what you have), let's look at a quiz (who wants to be a millonaire *g*). I have an Entity class Question and an Entity class Answer. Question 1:n Answer S

[jboss-user] [JBoss Seam] - Re: @out with on param

2006-08-17 Thread bfo81
Is the User entity bean annotated with @Name("user)? btw: you've written User=new User() instead of user=new User(). Sure this is your real code? If not, please copy and paste the whole stuff ;). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965841#3965841

[jboss-user] [JBoss Seam] - Re: EntityManager: For newbies or to close gaps in your know

2006-08-17 Thread bfo81
So finally, I found a solution for my problem: I have a bean that has not only methods writing to the database, but also provide some other stuff. And I don't want to have auto-flushes after the latter. You should prevent EJB from auto-flushing and write to the database explicitely when you ne

[jboss-user] [JBoss Seam] - Re: @RequestParameter value become null in conversation sfsb

2006-08-17 Thread bfo81
I'm not sure if I understood your question correctly (sorry, German ;)). | @Stateful | @Scope(CONVERSATION) | @Name("whatEver") | public class WhatEverBean implements WhatEver { | | @RequestParameter | private String someParam; | | private String someParamCopy; | | @Begin

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

2006-08-17 Thread bfo81
I tried it, but then every click lead to a redisplay of the current view. And in addition to that I had version troubles... i.e. I tried several combinations of Facelets and JSF (including CVS) versions but I always had miscellaneous exceptions. It seems like Seam + Tobago cannot be used togeth

[jboss-user] [JBoss Seam] - Re: DataModelSelection is null

2006-08-17 Thread bfo81
Hm... seems like Seam cannot find a component named "inboxEnvelopeSearch"... just a small idea: Is the InboxEnvelopeSearchBean annotated with @Name("inboxEnvelopeSearch")? Maybe a typo somewhere? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965729#3965729

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

2006-08-17 Thread bfo81
This thread might be older, but since I tried it out, had no success and finally had a conversation with the Tobago developers, I wanted to bump this. Tobago needs STATE_SAVING_METHOD: server. Seam needs STATE_SAVING_METHOD: client (especially for conversation scope I think). So it seems that b

[jboss-user] [JBoss Seam] - Re: EntityManager: For newbies or to close gaps in your know

2006-08-17 Thread bfo81
Hi chuaky, I would try to use @PersistenceContext without unitName. But I can't say anything without seeing your configuration. And I must confess that I'm not an EJB3 expert. I just wanted to write my knowledge down here in order to find out what's wrong and right and to learn something more (

[jboss-user] [JBoss Seam] - Re: @RequestParameter value become null in conversation sfsb

2006-08-17 Thread bfo81
Request parameters usually are only sent once, namely when there is a corresponding parameter in the HTTP request. If there are other requests following with no key parameter, then the variable gets null ;). So if you want to have that "String key" during the whole conversation, there are two p

[jboss-user] [JBoss Seam] - Re: SeamTest - It's not @In-jecting bean attributes

2006-08-16 Thread bfo81
You don't need getters and setters for Seam components (or that's at least what I learned *g*). Just annotate your property (private User user) with @In and @Out. And make sure to add required=false or create=true if necessary. View the original post : http://www.jboss.com/index.html?module=bb&

[jboss-user] [JBoss Seam] - Re: validation not performed after submit

2006-08-16 Thread bfo81
@NotNull has no effect on validation. And the @Length annotation is only used when the value is not null. So you need to add required="true" to your h:inputText to make it work ;). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965564#3965564 Reply to the

[jboss-user] [JBoss Seam] - Re: EntityManager: For newbies or to close gaps in your know

2006-08-16 Thread bfo81
That's strange. http://fisheye.labs.jboss.com/viewrep/JBoss/jboss-seam/src/main/org/jboss/seam/util/Persistence.java?r=MAIN shows your code. But it doesn't work for me since getDelegate() returns an instance of org.hibernate.ejb.EntityManagerInstance. So I had to use this: ( (EntityManagerImpl)

[jboss-user] [JBoss Seam] - Re: EntityManager: For newbies or to close gaps in your know

2006-08-15 Thread bfo81
Sounds good, too. But: I don't want to use the CVS version since I want to use Seam in a production environment. I looked at the CVS files, but I don't know what exactly happens with the new flushMode property of Conversation.java. I also tried to get the Hibernate session in order to set its fl

[jboss-user] [JBoss Seam] - Re: Trouble calling Stateless Bean

2006-08-15 Thread bfo81
I don't think this is the complete exception stacktrace. Please show us the whole stuff :). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965357#3965357 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965357 __

[jboss-user] [JBoss Seam] - Re: Why is there a FacesContext in org.jboss.seam.core?

2006-08-15 Thread bfo81
Could it be that (Seam) FacesMessages can be injected whilst (JSF) FacesMessage cannot? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965354#3965354 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965354 __

  1   2   >