RE: [Xdoclet-user] local-jndi-name

2002-02-08 Thread Vincent Harcq
Jboss 3.0 dtd is not perfect today, you should bypass xml validation for the moment > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] On Behalf > Of Steve Knight > Sent: vendredi 8 février 2002 21:49 > To: [EMAIL PROTECTED] > Subject: [Xdoclet-user] local-jndi-

Re: [Xdoclet-user] Forward in a Struts action

2002-02-08 Thread Dmitri Colebatch
I agree, it completely breaks MVC. But what it does do is allow you to be lazy, without binding model and view. I would see that when a project is finished, it is given to the deployer/admin, who manually changes struts-config by hand as required. cheers dim - Original Message - From:

Re: [Xdoclet-user] local-jndi-name

2002-02-08 Thread Dmitri Colebatch
Hi, I've tried a couple of times to resolve this, both on the JBoss forums (http://main.jboss.org/thread.jsp?forum=61&thread=5227) and on the jboss dev list (http://www.mail-archive.com/jboss-development@lists.sourceforge.net/msg1773 2.html) but haven't been able to get a response. >From what I

RE: [Xdoclet-user] Problem when there are no xdoclet tags

2002-02-08 Thread Ara Abrahamian
Jason, I'm a bit puzzled. I look at our code and seems like xdoclet can't guess the subtask type. Will you please send me class tags and class definitions of your project? I assume you have some abstract classes which derive from EntityBean/SessionBean but are not intended to be concrete beans bu

[Xdoclet-user] local-jndi-name

2002-02-08 Thread Steve Knight
Does jboss.xml support the local-jndi-name tag? Cause when I generate my cmp beans using xdoclet, I get the following error: [ejbdoclet] Running [ejbdoclet] Generating jboss.xml. [ejbdoclet] Running XDoclet failed. [ejbdoclet] javadoc: In doclet class xdoclet.DocletTask$DocletMain, method st

Re: [Xdoclet-user] Data object template

2002-02-08 Thread Hani Suleiman
Here's what I did to fix it (in entity-body.j) I moved the if in getData into the try/catch block, and changed it to: if( dataHolder == null || ()!=dataHolder.() ) Hani Suleiman wrote: > There's a problem with this for application s

RE: [Xdoclet-user] Data object template

2002-02-08 Thread Vincent Harcq
When an instance is reused ejbLoad is get called and (on last version of xdoclet) ejbLoad will set the dataHolder to null. On instances reused for finders/home methods I agree you can come and have a dataHolder already set but you should not use its value anyway. If on your appserver a instance is

[Xdoclet-user] Data object template

2002-02-08 Thread Hani Suleiman
There's a problem with this for application servers that use pooling with regards to entity beans. Here is what happens: we have EntityCMP and EntityData. If you call home.findByPK(id), the appserver will create an entity object if it doesn't have one in its pool. then when you call getData on

[Xdoclet-user] Still having a problem with building samples - xDoclet 1.1.1

2002-02-08 Thread Russ Ferriday
I'm excited to make progress with xdoclet, but only have time to work on it in the background. This has been on the back-burner for a week... Are there any known issues with the samples? I tried building them on both Rh 7.2 and Win2k with no luck. When I run build.sh/bat in the script director

Re: [Xdoclet-user] Forward in a Struts action

2002-02-08 Thread Erik Hatcher
I'd just like to note that while it is very slick to generate a struts-config.xml file in this manner for development purposes, its really munging the MVC layers. Decoupling action classes from how they are forwarded to is an important concept. I think this use of XDoclet is good for rapid proto

RE: [Xdoclet-user] Problem when there are no xdoclet tags

2002-02-08 Thread Jason Carreira
Nope. Just CMP entity and SLSB. > -Original Message- > From: Ara Abrahamian [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 08, 2002 6:48 AM > To: Jason Carreira; 'Xdoclet-User (E-mail)' > Subject: RE: [Xdoclet-user] Problem when there are no xdoclet tags > > > AFAIK it shouldn't co

RE: [Xdoclet-user] Validation code for entity beans / data objects

2002-02-08 Thread Ara Abrahamian
IMHO you should put UI level checks in say Struts' action objects and put business rule validations in EJB. I don't think putting validation in dataobject is a good idea, dataobject is tier-less, used in both web and ejb tier where validation requirements are different. It's been discussed recent

AW: [Xdoclet-user] Validation code for entity beans / data objects

2002-02-08 Thread bwillner
I simply would like to include field validation code in my generated data objects and the question is how do I achieve it? Can I create a merge file per entity bean/data object and if so, how would I go about doing that? Thanks ! Bernie -Ursprungliche Nachricht- Von: Konstantin Pribloud

RE: [Xdoclet-user] Problem when there are no xdoclet tags

2002-02-08 Thread Ara Abrahamian
AFAIK it shouldn't complain. It's a bug. Do you have MDBs in your app? Ara. > -Original Message- > From: [EMAIL PROTECTED] [mailto:xdoclet-user- > [EMAIL PROTECTED]] On Behalf Of Jason Carreira > Sent: Friday, February 08, 2002 12:41 AM > To: Xdoclet-User (E-mail) > Subject: RE: [Xdoclet

RE: [Xdoclet-user] Validation code for entity beans / data objects

2002-02-08 Thread Shaw, Chris
For simple field level validation I am using XML Schemasaves duplication... (I am also using XSLT to generate my XDoclet beans directly from the XML Schema...works like a dreamfrom XML Schema through XDoclet and onto successful deployment just by typing "ant" !). But I am also interested

Re: [Xdoclet-user] Validation code for entity beans / data objects

2002-02-08 Thread Konstantin Priblouda
> I use XDoclet 1.1.1. to generate EJB 2.0 CMP entity > beans. I was wondering > where you folks suggest to put field validation > logic (preferably the > generated data objects?) and ideas on how I would go > about to have my > validation code included in the generated code. Can > I use a merge

[Xdoclet-user] Validation code for entity beans / data objects - anybody got a good idea ?

2002-02-08 Thread bwillner
> Hi there, > > I use XDoclet 1.1.1. to generate EJB 2.0 CMP entity beans. I was wondering > where you folks suggest to put field validation logic (preferably the > generated data objects?) and ideas on how I would go about to have my > validation code included in the generated code. Can I use a

Re: [Xdoclet-user] Forward in a Struts action

2002-02-08 Thread Dmitri Colebatch
try @struts:action-forward name="forwardName" path="forwardPath" cheers dim - Original Message - From: "Kjetil Paulsen" <[EMAIL PROTECTED]> To: "XDoclet (E-mail)" <[EMAIL PROTECTED]> Sent: Friday, February 08, 2002 7:00 PM Subject: [Xdoclet-user] Forward in a Struts action I can't fi