I wan't talking about the JSP side but that sounds like a good nice idea too.
I usually decorate my date fields with the JQuery datepicker, this sounds like it may also be able to handle that so I don't have to add the Javascript to add a datepicker for every JSP page. I'll try out this idea too once I get the validation figured out. Thanks Daryl Nick Stuart wrote: > Are you talking about the JSP side of things? Someone replied on an idea > for taking care of the validation, but if you need to take care of the JSP > side take a look at using the 'partial' attribute in the form tags. You > can use this to form parts of forms that can be stuck together with out > everything being on the same JSP page. A key to this would also be using > the stripes layout takes to be able to put the forms where you want them. > So each form 'part' is inside its own layout definition and then is > rendered on whatever pages you need it to be. > > We've used this a lot for moving whole pages of forms around and also for > building smaller parts, even for something like dealing with date fields > like you are talking about. If you need an example just ask the list. > > -Nick > > > On Tue, 16 Jun 2009 19:35:50 -0400, Daryl Handley <[email protected]> > wrote: > > >> I have a case where I would like to reuse a form for multiple reports. >> For example I have a start date and end date and they are both required, >> in addition the start date should be before or the same as the end date. >> This will be used in probably 30-40 reports and may also be extended to >> add other fields (time of day, username, ...). I'm not really that >> excited about copy pasting the code 30-40 times. >> >> Is there a way to do this in Stripes? >> >> I found a thread here >> >> http://www.nabble.com/reusing-validation-annotations-td18954793.html#a18958293 >> >> discussing the same kind of idea, but it appears from that thread the >> answer is no. Was there any progress made on the items discussed there >> (specifically Tim's comments about re-usable form objects) or is this >> just not important for Stripes users ? >> >> If there is no way to do it I may have to consider another framework for >> that part of my app which is too bad since >> a) I like Stripes >> b) It increases the complexity of my app by involving multiple >> frameworks. >> >> Daryl >> >> >> ------------------------------------------------------------------------------ >> Crystal Reports - New Free Runtime and 30 Day Trial >> Check out the new simplified licensing option that enables unlimited >> royalty-free distribution of the report engine for externally facing >> server and web deployment. >> http://p.sf.net/sfu/businessobjects >> _______________________________________________ >> Stripes-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/stripes-users >> > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Stripes-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/stripes-users > ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
