title: JSF dialog window for iframe lightbox and externallink
body: <p>Hi everyone I am new to JEE. I have a linking text and buttons inside my form I need to add an dropdown list which has iframe lightbox and external link which are placed right after the textbox and buttons which has URL linking. I created a normal dropdown but I don't know what to write inside .java file </p>
  
  <p></p>
  
  <pre><code>&lt;h:selectOneMenu&gt;
      &lt;f:selectItem itemValue="#{userdata.data}"  itemLabel="IFrame" /&gt;
      &lt;f:selectItem itemValue="#{userdata.data}" itemLabel="Lightbox" /&gt;
      &lt;f:selectItem itemValue="#{userdata.data}" itemLabel="Externallink" /&gt;
  &lt;/h:selectOneMenu&gt;
  </code></pre>
  
  <p>userdata.java</p>
  
  <pre><code>@ManagedBean (name= "userData", eager=true)
  @SessionScoped
   public class UserData implements Serializable{
  
      private static final long serialVersionUID = 1L;
  public String data="1";
  
   public String getData(){
      return data;
  }
  public void setData(String data){
      this.data=data;
  }
  }
  </code></pre>