Another idea just came into my mind. Why not make render the password value
the default and in case someone wants to change that, he simply subclasses
PasswordTextField.handleComponentTag() like

    add(new PasswortTextField("password", password)
       {
          protected void handleComponentTag(final RequestCycle cycle, final
ComponentTag tag)
          {
             super(cycle, tag);
             tag.put("value", "");
          }
       }

This way, we won't have to add a property (which might make Chris happy,
because we keep the session memory small) and isn't it the Wicket way?

Regards
Juergen

-----Urspr�ngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Eelco
Hillenius
Gesendet: Mittwoch, 24. November 2004 13:48
An: [EMAIL PROTECTED]
Betreff: Re: [Wicket-develop] [ wicket-Bugs-1072362 ] PasswordTextField
resets model value

Nope, sounds as a good idea.

   Eelco

Martijn Dashorst wrote:

>The solution to this bug is IMO to add a property to the 
>PassworldTextField component called 'resetContents', with appropriate
getter/setter pair.
>
>The handleComponentTag method should then read the flag and depending 
>on the value reset the contents of the field, or fill it with the model
value.
>
>Anybody object to this?
>
>Martijn
> 
>
>-----Oorspronkelijk bericht-----
>Van: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Namens 
>SourceForge.net
>Verzonden: woensdag 24 november 2004 11:20
>Aan: [EMAIL PROTECTED]
>Onderwerp: [Wicket-develop] [ wicket-Bugs-1072362 ] PasswordTextField 
>resets model value
>
>Bugs item #1072362, was opened at 2004-11-24 11:19 Message generated 
>for change (Tracker Item Submitted) made by Item Submitter You can 
>respond by
>visiting: 
>https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1072362&gr
>oup_i
>d=119783
>
>Category: None
>Group: None
>Status: Open
>Resolution: None
>Priority: 5
>Submitted By: Martijn Dashorst (dashorst) Assigned to: Nobody/Anonymous
>(nobody)
>Summary: PasswordTextField resets model value
>
>Initial Comment:
>The PasswordTextField component resets the model value on rendering. 
>This should be made optional, in order to support entry forms for user 
>credentials when editing the userdata.
>
>
>----------------------------------------------------------------------
>  
>



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide Read honest & candid reviews
on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Wicket-develop mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-develop


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Wicket-develop mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to