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:
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
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
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
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
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
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
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:
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]
9 matches
Mail list logo