[JBoss-user] [JBoss Seam] - @PreUpdate not being called on Seam @Entity

2006-07-06 Thread RobJellinghaus
OK, so this is probably another Hibernate issue, but still. I'm building my Seam app from the Seam Hibernate example under Tomcat alone (microcontainer, yada yada). I'm trying to declare a @PreUpdate method to protect certain objects from updates (by throwing an exception and killing the

[JBoss-user] [JBoss Seam] - Re: @PreUpdate not being called on Seam @Entity

2006-07-06 Thread RobJellinghaus
Arrgh, sorry about that. I fundamentally misunderstood how this works. Now I know about @EntityListeners and I will build a proper listener class and so forth. SEARCH BEFORE POSTING :-( Cheers, Rob View the original post :

[JBoss-user] [JBoss Seam] - Re: @PreUpdate not being called on Seam @Entity

2006-07-06 Thread RobJellinghaus
Actually, it looks like I *didn't* misunderstand how this works. A Hibernate forum post mentions that the EJB3 lifecycle callbacks only work if you're using EntityManager, i.e. an embedded EJB3 container. Which I'm not -- I'm using the microcontainer-based Hibernate example for my

[JBoss-user] [JBoss Seam] - Log4JLogger doesn't print right source line

2006-07-03 Thread RobJellinghaus
When I run the Seam 1.0.1GA Hibernate testexample, here's the very beginning of the ant clean testexample output: testexample: | [copy] Copying 44 files to C:\robj\dev\seam\jboss-seam\examples\hibernate\build\test |[testng] INFO 03-07 10:40:37,125 (Log4JLogger.java:info:94)

[JBoss-user] [JBoss Seam] - Re: Can you @Filter a Seam @Entity?

2006-06-30 Thread RobJellinghaus
Yours doesn't seem down by much! I figured out the base problem (you need a @FilterDef *and* a @Filter), but am encountering some other issues, mentioned in the other thread. Nothing to do with Seam though. I guess the only subquestion worth asking here is, what's the roadmap for Hibernate 3

[JBoss-user] [JBoss Seam] - Re: Can you @Filter a Seam @Entity?

2006-06-29 Thread RobJellinghaus
OK, I asked: http://forum.hibernate.org/viewtopic.php?t=961435 Here's hoping Emmanuel's response rate is anything like as good as yours :-\ If I don't hear back I will just start digging down into the source until I find the problem, then I'll JIRA something up. (Seems like the url tag is

[JBoss-user] [JBoss Seam] - ClassCastException: DelayedPostInsertIdentifier after going

2006-06-28 Thread RobJellinghaus
Very confusing! I have some pretty straightforward code that worked fine with the 1.0beta2-era CVS build I had, but that now breaks after upgrading to 1.0.1: @Entity | @Name(changeset) | public class Changeset { | ... |private Long id; | ... |@Id @GeneratedValue |public

[JBoss-user] [JBoss Seam] - Re: ClassCastException: DelayedPostInsertIdentifier after go

2006-06-28 Thread RobJellinghaus
NEVER MIND, FIXED! Problem was that I am working in a noejb-like setting (I originally started from the old noejb example, now the hibernate example). In the course of porting to 1.0.1 I got confused and started making changes based on the booking example, with embeddedEjb rather than

[JBoss-user] [JBoss Seam] - Can you @Filter a Seam @Entity?

2006-06-28 Thread RobJellinghaus
Working with my Seam example, just ported to 1.0.1. Originally derived from the noejb example, which now became the Hibernate example. I'm trying to declare a @Filter on one of my @Entities: @Entity | @Name(blogPost) | @Filter(name=headOnly, condition=replicatedChangeset is null) | public

[JBoss-user] [JBoss Seam] - Details?

2006-06-05 Thread RobJellinghaus
What was the resolution? Cheers! Rob View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3949216#3949216 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3949216 ___ JBoss-user mailing

[JBoss-user] [JBoss Seam] - Re: Details?

2006-06-05 Thread RobJellinghaus
Arrgh, please disregard. This was intended to be a reply to another post, not a new topic. My apologies. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3949217#3949217 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3949217

[JBoss-user] [JBoss Seam] - Re: Where Seam's Mailing Lists? and cvs

2006-02-13 Thread RobJellinghaus
Search this forum for cvs info. AFAIK there are no mailing lists, only this forum. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3923228#3923228 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3923228

[JBoss-user] [JBoss Seam] - Re: Ending a conversation and begining another at the same t

2006-02-12 Thread RobJellinghaus
OK, I tried the above. Specifically, I wanted to make it so the hotel/booking noejb example brings up the hotel list the first time you land on main.xhtml, without starting a conversation. The hotel list is in session scope, in other words, just like the booking list. Then the View Hotel

[JBoss-user] [JBoss Seam] - Re: Ending a conversation and begining another at the same t

2006-02-12 Thread RobJellinghaus
OK, so of course I posted that and then thought of one last possibility, which sort of kind of worked. Declare HotelFactory.hotels as @In ListDataModel hotels. That gets past all the bijection issues. Problem is it doesn't actually affect HotelListAction, because there, hotelIndex is

[JBoss-user] [JBoss Seam] - Re: Ending a conversation and begining another at the same t

2006-02-12 Thread RobJellinghaus
LAST THING: Changing HotelListAction.hotelIndex to @In(required=false) @Out @DataModelSelectionIndex Integer hotelIndex; doesn't work *either*, because it blows up before even calling the @Factory HotelListAction.find() method. Specifically, it blows up with: Feb 12, 2006 11:04:24 PM

[JBoss-user] [JBoss Seam] - Re: Bookmakring jsf pages in seam?

2006-02-12 Thread RobJellinghaus
[EMAIL PROTECTED] wrote : By the way, there is a FAQ item on this... Where *is* the FAQ? I don't see a FAQ link on the wiki? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3923213#3923213 Reply to the post :

[JBoss-user] [JBoss Seam] - Re: Redirecting for exceptions

2006-02-05 Thread RobJellinghaus
As Gavin already said: [EMAIL PROTECTED] wrote : For now, just write a Seam interceptor. :-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3921744#3921744 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3921744

[JBoss-user] [JBoss Seam] - Re: Ending a conversation and begining another at the same t

2006-02-05 Thread RobJellinghaus
I'm in exactly the same situation -- I want a search list that's conversationless-ly populated the first time the user hits the main list page, and that then lets you start edit/etc. conversations via action links. It's as if the noejb example always gave you a list of hotels the minute you

[JBoss-user] [JBoss Seam] - Re: Ending a conversation and begining another at the same t

2006-02-05 Thread RobJellinghaus
Jeez, and here I am converting the noejb/booking sample INTO a blog sample! :-\ Are there any current samples that show how to use RESTful request parameters? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3921772#3921772 Reply to the post :

[JBoss-user] [JBoss Seam] - Re: Is seam compatible with Oracle ADF?

2006-02-04 Thread RobJellinghaus
My main feedback is, man, that would be painful, to have to recreate all those files by copy-pasting them into a new directory tree. Why not include a .zip or .tar.gz of the entire example with all the files laid out properly (and all the ADF libs included etc.)? Huge bonus points if you can

[JBoss-user] [JBoss Seam] - Does Tomcat reload work w/noejb?

2006-02-04 Thread RobJellinghaus
When I try it (with ant -f build.tomcat.xml redeploy), I get the stupid Tomcat ThreadDeath, and then I get: [ContainerBackgroundProcessor[StandardEngine[Catalina]]] 2006-02-04 12:32:27,968 INFO HostConfig:982 - Undeploying context [/tomcat-seam-noejb] |

[JBoss-user] [JBoss Seam] - Re: Does Tomcat reload work w/noejb?

2006-02-04 Thread RobJellinghaus
p.s. No, this is not absolute latest CVS. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3921681#3921681 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3921681 --- This

[JBoss-user] [JBoss Seam] - Re: Can I really not get the size of a list in JSF?!

2006-01-27 Thread RobJellinghaus
I went ahead and added ListDataModel.getSize() and it works like a champ: public int getSize () |{ | return ((List)getWrappedData()).size(); |} Now I can do #{blogPosts.size} as I originally wanted. How about it, Gavin? Post-beta-2 is fine with me, I'm not putting this

[JBoss-user] [JBoss Seam] - Re: Can I really not get the size of a list in JSF?!

2006-01-27 Thread RobJellinghaus
:-P Should have seen that one myself. Oh well, at least it was educational View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3920140#3920140 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3920140

[JBoss-user] [JBoss Seam] - Can I really not get the size of a list in JSF?!

2006-01-26 Thread RobJellinghaus
So I'm mucking with the noejb example (which is basically the booking application). I've changed it from a list of hotels to a list of blog posts (yes, another blogging system, just what the world needs, I know, I know). And I tried to make this change to pages.xml: page

[JBoss-user] [JBoss Seam] - Re: Managed-Beans - SLSB

2006-01-24 Thread RobJellinghaus
Gavin, can you give an example of some code using @Roles? Or is there a JIRA for this? Thanks! Cheers, Rob View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3919482#3919482 Reply to the post :

[JBoss-user] [JBoss Seam] - Re: Handling StaleObjectStateException?

2006-01-24 Thread RobJellinghaus
This is actually not really a Seam question, it's a question about optimistic concurrency in Hibernate. In some sense, once you've gotten a StaleObjectStateException, it's too late. You have to throw out your whole Hibernate session, which is tough to do in general. Here's a thread from the

[JBoss-user] [JBoss Seam] - Re: Why does ChangePasswordTest expect outcome==null?

2006-01-21 Thread RobJellinghaus
Dammit, you beat me. Yes, I tweaked the test to change the password min validation length, and it broke these tests. Hooray for tests! Boo for slow-on-the-draw newbies! Hooray for blazingly quick Gavin response times! So I guess overall, it's a hooray situation Cheers! Rob View the

[JBoss-user] [JBoss Seam] - Re: Trouble running TestNG SEAM tests using microcontainer i

2006-01-20 Thread RobJellinghaus
Well, looks like they moved this thread out of the microcontainer forum after all. In any case, I did get this working eventually -- required many iterations of IDEA project configuration. Basically, ant testexample populates the build/test directory, which TestNG is fairly particular about.

[JBoss-user] [JBoss Seam] - Re: Running noejb

2006-01-20 Thread RobJellinghaus
I did get this working eventually -- required many iterations of IDEA project configuration. Basically, ant testexample populates the build/test directory, which TestNG is fairly particular about. So you need to have build/test as your test output directory, and you need to NOT exclude output

[JBoss-user] [JBoss Seam] - Why does ChangePasswordTest expect outcome==null?

2006-01-20 Thread RobJellinghaus
I have a copy of the noejb example that I am modifying. I've modified it only to change package names. But my ChangePasswordTest is failing. ChangePasswordTest has this code. The failure is on the assert outcome==null; line. new Script() { | | ChangePasswordAction

[JBoss-user] [JBoss Seam] - Re: Running noejb

2006-01-15 Thread RobJellinghaus
Well, I've decided to set up an IDEA TestNG project running directly out of CVS source, on the theory that that's reproducible by you all. Here's the latest, from the microcontainer thread: http://jboss.org/index.html?module=bbop=viewtopicp=3917522#3917522 Strange that I now get different

[JBoss-user] [JBoss Seam] - Re: Running noejb

2006-01-10 Thread RobJellinghaus
OK, it turned out to be a build misconfiguration in IDEA. Now the plugin comes up and *starts* to run the test. But then it blows up. I'm going to do the horrid paste-the-mondo-stacktrace thing, knowing that Gavin will probably spend the least time diagnosing this if he has the biggest

[JBoss-user] [JBoss Seam] - Re: NoEJB example: log.info not visible

2006-01-10 Thread RobJellinghaus
Well, not wanting to litter your nice source tree with my random broken log4j.properties, I instead inserted these lines between lines 113 and 114 of current CVS's build.tomcat.xml: fileset dir=../../microcontainer/conf | include name=log4j.xml/ | /fileset

[JBoss-user] [Microcontainer] - Trouble running TestNG SEAM tests using microcontainer in ID

2006-01-10 Thread RobJellinghaus
I am working with Seam, in its microcontainer-under-Tomcat configuration. I'm using the latest CVS version of Seam. I am able to get the noejb example (which uses the JBoss microcontainer under Tomcat) to work fine with ant, both the TestNG tests (ant testexample) and the deployment under

[JBoss-user] [JBoss Seam] - Re: Running noejb

2006-01-10 Thread RobJellinghaus
Done: http://jboss.org/index.html?module=bbop=viewtopict=74754 Here's hoping they're anywhere near as responsive as you ;-) Cheers! Rob View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3916818#3916818 Reply to the post :

[JBoss-user] [JBoss Seam] - Re: NoEJB example: log.info not visible

2006-01-10 Thread RobJellinghaus
The tomcat build seems pretty good. What problems do you mean? Anything in the tomcat realm (where I'm living), or is it all jboss related? Anything others can help with? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3916819#3916819 Reply to the post :

[JBoss-user] [JBoss Seam] - Running noejb ant testexample under IDEA TestNG plugin?

2006-01-08 Thread RobJellinghaus
I'm taking the noejb example and I'm using it as a starting point for a sample app of my own. In doing this I've taken the classes and renamed them, and done a few other minor modifications. The original code passes ant testexample cleanly. Now my repackaged example is failing ant

[JBoss-user] [JBoss Seam] - Re: New stuff in CVS

2006-01-04 Thread RobJellinghaus
How much work would it be to make all the samples run outside JBoss? i.e. create noejb versions of the dvdstore, issuetracker, etc.? Also, what's the process for submitting patches? JIRA? Cheers! Rob View the original post :

[JBoss-user] [JBoss Seam] - Re: Feedback requested

2005-12-30 Thread RobJellinghaus
Great, thanks, no more questions. (on this thread, anyway ;-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3914975#3914975 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3914975

[JBoss-user] [JBoss Seam] - Re: Feedback requested

2005-12-29 Thread RobJellinghaus
[EMAIL PROTECTED] wrote : anonymous wrote : First, it looks like the transition object is only @In, not @In @Out. But it's pretty clear that myActionListener is trying to communicate some state outwards to the conversation. So why not @Out also? Or is @Out only for cases where new contextual

[JBoss-user] [JBoss Seam] - Re: Feedback requested

2005-12-29 Thread RobJellinghaus
[EMAIL PROTECTED] wrote : The difference with @In @Out is that you are able to modify the value of the variable itself. ie. change the reference. With @In alone, you can only change the state of the referent. This is very clear and makes sense. I see where LoginAction.login() does this on a

[JBoss-user] [JBoss Seam] - Re: Running noejb tests w/o JBoss?

2005-12-28 Thread RobJellinghaus
Yes, I know, I was just trying the toplevel tests as a sanity check (to avoid any issues of the multiple build.xml files). examples / noejb / ant testexample works great now :-) I must say it's a pleasure being back on a forum that's got a timely Gavin on it! I was on the Hibernate forums in

[JBoss-user] [JBoss Seam] - NoEJB example: log.info not visible

2005-12-28 Thread RobJellinghaus
When I run the noejb example in Tomcat 5.5, the log.info statements in Seam itself and in the noejb example code do not appear in the Tomcat log (at least, not the log that I see in the standard Catalina window). Any tips on getting Seam logging to show up in a Tomcat/noejb deployment? This

[JBoss-user] [JBoss Seam] - Re: Feedback requested

2005-12-28 Thread RobJellinghaus
Hm. The second version confuses me in two ways. First, you have this: @In Transition transition; | | @EndTask | public String myActionListener() { |transition.setName(approved); |return success; | } First, it looks like the transition object is only @In, not @In @Out. But

[JBoss-user] [JBoss Seam] - Re: Running noejb tests w/o JBoss?

2005-12-27 Thread RobJellinghaus
Looks like it was a stale Ant version -- 1.6.0 apparently doesn't recognize the existence of Java 1.5 :-) But then I get this: [testng] FAILED: org.jboss.seam.test.PhaseListenerTest.testSeamPhaseListenerNewLongRunning() |[testng] java.lang.NullPointerException |[testng] at

[JBoss-user] [JBoss Seam] - Re: CVS Noob question

2005-12-26 Thread RobJellinghaus
I was indeed able to get it from CVS using the instructions from http://www.jboss.com/index.html?module=bbop=viewtopict=70051: Thomas Heute wrote : cvs -d :pserver:[EMAIL PROTECTED]:/cvsroot/jboss co jboss-seamanonymous wrote : | | It built and deployed on Tomcat absolutely perfectly.

[JBoss-user] [JBoss Seam] - Re: CVS Noob question

2005-12-26 Thread RobJellinghaus
Sorry, garbled my close quote tag above. Wish we could edit posts in this forum View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3914354#3914354 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3914354

[JBoss-user] [JBoss Seam] - Running noejb tests w/o JBoss?

2005-12-26 Thread RobJellinghaus
So I got SEAM from CVS (the jboss-seam module; Gavin said he uses jboss-seam-head but I'm assuming there's no meaningful difference). I built it and ran the noejb example under Tomcat absolutely the very first time I tried it. Woohoo! Nice one, Gavin et al.! Now I'm trying to run the TestNG

[JBoss-user] [JBoss Seam] - Re: Checkout jboss seam from cvs

2005-12-23 Thread RobJellinghaus
Fixed it. Should have EMPTY password rather than no password at all. Too bad you can't edit or delete posts here ;-) Cheers! Rob View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3914125#3914125 Reply to the post :

[JBoss-user] [JBoss Seam] - Re: Checkout jboss seam from cvs

2005-12-23 Thread RobJellinghaus
Apologies for my ignorance... I am trying to use jCVS II 1.4.2 to pull down the current CVS. I am using Checkout, with the following settings: PServer User Name: anonymous no password CVS Module: jboss-seam CVS Server: anoncvs.forge.jboss.com CVS Repository: /cvsroot/jboss Checkout Directory:

[JBoss-user] [JBoss Seam] - Re: CVS Noob question

2005-12-22 Thread RobJellinghaus
Am I reading correctly that the SEAM build requires you to have CVS pserver access? In other words, we can't just download the CVS and then run ant to build seam.jar? I'm interested in using SEAM in Tomcat (I want to build an app to deploy on a Java hosting ISP that supports Tomcat but not