Changeset 3794
- Timestamp:
- Aug 25, 2010, 12:40:11 PM (13 years ago)
- Location:
- trunk/client/servlet/src/org/proteios
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/servlet/src/org/proteios/action/user/ChangeMyPassword.java
r2381 r3794 31 31 import org.proteios.core.DbControl; 32 32 import org.proteios.core.User; 33 import org.proteios.gui.form.Form; 34 import org.proteios.gui.form.FormFactory; 33 import org.proteios.gui.form.*; 35 34 import se.lu.thep.waf.ActionException; 36 35 import se.lu.thep.waf.constraints.InvalidParameterValue; … … 46 45 throws ActionException, InvalidParameterValue 47 46 { 48 Form frm = getFormFactory().getMyProfilePasswordForm(getOwner());47 Form frm = new ProfilePasswordForm(getOwner()); 49 48 verifyParameters(frm); 50 49 String pwd1 = getValidString(FormFactory.VPWD1); -
trunk/client/servlet/src/org/proteios/action/user/ViewMyProfileAction.java
r3598 r3794 41 41 import org.proteios.gui.ColumnContainer; 42 42 import org.proteios.gui.RowContainer; 43 import org.proteios.gui.form. Form;43 import org.proteios.gui.form.*; 44 44 import org.proteios.gui.layout.RowLayout; 45 45 … … 92 92 if (!user.isMultiuserAccount()) 93 93 { 94 pwdForm = getFormFactory().getMyProfilePasswordForm(user);94 pwdForm = new ProfilePasswordForm(user); 95 95 tb2 = new Toolbar(); 96 96 changePassword = getActionFactory().getActionLink( -
trunk/client/servlet/src/org/proteios/gui/form/FormFactory.java
r3793 r3794 775 775 776 776 // Cleaning up from here 777 public Form getMyProfilePasswordForm(User user)778 {779 Form form = new Form("myPasswordForm");780 Fieldset fs = new Fieldset();781 form.addFieldset(fs);782 fs.getLegendTitle().setTitle("Password");783 TextField<Integer> userIdF = newHiddenItemIdField();784 fs.add(userIdF);785 if (user != null)786 userIdF.setValue(user.getId());787 fs.add(new PasswordField(VPWD1).setLabel("Password"));788 fs.add(new PasswordField(VPWD2).setLabel("VerifyPassword"));789 return form;790 }791 792 793 777 private TextField<String> newEmailField() 794 778 { -
trunk/client/servlet/src/org/proteios/gui/form/PasswordField.java
r3593 r3794 38 38 { 39 39 public static final VString VPWD1 = new VString("pwd1", 1, 32, true); 40 public static final VString VPWD2 = new VString("pwd2", 1, 32, true); 40 41 41 42 public PasswordField(String id) … … 44 45 } 45 46 46 public PasswordField(VParameter vpwd 1)47 public PasswordField(VParameter vpwd) 47 48 { 48 super(vpwd 1);49 super(vpwd); 49 50 this.setCharWidth(15); 50 51 }
Note: See TracChangeset
for help on using the changeset viewer.