You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by eh...@apache.org on 2007/06/24 20:24:30 UTC
svn commit: r550271 -
/incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/wizard/NewUserWizard.java
Author: ehillenius
Date: Sun Jun 24 11:24:29 2007
New Revision: 550271
URL: http://svn.apache.org/viewvc?view=rev&rev=550271
Log:
tweaks for new user wizard
Modified:
incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/wizard/NewUserWizard.java
Modified: incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/wizard/NewUserWizard.java
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/wizard/NewUserWizard.java?view=diff&rev=550271&r1=550270&r2=550271
==============================================================================
--- incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/wizard/NewUserWizard.java (original)
+++ incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/wizard/NewUserWizard.java Sun Jun 24 11:24:29 2007
@@ -44,9 +44,8 @@
/**
* This wizard shows some basic form use. It uses custom panels for the form
* elements, and a single domain object ({@link User}) as it's subject. Also,
- * {@link UserRolesStep the user roles step} is an optional step, that will only
- * be executed when assignRoles is true (and that value is edited in the
- * {@link UserDetailsStep user details step}).
+ * the user roles step}is an optional step, that will only be executed when
+ * assignRoles is true (and that value is edited in the user details step).
*
* @author Eelco Hillenius
*/
@@ -80,7 +79,7 @@
*/
public UserDetailsStep()
{
- super(new ResourceModel("userdetails.title"), null);
+ setTitleModel(new ResourceModel("confirmation.title"));
setSummaryModel(new StringResourceModel("userdetails.summary", this, new Model(user)));
add(new RequiredTextField("user.firstName"));
add(new RequiredTextField("user.lastName"));
@@ -156,8 +155,8 @@
}
/** cheap ass roles database. */
- private static final List allRoles = Arrays.asList(new String[] { "admin", "user", "moderator",
- "joker", "slacker" });
+ private static final List<String> allRoles = Arrays.asList(new String[] { "admin", "user",
+ "moderator", "joker", "slacker" });
/** Whether the assign roles step should be executed. */
private boolean assignRoles = false;