Home » struts-2.1.8.1-src » org.apache » struts2 » showcase » jsf » [javadoc | source]
org.apache.struts2.showcase.jsf
public class: JsfEmployeeAction [javadoc | source]
java.lang.Object
   com.opensymphony.xwork2.ActionSupport
      org.apache.struts2.showcase.action.AbstractCRUDAction
         org.apache.struts2.showcase.action.EmployeeAction
            org.apache.struts2.showcase.jsf.JsfEmployeeAction

All Implemented Interfaces:
    com.opensymphony.xwork2.Preparable

Overriding the EmployeeAction to main provide getters returning the data in the form required by the JSF components
Fields inherited from org.apache.struts2.showcase.action.EmployeeAction:
employeeDao
Constructor:
 public JsfEmployeeAction() 
Method from org.apache.struts2.showcase.jsf.JsfEmployeeAction Summary:
getAvailableItems,   getAvailableLevelsAsMap,   getAvailablePositionsAsMap,   getAvailableSkills,   getSelectedSkillsAsList,   setSkillDao
Methods from org.apache.struts2.showcase.action.EmployeeAction:
execute,   getAvailableLevels,   getAvailablePositions,   getCurrentEmployee,   getDao,   getEmpId,   getSelectedSkills,   prepare,   save,   setCurrentEmployee,   setEmpId,   setEmployeeDao,   setSelectedSkills
Methods from org.apache.struts2.showcase.action.AbstractCRUDAction:
delete,   fetch,   getAvailableItems,   getDao,   getToDelete,   list,   setToDelete
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.struts2.showcase.jsf.JsfEmployeeAction Detail:
 public Collection getAvailableItems() 
    Returning a List because the JSF dataGrid can't handle a Set for some reason
 public Map getAvailableLevelsAsMap() 
    Converting the list into a map
 public Map<String, String> getAvailablePositionsAsMap() 
    Changing the String array into a Map
 public Map<String, String> getAvailableSkills() 
    Converting the Skill object list into a map
 public List<String> getSelectedSkillsAsList() 
    Gets the selected Skill objects as a list
 public  void setSkillDao(SkillDao skillDao)