<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">You're right, that was it...<DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thanks!</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Pieter.</DIV><DIV><BR><DIV><DIV>Op 13-aug-2007, om 15:47 heeft Stan Silvert het volgende geschreven:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Pieter,</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Did you revert back to the original WebConversationFactory?<SPAN class="Apple-converted-space">  </SPAN>That looks like a bug that I found in the Neko HTML parser.<SPAN class="Apple-converted-space">  </SPAN>So WebConversationFactory should have this line in the makeWebConversation() method:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">HTMLParserFactory.useJTidyParser();</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Stan</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:pieter.kuijpers@luminis.nl">pieter.kuijpers@luminis.nl</A> wrote:</DIV> <BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Hi,</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I have the following JSP (selectone.jsp), containing a single selectOneMenu component:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&lt;?xml version="1.0" encoding="UTF-8" ?&gt;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&lt;%@ page language="java" contentType="text/html; charset=UTF-8"</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">    </SPAN>pageEncoding="UTF-8"%&gt;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<A href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</A>"&gt;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&lt;html xmlns="<A href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</A>"&gt;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&lt;%@ taglib uri="<A href="http://java.sun.com/jsf/core">http://java.sun.com/jsf/core</A>" prefix="f"%&gt;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&lt;%@ taglib uri="<A href="http://java.sun.com/jsf/html">http://java.sun.com/jsf/html</A>" prefix="h"%&gt;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&lt;f:view&gt;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">    </SPAN>&lt;head&gt;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">        </SPAN>&lt;meta http-equiv="Content-Type" content="text/html; " /&gt;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">        </SPAN>&lt;title&gt;Insert title here&lt;/title&gt;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">    </SPAN>&lt;/head&gt;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">    </SPAN>&lt;body&gt;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">        </SPAN>&lt;h:form id="selectForm"&gt;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">            </SPAN>&lt;h:selectOneMenu id="selectOne"&gt;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">                </SPAN>&lt;f:selectItem itemValue="One" itemLabel="One"/&gt;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">                </SPAN>&lt;f:selectItem itemValue="Two" itemLabel="Two"/&gt;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">                </SPAN>&lt;f:selectItem itemValue="Three" itemLabel="Three"/&gt;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">            </SPAN>&lt;/h:selectOneMenu&gt;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">        </SPAN>&lt;/h:form&gt;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">    </SPAN>&lt;/body&gt;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&lt;/f:view&gt;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&lt;/html&gt;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">And the following test:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">public class SelectTest extends TestCase {</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">       </SPAN>public void testSelectOne() throws Exception {</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">        </SPAN>ClientFacade client = new ClientFacade("/selectone.faces");</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">        </SPAN>client.setParameter("selectOne", "One");</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">        </SPAN>client.submit("submit_button");</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">               </SPAN>assertEquals(200, client.getWebResponse().getResponseCode());</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">    </SPAN>}</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">}</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Running the test results in the following error:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">|com.meterware.httpunit.IllegalParameterValueException: May not set parameter 'selectForm:selectOne' to 'One'. Value must be one of: { }</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">at com.meterware.httpunit.SelectionFormControl$Options.reportNoMatches(FormControl.java:1186)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">at com.meterware.httpunit.SelectionFormControl$SingleSelectOptions.claimUniqueValues(FormControl.java:1360)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">at com.meterware.httpunit.SelectionFormControl$Options.claimUniqueValues(FormControl.java:1178)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">at com.meterware.httpunit.SelectionFormControl.claimUniqueValue(FormControl.java:1059)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">at com.meterware.httpunit.FormParameter.setValues(FormParameter.java:90)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">at com.meterware.httpunit.WebForm.setParameter(WebForm.java:612)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">at org.jboss.jsfunit.facade.ClientFacade.setParameter(ClientFacade.java:155)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">|It seems like HttpUnit does not correctly see the options for the select menu (hence the 'must be one of: { }).</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Am I doing something wrong here or is this a bug?</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Thanks,</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Pieter.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">------------------------------------------------------------------------</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">jsfunit-dev mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:jsfunit-dev@lists.jboss.org">jsfunit-dev@lists.jboss.org</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="https://lists.jboss.org/mailman/listinfo/jsfunit-dev">https://lists.jboss.org/mailman/listinfo/jsfunit-dev</A></DIV> </BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV> </BLOCKQUOTE></DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV id="sig" style="font-family: Arial;color: #003366;"><SPAN class="Apple-style-span" style="color: rgb(0, 51, 102); font-family: Arial; ">--</SPAN><BR style="color: rgb(0, 51, 102); font-family: Arial; "><SPAN class="Apple-style-span" style="color: rgb(0, 51, 102); font-family: Arial; "> </SPAN><FONT class="Apple-style-span" color="#000000" face="Helvetica"><SPAN><IMG src="cid:6CEAC134-EABB-4E89-B280-216F40B14B4F@local"></SPAN><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV id="sig" style="font-family: Arial;color: #003366;"><SPAN style="color: #ff9900;font-weight: bold;font-style: normal;font-size: x-large;; font-family: Arial; font-size: 18px; "><SPAN class="Apple-style-span" style="color: rgb(255, 153, 0); font-family: Arial; font-size: 18px; font-weight: bold; ">Pieter Kuijpers</SPAN></SPAN><BR style="color: rgb(0, 51, 102); font-family: Arial; "><SPAN class="Apple-style-span" style="color: rgb(0, 51, 102); font-family: Arial; ">Senior software engineer </SPAN><B style="color: rgb(0, 51, 102); font-family: Arial; font-weight: bold; "><SPAN class="Apple-style-span" style="color: rgb(0, 51, 102); font-family: Arial; font-weight: bold; ">luminis</SPAN></B><SPAN class="Apple-style-span" style="color: rgb(0, 51, 102); font-family: Arial; ">®</SPAN><BR style="color: rgb(0, 51, 102); font-family: Arial; "><SPAN class="Apple-style-span" style="color: rgb(0, 51, 102); font-family: Arial; ">-------------------------------------------------</SPAN><BR style="color: rgb(0, 51, 102); font-family: Arial; "><SPAN class="Apple-style-span" style="color: rgb(0, 51, 102); font-family: Arial; ">06 174 185 34</SPAN><BR style="color: rgb(0, 51, 102); font-family: Arial; "><SPAN class="Apple-style-span" style="color: rgb(0, 51, 102); font-family: Arial; "><A href="mailto:pieter.kuijpers@luminis.nl">pieter.kuijpers@luminis.nl</A></SPAN><BR style="color: rgb(0, 51, 102); font-family: Arial; "><A href="http://www.luminis.nl/"><SPAN class="Apple-style-span" style="color: rgb(0, 0, 238); font-family: Arial; -khtml-text-decorations-in-effect: underline; ">www.luminis.nl</SPAN></A><BR style="color: rgb(0, 51, 102); font-family: Arial; "><SPAN class="Apple-style-span" style="color: rgb(0, 51, 102); font-family: Arial; ">-------------------------------------------------</SPAN><P style="color: rgb(0, 51, 102); font-family: Arial; "></P></DIV><BR class="Apple-interchange-newline"></SPAN> </FONT></DIV><FONT class="Apple-style-span" color="#000000" face="Helvetica"></FONT></SPAN></DIV><BR></DIV></BODY></HTML>