title: Liferay <liferay-ui:input-date> control
body: <p>Hy all, </p>
  
  <p>I'm new to Liferay and I making some porting from jsp to Liferay portal.</p>
  
  <p>If I have a portlet jsp with two date in it like:
  FromDate
  ToDate 
  and use two different liferay-ui:input-date one for each date field like:</p>
  
  <pre><code>    ...
  &lt;%-- From DATE --%&gt;
  &lt;tr&gt;
      &lt;td&gt;
          From date :
      &lt;/td&gt;
      &lt;td&gt;
          &lt;liferay-ui:input-date
              dayParam='&lt;%= "strDataRegDa" + "Day" %&gt;'
              dayValue="&lt;%=Integer.parseInt(strDataRegDa.substring(0,2))%&gt;"
              dayNullable="&lt;%= false %&gt;"
              monthParam='&lt;%= "strDataRegDa" + "Month" %&gt;'
              monthValue="&lt;%=(Integer.parseInt(strDataRegDa.substring(3,5))) -1 %&gt;"
              monthNullable="&lt;%= false %&gt;"
              yearParam='&lt;%= "strDataRegDa" + "Year" %&gt;'
              yearValue="&lt;%=Integer.parseInt(strDataRegDa.substring(6))%&gt;"
              yearNullable="&lt;%= false %&gt;"
              yearRangeStart="&lt;%= 1980 %&gt;"
              yearRangeEnd="&lt;%= 2050 %&gt;"
              firstDayOfWeek="&lt;%= Calendar.MONDAY - 1 %&gt;"
              imageInputId='&lt;%= "ceremonyDate"%&gt;'
              disabled="false" &gt;
          &lt;/liferay-ui:input-date&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  
  &lt;%-- To DATE --%&gt;
  &lt;tr&gt;
      &lt;td&gt;
          To date :
      &lt;/td&gt;
      &lt;td&gt;
          &lt;liferay-ui:input-date
              dayParam='&lt;%= "strDataRegA" + "Day" %&gt;'
              dayValue="&lt;%=Integer.parseInt(strDataRegA.substring(0,2))%&gt;"
              dayNullable="&lt;%= false %&gt;"
              monthParam='&lt;%= "strDataRegDa" + "Month" %&gt;'
              monthValue="&lt;%=(Integer.parseInt(strDataRegA.substring(3,5))) -1 %&gt;"
              monthNullable="&lt;%= false %&gt;"
              yearParam='&lt;%= "strDataRegDa" + "Year" %&gt;'
              yearValue="&lt;%=Integer.parseInt(strDataRegA.substring(6))%&gt;"
              yearNullable="&lt;%= false %&gt;"
              yearRangeStart="&lt;%= 1980 %&gt;"
              yearRangeEnd="&lt;%= 2050 %&gt;"
              firstDayOfWeek="&lt;%= Calendar.MONDAY - 1 %&gt;"
              imageInputId='&lt;%= "ceremonyDate"%&gt;'
              disabled="false" &gt;
          &lt;/liferay-ui:input-date&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  ....
  </code></pre>
  
  <p>is there a way to control that ToDare is >=  FromDate ?</p>
  
  <p>With pure jsp I can do that via javascript.</p>
  
  <p>But with Liferay how can achieve that ?</p>