Thanks for all your help so far.

Not sure if you might have mis-understood what I was asking or not so
I'll rephrase...

Is there a way to define the @struts.validator tags of the setter
methods of the EJB and have them parsed into the generated Struts form?
If these get parsed from the EJB, then it's a simple matter of running
the webdoclet task on them to genererate the struts-validation.xml
file.

If the answer is still to use your custom template, that seems like a
fine way to go. Can you provide a little direction on how I would go
about this (files needed, ant task definition, etc)? I've read an
article from JavaPro (
http://www.ftponline.com/javapro/2003_07/online/ehatcher_07_25_03/page2.aspx
) that talks about this briefly, but not sure how much of it applies.
It seems fairly easy to do (and something I can look into for other
things), but have never had to do it yet.

I'll add a bug for the validator stuff if you'd like.

Thanks, I really appreciate the help you've been giving me. It's been
relieving a lot of headaches and letting me focus more on getting the
architecture & framework laid out and writting the core code.

-={ Kyle }=-

--- Matt Raible <[EMAIL PROTECTED]> wrote:
> The default template for XDoclet doesn't include generation 
> validation.xml most likely.  You can use my customized template from 
> AppFuse if you like.  I should probably add the validator stuff -
> it's 
> a nice addition.  If you enter a bug for it, I'll try and add it in 
> short order.
> 
> http://tinyurl.com/2dt47
> 
> Matt
> 
> On Jun 25, 2004, at 8:27 AM, Kyle Korndoerfer wrote:
> 
> > Thanks... I hand't seen that option (or really understood what it
> was
> > used for).
> >
> > I had tried it on individual methods using @struts.form-field, but
> that
> > wasn't working (like you thought).
> >
> > The only other question left is this: In the generated file, how do
> I
> > get the struts validation tags to show up for each method so that
> when
> > webdoclet parses the files, it'll automatically build the
> > struts-validation.xml file? I've tried putting the
> @struts.validator
> > tag on a setter method, but that didn't change anything.
> >
> > Could this be something that hasn't been implemented yet or
> something
> > that isn't working yet (like the form-field tag)?
> >
> > -={ Kyle }=-
> >
> >
> > --- Matt Raible <[EMAIL PROTECTED]> wrote:
> >> You need to add an @struts.form include-all="true" at the top of
> your
> >>
> >> class.  You should be able to do it individual methods (using
> >> @struts.form-field), but I've never done it that way - and I've
> heard
> >>
> >> from folks that its broken.  If you enter a bug for it, I'll try
> to
> >> fix
> >> it.
> >>
> >> http://xdoclet.sourceforge.net/xdoclet/tags/apache-
> >> [EMAIL PROTECTED]
> >>
> >> Matt
> >>
> >>
> >> On Jun 24, 2004, at 10:00 AM, Kyle Korndoerfer wrote:
> >>
> >>> I've just recently started using XDoclet with a new project
> (Struts
> >> &
> >>> J2EE) and hadn't realized that there was an xdoclet task under
> >>> ejbdoclet that generated Struts forms from the EJB's (StrutsForm)
> >> until
> >>> a recent question on this list. This is very handy, but I have a
> >> small
> >>> question (I'm just missing something simple I guess).
> >>>
> >>> When using the StrutsForm sub-task, the Struts form is created
> from
> >> my
> >>> EJB, but there aren't any methods in it other than the default
> >>> constructor? How do I tag the fields so that the Struts form is
> >> fully
> >>> generated (the get/set methods are generated)?
> >>>
> >>> The lack of examples in the XDoclet documentation is not helping
> me
> >> out
> >>> much. Thanks for any help you can provide.
> >>>
> >>> -={ Kyle }=-
> >>>
> >>>
> >>>   
> >>>           
> >>> __________________________________
> >>> Do you Yahoo!?
> >>> New and Improved Yahoo! Mail - 100MB free storage!
> >>> http://promotions.yahoo.com/new_mail
> >>>
> >>>
> >>> -------------------------------------------------------
> >>> This SF.Net email sponsored by Black Hat Briefings & Training.
> >>> Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
> >>> digital self defense, top technical experts, no vendor pitches,
> >>> unmatched networking opportunities. Visit www.blackhat.com
> >>> _______________________________________________
> >>> xdoclet-user mailing list
> >>> [EMAIL PROTECTED]
> >>> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> >>
> >>
> >>
> >> -------------------------------------------------------
> >> This SF.Net email sponsored by Black Hat Briefings & Training.
> >> Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
> >> digital self defense, top technical experts, no vendor pitches,
> >> unmatched networking opportunities. Visit www.blackhat.com
> >> _______________________________________________
> >> xdoclet-user mailing list
> >> [EMAIL PROTECTED]
> >> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> >>
> >
> >
> >
> >     
> >             
> > __________________________________
> > Do you Yahoo!?
> > New and Improved Yahoo! Mail - 100MB free storage!
> > http://promotions.yahoo.com/new_mail
> >
> >
> > -------------------------------------------------------
> > This SF.Net email sponsored by Black Hat Briefings & Training.
> > Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
> > digital self defense, top technical experts, no vendor pitches,
> > unmatched networking opportunities. Visit www.blackhat.com
> > _______________________________________________
> > xdoclet-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
> digital self defense, top technical experts, no vendor pitches, 
> unmatched networking opportunities. Visit www.blackhat.com
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> 



                
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to