Hi sweet archangel of the list,
Having had a look at those bugs (12248 and 1586 ) it seems that the problem
is that javascript is uncorrectly generated for an indexed field.
Does it mean that we have to know before the generation if the field is an
indexed one? eg. do we need to add the [0] in the tag attribute for a radio
button?
My problem is that I don't know (at creating the JSP), what kind of input
field the focus will have to be set on.
I thought that the focus attribute had to be set as 'The field name to
which initial focus will be assigned with a JavaScript function.'
(struts-documentation 1.0.2). They don't talk about any index!
Gilles Vandaele
0498 52 64 12
[EMAIL PROTECTED]
Gilles.Vandaele@smal
s-mvm.be To: Struts Users Mailing List
<[EMAIL PROTECTED]>
04/10/2002 17:06 cc:
Subject: Re: html:form focus causes a
javascript error if the
element is a radio button
Please respond to Struts Users Mailing
List
Got it.
Tx.
Gilles Vandaele
0498 52 64 12
[EMAIL PROTECTED]
Eddie Bush
<[EMAIL PROTECTED]> To: Struts Users Mailing
List
<[EMAIL PROTECTED]>
04/10/2002 16:46 cc:
Subject: Re: html:form focus
causes a javascript error if the
element is a radio
button
Please respond to Struts Users
Mailing List
Ask Bugzilla :-) http://issues.apache.org/bugzilla
[EMAIL PROTECTED] wrote:
>Hi there funny crew,
>
>did someone allready noticed that Struts's html:form tag generate this
>kind of javascript:...
>
> document.forms["AnyFormName"].elements["anyFieldName"].focus()
>
>...to give the focus to the element 'anyFieldName' of the form , and that
>it causes a javascript error if the element is a radio button.
>
>My JSP is generated and I cannot guess whish type of element will be first
>focussed.
>
>I guess that the tag have to generate this:
>document.forms["AnyFormName"].elements["anyFieldName"][0].focus()
>in the case of radio button input element.
>
>Is it a bug or am I wrong? Will I have to set the focus in a scriptlet?
>
>
>
>Gilles Vandaele
>0498 52 64 12
>[EMAIL PROTECTED] Vandaele
>0498 52 64 12
>[EMAIL PROTECTED]
>
--
Eddie Bush
--
To unsubscribe, e-mail: <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>