dev@woodstock.java.net

Re: [Fwd: [Issue 854] Checkbox and Radio Button > Client-side rbcb group example, disable function error]

From: richard ratta <Richard.Ratta_at_Sun.COM>
Date: Thu, 18 Oct 2007 14:59:40 -0400

Isn't this just the default "auto submit" HTML behavior of the return key ?
It finds the frst submit input element runs its click handler ?

I had tried to add an "invisible" input element when I had this problem
in filechooser, but this did not work on IE.

-rick

Dan Labrecque wrote:

> The only thing I can suggest is to start with a very simple page and
> start eliminating functionality. For example, remove all onClick
> JavaScript from the example. Then, replace the <webuijsf:form tag with
> an HTML form tag to bypass the focus and scroll code.
>
> Dan
>
> Bob Yennaco wrote:
>
>> Can anybody provide a hint as to what could be causing this and where
>> the real solution lies?
>>
>> -------- Original Message --------
>> Subject: [Issue 854] Checkbox and Radio Button > Client-side rbcb
>> group example, disable function error
>> Date: Thu, 18 Oct 2007 16:59:40 +0000
>> From: bob_yennaco_at_dev.java.net
>> Reply-To: issues_at_woodstock.dev.java.net
>> To: issues_at_woodstock.dev.java.net
>>
>>
>>
>> https://woodstock.dev.java.net/issues/show_bug.cgi?id=854
>>
>>
>>
>>
>>
>>
>> ------- Additional comments from bob_yennaco_at_dev.java.net Thu Oct 18
>> 16:59:37 +0000 2007 -------
>> This can be reproduced by setting focus to any element on the page
>> and hitting
>> the Return key. Additionally if I swap the order of the
>> Enable/Disable buttons,
>> then hitting Return enables the checkboxes. What is happening is
>> that the event
>> associated with the Return key is causing the 1st onClick handler in
>> the page to
>> be executed. In this case, it is the handle for the Disable button
>> which
>> disables the checkboxes. I can make the problem go away by adding an
>> invisible
>> button before the Enable/Disable buttons:
>>
>> <webuijsf:button primary="false" id="foo" text="Foo"
>> visible="false" onClick="return false;"/>
>>
>> But this is just a workaround hack, not a valid solution.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: issues-unsubscribe_at_woodstock.dev.java.net
>> For additional commands, e-mail: issues-help_at_woodstock.dev.java.net
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_woodstock.dev.java.net
>> For additional commands, e-mail: dev-help_at_woodstock.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_woodstock.dev.java.net
> For additional commands, e-mail: dev-help_at_woodstock.dev.java.net
>