This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 92496 - AutoComplete BluePrint component TABINDEX
Summary: AutoComplete BluePrint component TABINDEX
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Matthew Bohm
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-13 23:17 UTC by myatt83
Modified: 2007-08-15 18:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description myatt83 2007-01-13 23:17:04 UTC
When using the AutoComplete BluePrint component in the visual editor, I select 
the component and the Properties window displays its name and attributes. I 
scroll down the list of properties and "tabindex" shows up. The Properties 
window allows me to set a value 4, 5, 6, and so on. However In the visual 
editor  if I select the JSP view, locate the autoComplete tag and try to use 
code completion to view the list of attributes, the tabindex does not appear in 
the list. Thus I'm assuming it is not a valid property for that component. If I 
Run the JSP page I see this exception : 

com.sun.rave.web.ui.appbase.ApplicationException: 
org.apache.jasper.JasperException: /greeting.jsp(16,224) Attribute tabindex 
invalid for tag autoComplete according to TLD
        at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.cleanup
(ViewHandlerImpl.java:559)
        at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView
(ViewHandlerImpl.java:290)

If I remove the value for the tabindex propery as set in the Properties window 
the pager runs fine. 

Can either the Properties window NOT display the tabindex attribute or can the 
component be modified to support the tabindex attribute? Thanks.
Comment 1 Matthew Bohm 2007-06-26 00:07:50 UTC
It appears I should hide the tabindex property.
Comment 2 Matthew Bohm 2007-07-02 23:32:15 UTC
Actually the fix was different:

Index: bpcatalog/ui/runtime/src/java/com/sun/j2ee/blueprints/ui/autocomplete/AutoCompleteTag.java
===================================================================
RCS file: /cvs/bpcatalog/ui/runtime/src/java/com/sun/j2ee/blueprints/ui/autocomplete/AutoCompleteTag.java,v
retrieving revision 1.5
diff -u -r1.5 AutoCompleteTag.java
--- bpcatalog/ui/runtime/src/java/com/sun/j2ee/blueprints/ui/autocomplete/AutoCompleteTag.java	19 Jan 2006 20:01:35
-0000	1.5
+++ bpcatalog/ui/runtime/src/java/com/sun/j2ee/blueprints/ui/autocomplete/AutoCompleteTag.java	2 Jul 2007 22:16:15 -0000
@@ -256,7 +256,7 @@
         configureString(component, "onselect", onselect);
         configureBoolean(component, "readonly", readonly);
         configureInteger(component, "size", size);
-        configureInteger(component, "tabindex", tabindex);
+        configureString(component, "tabindex", tabindex);
 
     }

Index: bpcatalog/ui/runtime/src/resources/META-INF/ui.tld
===================================================================
RCS file: /cvs/bpcatalog/ui/runtime/src/resources/META-INF/ui.tld,v
retrieving revision 1.36
diff -u -r1.36 ui.tld
--- bpcatalog/ui/runtime/src/resources/META-INF/ui.tld	15 May 2006 21:07:22 -0000	1.36
+++ bpcatalog/ui/runtime/src/resources/META-INF/ui.tld	2 Jul 2007 22:16:16 -0000
@@ -374,6 +374,17 @@
     </attribute>
 
     <attribute>
+      <name>tabindex</name>
+      <required>false</required>
+      <rtexprvalue>false</rtexprvalue>
+      <description>      
+          Position of this element in the tabbing order
+          for the current document.  This value must be
+          an integer between 0 and 32767.
+      </description>
+    </attribute>
+
+    <attribute>
       <name>text</name>
       <required>false</required>
       <rtexprvalue>false</rtexprvalue>

Fix is available in most recent ui-0.1.2.complib.
Comment 3 Lark Fitzgerald 2007-08-15 18:28:46 UTC
Verified fixed using:
Product Version: NetBeans 6 IDE Dev (Build 200708150000)
Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b04 
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Woodstock 4.1: 200708141616

Ajax BluePrints: 0.1.2