On Jan 8, 2004, at 12:13 PM, Vincent wrote:
Imagine this scenario:


/** * @hibernate.property @struts.dynaform-field * */

This is on a POJO?


        public Boolean getApproved() {
            return approved;
        }

        public void setApproved(Boolean approved) {
            this.approved = approved;
        }


with this snippet I create a field in the database (via hibernate) and a matching property in my DynaForm. Since Dynas are only defined in the struts-config.xml there is no need to write an ActionForm.

But you were talking about using @struts.validator .... on your POJO?! I'm not getting a clear picture of what you are generating and from where. But, as you can see in XDoclet's code, only ValidatorForm and subclasses are currently processed with <strutsvalidationxml>.


Sounds like you are generating a form bean from your POJO also - so where is the "dyna" in that? I guess I'm still missing something.

Draw me a diagram... like:

POJO -> struts-config -> ....


I let ant/xdoclet build my project while I sip on hot cocoa.
Only sex is better than this to me.

Then please don't come near Tapestry.... or at least not near my computer please! :)


Erik



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to