The struts_form.xdt file has been modified to support generating
validation.xml. This is in CVS.
Matt
On Aug 30, 2004, at 8:22 AM, Aleksandr Shneyderman wrote:
You have to do two step generation for this, since validation will only
be generated off of form object not the bean that generates your form;
you will also need Matt Raible's modifications of Xdoclet .xdt file to
propagate your validation tags to the generated form.
Search the archive on this list for more info if you need it
This topic had been discussed a month or two ago.
HTH,
Alex.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nevine
El-Saeed
Sent: Monday, August 30, 2004 10:08 AM
To: [EMAIL PROTECTED]
Subject: [Xdoclet-user] Strutsform
Hello all,
I use strutsform to generate the form file from an entity bean. I can't
seem however to do any validations on this form. My Bean file is as
follows:
//////////////////////////////////////////////////////////////////////
//
/
/**
*
* @ejb.bean name = "myBean"
*
* @struts.form name = "b"
* include-all = "true"
* extends = "org.apache.struts.validator.ValidatorForm"
*
*
*/
public abstract class MyEntityBean implements EntityBean {
/**
* @ejb.interface-method
* @ejb.persistent-field
* @ejb.persistence
* column-name= "name"
*/
abstract public float getName();
/**
*
* @ejb.interface-method
*
* @struts.form-field form-name = "myBeanbForm"
*
* @struts.validator type="required" msgkey="name.required"
*
*
*/
abstract public void setName(float changeValue);
}
//////////////////////////////////////////////////////////////////////
//
//
when I do that, the form isn't added in struts-config.xml file which is
expected but the validation isn't included in the validation.xml
either.. Suggestions anyone?
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user