org.apache.myfaces.examples.inputsuggest
Class UserHandler

java.lang.Object
  extended byorg.apache.myfaces.examples.inputsuggest.UserHandler

public class UserHandler
extends java.lang.Object

Backing bean designed to handle changes to an inputSuggest field and map it to the StateInfo associated with a User.

Version:
$Revision: $ $Date: $
Author:
Sean Schofield

Constructor Summary
UserHandler()
           
 
Method Summary
 void setChoices(java.util.Map choices)
           
 void setUser(User user)
           
 java.lang.String update()
          Updates the "datastore" with the user's choice.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserHandler

public UserHandler()
Method Detail

setUser

public void setUser(User user)

setChoices

public void setChoices(java.util.Map choices)

update

public java.lang.String update()
Updates the "datastore" with the user's choice. This method simluates the process of adding a new choice to the database and setting the user's state info key to the id that the database would produce.

Returns:
String


Copyright © 2007 Apache Software Foundation. All Rights Reserved.