public void testAjaxTagDefaultsEditNoPrepend() throws Exception { System.out.println("Starting Tag Defaults Edit No Prepend Test"); getPage("/faces/ajax/ajaxTagDefaultsEditNoPrepend.xhtml"); String out1 = "out1"; String out2 = "out2"; String out3 = "out3"; String echo1Out = "echo1Out"; String echo2Out = "echo2Out"; String echo3Out = "echo3Out"; String echo4Out = "echo4Out"; String edit1 = "edit1"; String edit2 = "edit2"; String edit3 = "edit3"; String edit4 = "edit4"; String refresh = "refresh"; // First, we'll test to make sure the initial values come out right checkTrue(out1, "echo"); checkTrue(out2, "echo"); checkTrue(out3, "echo"); checkTrue(echo1Out, ""); checkTrue(echo2Out, ""); checkTrue(echo3Out, ""); checkTrue(echo4Out, ""); // Next, enter data into first field HtmlTextInput echo1 = ((HtmlTextInput) lastpage.getHtmlElementById(edit1)); echo1.focus(); echo1.type("test1"); echo1.blur(); // Refresh the panel to check the listener fired HtmlSubmitInput button = lastpage.getHtmlElementById(refresh); button.click(); checkTrue(echo1Out, "test1"); checkTrue(out1, "test1"); checkTrue(out2, "echo"); checkTrue(out3, "echo"); // Next, enter data into second field HtmlTextInput echo2 = ((HtmlTextInput) lastpage.getHtmlElementById(edit2)); echo2.focus(); echo2.type("test2"); echo2.blur(); // Refresh the panel to check the listener fired button = lastpage.getHtmlElementById(refresh); button.click(); checkTrue(echo2Out, "test2"); checkTrue(out1, "test2"); checkTrue(out2, "echo"); checkTrue(out3, "echo"); // Next, enter data into third field HtmlTextInput echo3 = ((HtmlTextInput) lastpage.getHtmlElementById(edit3)); echo3.focus(); echo3.type("test3"); echo3.blur(); // Refresh the panel to check the listener fired button = lastpage.getHtmlElementById(refresh); button.click(); checkTrue(echo3Out, "test3"); checkTrue(out1, "test3"); checkTrue(out2, "echo"); checkTrue(out3, "echo"); // Next, enter data into the fourth field HtmlTextInput echo4 = ((HtmlTextInput) lastpage.getHtmlElementById(edit4)); echo4.focus(); echo4.type("test4"); echo4.blur(); // Refresh the panel to check the listener fired button = lastpage.getHtmlElementById(refresh); button.click(); checkTrue(echo4Out, "test4"); checkTrue(out1, "test4"); checkTrue(out2, "echo"); checkTrue(out3, "echo"); }