All,

  In wicket 1.2.6, I try to do passwordTextField.setResetPassword(false).
But I found that password field always got reset if model object is blank.
It seems that password field never use preserved rawInput to render:

   protected final void onComponentTag(final ComponentTag tag)
   {
       super.onComponentTag(tag);
       tag.put("value", getResetPassword() ? "" :
getModelObjectAsString());
   }

I think that more accurate implementation should be:

if(getResetPassword()) {
  tag.put("value", "");
}

I will file a bug report if confirmed. thanks in advance.

--
Ingram Chen
��便��啦: http://dinbendon.net
blog: http://www.javaworld.com.tw/roller/page/ingramchen
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to