RE: Another missing attribute in html-el

2003-08-28 Thread Slattery, Tim - BLS
From: Jason Lea [mailto:[EMAIL PROTECTED] 

 Slattery, Tim - BLS wrote:
  The html-el:select... tag does not have an accesskey 
 attribute. 

 You could use the label tag which accepts an accesskey and 
 passes the focus onto another form field.

That's an excellent suggestion, and I had not come close to thinking of it.
Thanks!

--
Tim Slattery
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Another missing attribute in html-el

2003-08-27 Thread Slattery, Tim - BLS
 The following elements support the accesskey attribute: A, 
 AREA, BUTTON, INPUT, LABEL, and LEGEND, and TEXTAREA. 
 http://www.w3.org/TR/1998/REC-html40-19980424/interact/forms.h
 tml#adef-accesskey

Hmm. I'd add TEXT to that list, accesskey is definitely supported there.
I'm amazed it's not listed for select.

 I'm not quite sure *why* select does not have an accesskey, 
 but it definitely doesn't.
 
 Looking back at the source, there *was* an accesskey 
 attribute but it was removed before 1.1 Beta 3. This explains 
 more - http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13337

It must have existed in the older (pre-1.1) version also. I'm *positive*
that I've been using it for months. 
 
 Check that you actually are running the release version of 
 1.1 and you don't have any old jar or .tld files hanging around.

I upgraded to 1.1 about two weeks ago, and I *swear* I didn't have trouble
until I tried to switch that tag to the html-el version.   Oh, well. I've
worked around it with a tiny Javascript that sets the accessKey attribute to
what I need it to be as the page loads.

Thank you for the news about styleId being present in html-el:hidden... in
the nightly build. I'll check that out as soon as I can.


--
Tim Slattery
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Another missing attribute in html-el

2003-08-27 Thread Slattery, Tim - BLS
One last word on accesskey in html:select

My application currently has a page that uses three html:select... tags
that have an accesskey attribute. These all work just fine. Then there are
four html:text... tags, then a logic:iterate. Inside the iterate loop
are six html..hidden.. tags, then html:select..., html:text...,
html:text..., html:select

The first html:select... in the loop had an accesskey attribute. I changed
all four of the non-hidden tags in the loop to their html-el..
counterparts. That's when I started having problems with accesskey.

Currently, the first three selects are still there and still working just
fine. The html-el:select... in the loop no longer has its accesskey
attribute, I had to remove it. 

So I have three html:select.. tags with accesskey, and two
html-el:select... tags without accesskey tags. I have no earthly idea why
this works. I've examined the struts-html.tld in my app, and it does not
have an accesskey attribute in the select tag. But the page works.

--
Tim Slattery
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Another missing attribute in html-el

2003-08-27 Thread Steve Raeburn
When I try adding it, I get a JSP compiler error - Attribute accesskey
invalid according to the specified TLD.

I can only suggest that you still have an old copy of struts.jar. Try
starting with a fresh copy of struts-blank.war from the Struts 1.1
distribution and try that.

Steve
http://www.ninsky.com/struts/


 -Original Message-
 From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
 Sent: August 27, 2003 10:03 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Another missing attribute in html-el


 One last word on accesskey in html:select

 My application currently has a page that uses three html:select... tags
 that have an accesskey attribute. These all work just fine.
 Then there are
 four html:text... tags, then a logic:iterate. Inside the iterate loop
 are six html..hidden.. tags, then html:select..., html:text...,
 html:text..., html:select

 The first html:select... in the loop had an accesskey
 attribute. I changed
 all four of the non-hidden tags in the loop to their html-el..
 counterparts. That's when I started having problems with accesskey.

 Currently, the first three selects are still there and still working just
 fine. The html-el:select... in the loop no longer has its accesskey
 attribute, I had to remove it.

 So I have three html:select.. tags with accesskey, and two
 html-el:select... tags without accesskey tags. I have no
 earthly idea why
 this works. I've examined the struts-html.tld in my app, and it does not
 have an accesskey attribute in the select tag. But the page works.

 --
 Tim Slattery
 [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Another missing attribute in html-el

2003-08-27 Thread Slattery, Tim - BLS
 When I try adding it, I get a JSP compiler error - Attribute 
 accesskey invalid according to the specified TLD.

 I can only suggest that you still have an old copy of 
 struts.jar. Try starting with a fresh copy of 
 struts-blank.war from the Struts 1.1 distribution and try that.


Struts.jar is from the Struts1.1 distribution, dated 6/29/2003. Besides, it
should be stopped when it looks at struts-html.tld, just as you were. It
must be some optimization that my container (WebLogic 7.0) does. I don't
suppose it makes much difference what's doing it, eventually it will look at
the tld again and decide that these things won't work. 

--
Tim Slattery
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Another missing attribute in html-el

2003-08-27 Thread Jason Lea
Slattery, Tim - BLS wrote:
The html-el:select... tag does not have an accesskey attribute. I tried
adding the attribute to the struts-html-el.tld file, and got this error
message:
Error in using tag library uri='/WEB-INF/struts-html-el.tld'
prefix='html-el': The Tag class
'org.apache.strutsel.taglib.html.ELSelectTag' has no setter method
corresponding to TLD declared attribute 'accesskey'


--
Tim Slattery
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

You could use the label tag which accepts an accesskey and passes the 
focus onto another form field.

Eg

label accesskey=MMy Field
  html-el:select property=myfield
...
  /html-el:select
/label
or else use the for= option with label:

label for=field1 accesskey=MMyField/label
html-el:select property=myfield styleId=field1
  ...
/html-el:select
Apparently the for= references matches the id, so we have to add a 
styleId to the select.  Not sure if it would find the name= field.

--
Jason Lea
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Another missing attribute in html-el

2003-08-26 Thread Slattery, Tim - BLS
The html-el:select... tag does not have an accesskey attribute. I tried
adding the attribute to the struts-html-el.tld file, and got this error
message:

Error in using tag library uri='/WEB-INF/struts-html-el.tld'
prefix='html-el': The Tag class
'org.apache.strutsel.taglib.html.ELSelectTag' has no setter method
corresponding to TLD declared attribute 'accesskey'



--
Tim Slattery
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Another missing attribute in html-el

2003-08-26 Thread Adam Levine
just as a side observation, that's odd.

from org.apache.struts.taglib.html.BaseHandlerTag, there is indeed a public 
get/setAccesskey.

basehandlertag - selecttag - elselecttag.

By sheer nature of inheritence, that field (by virtue of accessor/mutator) 
should be present.



From: Slattery, Tim - BLS [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts User List ([EMAIL PROTECTED]) 
[EMAIL PROTECTED]
Subject: Another missing attribute in html-el
Date: Tue, 26 Aug 2003 10:34:48 -0400

The html-el:select... tag does not have an accesskey attribute. I tried
adding the attribute to the struts-html-el.tld file, and got this error
message:
Error in using tag library uri='/WEB-INF/struts-html-el.tld'
prefix='html-el': The Tag class
'org.apache.strutsel.taglib.html.ELSelectTag' has no setter method
corresponding to TLD declared attribute 'accesskey'


--
Tim Slattery
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Get MSN 8 and enjoy automatic e-mail virus protection.   
http://join.msn.com/?page=features/virus

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Another missing attribute in html-el

2003-08-26 Thread Steve Raeburn
accesskey is not a valid attribute for the select element (See
http://www.w3.org/TR/html4/sgml/loosedtd.html).
It's not on the html:select tag either.

Also re your earlier message, I took a look at the html-el:hidden tag for
the the styleId attribute. It has already been added to the source since
1.1. There's also a styleClass attribute but I suspect that's a little less
useful ;-)

If you download the nightly build you'll able to use it. Or wait for 1.2
which should be along soon.

Steve
http://www.ninsky.com/struts/


 -Original Message-
 From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
 Sent: August 26, 2003 7:35 AM
 To: Struts User List ([EMAIL PROTECTED])
 Subject: Another missing attribute in html-el


 The html-el:select... tag does not have an accesskey
 attribute. I tried
 adding the attribute to the struts-html-el.tld file, and got this error
 message:

 Error in using tag library uri='/WEB-INF/struts-html-el.tld'
 prefix='html-el': The Tag class
 'org.apache.strutsel.taglib.html.ELSelectTag' has no setter method
 corresponding to TLD declared attribute 'accesskey'



 --
 Tim Slattery
 [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Another missing attribute in html-el

2003-08-26 Thread Slattery, Tim - BLS


 -Original Message-
 From: Steve Raeburn [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, August 26, 2003 2:19 PM
 To: Struts Users Mailing List
 Subject: RE: Another missing attribute in html-el
 
 
 accesskey is not a valid attribute for the select element 
 (See http://www.w3.org/TR/html4/sgml/loosedtd.html).
 It's not on the html:select tag either.

Yes it is valid for the select... HTML tag, and yes it is valid for
html:select I was using it on an html:select.. tag, and when I
switched that tag to html-el:select.. I got the error message. 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Another missing attribute in html-el

2003-08-26 Thread Steve Raeburn
!ENTITY % coreattrs
 id  ID #IMPLIED  -- document-wide unique id --
  class   CDATA  #IMPLIED  -- space-separated list of classes --
  style   %StyleSheet;   #IMPLIED  -- associated style info --
  title   %Text; #IMPLIED  -- advisory title --
  

!ELEMENT SELECT - - (OPTGROUP|OPTION)+ -- option selector --
!ATTLIST SELECT
  %attrs;  -- %coreattrs, %i18n, %events --
  nameCDATA  #IMPLIED  -- field name --
  sizeNUMBER #IMPLIED  -- rows visible --
  multiple(multiple) #IMPLIED  -- default is single selection --
  disabled(disabled) #IMPLIED  -- unavailable in this context --
  tabindexNUMBER #IMPLIED  -- position in tabbing order --
  onfocus %Script;   #IMPLIED  -- the element got the focus --
  onblur  %Script;   #IMPLIED  -- the element lost the focus --
  onchange%Script;   #IMPLIED  -- the element value was changed --
  %reserved;   -- reserved for possible future
use --
  

No accesskey.

http://jakarta.apache.org/struts/userGuide/struts-html.html#select

No access key.

I'm not denying that I could be wrong. Could you tell me what version of the
taglibs you are using and what version of the HTML or XHTML dtd you are
referring to?

Steve

http://www.ninsky.com/struts/


 -Original Message-
 From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
 Sent: August 26, 2003 11:25 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Another missing attribute in html-el




  -Original Message-
  From: Steve Raeburn [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, August 26, 2003 2:19 PM
  To: Struts Users Mailing List
  Subject: RE: Another missing attribute in html-el
 
 
  accesskey is not a valid attribute for the select element
  (See http://www.w3.org/TR/html4/sgml/loosedtd.html).
  It's not on the html:select tag either.

 Yes it is valid for the select... HTML tag, and yes it is valid for
 html:select I was using it on an html:select.. tag, and when I
 switched that tag to html-el:select.. I got the error message.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Another missing attribute in html-el

2003-08-26 Thread Slattery, Tim - BLS


 -Original Message-
 From: Steve Raeburn [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, August 26, 2003 3:13 PM
 To: Struts Users Mailing List
 Subject: RE: Another missing attribute in html-el
 
 
 !ENTITY % coreattrs
  id  ID #IMPLIED  -- document-wide unique id --
   class   CDATA  #IMPLIED  -- space-separated 
 list of classes --
   style   %StyleSheet;   #IMPLIED  -- associated style info --
   title   %Text; #IMPLIED  -- advisory title --
   
 
 !ELEMENT SELECT - - (OPTGROUP|OPTION)+ -- option selector 
 -- !ATTLIST SELECT
   %attrs;  -- %coreattrs, %i18n, 
 %events --
   nameCDATA  #IMPLIED  -- field name --
   sizeNUMBER #IMPLIED  -- rows visible --
   multiple(multiple) #IMPLIED  -- default is single 
 selection --
   disabled(disabled) #IMPLIED  -- unavailable in this 
 context --
   tabindexNUMBER #IMPLIED  -- position in tabbing order --
   onfocus %Script;   #IMPLIED  -- the element got the focus --
   onblur  %Script;   #IMPLIED  -- the element lost 
 the focus --
   onchange%Script;   #IMPLIED  -- the element value 
 was changed --
   %reserved;   -- reserved for possible future
 use --
   
 
 No accesskey.
 
 http://jakarta.apache.org/struts/userGuide/struts-html.html#select
 
 No access key.
 
 I'm not denying that I could be wrong. Could you tell me what 
 version of the taglibs you are using and what version of the 
 HTML or XHTML dtd you are referring to?


That's insane! I started using the accesskey attribute with select in
whatever Struts version came before version 1.1. It's in HTML4.0, and W3C
DOM Level 1 (according to MSDN, which says IE has known about it since
IE4.0). And it is beyond question in Struts 1.1!

--
Tim Slattery
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Another missing attribute in html-el

2003-08-26 Thread Jarnot Voytek Contr AU HQ/SC
accesskey on SELECT appears to be IE specific.  

 -Original Message-
 From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 26, 2003 2:34 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Another missing attribute in html-el
 
 
 That's insane! I started using the accesskey attribute with 
 select in
 whatever Struts version came before version 1.1. It's in 
 HTML4.0, and W3C
 DOM Level 1 (according to MSDN, which says IE has known about it since
 IE4.0). And it is beyond question in Struts 1.1!
 
 --
 Tim Slattery
 [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Another missing attribute in html-el

2003-08-26 Thread Steve Raeburn
The following elements support the accesskey attribute: A, AREA, BUTTON,
INPUT, LABEL, and LEGEND, and TEXTAREA.
http://www.w3.org/TR/1998/REC-html40-19980424/interact/forms.html#adef-acces
skey

I'm not quite sure *why* select does not have an accesskey, but it
definitely doesn't.

Looking back at the source, there *was* an accesskey attribute but it was
removed before 1.1 Beta 3. This explains more -
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13337

Check that you actually are running the release version of 1.1 and you don't
have any old jar or .tld files hanging around.

Steve
http://www.ninsky.com/struts/


 -Original Message-
 From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
 Sent: August 26, 2003 12:34 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Another missing attribute in html-el

 That's insane! I started using the accesskey attribute with select in
 whatever Struts version came before version 1.1. It's in HTML4.0, and W3C
 DOM Level 1 (according to MSDN, which says IE has known about it since
 IE4.0). And it is beyond question in Struts 1.1!

 --
 Tim Slattery
 [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]