org.jboss.seam.examples.booking.account
Class Registrar

java.lang.Object
  extended by org.jboss.seam.examples.booking.account.Registrar

@Model
public class Registrar
extends Object

The view controller for registering a new user

Author:
Dan Allen

Constructor Summary
Registrar()
           
 
Method Summary
 String getConfirmPassword()
           
 User getNewUser()
           
 javax.faces.component.UIInput getUsernameInput()
           
 boolean isRegistered()
           
 boolean isRegistrationInvalid()
           
 void notifyIfRegistrationIsInvalid()
          This method just shows another approach to adding a status message.
 void register()
           
 void setConfirmPassword(String password)
           
 void setUsernameInput(javax.faces.component.UIInput usernameInput)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Registrar

public Registrar()
Method Detail

register

public void register()

isRegistrationInvalid

public boolean isRegistrationInvalid()

notifyIfRegistrationIsInvalid

public void notifyIfRegistrationIsInvalid()
This method just shows another approach to adding a status message.

Invoked by:

 <f:event type="preRenderView" listener="#{registrar.notifyIfRegistrationIsInvalid}"/>
 


getNewUser

@Produces
@Named
public User getNewUser()

isRegistered

public boolean isRegistered()

getConfirmPassword

public String getConfirmPassword()

setConfirmPassword

public void setConfirmPassword(String password)

getUsernameInput

public javax.faces.component.UIInput getUsernameInput()

setUsernameInput

public void setUsernameInput(javax.faces.component.UIInput usernameInput)


Copyright © 2011 Seam Framework. All Rights Reserved.