[jboss-user] [JBoss Seam] - Re: flushMode= MANUAL, when does commit happen? And other qu

2007-07-12 Thread enzhao
yes tested, it worksThe @Destroy method is now like this | @Remove | @Destroy | public void destroy() { | if (!this.completedOrCanceled) { | if (this.motherEntity.getId() != null) { | entityManager.merge(this.recipe); // without merging there might be ex

[jboss-user] [JBoss Seam] - Re: Validation oracle date field

2007-07-12 Thread enzhao
is your Date in the entity class java.util.Date? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063641#4063641 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063641 ___ jboss-

[jboss-user] [JBoss Seam] - Re: Using stateless beans generated by seam in standalone Ja

2007-07-12 Thread enzhao
http://docs.jboss.com/seam/2.0.0.B1/reference/en/html/concepts.html#d0e2704 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063619#4063619 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063619 ___

[jboss-user] [JBoss Seam] - Re: flushMode= MANUAL, when does commit happen? And other qu

2007-07-12 Thread enzhao
Oh by the way, I don't think this is icky at all...yes, a pretty handy pattern. My new-motherEntity.xhtml page has 5 or 6 parts are rounded with | | ... | | And several of the fragment is modal (which is a nested conversation). The mother Entity itself it too simple to be displayed

[jboss-user] [JBoss Seam] - Re: flushMode= MANUAL, when does commit happen? And other qu

2007-07-12 Thread enzhao
Hi DG! Thank you very much for your informative input! In my original post, I was dealing with the creation of a new motherEntity (which is a complex process...). So the isNew flag would always be trueHowever the flag idea is good. I can set a completedOrCanceled flag. Initialize it as fals

[jboss-user] [JBoss Seam] - Re: Using stateless beans generated by seam in standalone Ja

2007-07-12 Thread enzhao
http://docs.jboss.com/seam/2.0.0.B1/reference/en/html/framework.html View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063543#4063543 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063543 __

[jboss-user] [JBoss Seam] - Re: flushMode= MANUAL, when does commit happen? And other qu

2007-07-12 Thread enzhao
Okay, thanks! How can the persisted motherEntity be removed when the root conversation is time out? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063536#4063536 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063536

[jboss-user] [JBoss Seam] - flushMode= MANUAL, when does commit happen? And other questi

2007-07-12 Thread enzhao
Hi, I've read the latest reference section 8.3.3 http://docs.jboss.com/seam/2.0.0.B1/reference/en/html/persistence.html#d0e5563 and annotated my long-running conversation with @begin(flushMode=MANUAL), wrote em.flush(); in the @End method. But I still have some questions. When does the transac

[jboss-user] [JBoss Seam] - Re: Missing annotations ifNotBegunOutcome on version 2.0?

2007-07-12 Thread enzhao
it's deprecated. Please read the new reference: http://docs.jboss.com/seam/2.0.0.B1/reference/en/html/index.html View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063471#4063471 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&

[jboss-user] [JBoss Seam] - Re: examples didn't work

2007-07-11 Thread enzhao
have you tried http://localhost:8080/seam-booking/? Have you seen the ear file(or directory) in your jboss deploy directory? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063038#4063038 Reply to the post : http://www.jboss.com/index.html?module=bb&op=postin

[jboss-user] [JBoss Seam] - How do i check which conversation ids are in the stack?

2007-07-11 Thread enzhao
Hi, I want to debug a conversation with about 5 nested conversationsneed to check which conversation entries are in the conversation stack, how do I do it? Thanks! Regards, Ellen View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063028#4063028 Reply to the

[jboss-user] [JBoss Seam] - Re: Nested conversations - potential bug in Manager.beginNes

2007-07-11 Thread enzhao
There is a method which ends a mother conversation like this: | | @End | public void doA(){ | ... | // call a method of another action bean which is annotated with @Begin(nested=true) | ... | // call a method of another action bean which is annotated with @End | ...

[jboss-user] [JBoss Seam] - Re: [2.0beta1]s:button + pages.xml behaviour change

2007-07-11 Thread enzhao
sorry, I forgot to add the code tag...the code should be: | | ... | ... | ... | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063018#4063018 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=406301

[jboss-user] [JBoss Seam] - Re: [2.0beta1]s:button + pages.xml behaviour change

2007-07-11 Thread enzhao
Matt you are right. That was my mistake, sorry. I should have known more about the pages-2.0.xsd first.Now I wrote the navigations this way: ... ... ... all the navigation rules work fine now. :-) Regards, Ellen View the original post : http://www.jboss.com/index.html?module=bb&op

[jboss-user] [JBoss Seam] - Re: Nested conversations - potential bug in Manager.beginNes

2007-07-11 Thread enzhao
There are a lot of nested conversations in my application and I've been struggling with the conversation states for days (especially when a son conversation begins exactly inside a method which is annotated as @End in the mother conversation). This fix can help me enormously, I'm really look

[jboss-user] [JBoss Seam] - Re: [2.0b1+drools 4.0m3]two ClassCastExceptions from the sea

2007-07-10 Thread enzhao
These two problems are solved. The modification I made in the seam code base can be found here: http://jira.jboss.com/jira/browse/JBSEAM-1635 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062580#4062580 Reply to the post : http://www.jboss.com/index.html?m

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

2007-07-10 Thread enzhao
sorry no debugger if server started that way. The seam-gen generated app has a debugger page, which tells pretty much about the server side state. That helped a lot. Sometimes I had to resort to the server log too, yes, it really sucks View the original post : http://www.jboss.com/index.htm

[jboss-user] [JBoss Seam] - [2.0b1+drools 4.0m3]two ClassCastExceptions from the seam.dr

2007-07-10 Thread enzhao
I just updated the whole drools thing (core + dependencies) for my Seam application, and ran "ant dist" for Seam minutes ago and updated the seam libraries in my application. Now there is this problem(Warning: the stack trace is long. Sorry for that) anonymous wrote : | Exception during

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

2007-07-10 Thread enzhao
the jboss tools for eclipse nightly build is still _very_ awkward to use for now. Do not use it. Install a clean Europa SDK (the classic SDK but not the prepackaged one for JEE developers). Then use the Europa discovery site to install the officially signed JEE features, so you get syntax highli

[jboss-user] [JBoss Seam] - Re: JSR-299 Web Beans approved by the EC

2007-07-10 Thread enzhao
congratulations! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062394#4062394 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062394 ___ jboss-user mailing list jboss-user@li

[jboss-user] [JBoss Seam] - Drools 4.0 M3 API changed Seam 2.0 security package broke

2007-07-10 Thread enzhao
I am using drools 4.0.0 daily snapshot with seam 2.0 daily snapshot. The drools 4.0 M3 WorkingMemory API has been changed. Please have a look here: http://wiki.jboss.org/wiki/Wiki.jsp?page=4.0.0.MR3ReleaseNotes So the code in the RuleBasedIdentity class in the Seam security package should chang

[jboss-user] [JBoss Seam] - Re: [2.0beta1]s:button + pages.xml behaviour change

2007-07-09 Thread enzhao
Yes it is! By the way, I've doubled checked that all the actions expressed in the or were really executed and I did get the server side state as I wanted them to be. Only the page redirection did not happen anymore Thanks Pete! Regards, Ellen View the original post : http://www.jboss.c

[jboss-user] [JBoss Seam] - Re: @Unwrap question

2007-07-08 Thread enzhao
Thanks to you all! :-) Regards, Ellen View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061788#4061788 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061788 ___ jboss-user mail

[jboss-user] [JBoss Seam] - Re: best way of using application scope constants?

2007-07-08 Thread enzhao
Hi bkroeger, I am now having exactly the same problem like yours (got "failed to lazily initialize " since the entities in the list have their own collections and their collections would be implicitely modified in other stateful beans in my application, not from this dataStore bean...I got

[jboss-user] [JBoss Seam] - Re: @Factory annotation

2007-07-08 Thread enzhao
| List | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061783#4061783 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061783 ___ jboss-user mailing list jboss-user@lists

[jboss-user] [JBoss Seam] - Re: @Factory annotation

2007-07-08 Thread enzhao
I mean List. :-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061782#4061782 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061782 ___ jboss-user mailing list jboss-user@lis

[jboss-user] [JBoss Seam] - Re: @Factory annotation

2007-07-08 Thread enzhao
maybe the code | int[] names= {"jim","john","tom","mick","bodger","badger"}; | should be like | String[] names= {"jim","john","tom","mick","bodger","badger"}; | And the int[] type in your first method is a bit tricky if you want to do null testI would like to use the Integer[] or

[jboss-user] [JBoss Seam] - Re: seam2.0beta : tests fail with jdk1.6

2007-07-08 Thread enzhao
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=111930 You can download my patch, compile it (that class requires no other dependency than the jdk), swap out the same class in the jboss-embedded-all.jar. Regards, Ellen View the original post : http://www.jboss.com/index.html?module=

[jboss-user] [JBoss Seam] - @Unwrap question

2007-07-07 Thread enzhao
Hi folks, I would like to use the @Unwrap annotation in an APPLICATION scoped dataStore bean. This stateless bean mainly caches the read-only static data which would be used in the application. I'd like to learn more detail about the @Unwrap than which are already presented in the reference man

[jboss-user] [JBoss Seam] - [2.0 CVS]managed lists in SFSB can't be nulled out in conver

2007-06-27 Thread enzhao
One thing behaved strangely after I migrated my code to Seam 2.0 CVS. Say there is code like this: | @Stateful | @Scope(CONVERSATION) | @Name("strange") | public class StrangeBacking implements Serializable, Strange{ | @In EntityManager em; | private List somethings; | |

[jboss-user] [JBoss Seam] - Re: When and where to use jBPM in Seam app ?

2007-06-27 Thread enzhao
I'm afraid even for the first task, jBPM has something that jsf navigation does not offer. For example, nested pageflow with all kinds of converstaion states propagation View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058435#4058435 Reply to the post :

[jboss-user] [JBoss Seam] - Re: action bean managed entity: nullable Short value cannot

2007-06-27 Thread enzhao
My fault, in the entity class, the field was declared as "private short " instead of "private Short ...". Sorry! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058328#4058328 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=r

[jboss-user] [JBoss Seam] - action bean managed entity: nullable Short value cannot be n

2007-06-27 Thread enzhao
Always got a IllegalArgumentException when I tried to input a null value for a field (type Short) which was annotated with @Column(...nullable=true), exactly the same managed entity, nullable fields with the type of String nulled well. I did write "required="false" in the xhtml file, for the Sho

[jboss-user] [JBoss Seam] - Re: best way of using application scope constants?

2007-06-27 Thread enzhao
What's the consequence of using SFSB here? Performance/Scalability hit? Thanks! Regards, Ellen View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058272#4058272 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058272 __

[jboss-user] [JBoss Seam] - best way of using application scope constants?

2007-06-27 Thread enzhao
In my application there are a lot of application scope values (read most, very seldom update/insert/delete), things like all Zip Codes in a country, names of all agents, etc. They resides in various different tables in the database. I want to _always_ cache them in the memory, once and for all,

[jboss-user] [JBoss Seam] - Re: Seam 2.0.0CR1 and 1.3.0GA

2007-06-27 Thread enzhao
In case someone do not want to bother accessing the CVS or having trouble accessing CVS, here is the migration guide I saw this morning. Written by Gavin King. I think this will appear in the Seam site soon, but if you desparately want to get things straight now anonymous wrote : | Seam

[jboss-user] [JBoss Seam] - Re: Seam 2.0.0CR1 and 1.3.0GA

2007-06-27 Thread enzhao
In the CVS repository you can already see a migration guide to Seam 2.0 written by Gavin King on June 27th. From this migration guide you get a pretty good picture about what has been changed. There is change log too, in another file. If you get successful with the "ant dist", you can see the re

[jboss-user] [JBoss Seam] - Re: @Length throws InvalidStateException when String is null

2007-06-26 Thread enzhao
@Column(name="aColumn", nullable=true) @Length(min=3, max=30) public SomeType getSomething(){ return this.something; } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057882#4057882 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=

[jboss-user] [JBoss Seam] - Re: Seam and Hibernate-all.jar

2007-06-26 Thread enzhao
You might want to pick up the latest Seam-compatible hibernate related jars from the Seam CVS repository: http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamRepository The latest revision has the very recent hibernate related jars. I tested hibernate-all.jar and it worked well under various environme

[jboss-user] [JBoss Seam] - Re: [2.0 beta1 CVS]SeamTest RARDeployment question

2007-06-26 Thread enzhao
Ach, it should be: "2. The new seam-gen might not be working properly." Sorry for my typos! Regards, Ellen View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057878#4057878 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=

[jboss-user] [JBoss Seam] - Re: [2.0 beta1 CVS]SeamTest RARDeployment question

2007-06-26 Thread enzhao
sorry, for the second point above I expressed wrong. It should be: 2. The new seam-gen might now working properly. When creating a new project, jboss-local-jdbc.rar , jboss-xa-jdbc.rar , and jms-ra.rar should be copied to $my-seam-project/bootstrap/deploy/. But current "seam new-project" does

[jboss-user] [JBoss Seam] - Re: [2.0 beta1 CVS]SeamTest RARDeployment question

2007-06-26 Thread enzhao
Got it! I messed up things from the CVS snapshot and the CVS. Here are things which should be fixed for CVS Snapshot: 1. The pom.xml under the /ui is missing in the Snapshot. 2. Three very important .rar files are missing in the Snapshot, under the folder bootstrap/deploy/. They are: jboss-loc

[jboss-user] [JBoss Seam] - Re: s:commandButton - does it exist? pass parameters with

2007-06-26 Thread enzhao
did you miss a ) which should come before the } ?? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057851#4057851 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057851 ___ jbos

[jboss-user] [JBoss Seam] - Re: params in pageflows?

2007-06-26 Thread enzhao
You may want to try this in your backing bean: design a method which takes the widgetId as parameter. The Seam enhanced EL can take parameter for backing bean method calls, so it really does not matter whether you use it pages.xml or jpdl files. View the original post : http://www.jboss.com/in

[jboss-user] [JBoss Seam] - Re: [2.0 beta1 CVS]SeamTest RARDeployment question

2007-06-26 Thread enzhao
Now I see the jms-ds.xml in the bootstrap/deploy/messaging folder and the hsqlds-ds.xml in the bootstrap/deploy folder. And I also see jboss-beans.xml was removed from the configuration. Was the removal of jboss-beans.xml intentional or? Gavin could you please tell me about these lines in the h

[jboss-user] [JBoss Seam] - Re: [2.0 beta1 CVS]SeamTest RARDeployment question

2007-06-26 Thread enzhao
Yes, bootstrap is in my classpath and build.xml. I've updated the project configuration with the help of seam-gen came with the latest CVS. But still having this problem. Now I'm trying to figure out all the configuration files in the bootstrap folder...Will post again when I find a more specif

[jboss-user] [JBoss Seam] - [2.0 beta1 CVS]SeamTest RARDeployment question

2007-06-26 Thread enzhao
Hi folks, I'm using Seam 2.0 beta1 built from the CVS source. My test classes extending SeamTest are having RARDeployment problem, I guess I need help on how to configure the embedded microcontainer for the purpose of mocking Seam objects. Here is the error trace: | | [Parser] Running:

[jboss-user] [JBoss Seam] - Re: s:commandButton - does it exist? pass parameters with

2007-06-26 Thread enzhao
Seam is changing drastically during recently weeksmaybe you want to try out the latest version, Seam 2.0 beta 1 that is. Yes the feature you wanted exists. I'be veen using s:button in my application and it works just like s:link. :-) Have a look at here and get the latest CVS snapshot: ht

[jboss-user] [JBoss Seam] - Re: [2.0 beta1]Problem caused by regression between jdk 1.5

2007-06-26 Thread enzhao
I just submitted a patch (only one line was changed in the original file), please see here: http://jira.jboss.org/jira/browse/JBAS-4491 I've compiled it and tested on my machine, seems working well. For anyone who has the same problem: You just need to download the Signature.java, compile it (

[jboss-user] [JBoss Seam] - Re: [2.0 beta1]Problem caused by regression between jdk 1.5

2007-06-26 Thread enzhao
Ah, someone has already filed a bug report on June 18th. Please see here: http://jira.jboss.org/jira/browse/JBAS-4491 I forgot to paste the whole stack trace in my last post. Here it is: [Invoker 24561483] Invoking @BeforeClass org.jboss.seam.mock.SeamTest.init() WARN 26-06 15:32:56,062 [org.j

[jboss-user] [JBoss Seam] - [2.0 beta1]Problem caused by regression between jdk 1.5 and

2007-06-26 Thread enzhao
environment: Seam 2.0 beta1, JBoss 4.2, JDK 1.6 b06 on Windows XP. My project configuration all correctly updated using the Seam-gen came with 2.0 beta1. Today when I ran test classes extending SeamTest, there was this exception: DeploymentFilter -> java.lang.ClassNotFoundException: [Ljava.lang

[jboss-user] [JBoss Seam] - Re: [1.3.0Alpha]Source code from CVS contains non-ASCII char

2007-06-26 Thread enzhao
Just got the 0625 snapshot and yes this problem was fixed. Thank you! Now the version name is Seam 2.0 beta, wow! :-) Another small problem is that the whole jboss-seam/maven subdirectory was not included in the snapshot. So the ant build still broke. I've got the missing files from the CVS rep

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

2007-06-22 Thread enzhao
Well the problem lies in that I'm using JDK 1.6 but the seam core libs were compiled against JDK 1.5. Here is my solution: 1. Edit the build.xml under the root directory of the Seam distribution (Let me call it $SEAM_HOME). Replace all the 1.5 with 1.6. Save the build.xml 2. under the root of $

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

2007-06-22 Thread enzhao
When the "extends SeamTest" was removed, the test class worked and the unit tests passed without any problemBut I do want to extend the SeamTest to use the inject/outject testingAnybody has tried out? Thanks in advance for any help! View the original post : http://www.jboss.com/index.

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

2007-06-22 Thread enzhao
It seems that the embedded ejb which is needed by testng was not started correctly. I did not change the default configuration which was generated by seam-gen. How should I change it to make the embedded container work with testng? For now I'm not mocking any DB or doing integration test, but th

[jboss-user] [JBoss Seam] - [TestNG] IncompatibleClassChangeError

2007-06-22 Thread enzhao
I set up the project using seam-gen (1.3.0 Alpha), wrote a very simple test class which extends SeamTest. When I typed "ant test" in a shell, seams that my test class was found. But I got the error output like below and all the tests in the test class were skipped: java.lang.IncompatibleClassCh

[jboss-user] [JBoss Seam] - Re: [1.3.0 Alpha]property 'aString' not found on type java.

2007-06-21 Thread enzhao
Sorry it was a type, the createRecipe.ingredients should be inside EL #{}. Now the problem solved. Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056635#4056635 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=405

[jboss-user] [JBoss Seam] - [1.3.0 Alpha]property 'aString' not found on type java.lang

2007-06-21 Thread enzhao
This exception: javax.el.PropertyNotFoundException: /new-recipe.xhtml @127,54 value="#{ingre.unitSeq}": Property 'unitSeq' not found on type java.lang.String Here is the relevant code in the new-recipe.xhtml: | | | | | |

[jboss-user] [JBoss Seam] - Re: [1.3.0 Alpha]not-null property references a null or tran

2007-06-21 Thread enzhao
Bug fixed: the line in the entity bean: | public void setMsreDesc(String msreDesc) { | msreDesc = msreDesc; | } | should be | public void setMsreDesc(String msreDesc) { | this.msreDesc = msreDesc; | } | This is really grievous and the bug was hard to track...Finall

[jboss-user] [JBoss Seam] - Re: [1.3.0 Alpha]not-null property references a null or tran

2007-06-21 Thread enzhao
Oh I forgot the mention that in the database, there is simply no null-value in the msreDesc column. And I just modified this code: | // Guarantee referential integrity | food.getWeights().add(this); | in the FoodWeight entity class to: | // Guarantee referential integrity | f

[jboss-user] [JBoss Seam] - [1.3.0 Alpha]not-null property references a null or transien

2007-06-21 Thread enzhao
My environment: JBoss As 4.2.0 GA, Seam 1.3.0 CVS June 14th, 2007 Here the backing bean: | @Stateful | @Scope(CONVERSATION) | @Name("foodNutrients") | public class FoodNutrientsAction implements Serializable, FoodNutrients { | | private static final long serialVersionUID = 36620

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

2007-06-21 Thread enzhao
this is ellenzhao posting... well the build.properties file contains only one line. That's the path of JBOSS_HOME. I've manually mapped the entities and now continue programming in the business layer... My DB server is MySQL 5.0.41, yes I have got all kinds of rights granted. There is one line