default implementation of IWizardStep . It is also a panel, which is
used as the view component.
And example of a custom step with a panel follows.
Java (defined e.g. in class x.NewUserWizard):
private final class UserNameStep extends WizardStep
{
public UserNameStep()
{
super(new ResourceModel("username.title"), new ResourceModel("username.summary"));
add(new RequiredTextField("user.userName"));
add(new RequiredTextField("user.email").add(EmailAddressPatternValidator.getInstance()));
}
}
HTML (defined in e.g. file x/NewUserWizard$UserNameStep.html):
And example of a custom step with a panel follows. Java (defined e.g. in class x.NewUserWizard):
private final class UserNameStep extends WizardStep { public UserNameStep() { super(new ResourceModel("username.title"), new ResourceModel("username.summary")); add(new RequiredTextField("user.userName")); add(new RequiredTextField("user.email").add(EmailAddressPatternValidator.getInstance())); } }HTML (defined in e.g. file x/NewUserWizard$UserNameStep.html):<wicket:panel> <table> <tr> <td><wicket:message key="username">Username</wicket:message></td> <td><input type="text" wicket:id="user.userName" /></td> </tr> <tr> <td><wicket:message key="email">Email Adress</wicket:message></td> <td><input type="text" wicket:id="user.email" /></td> </tr> </table> </wicket:panel>