<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/webunitproj/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/webunitproj/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 08 May 2003 10:03:08 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/webunitproj/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>Image Button</title><link>https://sourceforge.net/p/webunitproj/bugs/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&amp;amp;lt;input type=image&amp;amp;gt; &lt;br /&gt;
&amp;amp;lt;input type=button&amp;amp;gt;&lt;br /&gt;
&amp;amp;lt;IMG&amp;amp;gt; &lt;br /&gt;
should be handled.&lt;/p&gt;
&lt;p&gt;DefaultWebClient.java&lt;/p&gt;
&lt;p&gt;Maybe can add following lines.&lt;/p&gt;
&lt;p&gt;Method&lt;br /&gt;
DefaultWebTag genTag(..&lt;br /&gt;
..&lt;br /&gt;
else if (tagName.equalsIgnoreCase(&amp;amp;quot;BUTTON&amp;amp;quot;))&lt;br /&gt;
{&lt;br /&gt;
childTag= createInput(el,rh);&lt;br /&gt;
}&lt;br /&gt;
// newly added&lt;br /&gt;
else if(tagName.equalsIgnoreCase(&amp;amp;quot;IMG&amp;amp;quot;)){&lt;br /&gt;
String name = el.getAttribute(&amp;amp;quot;name&amp;amp;quot;);&lt;br /&gt;
String value = el.getAttribute(&amp;amp;quot;value&amp;amp;quot;);&lt;/p&gt;
&lt;p&gt;childTag = new DefaultSubmitButton(name, &lt;br /&gt;
el.getNodeName(),&lt;br /&gt;
value,true,null, rh);&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;Method&lt;br /&gt;
DefaultWebTag createInput(...&lt;/p&gt;
&lt;p&gt;..&lt;br /&gt;
// modified&lt;br /&gt;
if (type!=null &amp;amp;amp;&amp;amp;amp; (type.equalsIgnoreCase(&amp;amp;quot;SUBMIT&amp;amp;quot;) &lt;br /&gt;
||type.equalsIgnoreCase(&amp;amp;quot;BUTTON&amp;amp;quot;)))&lt;br /&gt;
{&lt;br /&gt;
return new DefaultSubmitButton(name, &lt;br /&gt;
el.getNodeName(),&lt;br /&gt;
value,false,null, rh);&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;// newly added&lt;br /&gt;
else if (type!=null &amp;amp;amp;&amp;amp;amp; type.equalsIgnoreCase(&amp;amp;quot;IMAGE&amp;amp;quot;))&lt;br /&gt;
{&lt;br /&gt;
return new DefaultSubmitButton(name, &lt;br /&gt;
el.getNodeName(),&lt;br /&gt;
value,true,null, rh);&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 08 May 2003 10:03:08 -0000</pubDate><guid>https://sourceforge.net1dae477917c59cc9fdba375030cab8d97a366895</guid></item><item><title>easy to reproduce ONKEYUP problem</title><link>https://sourceforge.net/p/webunitproj/bugs/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Before I delve into this -- thanks for such a cool product.&lt;br /&gt;
We need this!&lt;/p&gt;
&lt;p&gt;the issue:&lt;/p&gt;
&lt;p&gt;I'm unable to 'click' a button that started out disabled &lt;br /&gt;
that was later enabled by some javascript.&lt;/p&gt;
&lt;p&gt;Some javascript in the ONKEYUP event of a text field&lt;br /&gt;
enables the button.  My tester puts data into this text &lt;br /&gt;
field, but the button is never enabled.&lt;br /&gt;
I dumped the state of the button with toString()-- it &lt;br /&gt;
shows disabled.&lt;/p&gt;
&lt;p&gt;I have attached a very simple example.&lt;/p&gt;
&lt;p&gt;Two tiny web pages:&lt;br /&gt;
--search.html&lt;br /&gt;
--HelloWorld.html&lt;/p&gt;
&lt;p&gt;test client modeled after HelloWebUnit:&lt;br /&gt;
--HelloLittleWebUnit2.java.&lt;/p&gt;
&lt;p&gt;The stdout is in the file called 'out'.&lt;br /&gt;
Look for the text &amp;amp;quot;PROBLEM PROBLEM&amp;amp;quot;&lt;/p&gt;
&lt;p&gt;Here are a few thoughts&lt;br /&gt;
1) Perhaps the event isn't firing at all.  I don't know how &lt;br /&gt;
to attack this problem, quite yet.  When I see the &lt;br /&gt;
browser on the screen, it goes by quickly, but it doesn't &lt;br /&gt;
appear as if the button ever gets enabled.  could be &lt;br /&gt;
wrong.  I tried a 'sleep' at the end -- still looks disabled.&lt;/p&gt;
&lt;p&gt;2) Perhaps the ONKEYUP is indeed firing on the server, &lt;br /&gt;
but the client is not apprised of its status.  If this is the &lt;br /&gt;
case, perhaps there is a way to refresh the client's &lt;br /&gt;
information.  This would enable the client to see the &lt;br /&gt;
true 'enabled' status of the button.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Erik Ostermueller</dc:creator><pubDate>Wed, 04 Sep 2002 16:46:05 -0000</pubDate><guid>https://sourceforge.net140cb281ce16820062f08f31aea65f41f787c018</guid></item></channel></rss>