Hi Ulrich, the current PasswordField component always blanks the value. If you really want to keep the password (might result into security and usability issues as the user has no chance to check whether the value is valid and the password will be unencrypted in the HTML), write your own password component that extends from AbstractTextField but does not blank the value.
Regards, Markus On Tue, Sep 2, 2008 at 4:17 PM, Ulrich Stärk <[EMAIL PROTECTED]> wrote: > Hi all, > > I want to create and edit entities which have a required password field > using the beaneditor component. In order to have the password obscured > while being typed in (later it gets encrypted and stored in a database) I > overrode the corresponding field whith > > <t:beaneditform t:id="form" t:object="account"> > <t:parameter name="password"> > <t:label for="password" /> > <t:passwordfield t:id="password" value="account.password" /> > </t:parameter> > </t:beaneditform> > > My entity class has a @Validate("required") annotation applied to the > getter of the password field. This all works well when I create a new > instance of this entity type. But when I want to edit the entity, whithout > modifying the password fields, this fails because the output value of a > passwordfield is always blank per definition and thus validation fails. I > am forced to re-enter some password even if I don't want to change it. How > would you solve this? > > Cheers, > > Uli > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]