[jboss-user] [JBoss Seam] - Re: EntityHome persist problem

2007-02-16 Thread codelion
Pete, To get the problem I saw you need to do this as I got to do when I started from a seam-generated project a couple weeks ago (things changed in seam-gen since, I think now there is join instead of begin): >From a list view (with query) go to create new entity page with a propagation >begi

[jboss-user] [JBoss Seam] - SeamRemotingServlet gone since JBSEAM-790, doc doesn't tell

2007-02-16 Thread codelion
Building from CVS... Reference documentation chapter on remoting still tells to use SeamRemotingServlet. I get class not found, obviously. Removed it from web.xml, but then remoting doesn't work. Now trying to keep up with the changes from JBSEAM-790, looking at configuration chapter. Point

[jboss-user] [JBoss Seam] - Re: EntityHome persist problem

2007-02-16 Thread codelion
While I didn't look close enough to determine whether there are other problems, from my own experience I know sooner or later you could run into a problem with that factory being invoked only once in a conversation, and hence your factory made instance not being the same as the one home uses. H

[jboss-user] [JBoss Seam] - Re: anyone success with seam-gen war to portal ?

2007-02-14 Thread codelion
Jarkko, You have mentioned in a past posting you got it to work. Can you share a working project? If your project is confidential, I'd suggest make a super simple table, e.g. (Oracle example) CREATE TABLE THINGS | ( |ID VARCHAR(30) PRIMARY KEY not null, |TITLE VARCHAR(100) not n

[jboss-user] [JBoss Seam] - anyone success with seam-gen war to portal ?

2007-02-13 Thread codelion
Can't get it to work. Anyone success running any Seam (xhtml, not jsp) in a portal? In the end supposed to run in Liferay, but even success in JBoss Portal would be nice. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015895#4015895 Reply to the post : ht

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

2007-02-07 Thread codelion
That implies currently there isn't a "simple" way to "end all nested conversations without keeping them around", i.e. not at the level above Java coding. Or is there? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012388#4012388 Reply to the post : http://

[jboss-user] [JBoss Seam] - propagation

2007-02-07 Thread codelion
Seam reference 6.1 reads "Note that disabling conversation context propagation is absolutely not the same thing as ending the conversation." Thought I had figured the difference, but as something behaves funny, I thought maybe someone who knows could answer the question in positive terms: What

[jboss-user] [JBoss Seam] - Re: building Seam works better after a set ANT_OPTS=-Xmx400m

2007-02-06 Thread codelion
Problem solved much better with in jboss-seam/doc/reference/build.xml in every http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012072#4012072 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012072 ___

[jboss-user] [JBoss Seam] - Re: better editor for .xhtml in JBoss IDE - element wrapping

2007-02-05 Thread codelion
These are .xhtml files, and JTidy doesn't show up for them as an option. It does show up as an option for .xml files though. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4011494#4011494 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posti

[jboss-user] [JBoss Seam] - Re: request parameter gets ignored sometimes

2007-02-04 Thread codelion
I only got the idea to do it that way because of shorter syntax promised in seam_reference, in chapter 10.2 Home objects, "adding a @Factory". If I think of what a factory normally does, how contexts normally work, etc. then of course it seems I should stick with carHome.instance. Now, having f

[jboss-user] [JBoss Seam] - Re: request parameter gets ignored sometimes

2007-02-04 Thread codelion
Problem pinpointed better. Now, is that a feature or a bug? The problem is after the second time in the same conversation coming in with when having @Factory("car") | public Car initCar() { | return getInstance(); | } then when that second time coming in with a different id then carH

[jboss-user] [JBoss Seam] - request parameter gets ignored sometimes

2007-02-03 Thread codelion
Starting out from seam-gen. Let's say we have three kinds of entities, Car, Boat and Plane. We only need Car to illustrate. There is a page each like CarList.xhtml, Car.xhtml, CarEdit.xhtml and their CarList.page.xml, Car.page.xml, CarEdit.page.xml. It all works fine with the generated code.

[jboss-user] [JBoss Seam] - Re: better editor for .xhtml in JBoss IDE - element wrapping

2007-02-03 Thread codelion
Let's say I wrote | | | | | | | | | | | | | | | | | | With Eclipse | Window | Preferences | Web and XML | XML Files | XML Source I have settings: OFF Clear all blank lines. Same for HTML Files | HTM

[jboss-user] [JBoss Seam] - Re: How to upgrade project from using 1.1.0 to 1.1.5

2007-02-02 Thread codelion
Just to clarify above post, I do both new-project and generate-entities for the old and the new version of Seam, then compare old and new version. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010310#4010310 Reply to the post : http://www.jboss.com/index.ht

[jboss-user] [JBoss Seam] - Re: How to upgrade project from using 1.1.0 to 1.1.5

2007-02-02 Thread codelion
I take the same database, seam-gen both versions, then diff the output directories. That is seam new-project and seam generate-entities. I actually keep around a couple of old copies of that output (i.e. directories), named uniquely. I'm using DiffDog, which is nice because of how it is smart

[jboss-user] [JBoss Seam] - better editor for .xhtml in JBoss IDE - element wrapping

2007-02-02 Thread codelion
Sound like off-topic, but what we're trying to do it to be very Seam centric, and so using JBoss IDE is the natural choice, and you know we're using XHTML, and regrettably ... the formatting of XHTML in JBoss IDE (Eclipse) with Shift-Ctrl-F is (looks) horrible. Most annoying: Elements startin

[jboss-user] [JBoss Seam] - page parameter converter for class ?

2007-02-02 Thread codelion
Is there a reason not to implement in package org.jboss.seam.pages class Param next to setConverterId(String converterId) another method setConverterForClass(Class targetClass) plus supporting code. Goal is http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010166#4010166 Reply to the po

[jboss-user] [JBoss Seam] - patches with all lines replaced

2007-02-01 Thread codelion
As I see from JBSEAM-758 I'm not the only one struggling with making a patch that only shows the lines that actually have changed. Can't readily tell from looking at that patch what has changed. Took me a while a couple of weeks ago to get a patch "right" myself. I'd be submitting more patches

[jboss-user] [JBoss Seam] - seam-gen puts both antlr-2.7.6.jar and antlr-3.0ea8.jar

2007-02-01 Thread codelion
Both antlr .jar are coming from drools\lib, I guess. Is that intentional, or is that an oversight, which one should be it? Afraid those two versions might conflict. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009706#4009706 Reply to the post : http://www

[jboss-user] [JBoss Seam] - seam-gen vs. reference doc re Home setId()

2007-01-31 Thread codelion
seam-gen with generate-entities keeps generating methods like setSomethingId() and getSomethingId() in public class SomethingHome extends EntityHome { | | public void setSomethingId(String id) { | setId(id); | } | | public String getSomethingId() { |

[jboss-user] [JBoss Seam] - Re: building Seam works better after a set ANT_OPTS=-Xmx400m

2007-01-31 Thread codelion
The problem hasn't gone away yet. Seems that in target "refdoc" that ant task to build the subproject doesn't use ANT_OPTS, or at least not -Xmx or -Xms. Still getting apparently random success or failure at getting a good seam_reference.pdf, almost but not exactly tied to an out of memory erro

[jboss-user] [JBoss Seam] - building Seam works better after a set ANT_OPTS=-Xmx500m

2007-01-30 Thread codelion
Make that set ANT_OPTS=-Xmx500m or more. I watched memory use today, and while Ant makes the seam_reference.pdf the memory use is way up. 400 meg wasn't enough after I wrote the previous post. What's heinous about it is that if you don't notice it there isn't a complaint at the end of the buil

[jboss-user] [JBoss Seam] - Re: documenting Configuring Seam in a Portal

2007-01-29 Thread codelion
Discovered too many problems with portal and facelets, i.e. using JSF instead of JSP like in the example. My mode: Trying to take code from seam-gen (new-project and generate-entities), see it run as application, then modifying it to run at least one view page in a portlet. I get something.ht

[jboss-user] [JBoss Seam] - building Seam works better after a set ANT_OPTS=-Xmx400m

2007-01-26 Thread codelion
When building Seam from sources, that works better after a set ANT_OPTS=-Xmx400m I found that out today. Without it, the symptom was a defective seam_reference.pdf. The build still said it completed successfully, but the PDF generation was the first part of the build process to fail under memo

[jboss-user] [JBoss Seam] - Re: JBoss 4.0.5.GA: java.lang.NullPointerException: serialF

2007-01-25 Thread codelion
Then you put the name of your subclass into portlet.xml into element portlet-class. Obviously, also make sure the compiled class is in your application. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006534#4006534 Reply to the post : http://www.jboss.com/

[jboss-user] [JBoss Seam] - documenting Configuring Seam in a Portal

2007-01-25 Thread codelion
Seam reference 13.8 "Configuring Seam in a Portal" should: mention TransactionalSeamPortletPhaseListener instead of SeamExtendedManagedPersistencePortletPhaseListener. Also, maybe it should mention not to use org.apache.myfaces.webapp.StartupServletContextListener. Also, maybe it should give m

[jboss-user] [JBoss Seam] - couldn't run seam generate-entities twice, found workaround

2007-01-24 Thread codelion
Ran seam generate-entities a couple of weeks ago. Wanted to know what has changed in Seam, wanted to run seam generate-entities a second time and then diff the directories. Problem: At seam-gen/view/list.xhtml.ftl line 30 there was an undefined property.value.typeName. But the real reason th

[jboss-user] [JBoss Seam] - concurrent conversations changing same data

2007-01-23 Thread codelion
Would like to know what the defined / expected behavior is. Have many real examples, but here is a simplistic one for illustration. I want to know what the default behavior is. What is considered "normal". Sure, workarounds are nice to know, but what is the "intended" way? User U1 enters onl

[jboss-user] [JBoss Seam] - Re: org.jboss.seam.framework Query too case sensitive

2007-01-23 Thread codelion
Had no luck with diff against CVS with Eclipse on Windows, neither with TortoiseCVS. Probably a line-feed on platform problem. Then tried WinCVS. Is this a good format? RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/framework/Query.java,v | retrieving revision 1.14 | diff -u

[jboss-user] [JBoss Seam] - Re: org.jboss.seam.framework Query too case sensitive

2007-01-18 Thread codelion
Here is my code. I'll try again with CVS, I've figured out anonymous CVS for Seam, I've figured out you want JIRA to submit diff, but both with TortoiseCVS and with Eclipse (to a Windows machine) I'm getting double line breaks, so my diff is wrong. I try again in a couple of days. Meanwhile s

[jboss-user] [JBoss Seam] - org.jboss.seam.framework Query too case sensitive

2007-01-16 Thread codelion
Method getCountEjbql() could use an intermediate variable String ejbqlLowerCase = ejbql.toLowerCase() and use that ejbqlLowerCase for the two indexOf calls. That lower case I'm sure about. Further, it might be better to have extra spaces to make that an indexOf(" order ") to avoid mistaking ord

[jboss-user] [JBoss Seam] - extending EntityQuery by override or by constructor ?

2007-01-16 Thread codelion
I've seen both kind of code: public class PotatoQuery extends EntityQuery { | | public PotatoQuery() { | setEjbql("SELECT potato FROM Potato potato"); | } as well as @Override | public String getEjbql() { | return "SELECT potato FROM Potato potato"; | } Are both equally valid

[jboss-user] [JBoss Seam] - Re: simulate a multi-page transaction or not ?

2007-01-12 Thread codelion
Seems the right way to do this instead is in seam_reference.pdf (I'm using CVS 20070111) section 6.8. Seam-managed persistence contexts and atomic conversations. Don't forget to read section 13.4. Seam managed transactions. Does this mean Yuan & Heute's section 9.4 "Simulate a Multi-page Transa

[jboss-user] [JBoss Seam] - simulate a multi-page transaction or not ?

2007-01-12 Thread codelion
In Yuan & Heute's book version 12/6/2006 in section 9.4 "Simulate a Multi-page Transaction" ... method confirm() is annotated @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) and contains a call em.flush(). Per javax.persistence.EntityManager though for method flush() it @throws

[jboss-user] [JBoss Seam] - seam-gen problems and solutions

2007-01-04 Thread codelion
Several suggestions listed below. Using jboss-seam-CVS.20070102.zip, jems-installer-1.2.0.CR1.jar and JBossIDE-2.0.0.Beta2-Bundle-win32.zip. Following seam_reference.pdf Chapter 2. Getting started with Seam using seam-gen. In 2.1 it says "add your JBoss installation to the JBoss Server View".

[jboss-user] [JBoss Seam] - home object should define createInstance, not getNewInstance

2006-11-09 Thread codelion
Documentation (seam_reference.pdf) in jboss-seam-CVS.20061105 in section 12.2 incorrectly says to define getNewInstance( when instead it should be to define createInstance( View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984789#3984789 Reply to the post :

[jboss-user] [JBoss Seam] - exceptions.xml broken http-error

2006-11-09 Thread codelion
In jboss-seam-CVS.20061105 in package org.jboss.seam.core in class Exceptions on line 172 final int code = Integer.parseInt( error.attributeValue("view-id") ); causes java.lang.NumberFormatException: null because (I assume) after Element error = exception.element("http-error"); it intstead s

[jboss-user] [JBoss Seam] - Fisheye for Seam down until when ?

2006-10-31 Thread codelion
Was using Fisheye for Seam (mostly its RSS feed) to keep track of what was changing in CVS releases. Being "educated" I was fetching releases about twice a week. That RSS feed (from Fisheye for Seam) hasn't been working since Oct 23rd, so I don't know any more what has been changed. Changelog

[jboss-user] [JBoss Seam] - one method ending conversation or not

2006-10-11 Thread codelion
Let's say I have an action method @End | public String submit() { | } and let's say there is logic in it by which normally I am done with the conversation, but in one case I want to stay in the conversation (e.g. go back to a page to fix up information) and traditional validation can't catc

[jboss-user] [JBoss Seam] - Re: no application context with latest seam version

2006-10-11 Thread codelion
The warning is not to use the Tomahawk extension of MyFaces? Right? It is ok to use MyFaces? Right? We actually are using MyFaces 1.1.4. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977682#3977682 Reply to the post : http://www.jboss.com/index.html?mod

[jboss-user] [JBoss Seam] - booking LoggedInInterceptor logic

2006-10-04 Thread codelion
Would be nice if the source code of package org.jboss.seam.example.booking class LoggedInInterceptor would have a comment or another explaining it, specifically if not in INVOKE_APPLICATION. Why invoke if not void, but not with proceed()? Then one can decide better: Is this generally applicabl

[jboss-user] [JBoss Seam] - Re: ui:param value= # problem with s:link

2006-10-03 Thread codelion
Oops, that meant using xmlns:ui="http://java.sun.com/jsf/facelets"; View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975864#3975864 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975864 ___

[jboss-user] [JBoss Seam] - ui:param value="#{..." works with h:commandButton not with s

2006-10-03 Thread codelion
I can give more details, but for now my analysis is this: In a set of .xhtml files, using http://www.jboss.com/wiki/Wiki.jsp?page=JBossSeam I have in on .xhtml a and in another .xhtml in the (hence included) http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975863#3975863 Reply to

<    1   2