Bug 603772 - SearchBar doesn't "blank out" welcome message
Summary: SearchBar doesn't "blank out" welcome message
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Core UI
Version: 3.0.0
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
: ---
Assignee: Joseph Marques
QA Contact: Sunil Kondkar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-14 14:41 UTC by Joseph Marques
Modified: 2010-08-12 16:44 UTC (History)
0 users

Fixed In Version: 2.4
Clone Of:
Environment:
Last Closed: 2010-08-12 16:44:44 UTC
Embargoed:


Attachments (Terms of Use)

Description Joseph Marques 2010-06-14 14:41:55 UTC
When you visit the resource browser the SearchBar will be prepopulated with "search for resources".  Likewise, when you visit the group browser the SearchBar will be prepopulated with "search for groups".  At that point, if you were to hit the OK button, the results would be empty because it's interpreting the welcome message as a search expression.  The fix to this should be that when the user clicks the OK button, if the SearchBar still has the default / welcome message in it, it should be blanked out and then the search executed.

Comment 1 Joseph Marques 2010-06-14 14:54:16 UTC
commit 316150fef98fce297e4454a9d715d27f70d616cb
Author: Joseph Marques <joseph>
Date:   Mon Jun 14 10:45:41 2010 -0400

    BZ-603769, 603772: enable SearchBar prefill functionality, fix welcomeMessage handling
    
    BZ-603769:
    * delay the construction of the SearchBar until the SavedSearchManager is fully loaded
    * add method to allow propagation of default search information from JSF context
    * add handler to execute search immediately if searchText is propagated
    * add handler to activate saved search immediately if a named search pattern is propagated
    
    BZ-603772:
    * use DOM.addNativePreviewHandler instead of DOM.setEventListener
    ** this ensures that the prepareSearchExecution is the first handler in the stack

Comment 2 Sunil Kondkar 2010-06-22 10:44:12 UTC
Verified on JON 2.4 GA_QA build

When searchbar is prepopulated with "search for resources" or "search for groups", clicking on OK button blanks out the welcome message and search results are displayed.

Comment 3 Corey Welton 2010-08-12 16:44:44 UTC
Mass-closure of verified bugs against JON.


Note You need to log in before you can comment on or make changes to this bug.