daily pastebin goal
69%
SHARE
TWEET

Untitled

a guest Dec 13th, 2017 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <p:selectOneMenu filter="true" filterMatchMode="contains" converter="omnifaces.SelectItemsConverter" value="#{requestBean.manager}" required="true">
  2.         <f:selectItems value="#{userBean.userList}" var="label" />
  3. </p:selectOneMenu>
  4.    
  5. @ManagedBean
  6. @SessionScoped
  7. public class RequestBean{
  8. RequestUser manager;
  9.  
  10. public void onleoad(){
  11.  
  12. manager = new RequestUser();}
  13.  
  14.  public void addRequest() throws IOException, MessagingException, NamingException{
  15.  
  16.   manager = (RequestUser) FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("manager");}
RAW Paste Data
Top