title: JSF calendar Component
body: <p>I need to add a popup calender using JSF. i am using netbeans 6.9.1 and galssfish 3.1.</p>
  
  <p>I googled and found this </p>
  
  <pre><code>&lt;ui:calendar binding="#{booking.calDate}" id="calDate" 
               dateFormatPattern="dd/MM/yyyy"   label="Date ::"/&gt;
  </code></pre>
  
  <p>but it gives an error stating:</p>
  
  <pre><code>the component library facelets doesn't contain such component 
  </code></pre>
  
  <p>What might be the correct way of making this work.</p>
  
  <p>Secondly, the pattern the date will be stored or selected will appear in the format <code>dd/MM/yyyy</code> . I need to store this in the MySQL DB. </p>
  
  <p>In the Bean Class should i say <code>Calendar cal = new Calendar();</code>?</p>