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 96653 - Search textfield doesn't accept 'Enter' key as a submit key
Summary: Search textfield doesn't accept 'Enter' key as a submit key
Status: VERIFIED FIXED
Alias: None
Product: updatecenters
Classification: Unclassified
Component: Pluginportal (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: David Botterill
URL:
Keywords:
: 96665 102051 102105 112515 112517 (view as bug list)
Depends on:
Blocks: 102052
  Show dependency tree
 
Reported: 2007-02-27 07:43 UTC by Jaromir Uhrik
Modified: 2009-10-03 12:41 UTC (History)
3 users (show)

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 Jaromir Uhrik 2007-02-27 07:43:07 UTC
Go to plug-in portal main page and type some string to the search textfield.
Then push Enter on the keyboard. This action reloads the page instead of submit
of typed search string. Pushing Enter key should work the same way as pushing
"Search For Plugins" button.
Comment 1 jcatchpoole 2007-02-27 11:22:28 UTC
*** Issue 96665 has been marked as a duplicate of this issue. ***
Comment 2 David Botterill 2007-03-06 04:09:13 UTC
I used a hack I found in a Creator blog that simulates the desired behavior.  If
a user enters text in the search field and hits "enter" the page will be submitted.
Comment 3 Jaromir Uhrik 2007-03-07 15:48:07 UTC
Verified.
Comment 4 jcatchpoole 2007-04-23 10:40:29 UTC
This is back it appears.
Comment 5 jcatchpoole 2007-04-23 10:40:55 UTC
*** Issue 102051 has been marked as a duplicate of this issue. ***
Comment 6 jcatchpoole 2007-04-23 10:41:38 UTC
*** Issue 102105 has been marked as a duplicate of this issue. ***
Comment 7 David Botterill 2007-04-23 15:17:48 UTC
This defect will not be fixed until VWP can handle setting virtual forms
dynamically.  Most of the dynamic content on the first page is made up of
hyperlinks.  When the "enter" key is pressed,  If the search text field is not
blank, the search will be triggered.  The only way to stop this is to either add
all the dynamically added links to the "links" virtual form or disable the
ability to search when pressing the "Enter" key.

I can't add the hyperlinks to the "links" virtual form because the JSF component
model is not filled in with the virtual form information on a non-postback
operation.  A non-postback is where the page is navigated to from a non-JSF
page.  Because this is the first page of the plugin portal, the JSF component is
not filled in.

So the only option left is to take off the "search on Enter key" ability and
that's what I've done.

This likely won't change unless I can find another workaround for either the
virtual form issue or I can somehow change the "Search" button to be type "submit". 
Comment 8 Jaromir Uhrik 2007-07-31 12:52:21 UTC
It is the same with the Login textfield when the uset wants to log on to the pluginportal. For users that are not aware
of this issue it may be really hard even to log on to the pluginportal.
Comment 9 _ wadechandler 2007-08-10 05:15:46 UTC
*** Issue 112517 has been marked as a duplicate of this issue. ***
Comment 10 _ wadechandler 2007-08-17 16:33:38 UTC
David,

Does the site already require JavaScript? Haven't looked at it that close yet. Anyways, if so, can't you attach code,
name the search and login links, and then fire the same event which gets fired when the button is clicked?
Comment 11 David Botterill 2007-08-17 16:39:53 UTC
Now that I've made changes to search to support "GET" style calls, I might be able to do Javascript.  I'll look into it.

Thanks!
Comment 12 David Botterill 2008-01-16 22:36:17 UTC
*** Issue 112515 has been marked as a duplicate of this issue. ***
Comment 13 jcatchpoole 2008-02-01 12:19:19 UTC
*** Issue 126435 has been marked as a duplicate of this issue. ***
Comment 14 Jiri Kovalsky 2008-03-10 16:42:49 UTC
Raising priority due to many duplicates.
Comment 15 David Botterill 2008-04-12 19:44:02 UTC
Fixed.
Comment 16 Jiri Kovalsky 2008-04-14 14:53:37 UTC
Yes, the Enter finally works! Thanks a lot David.