title: How to set defalult selected items in selectOneRadio/selectCheckboxMenu by beans in primefaces
body: <p>I want to create <code>selectOneRadio</code> list and <code>selectCheckboxMenu</code> which items get from related bean objects.
  For non selected list it is working well.But how can i provide these lists with some item(s) selected by default.
  My current <code>selectCheckboxMenu</code> code is like this.</p>
  
  <pre><code>&lt;p:selectCheckboxMenu id="trdays" 
               value="#{mybean.selectedDay}"
               label="Select Days"&gt;
        &lt;f:selectItems value="#{mybean.dayList}" var="day"
         itemValue="#{day.value}" itemLabel="#{day.name}"/&gt;
  &lt;/p:selectCheckboxMenu&gt;
  </code></pre>
  
  <p>it should look like this when page loaded and user haven't done anything yet.</p>
  
  <p><img src="https://i.stack.imgur.com/rgHrA.png" alt="default page display"></p>
  
  <p><strong>EDIT</strong> 
  Day Class :-</p>
  
  <pre><code>public class Day{
  
    private String name;
    private String value;
  
    //getters and setters
  
  }
  </code></pre>