Re: validator and DynaValidatorActionForm

2006-08-30 Thread David Durham
Tom Bednarz wrote: I think the validator fires too early, but probably I am doing something wrong. Maybe somebody can hp! Basically, you need 2 actions, one to populate the form and one to change the personal data. I have the following form bean defined in struts-config.xml:

Re: validator and DynaValidatorActionForm

2006-08-30 Thread Tom Bednarz
David Durham wrote: Tom Bednarz wrote: I think the validator fires too early, but probably I am doing something wrong. Maybe somebody can hp! Basically, you need 2 actions, one to populate the form and one to change the personal data. David, This is EXACTLY what I like to AVOID! With

RE: validator and DynaValidatorActionForm

2006-08-30 Thread David Friedman
Why are you making these fields so complex? You have html:text value=${sessionScope.subscriber.familyname} property=familyname name=familyname maxlength=64 size=32/ Instead of the simple form: html:text property=familyname maxlength=64 size=32 / ? Why do you need to specify

Re: validator and DynaValidatorActionForm

2006-08-30 Thread Wendy Smoak
On 8/30/06, Tom Bednarz [EMAIL PROTECTED] wrote: The idea is, that I show a form that contains already data and the user can edit it. When the form is submitted, the validator should check the user input. Here is my validator configuration: ... Now it seems, that the validator gets fired

Re: validator and DynaValidatorActionForm

2006-08-30 Thread Laurie Harper
Tom Bednarz wrote: David Durham wrote: Tom Bednarz wrote: I think the validator fires too early, but probably I am doing something wrong. Maybe somebody can hp! Basically, you need 2 actions, one to populate the form and one to change the personal data. Or at least two action mappings, if

Re: validator and DynaValidatorActionForm

2006-08-30 Thread Tom Bednarz
Thanks a lot for all your input and help. It looks like I need some basic concepts clarified. Here a very short background of the application and what my intension is: The object 'subscriber' is a special business object: it represents the logged in user and contains a lot of information

Re: validator and DynaValidatorActionForm

2006-08-30 Thread David Durham
Tom Bednarz wrote: So I used html:text value=${sessionScope.subscriber.firstname} property=firstname name=firstname maxlength=64 size=32/ Don't specify value. Simply copy the properties from a subscriber object (session scoped or otherwise) to a formbean (the one being used to

Re: validator and DynaValidatorActionForm

2006-08-30 Thread Wendy Smoak
On 8/30/06, Tom Bednarz [EMAIL PROTECTED] wrote: What is the correct or preferred way to link business-objects with form beans. Is this only possible by copying data from a business object to a form bean or is there any 'smarter' way? You might want to take a look at FormDef:

Re: validator and DynaValidatorActionForm

2006-08-30 Thread Tom Bednarz
Thanks a lot for all that feedback. I think it gets me a step further. Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]