The generation is handle by hibernate so I think it is unwise to hack
it. 

Most likely I think I will create the actionForm manually, maybe using
the setter/getter generation provided by eclipse. Look like it seem a
little difficult to use xdoclet in this case.

Thanks all.

sebastian


On Fri, 2004-08-13 at 15:01, Andrew Stevens wrote:
> On Fri, 2004-08-13 at 02:50, Sebastian Ho wrote:
> > Hi
> > 
> > Adding to this discussion. Lets say my hibernate POJO are generated
> > (without any xdoclet tags). Any easy way for me to generate Struts
> > ActionForm from them using xdoclet? Editing hundreds of hibernate POJO
> > to add in xdoclet tags is stupid..
> 
> But necessary.  You can generate multiple ActionForms for any particular
> class, each containing a different selection of the fields.  How could
> XDoclet do that without any tags to tell it how may forms to generate
> and which fields to include on each one?  Plus, now that the subtask can
> handle any Java class, how would it know which ones should and shouldn't
> be processed without some marker tag in there to tell it?
> 
> You say your POJOs are generated - why not just customise that
> generation to include the necessary tags?
> 
> 
> Andrew.
> 
> > 
> > Thanks
> > 
> > 
> > Sebastian
> > 
> > 
> > On Fri, 2004-08-13 at 02:51, Matt Raible wrote:
> > > They need to be in a merge directory in a global-forwards.xml file.  For 
> > > example:
> > > 
> > >     <global-forwards>
> > >         <forward name="mainMenu" path="/mainMenu.html"/>
> > >     </global-forwards>
> > > 
> > > If you want to check out a project that uses XDoclet for a lot of Struts 
> > > code generation (including ActionForms from Hibernate POJOs), check out 
> > > AppFuse (http://appfuse.dev.java.net).
> > > 
> > > Matt
> > > 
> > > Laran Evans wrote:
> > > 
> > > > How does XDoclet handle global-forwards in struts-config.xml.
> > > >
> > > > Is there example code around that I can just look at?
> > > >
> > > > Rupp, Heiko wrote:
> > > >
> > > >>I would say, docu is wrong here, as in the samples
> > > >>there are some that use the struts tags in servlets.
> > > >>Can you please raise an issue in JIRA about this
> > > >>http://opensource.atlassian.com/projects/xdoclet/secure/Dashboard.jspa ?
> > > >>
> > > >>
> > > >>  
> > > >>
> > > >>>-----Original Message-----
> > > >>>From: [EMAIL PROTECTED] 
> > > >>>[mailto:[EMAIL PROTECTED] On Behalf Of 
> > > >>>Laran Evans
> > > >>>Sent: Thursday, August 12, 2004 3:17 PM
> > > >>>To: [EMAIL PROTECTED]
> > > >>>Subject: [Xdoclet-user] Struts Forms
> > > >>>
> > > >>>I have a struts ActionForm which I would like to markup with 
> > > >>>xdoclet tags.
> > > >>>
> > > >>>The documentation for @struts.form however says "Applies to: 
> > > >>>Entity beans".  Does this mean that the only ActionForm 
> > > >>>implementations xdoclet supports are implemented as EJBs?
> > > >>>
> > > >>>Is it reasonable for me to think that I'll be able to generate 
> > > >>>my entire struts-config.xml file via xdoclet?  I would think 
> > > >>>so.  Or am I going to have to define things like my non-EJB 
> > > >>>ActionForm subclasses, global-forwards, controller and 
> > > >>>message-resources in struts-config.xml and have xdoclet add the rest?
> > > >>>
> > > >>>TIA
> > > >>>
> > > >>>
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> 



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to