On Wed, 2003-07-23 at 14:54, Eric Gulatee wrote: ><snip/> >> But I was hoping that I could use the widgets to >> create a ValidationError but this is all hidden as you >> say yet once you do this custom validation you need to >> be able to select a widget and add a custom error >> message.
>yep, this is something that will be added in the (not->too-far-away) >future. Excellent, because that will come in very handy in the not too far away future :) ><snip/> >> >> Yeah, I looked into trying to define a custom >> validation rule that hooks into your own code for >> validation. But I haven't done this yet. > >Well it is not really possible today since you don't >have access to the >formcontext from the validation rules. But I think >the earlier approach >(enabling setting validation errors on the widgets) >is better anyway. I agree. That was my initial approach then looked for other ways of doing the same thing. > > This is a program I encountered, say I have a login > form on the leftmenu and the users select registration > from the menu which displays in the center pane > [keeping the left menu there with the login form] well > once the user click on Register then both forms are > validated! If they are both validated then that's likely because your action calls the process method on both forms. Hmmm, That's quite possible, I will have to look into that. The action I created is basically the same as the FormSubmitAction with hooks for validation, so I figure Woody in it's natural state also exhibits this problem. I'll look into it tho, thanks for the tip and all your help. Now I know what to expect. :) PS: Any possibiliy that javabeans with getters/setters will be generated with the contents of the form eventually? [Similar to XForms]. Cheers, and thanks again for your relevant and speedy answers. Eric Gulatee. __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
