@@ -0,0 +1,1756 @@
+package to.etc.domui.pages;%0A%0Aimport java.text.*;%0Aimport java.util.*;%0A%0Aimport javax.annotation.*;%0A%0Aimport to.etc.domui.annotations.*;%0Aimport to.etc.domui.component.buttons.*;%0Aimport to.etc.domui.component.input.*;%0Aimport to.etc.domui.dom.html.*;%0A%0A/**%0A * Selenium test date input check page.%0A *%0A * @author %3Ca href=%22mailto:jal@etc.to%22%3EFrits Jalvingh%3C/a%3E%0A * Created on May 27, 2014%0A */%0Apublic class DateInputTestPage extends UrlPage %7B%0A%09private boolean m_withtime;%0A%0A%09@Nullable%0A%09private Div m_result;%0A%0A%09@UIUrlParameter(name = %22withtime%22)%0A%09public boolean isWithtime() %7B%0A%09%09return m_withtime;%0A%09%7D%0A%0A%09public void setWithtime(boolean withtime) %7B%0A%09%09m_withtime = withtime;%0A%09%7D%0A%0A%09@Override%0A%09public void createContent() throws Exception %7B%0A%09%09final DateInput di = new DateInput(isWithtime());%0A%09%09add(di);%0A%09%09di.setTestID(%22datein%22);%0A%0A%09%09DefaultButton%09button = new DefaultButton(%22Click%22, new IClicked%3CDefaultButton%3E() %7B%0A%09%09%09@Override%0A%09%09%09public void clicked(DefaultButton clickednode) throws Exception %7B%0A%09%09%09%09Date dt = di.getValueSafe();%0A%09%09%09%09Div result = m_result;%0A%09%09%09%09if(null == result) %7B%0A%09%09%09%09%09m_result = result = new Div();%0A%09%09%09%09%09add(result);%0A%09%09%09%09%09result.setTestID(%22result%22);%0A%09%09%09%09%7D%0A%09%09%09%09result.removeAllChildren();%0A%09%09%09%09if(dt == null) %7B%0A%09%09%09%09%09result.setText(%22error%22);%0A%09%09%09%09%7D else %7B%0A%09%09%09%09%09DateFormat df = new SimpleDateFormat(%22yyyyMMddHHmm%22);%0A%09%09%09%09%09result.setText(df.format(dt));%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D);%0A%09%09button.setTestID(%22btn%22);%0A%09%09add(button);%0A%0A%09%09DefaultButton clear = new DefaultButton(%22Click%22, new IClicked%3CDefaultButton%3E() %7B%0A%09%09%09@Override%0A%09%09%09public void clicked(DefaultButton clickednode) throws Exception %7B%0A%09%09%09%09di.setValue(null);%0A%09%09%09%09Div result = m_result;%0A%09%09%09%09if(null != result) %7B%0A%09%09%09%09%09result.remove();%0A%09%09%09%09%09m_result = null;%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D);%0A%09%09clear.setTestID(%22clear%22);%0A%09%09add(clear);%0A%0A%0A%09%7D%0A%7D%0A

Add Selenium testable page for testing DateInput.