Also, are there objections to the setter returning this in order to allow
chaining?

        add(new PasswordTextField(xxx,yyy,zzz).setResetContents(false), x);

This is a coding style that some people like, and others loathe. I'm having
mixed feelings about it, because it makes
debugging NullPointerExceptions so incredible hard, on the other hand, it
does save introducing a local variable or a field.

Martijn

-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Eelco Hillenius
Verzonden: woensdag 24 november 2004 13:48
Aan: [EMAIL PROTECTED]
Onderwerp: 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