rxue / dictionary

Practice in Java EE
1 stars 0 forks source link

sub-task of #53 : make select of one search result candidate display the explanations #58

Closed rxue closed 1 year ago

rxue commented 1 year ago

Problem: The keyword in the bookmarkable URL can be passed to the CDI bean - AjaxSearchComponent, but the search seems not work, i.e. the result cannot be rendered successfully on the page

LEARNING NOTE! with the current implementation, the select of a search candidate causes the redirect of to the same page with the keyword as the url parameter. As a result, when the search method is invoked with the redirected URL with url parameter, AjaxSearchComponent CDI is also a new instance

rxue commented 1 year ago

TODO : add a new find method to the ExplanationRepository to find exact match

rxue commented 1 year ago

BUG : select on the first item in the select options does not invoke the AjaxSearchComponent.navigate()

use case:

  1. go to ajax_test.xhtml
  2. type "me" in the search box and then wait for the search candidate pop up
  3. select the word "me" in the search candidate drop down list
  4. expected: the URL should be redirected to the same URL but with parameter keyword=me, but actual: nothing happens